consul 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49583154c64138e64a0fa47a0e85be855a0a54b05e906ca5ca0da4e6fa39ee16
4
- data.tar.gz: 149f14959bc7e8ef2a3dc90a9d446f4840229d1f022f164534f23b099275ac6a
3
+ metadata.gz: b4353c2826677ae7283e623e01d8ec94c938a1e10345f2e1183018addce57280
4
+ data.tar.gz: 30ea39cc54aca7d6af2ec4078860c7fd76c6e7e2470dca4c9b960069e96f4afd
5
5
  SHA512:
6
- metadata.gz: 3877afeee641f47702f2951e9b1609220b96c85df245d2a0a0f91c301823fce9e878a8b7e39d8b90f34a7104dd4ce8c3027afa41c76731003ae0ab137fbbb991
7
- data.tar.gz: d96bf2a79ef26bf7e8567b02bb306d76f8d1314fd1ba0179ad85f1a0fd51cbaecb573365dd645815d4b82445a92ea030fd29786c2eff67c33238e8c770510284
6
+ metadata.gz: 979b71686ab38dea13b71e943e87749b1dcf481499f46ffa443c0ea0a24d13dc05d1b86ecbb64fa42a40dc83ed8d15f13eaedf8d458747f79f7c7115aacee10d
7
+ data.tar.gz: f35d55647a4edc20c19b383356e08aa92c7256d9e12cd50059cee282f8d98ffe71cbe5df3f2c9df9571dcc0ab929e5951150678929ed28f9a90ab7924e17ed51
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: Tests
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ test:
12
+ runs-on: ubuntu-20.04
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ include:
17
+ - ruby: 2.5.3
18
+ gemfile: Gemfile.5-2
19
+ - ruby: 2.5.3
20
+ gemfile: Gemfile.6-1
21
+ - ruby: 2.7.3
22
+ gemfile: Gemfile.6-1
23
+ - ruby: 3.0.1
24
+ gemfile: Gemfile.6-1
25
+ env:
26
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
27
+ steps:
28
+ - uses: actions/checkout@v2
29
+ - name: Install ruby
30
+ uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: "${{ matrix.ruby }}"
33
+ - name: Bundle
34
+ run: |
35
+ gem install bundler:1.17.3
36
+ bundle install --no-deployment
37
+ - name: Run tests
38
+ run: bundle exec rspec
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.8
1
+ 2.5.3
data/CHANGELOG.md CHANGED
@@ -7,12 +7,18 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
7
7
 
8
8
  ### Breaking changes
9
9
 
10
- -
11
-
12
10
  ### Compatible changes
13
11
 
14
- -
12
+ ## 1.1.0 - 2021-09-28
13
+
14
+ ### Breaking changes
15
15
 
16
+ - remove no longer supported ruby versions (2.3.8, 2.4.5)
17
+ - Consul no longer depends on the whole rails framework
18
+
19
+ ### Compatible changes
20
+
21
+ - add Ruby 3 compatibility
16
22
 
17
23
  ## 1.0.3 - 2019-09-23
18
24
 
@@ -112,4 +118,3 @@ Thanks to derekprior.
112
118
  ## Older releases
113
119
 
114
120
  Please check commits.
115
-
data/Gemfile CHANGED
@@ -1 +1 @@
1
- ./Gemfile.5-2
1
+ ./Gemfile.6-1
data/Gemfile.5-2 CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'rails', '~> 5.2.0'
4
+ gem 'railties', '>= 3.2'
5
5
  gem 'assignable_values'
6
6
 
7
7
  # Development dependencies
data/Gemfile.5-2.lock CHANGED
@@ -1,24 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- consul (1.0.3)
4
+ consul (1.1.0)
5
+ activerecord (>= 3.2)
6
+ activesupport (>= 3.2)
5
7
  edge_rider (>= 0.3.0)
6
8
  memoized (>= 1.0.2)
7
- rails (>= 3.2)
9
+ railties (>= 3.2)
8
10
 
9
11
  GEM
10
12
  remote: https://rubygems.org/
11
13
  specs:
12
- actioncable (5.2.2)
13
- actionpack (= 5.2.2)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
16
- actionmailer (5.2.2)
17
- actionpack (= 5.2.2)
18
- actionview (= 5.2.2)
19
- activejob (= 5.2.2)
20
- mail (~> 2.5, >= 2.5.4)
21
- rails-dom-testing (~> 2.0)
22
14
  actionpack (5.2.2)
23
15
  actionview (= 5.2.2)
24
16
  activesupport (= 5.2.2)
@@ -32,19 +24,12 @@ GEM
32
24
  erubi (~> 1.4)
33
25
  rails-dom-testing (~> 2.0)
34
26
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
- activejob (5.2.2)
36
- activesupport (= 5.2.2)
37
- globalid (>= 0.3.6)
38
27
  activemodel (5.2.2)
39
28
  activesupport (= 5.2.2)
40
29
  activerecord (5.2.2)
41
30
  activemodel (= 5.2.2)
42
31
  activesupport (= 5.2.2)
43
32
  arel (>= 9.0)
44
- activestorage (5.2.2)
45
- actionpack (= 5.2.2)
46
- activerecord (= 5.2.2)
47
- marcel (~> 0.3.1)
48
33
  activesupport (5.2.2)
49
34
  concurrent-ruby (~> 1.0, >= 1.0.2)
50
35
  i18n (>= 0.7, < 2)
@@ -59,46 +44,24 @@ GEM
59
44
  crass (1.0.4)
60
45
  database_cleaner (1.7.0)
61
46
  diff-lcs (1.3)
62
- edge_rider (0.3.3)
63
- activerecord
47
+ edge_rider (2.0.0)
48
+ activerecord (>= 3.2)
64
49
  erubi (1.8.0)
65
- gemika (0.3.4)
66
- globalid (0.4.2)
67
- activesupport (>= 4.2.0)
50
+ gemika (0.5.0)
68
51
  i18n (1.5.3)
69
52
  concurrent-ruby (~> 1.0)
70
53
  loofah (2.2.3)
71
54
  crass (~> 1.0.2)
72
55
  nokogiri (>= 1.5.9)
73
- mail (2.7.1)
74
- mini_mime (>= 0.1.1)
75
- marcel (0.3.3)
76
- mimemagic (~> 0.3.2)
77
56
  memoized (1.0.2)
78
57
  method_source (0.9.2)
79
- mimemagic (0.3.3)
80
- mini_mime (1.0.1)
81
58
  mini_portile2 (2.4.0)
82
59
  minitest (5.11.3)
83
- nio4r (2.3.1)
84
60
  nokogiri (1.10.1)
85
61
  mini_portile2 (~> 2.4.0)
86
62
  rack (2.0.6)
87
63
  rack-test (1.1.0)
88
64
  rack (>= 1.0, < 3)
89
- rails (5.2.2)
90
- actioncable (= 5.2.2)
91
- actionmailer (= 5.2.2)
92
- actionpack (= 5.2.2)
93
- actionview (= 5.2.2)
94
- activejob (= 5.2.2)
95
- activemodel (= 5.2.2)
96
- activerecord (= 5.2.2)
97
- activestorage (= 5.2.2)
98
- activesupport (= 5.2.2)
99
- bundler (>= 1.3.0)
100
- railties (= 5.2.2)
101
- sprockets-rails (>= 2.0.0)
102
65
  rails-dom-testing (2.0.3)
103
66
  activesupport (>= 4.2.0)
104
67
  nokogiri (>= 1.6)
@@ -139,21 +102,11 @@ GEM
139
102
  activesupport (>= 4.0.0)
140
103
  sneaky-save (0.1.2)
141
104
  activerecord (>= 3.2.0)
142
- sprockets (3.7.2)
143
- concurrent-ruby (~> 1.0)
144
- rack (> 1, < 3)
145
- sprockets-rails (3.2.1)
146
- actionpack (>= 4.0)
147
- activesupport (>= 4.0)
148
- sprockets (>= 3.0.0)
149
105
  sqlite3 (1.3.13)
150
106
  thor (0.20.3)
151
107
  thread_safe (0.3.6)
152
108
  tzinfo (1.2.5)
153
109
  thread_safe (~> 0.1)
154
- websocket-driver (0.7.0)
155
- websocket-extensions (>= 0.1.0)
156
- websocket-extensions (0.1.3)
157
110
 
158
111
  PLATFORMS
159
112
  ruby
@@ -164,7 +117,7 @@ DEPENDENCIES
164
117
  consul!
165
118
  database_cleaner
166
119
  gemika
167
- rails (~> 5.2.0)
120
+ railties (>= 3.2)
168
121
  rspec
169
122
  rspec-rails
170
123
  rspec_candy
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'rails', '~> 6.0.0'
4
+ gem 'railties', '>= 3.2'
5
5
  gem 'assignable_values'
6
6
 
7
7
  # Development dependencies
