Skip to content

Instantly share code, notes, and snippets.

@Overbryd
Created February 2, 2017 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Overbryd/02d2beecddacc8bffc325a3dd32e6d29 to your computer and use it in GitHub Desktop.
Save Overbryd/02d2beecddacc8bffc325a3dd32e6d29 to your computer and use it in GitHub Desktop.
## Environment
```
Bundler 1.14.3
Rubygems 2.4.5
Ruby 1.9.3p551 (2015-01-29 revision 48406) [java]
GEM_HOME /home/travis/.rvm/gems/jruby-src-1.7.19
GEM_PATH /home/travis/.rvm/gems/jruby-src-1.7.19:/home/travis/.rvm/gems/jruby-src-1.7.19@global
RVM 1.26.10 (1.26.10)
Git 1.8.5.6
Platform universal-java-1.7
```
## Bundler settings
```
api
You have not configured a value for `api`
gemfile
Set via BUNDLE_GEMFILE: "/home/travis/build/titel-media/what-drops-now-core/Gemfile.jruby"
```
## Gemfile
### Gemfile.jruby
```ruby
source 'https://rubygems.org'
# Declare your gem's dependencies in core.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
gemspec
# Declare any dependencies that are still in development here instead of in
# your gemspec. These might include edge Rails or gems from your path or
# Git. Remember to move these dependencies to your gemspec before releasing
# your gem to rubygems.org.
# To use a debugger
# gem 'byebug', group: [:development, :test]
```
### Gemfile.jruby.lock
```
PATH
remote: .
specs:
core (0.17.0)
activerecord-jdbcpostgresql-adapter
acts_as_follower (~> 0.2, >= 0.2.1)
acts_as_list (~> 0.8, >= 0.8.2)
addressable (~> 2.5, >= 2.5.0)
aws-sdk (~> 2)
aws-sdk-v1 (~> 1.66, >= 1.66.0)
babosa (~> 1.0, >= 1.0.2)
bcrypt (~> 3.1, >= 3.1.9)
bulk_insert (~> 1.3, >= 1.3.0)
composite_primary_keys (~> 8.0, >= 8.1.4)
database_cleaner (~> 1.5, >= 1.5.3)
devise (= 3.5.1)
factory_girl_rails (~> 4.5, >= 4.5.0)
faker (~> 1.6, >= 1.6.6)
foreigner (~> 1.7, >= 1.7.4)
friendly_id (~> 5.1, >= 5.1.0)
google_currency (~> 3.3, >= 3.3.0)
kaminari (~> 0.17, >= 0.17.0)
omniauth-facebook (~> 4.0, >= 4.0.0)
paperclip (~> 4.3, >= 4.3.7)
paperclip-meta (~> 2.0, >= 2.0.2)
pg_materialized_view (~> 0.0, >= 0.0.2)
pg_search (~> 1.0, >= 1.0.6)
pg_seeder (~> 0.0, >= 0.0.1)
rails (~> 4.2, >= 4.2.7)
redis
request_store (~> 1.3, >= 1.3.1)
strip_attributes (~> 1.8, >= 1.8.0)
timecop (~> 0.8, >= 0.8.1)
uri_template (~> 0.6)
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.7.1)
actionpack (= 4.2.7.1)
actionview (= 4.2.7.1)
activejob (= 4.2.7.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.7.1)
actionview (= 4.2.7.1)
activesupport (= 4.2.7.1)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.7.1)
activesupport (= 4.2.7.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (4.2.7.1)
activesupport (= 4.2.7.1)
globalid (>= 0.3.0)
activemodel (4.2.7.1)
activesupport (= 4.2.7.1)
builder (~> 3.1)
activerecord (4.2.7.1)
activemodel (= 4.2.7.1)
activesupport (= 4.2.7.1)
arel (~> 6.0)
activerecord-jdbc-adapter (1.3.22)
activerecord (>= 2.2)
activerecord-jdbcpostgresql-adapter (1.3.22)
activerecord-jdbc-adapter (~> 1.3.22)
jdbc-postgres (>= 9.1)
activesupport (4.2.7.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
acts_as_follower (0.2.1)
acts_as_list (0.9.1)
activerecord (>= 3.0)
addressable (2.5.0)
public_suffix (~> 2.0, >= 2.0.2)
annotate (2.7.1)
activerecord (>= 3.2, < 6.0)
rake (>= 10.4, < 12.0)
arel (6.0.4)
aws-sdk (2.7.3)
aws-sdk-resources (= 2.7.3)
aws-sdk-core (2.7.3)
aws-sigv4 (~> 1.0)
jmespath (~> 1.0)
aws-sdk-resources (2.7.3)
aws-sdk-core (= 2.7.3)
aws-sdk-v1 (1.66.0)
json (~> 1.4)
nokogiri (>= 1.4.4)
aws-sigv4 (1.0.0)
babosa (1.0.2)
bcrypt (3.1.11-java)
builder (3.2.3)
bulk_insert (1.3.0)
activerecord (>= 4.1.0)
climate_control (0.1.0)
cocaine (0.5.8)
climate_control (>= 0.0.3, < 1.0)
coderay (1.1.1)
composite_primary_keys (8.1.5)
activerecord (~> 4.2.0)
concurrent-ruby (1.0.4-java)
database_cleaner (1.5.3)
devise (3.5.1)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
diff-lcs (1.3)
docile (1.1.5)
erubis (2.7.0)
factory_girl (4.8.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.8.0)
factory_girl (~> 4.8.0)
railties (>= 3.0.0)
faker (1.7.2)
i18n (~> 0.5)
fakeredis (0.6.0)
redis (~> 3.2)
faraday (0.10.1)
multipart-post (>= 1.2, < 3)
ffi (1.9.17-java)
foreigner (1.7.4)
activerecord (>= 3.0.0)
friendly_id (5.2.0)
activerecord (>= 4.0.0)
globalid (0.3.7)
activesupport (>= 4.1.0)
google_currency (3.3.0)
money (~> 6.7)
hashie (3.5.1)
i18n (0.7.0)
jdbc-postgres (9.4.1206)
jmespath (1.3.1)
json (1.8.6-java)
jwt (1.5.6)
kaminari (0.17.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.4)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mimemagic (0.3.0)
minitest (5.10.1)
money (6.8.1)
i18n (>= 0.6.4, <= 0.7.0)
sixarm_ruby_unaccent (>= 1.1.1, < 2)
multi_json (1.12.1)
multi_xml (0.6.0)
multipart-post (2.0.0)
nokogiri (1.7.0.1-java)
oauth2 (1.3.0)
faraday (>= 0.8, < 0.11)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
omniauth (1.3.2)
hashie (>= 1.2, < 4)
rack (>= 1.0, < 3)
omniauth-facebook (4.0.0)
omniauth-oauth2 (~> 1.2)
omniauth-oauth2 (1.4.0)
oauth2 (~> 1.0)
omniauth (~> 1.2)
orm_adapter (0.5.0)
paperclip (4.3.7)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
cocaine (~> 0.5.5)
mime-types
mimemagic (= 0.3.0)
paperclip-meta (2.0.2)
paperclip (~> 4.0)
pg_materialized_view (0.0.2)
pg_search (1.0.6)
activerecord (>= 3.1)
activesupport (>= 3.1)
arel
pg_seeder (0.0.1)
pry (0.10.4-java)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
spoon (~> 0.0)
public_suffix (2.0.5)
rack (1.6.5)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.7.1)
actionmailer (= 4.2.7.1)
actionpack (= 4.2.7.1)
actionview (= 4.2.7.1)
activejob (= 4.2.7.1)
activemodel (= 4.2.7.1)
activerecord (= 4.2.7.1)
activesupport (= 4.2.7.1)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.7.1)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.8)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (4.2.7.1)
actionpack (= 4.2.7.1)
activesupport (= 4.2.7.1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (11.3.0)
redis (3.3.3)
request_store (1.3.2)
responders (2.3.0)
railties (>= 4.2.0, < 5.1)
rspec-core (3.5.4)
rspec-support (~> 3.5.0)
rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-rails (3.5.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
shoulda-matchers (2.8.0)
activesupport (>= 3.0.0)
simplecov (0.13.0)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
sixarm_ruby_unaccent (1.1.1)
slop (3.6.0)
spoon (0.0.6)
ffi
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
strip_attributes (1.8.0)
activemodel (>= 3.0, < 6.0)
thor (0.19.4)
thread_safe (0.3.5-java)
timecop (0.8.1)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uri_template (0.7.0)
warden (1.2.7)
rack (>= 1.0)
PLATFORMS
java
DEPENDENCIES
annotate (~> 2.6, >= 2.6.5)
core!
fakeredis
pry
rspec-rails (~> 3.4, >= 3.4.2)
shoulda-matchers (~> 2.8, >= 2.8.0)
simplecov (~> 0.12, >= 0.12.0)
BUNDLED WITH
1.14.3
```
## Gemspecs
### core.gemspec
```ruby
Gem::Specification.new do |s|
s.name = 'core'
s.version = '0.17.0'
s.authors = ['Lukas Rieder']
s.email = ['l.rieder@gmail.com']
s.homepage = 'https://github.com/titel-media/what-drops-now-core'
s.summary = 'Core focuses on the database related code of what drops now'
s.description = 'Core'
s.license = 'MIT'
s.files = Dir['{app,config,db,lib}/**/*.rb'].to_a
s.require_path = 'lib'
# NOTE: core must be compatible with both JRuby and CRuby
# Therefore use RUBY_PLATFORM switch to require gems from both worlds
if RUBY_PLATFORM == 'java'
# Use the jdbc adatapter for Active Record
s.add_runtime_dependency 'activerecord-jdbcpostgresql-adapter'
else
# Use postgresql as the database for Active Record
s.add_runtime_dependency 'pg', '~> 0.19', '>= 0.19.0'
end
unless RUBY_PLATFORM == 'java'
# A fast JSON parser and Object marshaller as a Ruby s.add_runtime_dependency.
s.add_runtime_dependency 'oj', '~> 2.18', '>= 2.18.0'
# Make calls that expect the JSON module use Oj instead.
s.add_runtime_dependency 'oj_mimic_json', '~> 1.0', '>= 1.0.1'
end
# obviously, we are making use of many rails features
s.add_runtime_dependency 'rails', '~> 4.2', '>= 4.2.7'
# seeds on steroids
s.add_runtime_dependency 'pg_seeder', '~> 0.0', '>= 0.0.1'
# materialized views on steroids
s.add_runtime_dependency 'pg_materialized_view', '~> 0.0', '>= 0.0.2'
# Adds foreign key helpers to migrations and correctly dumps foreign keys to schema.rb
s.add_runtime_dependency 'foreigner', '~> 1.7', '>= 1.7.4'
# Authentication
s.add_runtime_dependency 'devise', '3.5.1'
s.add_runtime_dependency 'omniauth-facebook', '~> 4.0', '>= 4.0.0'
# Attachment handling
s.add_runtime_dependency 'paperclip', '~> 4.3', '>= 4.3.7'
s.add_runtime_dependency 'paperclip-meta', '~> 2.0', '>= 2.0.2'
s.add_runtime_dependency 'aws-sdk-v1', '~> 1.66', '>= 1.66.0'
s.add_runtime_dependency 'aws-sdk', '~> 2' # Core::S3UploadHelper
# a better URI implementation
s.add_runtime_dependency 'addressable', '~> 2.5', '>= 2.5.0'
# a faster and more complete RFC 6570 implementation than addressable
s.add_runtime_dependency 'uri_template', '~> 0.6'
# pagination
s.add_runtime_dependency 'kaminari', '~> 0.17', '>= 0.17.0'
# slugs
s.add_runtime_dependency 'friendly_id', '~> 5.1', '>= 5.1.0'
# transliterations for friendly id
s.add_runtime_dependency 'babosa', '~> 1.0', '>= 1.0.2'
# clean leading and trailing whitespace
s.add_runtime_dependency 'strip_attributes', '~> 1.8', '>= 1.8.0'
# Sortable Lists
s.add_runtime_dependency 'acts_as_list', '~> 0.8', '>= 0.8.2'
# PostgreSQL's full text search
s.add_runtime_dependency 'pg_search', '~> 1.0', '>= 1.0.6'
# extends ActiveRecord to support composite keys
s.add_runtime_dependency 'composite_primary_keys', '~> 8.0', '>= 8.1.4'
# lets models follow other models
s.add_runtime_dependency 'acts_as_follower', '~> 0.2', '>= 0.2.1'
# Use ActiveModel has_secure_password
s.add_runtime_dependency 'bcrypt', '~> 3.1', '>= 3.1.9'
# request global storage, used to store current_user, preferred exchange rate and exchange rates
s.add_runtime_dependency 'request_store', '~> 1.3', '>= 1.3.1'
# help generating some seed data
s.add_runtime_dependency 'factory_girl_rails', '~> 4.5', '>= 4.5.0'
s.add_runtime_dependency 'faker', '~> 1.6', '>= 1.6.6'
# timecop is used in db/seeds.rb and tests
s.add_runtime_dependency 'timecop', '~> 0.8', '>= 0.8.1'
# database_cleaner is used in db/seeds.rb and tests
s.add_runtime_dependency 'database_cleaner', '~> 1.5', '>= 1.5.3'
# used to update exchange rates
s.add_runtime_dependency 'google_currency', '~> 3.3', '>= 3.3.0'
# used to speed up certain migrations
s.add_runtime_dependency 'bulk_insert', '~> 1.3', '>= 1.3.0'
# Redis is used to create a pub/sub mechanism for database changes
s.add_runtime_dependency 'redis'
# annotate models/factories/specs with the table schema
s.add_development_dependency 'annotate', '~> 2.6', '>= 2.6.5'
if RUBY_PLATFORM == 'java'
s.add_development_dependency 'pry'
else
s.add_development_dependency 'pry-byebug', '~> 3.4', '>= 3.4.1'
end
s.add_development_dependency 'rspec-rails', '~> 3.4', '>= 3.4.2'
s.add_development_dependency 'simplecov', '~> 0.12', '>= 0.12.0'
s.add_development_dependency 'shoulda-matchers', '~> 2.8', '>= 2.8.0'
s.add_development_dependency 'fakeredis'
end
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment