Skip to content

Commit

Permalink
Merge pull request #38 from espen/norails
Browse files Browse the repository at this point in the history
Do not depend on entire Rails gem
  • Loading branch information
elct9620 authored Nov 6, 2023
2 parents 14278e4 + 8bc66e7 commit e62c0a7
Show file tree
Hide file tree
Showing 14 changed files with 415 additions and 272 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ language: ruby
cache: bundler
dist: trusty
rvm:
- 2.5.0
- 2.6.0
- 2.7.7
- 3.2.2
before_install:
- gem install bundler -v 1.17.3
- gem install bundler
gemfile:
- gemfiles/rails_5.gemfile
- gemfiles/rails_6.gemfile
- gemfiles/rails_7.gemfile
script:
- bundle exec rspec
- bundle exec codeclimate-test-reporter
26 changes: 24 additions & 2 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
# frozen_string_literal: true

appraise 'rails-5' do
gem 'rails', '~> 5.1'
gem "railties", "~> 5"
gem "actionmailer", "~> 5"
gem "actionpack", "~> 5"
gem "actionview", "~> 5"
gem "activemodel", "~> 5"
gem "activerecord", "~> 5"
gem "activesupport", "~> 5"
end

appraise 'rails-6' do
gem 'rails', '~> 6.0'
gem "railties", "~> 6"
gem "actionmailer", "~> 6"
gem "actionpack", "~> 6"
gem "actionview", "~> 6"
gem "activemodel", "~> 6"
gem "activerecord", "~> 6"
gem "activesupport", "~> 6"
end

appraise 'rails-7' do
gem "railties", "~> 7"
gem "actionmailer", "~> 7"
gem "actionpack", "~> 7"
gem "actionview", "~> 7"
gem "activemodel", "~> 7"
gem "activerecord", "~> 7"
gem "activesupport", "~> 7"
end
8 changes: 7 additions & 1 deletion gemfiles/rails_5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
source "https://rubygems.org"

gem "sqlite3"
gem "rails", "~> 5.1"
gem "railties", "~> 5"
gem "actionmailer", "~> 5"
gem "actionpack", "~> 5"
gem "actionview", "~> 5"
gem "activemodel", "~> 5"
gem "activerecord", "~> 5"
gem "activesupport", "~> 5"

gemspec path: "../"
183 changes: 78 additions & 105 deletions gemfiles/rails_5.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,197 +3,170 @@ PATH
specs:
rails-letsencrypt (0.10.1)
acme-client (~> 2.0.0)
rails (>= 5.0)
actionmailer (>= 5.0)
actionpack (>= 5.0)
actionview (>= 5.0)
activemodel (>= 5.0)
activerecord (>= 5.0)
activesupport (>= 5.0)
railties (>= 5.0)
redis

GEM
remote: https://rubygems.org/
specs:
acme-client (2.0.8)
faraday (>= 0.17, < 2.0.0)
actioncable (5.2.6)
actionpack (= 5.2.6)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.6)
actionpack (= 5.2.6)
actionview (= 5.2.6)
activejob (= 5.2.6)
acme-client (2.0.11)
faraday (>= 1.0, < 3.0.0)
faraday-retry (~> 1.0)
actionmailer (5.2.8.1)
actionpack (= 5.2.8.1)
actionview (= 5.2.8.1)
activejob (= 5.2.8.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.6)
actionview (= 5.2.6)
activesupport (= 5.2.6)
actionpack (5.2.8.1)
actionview (= 5.2.8.1)
activesupport (= 5.2.8.1)
rack (~> 2.0, >= 2.0.8)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.6)
activesupport (= 5.2.6)
actionview (5.2.8.1)
activesupport (= 5.2.8.1)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.2.6)
activesupport (= 5.2.6)
activejob (5.2.8.1)
activesupport (= 5.2.8.1)
globalid (>= 0.3.6)
activemodel (5.2.6)
activesupport (= 5.2.6)
activerecord (5.2.6)
activemodel (= 5.2.6)
activesupport (= 5.2.6)
activemodel (5.2.8.1)
activesupport (= 5.2.8.1)
activerecord (5.2.8.1)
activemodel (= 5.2.8.1)
activesupport (= 5.2.8.1)
arel (>= 9.0)
activestorage (5.2.6)
actionpack (= 5.2.6)
activerecord (= 5.2.6)
marcel (~> 1.0.0)
activesupport (5.2.6)
activesupport (5.2.8.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
appraisal (2.4.0)
appraisal (2.4.1)
bundler
rake
thor (>= 0.14.0)
arel (9.0.0)
builder (3.2.4)
codeclimate-test-reporter (1.0.7)
simplecov
concurrent-ruby (1.1.9)
concurrent-ruby (1.1.10)
coveralls (0.8.23)
json (>= 1.8, < 3)
simplecov (~> 0.16.1)
term-ansicolor (~> 1.3)
thor (>= 0.19.4, < 2.0)
tins (~> 1.6)
crass (1.0.6)
diff-lcs (1.4.4)
diff-lcs (1.5.0)
docile (1.4.0)
erubi (1.10.0)
faraday (1.5.1)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0.1)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.1)
faraday-patron (~> 1.0)
multipart-post (>= 1.2, < 3)
faraday (2.3.0)
faraday-net_http (~> 2.0)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
globalid (0.4.2)
activesupport (>= 4.2.0)
i18n (1.8.10)
faraday-net_http (2.0.3)
faraday-retry (1.0.3)
globalid (1.0.0)
activesupport (>= 5.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
json (2.5.1)
loofah (2.10.0)
json (2.6.2)
loofah (2.18.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (1.0.1)
method_source (1.0.0)
mini_mime (1.1.0)
mini_portile2 (2.5.3)
minitest (5.14.4)
multipart-post (2.1.1)
nio4r (2.5.7)
nokogiri (1.11.7)
mini_portile2 (~> 2.5.0)
mini_mime (1.1.2)
mini_portile2 (2.8.0)
minitest (5.16.2)
nokogiri (1.13.7)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogiri (1.13.7-arm64-darwin)
racc (~> 1.4)
racc (1.5.2)
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.6)
actioncable (= 5.2.6)
actionmailer (= 5.2.6)
actionpack (= 5.2.6)
actionview (= 5.2.6)
activejob (= 5.2.6)
activemodel (= 5.2.6)
activerecord (= 5.2.6)
activestorage (= 5.2.6)
activesupport (= 5.2.6)
bundler (>= 1.3.0)
railties (= 5.2.6)
sprockets-rails (>= 2.0.0)
nokogiri (1.13.7-x86_64-linux)
racc (~> 1.4)
racc (1.6.0)
rack (2.2.4)
rack-test (2.0.2)
rack (>= 1.3)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0)
rails-html-sanitizer (1.4.3)
loofah (~> 2.3)
railties (5.2.6)
actionpack (= 5.2.6)
activesupport (= 5.2.6)
railties (5.2.8.1)
actionpack (= 5.2.8.1)
activesupport (= 5.2.8.1)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rake (13.0.6)
redis (4.3.1)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
redis (4.7.1)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-rails (5.0.1)
rspec-support (~> 3.11.0)
rspec-rails (5.1.2)
actionpack (>= 5.2)
activesupport (>= 5.2)
railties (>= 5.2)
rspec-core (~> 3.10)
rspec-expectations (~> 3.10)
rspec-mocks (~> 3.10)
rspec-support (~> 3.10)
rspec-support (3.10.2)
rspec-support (3.11.0)
ruby2_keywords (0.0.5)
simplecov (0.16.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.4.2)
sqlite3 (1.4.4)
sync (0.5.0)
term-ansicolor (1.7.1)
tins (~> 1.0)
thor (1.1.0)
thor (1.2.1)
thread_safe (0.3.6)
tins (1.29.1)
tins (1.31.1)
sync
tzinfo (1.2.9)
thread_safe (~> 0.1)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)

PLATFORMS
arm64-darwin-21
ruby
x86_64-linux

DEPENDENCIES
actionmailer (~> 5)
actionpack (~> 5)
actionview (~> 5)
activemodel (~> 5)
activerecord (~> 5)
activesupport (~> 5)
appraisal
codeclimate-test-reporter
coveralls (~> 0.8.23)
rails (~> 5.1)
rails-letsencrypt!
railties (~> 5)
rspec-rails
simplecov (~> 0.16.1)
sqlite3

BUNDLED WITH
1.17.3
2.3.11
8 changes: 7 additions & 1 deletion gemfiles/rails_6.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
source "https://rubygems.org"

gem "sqlite3"
gem "rails", "~> 6.0"
gem "railties", "~> 6"
gem "actionmailer", "~> 6"
gem "actionpack", "~> 6"
gem "actionview", "~> 6"
gem "activemodel", "~> 6"
gem "activerecord", "~> 6"
gem "activesupport", "~> 6"

gemspec path: "../"
Loading

0 comments on commit e62c0a7

Please sign in to comment.