data/Gemfile.6-1.lock ADDED
@@ -0,0 +1,127 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ consul (1.1.0)
5
+ activerecord (>= 3.2)
6
+ activesupport (>= 3.2)
7
+ edge_rider (>= 0.3.0)
8
+ memoized (>= 1.0.2)
9
+ railties (>= 3.2)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ actionpack (6.1.3)
15
+ actionview (= 6.1.3)
16
+ activesupport (= 6.1.3)
17
+ rack (~> 2.0, >= 2.0.9)
18
+ rack-test (>= 0.6.3)
19
+ rails-dom-testing (~> 2.0)
20
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
21
+ actionview (6.1.3)
22
+ activesupport (= 6.1.3)
23
+ builder (~> 3.1)
24
+ erubi (~> 1.4)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
27
+ activemodel (6.1.3)
28
+ activesupport (= 6.1.3)
29
+ activerecord (6.1.3)
30
+ activemodel (= 6.1.3)
31
+ activesupport (= 6.1.3)
32
+ activesupport (6.1.3)
33
+ concurrent-ruby (~> 1.0, >= 1.0.2)
34
+ i18n (>= 1.6, < 2)
35
+ minitest (>= 5.1)
36
+ tzinfo (~> 2.0)
37
+ zeitwerk (~> 2.3)
38
+ assignable_values (0.16.1)
39
+ activerecord (>= 2.3)
40
+ builder (3.2.4)
41
+ concurrent-ruby (1.1.8)
42
+ crass (1.0.6)
43
+ database_cleaner (1.7.0)
44
+ diff-lcs (1.3)
45
+ edge_rider (1.1.0)
46
+ activerecord (>= 3.2)
47
+ erubi (1.10.0)
48
+ gemika (0.6.1)
49
+ i18n (1.8.9)
50
+ concurrent-ruby (~> 1.0)
51
+ loofah (2.9.0)
52
+ crass (~> 1.0.2)
53
+ nokogiri (>= 1.5.9)
54
+ memoized (1.0.2)
55
+ method_source (1.0.0)
56
+ mini_portile2 (2.5.0)
57
+ minitest (5.14.4)
58
+ nokogiri (1.11.2)
59
+ mini_portile2 (~> 2.5.0)
60
+ racc (~> 1.4)
61
+ racc (1.5.2)
62
+ rack (2.2.3)
63
+ rack-test (1.1.0)
64
+ rack (>= 1.0, < 3)
65
+ rails-dom-testing (2.0.3)
66
+ activesupport (>= 4.2.0)
67
+ nokogiri (>= 1.6)
68
+ rails-html-sanitizer (1.3.0)
69
+ loofah (~> 2.3)
70
+ railties (6.1.3)
71
+ actionpack (= 6.1.3)
72
+ activesupport (= 6.1.3)
73
+ method_source
74
+ rake (>= 0.8.7)
75
+ thor (~> 1.0)
76
+ rake (13.0.3)
77
+ rspec (3.6.0)
78
+ rspec-core (~> 3.6.0)
79
+ rspec-expectations (~> 3.6.0)
80
+ rspec-mocks (~> 3.6.0)
81
+ rspec-core (3.6.0)
82
+ rspec-support (~> 3.6.0)
83
+ rspec-expectations (3.6.0)
84
+ diff-lcs (>= 1.2.0, < 2.0)
85
+ rspec-support (~> 3.6.0)
86
+ rspec-mocks (3.6.0)
87
+ diff-lcs (>= 1.2.0, < 2.0)
88
+ rspec-support (~> 3.6.0)
89
+ rspec-rails (3.6.0)
90
+ actionpack (>= 3.0)
91
+ activesupport (>= 3.0)
92
+ railties (>= 3.0)
93
+ rspec-core (~> 3.6.0)
94
+ rspec-expectations (~> 3.6.0)
95
+ rspec-mocks (~> 3.6.0)
96
+ rspec-support (~> 3.6.0)
97
+ rspec-support (3.6.0)
98
+ rspec_candy (0.4.1)
99
+ rspec
100
+ sneaky-save
101
+ shoulda-matchers (3.1.1)
102
+ activesupport (>= 4.0.0)
103
+ sneaky-save (0.1.2)
104
+ activerecord (>= 3.2.0)
105
+ sqlite3 (1.4.2)
106
+ thor (1.1.0)
107
+ tzinfo (2.0.4)
108
+ concurrent-ruby (~> 1.0)
109
+ zeitwerk (2.4.2)
110
+
111
+ PLATFORMS
112
+ ruby
113
+
114
+ DEPENDENCIES
115
+ assignable_values
116
+ consul!
117
+ database_cleaner
118
+ gemika
119
+ railties (>= 3.2)
120
+ rspec
121
+ rspec-rails
122
+ rspec_candy
123
+ shoulda-matchers
124
+ sqlite3
125
+
126
+ BUNDLED WITH
127
+ 2.2.15
data/Gemfile.lock CHANGED
@@ -1 +1 @@
1
- ./Gemfile.5-2.lock
1
+ ./Gemfile.6-1.lock
data/README.md CHANGED
@@ -1,14 +1,15 @@
1
1
  Consul — A next gen authorization solution
2
2
  ==========================================
3
3
 
