diff --git a/.gitignore b/.gitignore index 93f24af..d52e88d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ spec/dummy/db/*.sqlite3-journal spec/dummy/log/*.log spec/dummy/tmp/ spec/dummy/.sass-cache -/coverage \ No newline at end of file +/coverage +.idea \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 3398a11..ed48561 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,2 +1,6 @@ language: ruby script: bundle exec rspec +env: + - "RAILS_VERSION=4.2.6" + - "RAILS_VERSION=5.1.6" + - "RAILS_VERSION=5.2" \ No newline at end of file diff --git a/Gemfile b/Gemfile index 007ecad..cbb5606 100644 --- a/Gemfile +++ b/Gemfile @@ -12,8 +12,13 @@ gemspec # To use a debugger # gem 'byebug', group: [:development, :test] +# -gem 'rails', '~> 5' +def rails_version + ENV['RAILS_VERSION'] || '5.1' +end + +gem 'rails', rails_version group :development do gem 'listen' diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index e8e705a..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,261 +0,0 @@ -PATH - remote: . - specs: - activeadmin_latlng (1.2.0) - activeadmin - -GEM - remote: https://rubygems.org/ - specs: - actioncable (5.1.2) - actionpack (= 5.1.2) - nio4r (~> 2.0) - websocket-driver (~> 0.6.1) - actionmailer (5.1.2) - actionpack (= 5.1.2) - actionview (= 5.1.2) - activejob (= 5.1.2) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (5.1.2) - actionview (= 5.1.2) - activesupport (= 5.1.2) - rack (~> 2.0) - rack-test (~> 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (5.1.2) - activesupport (= 5.1.2) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.3) - activeadmin (1.0.0) - arbre (>= 1.1.1) - bourbon - coffee-rails - formtastic (~> 3.1) - formtastic_i18n - inherited_resources (~> 1.7) - jquery-rails - jquery-ui-rails - kaminari (>= 0.15, < 2.0) - railties (>= 4.2, < 5.2) - ransack (~> 1.3) - sass-rails - sprockets (< 4.1) - activejob (5.1.2) - activesupport (= 5.1.2) - globalid (>= 0.3.6) - activemodel (5.1.2) - activesupport (= 5.1.2) - activerecord (5.1.2) - activemodel (= 5.1.2) - activesupport (= 5.1.2) - arel (~> 8.0) - activesupport (5.1.2) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (~> 0.7) - minitest (~> 5.1) - tzinfo (~> 1.1) - addressable (2.5.1) - public_suffix (~> 2.0, >= 2.0.2) - arbre (1.1.1) - activesupport (>= 3.0.0) - arel (8.0.0) - bourbon (4.3.4) - sass (~> 3.4) - thor (~> 0.19) - builder (3.2.3) - capybara (2.11.0) - addressable - mime-types (>= 1.16) - nokogiri (>= 1.3.3) - rack (>= 1.0.0) - rack-test (>= 0.5.4) - xpath (~> 2.0) - cliver (0.3.2) - codecov (0.1.10) - json - simplecov - url - coffee-rails (4.2.2) - coffee-script (>= 2.2.0) - railties (>= 4.0.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - database_cleaner (1.6.1) - diff-lcs (1.3) - docile (1.1.5) - erubi (1.6.1) - execjs (2.7.0) - ffi (1.9.18) - formtastic (3.1.5) - actionpack (>= 3.2.13) - formtastic_i18n (0.6.0) - globalid (0.4.0) - activesupport (>= 4.2.0) - has_scope (0.7.1) - actionpack (>= 4.1, < 5.2) - activesupport (>= 4.1, < 5.2) - i18n (0.8.4) - inherited_resources (1.7.2) - actionpack (>= 3.2, < 5.2.x) - has_scope (~> 0.6) - railties (>= 3.2, < 5.2.x) - responders - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - jquery-ui-rails (6.0.1) - railties (>= 3.2.16) - json (2.1.0) - kaminari (1.1.0) - activesupport (>= 4.1.0) - kaminari-actionview (= 1.1.0) - kaminari-activerecord (= 1.1.0) - kaminari-core (= 1.1.0) - kaminari-actionview (1.1.0) - actionview - kaminari-core (= 1.1.0) - kaminari-activerecord (1.1.0) - activerecord - kaminari-core (= 1.1.0) - kaminari-core (1.1.0) - listen (3.0.8) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - loofah (2.0.3) - nokogiri (>= 1.5.9) - mail (2.6.6) - 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) - mini_portile2 (2.2.0) - minitest (5.10.2) - nio4r (2.1.0) - nokogiri (1.8.0) - mini_portile2 (~> 2.2.0) - phantomjs (1.9.8.0) - poltergeist (1.12.0) - capybara (~> 2.1) - cliver (~> 0.3.1) - websocket-driver (>= 0.2.0) - polyamorous (1.3.1) - activerecord (>= 3.0) - public_suffix (2.0.5) - rack (2.0.3) - rack-test (0.6.3) - rack (>= 1.0) - rails (5.1.2) - actioncable (= 5.1.2) - actionmailer (= 5.1.2) - actionpack (= 5.1.2) - actionview (= 5.1.2) - activejob (= 5.1.2) - activemodel (= 5.1.2) - activerecord (= 5.1.2) - activesupport (= 5.1.2) - bundler (>= 1.3.0, < 2.0) - railties (= 5.1.2) - sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (5.1.2) - actionpack (= 5.1.2) - activesupport (= 5.1.2) - method_source - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.0.0) - ransack (1.8.3) - actionpack (>= 3.0) - activerecord (>= 3.0) - activesupport (>= 3.0) - i18n - polyamorous (~> 1.3) - rb-fsevent (0.9.8) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - responders (2.4.0) - actionpack (>= 4.2.0, < 5.3) - railties (>= 4.2.0, < 5.3) - rspec-core (3.6.0) - rspec-support (~> 3.6.0) - rspec-expectations (3.6.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.6.0) - rspec-mocks (3.6.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.6.0) - rspec-rails (3.6.0) - actionpack (>= 3.0) - activesupport (>= 3.0) - railties (>= 3.0) - rspec-core (~> 3.6.0) - rspec-expectations (~> 3.6.0) - rspec-mocks (~> 3.6.0) - rspec-support (~> 3.6.0) - rspec-support (3.6.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - simplecov (0.14.1) - docile (~> 1.1.0) - json (>= 1.8, < 3) - simplecov-html (~> 0.10.0) - simplecov-html (0.10.1) - 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) - sqlite3 (1.3.13) - thor (0.19.4) - thread_safe (0.3.6) - tilt (2.0.8) - tzinfo (1.2.3) - thread_safe (~> 0.1) - url (0.3.2) - websocket-driver (0.6.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.2) - xpath (2.1.0) - nokogiri (~> 1.3) - -PLATFORMS - ruby - -DEPENDENCIES - activeadmin_latlng! - capybara - codecov - database_cleaner - listen - phantomjs - poltergeist - rails (~> 5) - rspec-rails - sqlite3 - -BUNDLED WITH - 1.15.3