4
- [![Build Status](https://secure.travis-ci.org/makandra/consul.png?branch=master)](https://travis-ci.org/makandra/consul) [![Code Climate](https://codeclimate.com/github/makandra/consul.png)](https://codeclimate.com/github/makandra/consul)
4
+ [![Tests](https://github.com/makandra/consul/workflows/Tests/badge.svg)](https://github.com/makandra/consul/actions) [![Code Climate](https://codeclimate.com/github/makandra/consul.png)](https://codeclimate.com/github/makandra/consul)
5
+
5
6
 
6
7
  Consul is an authorization solution for Ruby on Rails where you describe *sets of accessible things* to control what a user can see or edit.
7
8
 
8
9
  We have used Consul in combination with [assignable_values](https://github.com/makandra/assignable_values) to solve a variety of authorization requirements ranging from boring to bizarre.
9
10
  Also see our crash course video: [Solving bizare authorization requirements with Rails](http://bizarre-authorization.talks.makandra.com/).
10
11
 
11
- Consul is tested with Rails 3.2, 4.2, 5.2, and 6.0 on Ruby 2.3, 2.4, and 2.5 (only if supported, for each Ruby/Rails combination). If you need support for Rails 3.2, please use [v0.13.2](https://github.com/makandra/consul/tree/v0.13.2).
12
+ Consul is tested with Rails 5.2 and 6.0 on Ruby 2.5, 2.7 and 3.0 (only if supported, for each Ruby/Rails combination). If you need support for Rails 3.2, please use [v0.13.2](https://github.com/makandra/consul/tree/v0.13.2).
12
13
 
13
14
 
14
15
  Describing access to your application
@@ -46,7 +47,7 @@ class Power
46
47
  end
47
48
  ```
48
49
 
49
- There are no restrictions on the name or constructor arguments of your this class.
50
+ There are no restrictions on the name or constructor arguments of this class.
50
51
 
51
52
  You can deposit all kinds of objects in your power. See the sections below for details.
52
53
 
@@ -90,7 +91,7 @@ Or you can ask if the power is given (meaning it's not `nil`):
90
91
  power.notes? # => returns true if Power#notes returns a scope and not nil
91
92
  ```
92
93
 
93
- Or you can raise an error unless a power its given, e.g. to guard access into a controller action:
94
+ Or you can raise an error unless a power is given, e.g. to guard access into a controller action:
94
95
 
95
96
  ```rb
96
97
  power.notes! # => raises Consul::Powerless unless Power#notes returns a scope (even if it's empty)
@@ -497,7 +498,7 @@ And the following power definitions:
497
498
  class Power
498
499
  ...
499
500
 
500
- power :clients do |client|
501
+ power :clients do
501
502
  Client.active if signed_in?
502
503
  end
503
504
 
@@ -846,8 +847,12 @@ Now run `bundle install` to lock the gem into your project.
846
847
  Development
847
848
  -----------
848
849
 
849
- - There are tests in `spec`. We only accept PRs with tests.
850
- - We currently develop using Ruby 2.3.8 (see `.ruby-version`) since that version works for all versions of ActiveRecord that we support. Travis CI will test additional Ruby versions (2.4.5 and 2.5.3).
850
+ We currently develop using Ruby 2.5.3 (see `.ruby-version`) since that version works for current versions of ActiveRecord that we support. GitHub Actions will test additional Ruby versions (2.3.8, 2.4.5, and 3.0.1).
851
+
852
+ There are tests in `spec`. We only accept PRs with tests. To run tests:
853
+
854
+ - Install Ruby 2.5.3
855
+ - run `bundle install`
851
856
  - Put your database credentials into `spec/support/database.yml`. There's a `database.sample.yml` you can use as a template.
852
857
  - There are gem bundles in the project root for each rails version that we support.
853
858
  - You can bundle all test applications by saying `bundle exec rake matrix:install`
@@ -859,6 +864,8 @@ If you would like to contribute:
859
864
  - Push your changes **with specs**.
860
865
  - Send me a pull request.
861
866
 
867
+ Note that we have configured GitHub Actions to automatically run tests in all supported Ruby versions and dependency sets after each push. We will only merge pull requests after a green GitHub Actions run.
868
+
862
869
  I'm very eager to keep this gem leightweight and on topic. If you're unsure whether a change would make it into the gem, [talk to me beforehand](mailto:henning.koch@makandra.de).
863
870
 
864
871
 
data/consul.gemspec CHANGED
@@ -24,6 +24,8 @@ Gem::Specification.new do |s|
24
24
  s.require_paths = ["lib"]
25
25
 
26
26
  s.add_dependency('memoized', '>=1.0.2')
27
- s.add_dependency('rails', '>=3.2')
27
+ s.add_dependency('activerecord', '>= 3.2')
28
+ s.add_dependency('activesupport', '>= 3.2')
29
+ s.add_dependency('railties', '>= 3.2')
28
30
  s.add_dependency('edge_rider', '>= 0.3.0')
29
31
  end
data/lib/consul/util.rb CHANGED
@@ -31,9 +31,9 @@ module Consul
31
31
  options = lambda.call(*args)
32
32
  klass.scoped(options.slice *EdgeRider::Scoped::VALID_FIND_OPTIONS)
33
33
  }
34
- end
34
+ end
35
35
  end
36
-
36
+
37
37
  # This method does not support dynamic default scopes via lambdas
38
38
  # (as does #define_scope), because it is currently not required.
39
39
  def define_default_scope(klass, conditions)
@@ -1,3 +1,3 @@
1
1
  module Consul
2
- VERSION = '1.0.3'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consul
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-24 00:00:00.000000000 Z
11
+ date: 2021-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: memoized
@@ -25,7 +25,35 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.0.2
27
27
  - !ruby/object:Gem::Dependency
28
- name: rails
28
+ name: activerecord
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '3.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '3.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activesupport
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: railties
29
57
  requirement: !ruby/object:Gem::Requirement
30
58
  requirements:
31
59
  - - ">="
@@ -58,19 +86,15 @@ executables: []
58
86
  extensions: []
59
87
  extra_rdoc_files: []
60
88
  files:
89
+ - ".github/workflows/test.yml"
61
90
  - ".gitignore"
62
91
  - ".ruby-version"
63
- - ".travis.yml"
64
92
  - CHANGELOG.md
65
93
  - Gemfile
66
- - Gemfile.3-2
67
- - Gemfile.3-2.lock
68
- - Gemfile.4-2
69
- - Gemfile.4-2.lock
70
94
  - Gemfile.5-2
71
95
  - Gemfile.5-2.lock
72
- - Gemfile.6-0
73
- - Gemfile.6-0.lock
96
+ - Gemfile.6-1
97
+ - Gemfile.6-1.lock
74
98
  - Gemfile.lock
75
99
  - LICENSE
76
100
  - README.md
@@ -107,8 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
131
  - !ruby/object:Gem::Version
108
132
  version: '0'
109
133
  requirements: []
110
- rubyforge_project:
111
- rubygems_version: 2.7.8
134
+ rubygems_version: 3.0.8
112
135
  signing_key:
113
136
  specification_version: 4
114
137
  summary: A scope-based authorization solution for Ruby on Rails.
data/.travis.yml DELETED
@@ -1,39 +0,0 @@
1
- language: ruby
2
-
3
- dist: trusty
4
-
5
- sudo: false
6
-
7
- cache: bundler
8
-
9
- rvm:
10
- - 2.3.8
11
- - 2.4.5
12
- - 2.5.3
13
-
14
- gemfile:
15
- - Gemfile.3-2
16
- - Gemfile.4-2
17
- - Gemfile.5-2
18
- - Gemfile.6-0
19
-
20
- matrix:
21
- exclude:
22
- - gemfile: Gemfile.3-2
23
- rvm: 2.4.5
24
- - gemfile: Gemfile.3-2
25
- rvm: 2.5.3
26
- - gemfile: Gemfile.4-2
27
- rvm: 2.5.3
28
- - gemfile: Gemfile.6-0
29
- rvm: 2.3.8
30
- - gemfile: Gemfile.6-0
31
- rvm: 2.4.5
32
-
33
- install:
34
- # Replace default Travis CI bundler script with a version that doesn't
35
- # explode when lockfile doesn't match recently bumped version
36
- - bundle install --no-deployment --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
37
-
38
- script: bundle exec rake current_rspec
39
-
data/Gemfile.3-2 DELETED
@@ -1,20 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Runtime dependencies
4
- gem 'assignable_values'
5
- gem 'rails', '~> 3.2.22.5'
6
- gem 'rake', '~>10.5.0'
7
- gem 'rack-cache', '~>1.2.0'
8
-
9
- # Development dependencies
10
- gem 'rspec', '~>3.4'
11
- gem 'rspec-rails'
12
- gem 'test-unit', '~> 3.0'
13
- gem 'shoulda-matchers', '<2'
14
- gem 'sqlite3'
15
- gem 'rspec_candy'
16
- gem 'database_cleaner', '~>1.4.1'
17
- gem 'gemika'
18
-
19
- # Gem under test
20
- gem 'consul', :path => '.'
data/Gemfile.3-2.lock DELETED
@@ -1,156 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- consul (1.0.3)
5
- edge_rider (>= 0.3.0)
6
- memoized (>= 1.0.2)
7
- rails (>= 3.2)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionmailer (3.2.22.5)
13
- actionpack (= 3.2.22.5)
14
- mail (~> 2.5.4)
15
- actionpack (3.2.22.5)
16
- activemodel (= 3.2.22.5)
17
- activesupport (= 3.2.22.5)
18
- builder (~> 3.0.0)
19
- erubis (~> 2.7.0)
20
- journey (~> 1.0.4)
21
- rack (~> 1.4.5)
22
- rack-cache (~> 1.2)
23
- rack-test (~> 0.6.1)
24
- sprockets (~> 2.2.1)
25
- activemodel (3.2.22.5)
26
- activesupport (= 3.2.22.5)
27
- builder (~> 3.0.0)
28
- activerecord (3.2.22.5)
29
- activemodel (= 3.2.22.5)
30
- activesupport (= 3.2.22.5)
31
- arel (~> 3.0.2)
32
- tzinfo (~> 0.3.29)
33
- activeresource (3.2.22.5)
34
- activemodel (= 3.2.22.5)
35
- activesupport (= 3.2.22.5)
36
- activesupport (3.2.22.5)
37
- i18n (~> 0.6, >= 0.6.4)
38
- multi_json (~> 1.0)
39
- arel (3.0.3)
40
- assignable_values (0.7.1)
41
- activerecord
42
- bourne (1.4.0)
43
- mocha (~> 0.13.2)
44
- builder (3.0.4)
45
- concurrent-ruby (1.1.4)
46
- database_cleaner (1.4.1)
47
- diff-lcs (1.3)
48
- edge_rider (1.0.0)
49
- activerecord
50
- erubis (2.7.0)
51
- gemika (0.3.4)
52
- hike (1.2.3)
53
- i18n (0.9.5)
54
- concurrent-ruby (~> 1.0)
55
- journey (1.0.4)
56
- json (1.8.6)
57
- mail (2.5.5)
58
- mime-types (~> 1.16)
59
- treetop (~> 1.4.8)
60
- memoized (1.0.2)
61
- metaclass (0.0.1)
62
- mime-types (1.25.1)
63
- mocha (0.13.3)
64
- metaclass (~> 0.0.1)
65
- multi_json (1.13.1)
66
- polyglot (0.3.5)
67
- power_assert (1.1.3)
68
- rack (1.4.7)
69
- rack-cache (1.2)
70
- rack (>= 0.4)
71
- rack-ssl (1.3.4)
72
- rack
73
- rack-test (0.6.3)
74
- rack (>= 1.0)
75
- rails (3.2.22.5)
76
- actionmailer (= 3.2.22.5)
77
- actionpack (= 3.2.22.5)
78
- activerecord (= 3.2.22.5)
79
- activeresource (= 3.2.22.5)
80
- activesupport (= 3.2.22.5)
81
- bundler (~> 1.0)
82
- railties (= 3.2.22.5)
83
- railties (3.2.22.5)
84
- actionpack (= 3.2.22.5)
85
- activesupport (= 3.2.22.5)
86
- rack-ssl (~> 1.3.2)
87
- rake (>= 0.8.7)
88
- rdoc (~> 3.4)
89
- thor (>= 0.14.6, < 2.0)
90
- rake (10.5.0)
91
- rdoc (3.12.2)
92
- json (~> 1.4)
93
- rspec (3.8.0)
94
- rspec-core (~> 3.8.0)
95
- rspec-expectations (~> 3.8.0)
96
- rspec-mocks (~> 3.8.0)
97
- rspec-core (3.8.0)
98
- rspec-support (~> 3.8.0)
99
- rspec-expectations (3.8.1)
100
- diff-lcs (>= 1.2.0, < 2.0)
101
- rspec-support (~> 3.8.0)
102
- rspec-mocks (3.8.0)
103
- diff-lcs (>= 1.2.0, < 2.0)
104
- rspec-support (~> 3.8.0)
105
- rspec-rails (3.8.0)
106
- actionpack (>= 3.0)
107
- activesupport (>= 3.0)
108
- railties (>= 3.0)
109
- rspec-core (~> 3.8.0)
110
- rspec-expectations (~> 3.8.0)
111
- rspec-mocks (~> 3.8.0)
112
- rspec-support (~> 3.8.0)
113
- rspec-support (3.8.0)
114
- rspec_candy (0.2.9)
115
- rspec
116
- sneaky-save
117
- shoulda-matchers (1.5.6)
118
- activesupport (>= 3.0.0)
119
- bourne (~> 1.3)
120
- sneaky-save (0.0.4)
121
- activerecord (>= 3.2.0)
122
- sprockets (2.2.3)
123
- hike (~> 1.2)
124
- multi_json (~> 1.0)
125
- rack (~> 1.0)
126
- tilt (~> 1.1, != 1.3.0)
127
- sqlite3 (1.3.13)
128
- test-unit (3.3.0)
129
- power_assert
130
- thor (0.20.3)
131
- tilt (1.4.1)
132
- treetop (1.4.15)
133
- polyglot
134
- polyglot (>= 0.3.1)
135
- tzinfo (0.3.55)
136
-
137
- PLATFORMS
138
- ruby
139
-
140
- DEPENDENCIES
141
- assignable_values
142
- consul!
143
- database_cleaner (~> 1.4.1)
144
- gemika
145
- rack-cache (~> 1.2.0)
146
- rails (~> 3.2.22.5)
147
- rake (~> 10.5.0)
148
- rspec (~> 3.4)
149
- rspec-rails
150
- rspec_candy
151
- shoulda-matchers (< 2)
152
- sqlite3
153
- test-unit (~> 3.0)
154
-
155
- BUNDLED WITH
156
- 1.17.3
data/Gemfile.4-2 DELETED
@@ -1,17 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Runtime dependencies
4
- gem 'rails', '~> 4.2.7'
5
- gem 'assignable_values'
6
-
7
- # Development dependencies
8
- gem 'rspec'
9
- gem 'rspec-rails'
10
- gem 'rspec_candy'
11
- gem 'shoulda-matchers'
12
- gem 'sqlite3'
13
- gem 'database_cleaner'
14
- gem 'gemika'
15
-
16
- # Gem under test
17
- gem 'consul', :path => '.'
data/Gemfile.4-2.lock DELETED
@@ -1,158 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- consul (1.0.3)
5
- edge_rider (>= 0.3.0)
6
- memoized (>= 1.0.2)
7
- rails (>= 3.2)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionmailer (4.2.11)
13
- actionpack (= 4.2.11)
14
- actionview (= 4.2.11)
15
- activejob (= 4.2.11)
16
- mail (~> 2.5, >= 2.5.4)
17
- rails-dom-testing (~> 1.0, >= 1.0.5)
18
- actionpack (4.2.11)
19
- actionview (= 4.2.11)
20
- activesupport (= 4.2.11)
21
- rack (~> 1.6)
22
- rack-test (~> 0.6.2)
23
- rails-dom-testing (~> 1.0, >= 1.0.5)
24
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
25
- actionview (4.2.11)
26
- activesupport (= 4.2.11)
27
- builder (~> 3.1)
28
- erubis (~> 2.7.0)
29
- rails-dom-testing (~> 1.0, >= 1.0.5)
30
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
31
- activejob (4.2.11)
32
- activesupport (= 4.2.11)
33
- globalid (>= 0.3.0)
34
- activemodel (4.2.11)
35
- activesupport (= 4.2.11)
36
- builder (~> 3.1)
37
- activerecord (4.2.11)
38
- activemodel (= 4.2.11)
39
- activesupport (= 4.2.11)
40
- arel (~> 6.0)
41
- activesupport (4.2.11)
42
- i18n (~> 0.7)
43
- minitest (~> 5.1)
44
- thread_safe (~> 0.3, >= 0.3.4)
45
- tzinfo (~> 1.1)
46
- arel (6.0.4)
47
- assignable_values (0.12.1)
48
- activerecord (>= 2.3)
49
- builder (3.2.3)
50
- concurrent-ruby (1.1.4)
51
- crass (1.0.4)
52
- database_cleaner (1.7.0)
53
- diff-lcs (1.2.5)
54
- edge_rider (1.0.0)
55
- activerecord
56
- erubis (2.7.0)
57
- gemika (0.3.4)
58
- globalid (0.4.2)
59
- activesupport (>= 4.2.0)
60
- i18n (0.9.5)
61
- concurrent-ruby (~> 1.0)
62
- loofah (2.2.3)
63
- crass (~> 1.0.2)
64
- nokogiri (>= 1.5.9)
65
- mail (2.7.1)
66
- mini_mime (>= 0.1.1)
67
- memoized (1.0.2)
68
- mini_mime (1.0.1)
69
- mini_portile2 (2.4.0)
70
- minitest (5.11.3)
71
- nokogiri (1.10.1)
72
- mini_portile2 (~> 2.4.0)
73
- rack (1.6.11)
74
- rack-test (0.6.3)
75
- rack (>= 1.0)
76
- rails (4.2.11)
77
- actionmailer (= 4.2.11)
78
- actionpack (= 4.2.11)
79
- actionview (= 4.2.11)
80
- activejob (= 4.2.11)
81
- activemodel (= 4.2.11)
82
- activerecord (= 4.2.11)
83
- activesupport (= 4.2.11)
84
- bundler (>= 1.3.0, < 2.0)
85
- railties (= 4.2.11)
86
- sprockets-rails
87
- rails-deprecated_sanitizer (1.0.3)
88
- activesupport (>= 4.2.0.alpha)
89
- rails-dom-testing (1.0.9)
90
- activesupport (>= 4.2.0, < 5.0)
91
- nokogiri (~> 1.6)
92
- rails-deprecated_sanitizer (>= 1.0.1)
93
- rails-html-sanitizer (1.0.4)
94
- loofah (~> 2.2, >= 2.2.2)
95
- railties (4.2.11)
96
- actionpack (= 4.2.11)
97
- activesupport (= 4.2.11)
98
- rake (>= 0.8.7)
99
- thor (>= 0.18.1, < 2.0)
100
- rake (12.3.2)
101
- rspec (3.5.0)
102
- rspec-core (~> 3.5.0)
103
- rspec-expectations (~> 3.5.0)
104
- rspec-mocks (~> 3.5.0)
105
- rspec-core (3.5.4)
106
- rspec-support (~> 3.5.0)
107
- rspec-expectations (3.5.0)
108
- diff-lcs (>= 1.2.0, < 2.0)
109
- rspec-support (~> 3.5.0)
110
- rspec-mocks (3.5.0)
111
- diff-lcs (>= 1.2.0, < 2.0)
112
- rspec-support (~> 3.5.0)
113
- rspec-rails (3.5.2)
114
- actionpack (>= 3.0)
115
- activesupport (>= 3.0)
116
- railties (>= 3.0)
117
- rspec-core (~> 3.5.0)
118
- rspec-expectations (~> 3.5.0)
119
- rspec-mocks (~> 3.5.0)
120
- rspec-support (~> 3.5.0)
121
- rspec-support (3.5.0)
122
- rspec_candy (0.4.1)
123
- rspec
124
- sneaky-save
125
- shoulda-matchers (3.1.1)
126
- activesupport (>= 4.0.0)
127
- sneaky-save (0.1.2)
128
- activerecord (>= 3.2.0)
129
- sprockets (3.7.2)
130
- concurrent-ruby (~> 1.0)
131
- rack (> 1, < 3)
132
- sprockets-rails (3.2.1)
133
- actionpack (>= 4.0)
134
- activesupport (>= 4.0)
135
- sprockets (>= 3.0.0)
136
- sqlite3 (1.3.12)
137
- thor (0.20.3)
138
- thread_safe (0.3.6)
139
- tzinfo (1.2.5)
140
- thread_safe (~> 0.1)
141
-
142
- PLATFORMS
143
- ruby
144
-
145
- DEPENDENCIES
146
- assignable_values
147
- consul!
148
- database_cleaner
149
- gemika
150
- rails (~> 4.2.7)
151
- rspec
152
- rspec-rails
153
- rspec_candy
154
- shoulda-matchers
155
- sqlite3
156
-
157
- BUNDLED WITH
158
- 1.17.3
data/Gemfile.6-0.lock DELETED
@@ -1,189 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- consul (1.0.2)
5
- edge_rider (>= 0.3.0)
6
- memoized (>= 1.0.2)
7
- rails (>= 3.2)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actioncable (6.0.0)
13
- actionpack (= 6.0.0)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
16
- actionmailbox (6.0.0)
17
- actionpack (= 6.0.0)
18
- activejob (= 6.0.0)
19
- activerecord (= 6.0.0)
20
- activestorage (= 6.0.0)
21
- activesupport (= 6.0.0)
22
- mail (>= 2.7.1)
23
- actionmailer (6.0.0)
24
- actionpack (= 6.0.0)
25
- actionview (= 6.0.0)
26
- activejob (= 6.0.0)
27
- mail (~> 2.5, >= 2.5.4)
28
- rails-dom-testing (~> 2.0)
29
- actionpack (6.0.0)
30
- actionview (= 6.0.0)
31
- activesupport (= 6.0.0)
32
- rack (~> 2.0)
33
- rack-test (>= 0.6.3)
34
- rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
- actiontext (6.0.0)
37
- actionpack (= 6.0.0)
38
- activerecord (= 6.0.0)
39
- activestorage (= 6.0.0)
40
- activesupport (= 6.0.0)
41
- nokogiri (>= 1.8.5)
42
- actionview (6.0.0)
43
- activesupport (= 6.0.0)
44
- builder (~> 3.1)
45
- erubi (~> 1.4)
46
- rails-dom-testing (~> 2.0)
47
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.0.0)
49
- activesupport (= 6.0.0)
50
- globalid (>= 0.3.6)
51
- activemodel (6.0.0)
52
- activesupport (= 6.0.0)
53
- activerecord (6.0.0)
54
- activemodel (= 6.0.0)
55
- activesupport (= 6.0.0)
56
- activestorage (6.0.0)
57
- actionpack (= 6.0.0)
58
- activejob (= 6.0.0)
59
- activerecord (= 6.0.0)
60
- marcel (~> 0.3.1)
61
- activesupport (6.0.0)
62
- concurrent-ruby (~> 1.0, >= 1.0.2)
63
- i18n (>= 0.7, < 2)
64
- minitest (~> 5.1)
65
- tzinfo (~> 1.1)
66
- zeitwerk (~> 2.1, >= 2.1.8)
67
- assignable_values (0.16.1)
68
- activerecord (>= 2.3)
69
- builder (3.2.3)
70
- concurrent-ruby (1.1.5)
71
- crass (1.0.4)
72
- database_cleaner (1.7.0)
73
- diff-lcs (1.3)
74
- edge_rider (1.0.0)
75
- activerecord
76
- erubi (1.8.0)
77
- gemika (0.3.4)
78
- globalid (0.4.2)
79
- activesupport (>= 4.2.0)
80
- i18n (1.6.0)
81
- concurrent-ruby (~> 1.0)
82
- loofah (2.2.3)
83
- crass (~> 1.0.2)
84
- nokogiri (>= 1.5.9)
85
- mail (2.7.1)
86
- mini_mime (>= 0.1.1)
87
- marcel (0.3.3)
88
- mimemagic (~> 0.3.2)
89
- memoized (1.0.2)
90
- method_source (0.9.2)
91
- mimemagic (0.3.3)
92
- mini_mime (1.0.2)
93
- mini_portile2 (2.4.0)
94
- minitest (5.11.3)
95
- nio4r (2.5.1)
96
- nokogiri (1.10.4)
97
- mini_portile2 (~> 2.4.0)
98
- rack (2.0.7)
99
- rack-test (1.1.0)
100
- rack (>= 1.0, < 3)
101
- rails (6.0.0)
102
- actioncable (= 6.0.0)
103
- actionmailbox (= 6.0.0)
104
- actionmailer (= 6.0.0)
105
- actionpack (= 6.0.0)
106
- actiontext (= 6.0.0)
107
- actionview (= 6.0.0)
108
- activejob (= 6.0.0)
109
- activemodel (= 6.0.0)
110
- activerecord (= 6.0.0)
111
- activestorage (= 6.0.0)
112
- activesupport (= 6.0.0)
113
- bundler (>= 1.3.0)
114
- railties (= 6.0.0)
115
- sprockets-rails (>= 2.0.0)
116
- rails-dom-testing (2.0.3)
117
- activesupport (>= 4.2.0)
118
- nokogiri (>= 1.6)
119
- rails-html-sanitizer (1.2.0)
120
- loofah (~> 2.2, >= 2.2.2)
121
- railties (6.0.0)
122
- actionpack (= 6.0.0)
123
- activesupport (= 6.0.0)
124
- method_source
125
- rake (>= 0.8.7)
126
- thor (>= 0.20.3, < 2.0)
127
- rake (12.3.3)
128
- rspec (3.6.0)
129
- rspec-core (~> 3.6.0)
130
- rspec-expectations (~> 3.6.0)
131
- rspec-mocks (~> 3.6.0)
132
- rspec-core (3.6.0)
133
- rspec-support (~> 3.6.0)
134
- rspec-expectations (3.6.0)
135
- diff-lcs (>= 1.2.0, < 2.0)
136
- rspec-support (~> 3.6.0)
137
- rspec-mocks (3.6.0)
138
- diff-lcs (>= 1.2.0, < 2.0)
139
- rspec-support (~> 3.6.0)
140
- rspec-rails (3.6.0)
141
- actionpack (>= 3.0)
142
- activesupport (>= 3.0)
143
- railties (>= 3.0)
144
- rspec-core (~> 3.6.0)
145
- rspec-expectations (~> 3.6.0)
146
- rspec-mocks (~> 3.6.0)
147
- rspec-support (~> 3.6.0)
148
- rspec-support (3.6.0)
149
- rspec_candy (0.4.1)
150
- rspec
151
- sneaky-save
152
- shoulda-matchers (3.1.1)
153
- activesupport (>= 4.0.0)
154
- sneaky-save (0.1.2)
155
- activerecord (>= 3.2.0)
156
- sprockets (3.7.2)
157
- concurrent-ruby (~> 1.0)
158
- rack (> 1, < 3)
159
- sprockets-rails (3.2.1)
160
- actionpack (>= 4.0)
161
- activesupport (>= 4.0)
162
- sprockets (>= 3.0.0)
163
- sqlite3 (1.4.1)
164
- thor (0.20.3)
165
- thread_safe (0.3.6)
166
- tzinfo (1.2.5)
167
- thread_safe (~> 0.1)
168
- websocket-driver (0.7.1)
169
- websocket-extensions (>= 0.1.0)
170
- websocket-extensions (0.1.4)
171
- zeitwerk (2.1.9)
172
-
173
- PLATFORMS
174
- ruby
175
-
176
- DEPENDENCIES
177
- assignable_values
178
- consul!
179
- database_cleaner
180
- gemika
181
- rails (~> 6.0.0)
182
- rspec
183
- rspec-rails
184
- rspec_candy
185
- shoulda-matchers
186
- sqlite3
187
-
188
- BUNDLED WITH
189
- 1.17.3