consul 0.12.3 → 0.12.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of consul might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 451a1a3cbac29ec3207d57d872785979ecfd709e
4
- data.tar.gz: 532bb74df4019609fb109e7a1ef9470fdd8684e8
3
+ metadata.gz: 1f26edaf1d93b7150757a61ab7ff678026e08bd5
4
+ data.tar.gz: 1c42642576f8d7f5fc41a64ee1a4b07a50fd4596
5
5
  SHA512:
6
- metadata.gz: f529eef3f226331250ea07291554bcd1540751897cbdbcab9b15f7c849d4e625aa49a629de10dc52a0171721aa174e0da28b7ef3b6cf79e4556aa6f32ca399a8
7
- data.tar.gz: 58e3039503a56a1d170629ecfb646136f8ec6aec5cc3e8fa8ac92c648dac24f4d2f4986857b5a2322521f4f4d7b8b06cfa10929d06a63a4d60b360fd04cc1535
6
+ metadata.gz: 839f3d4d75529467aaef3b5fbab879a410c9fd53a63cb35c76c18757073cec47dd1fe83d18af7fe56a60eee641ec7c424be6aba9b7db14db6dd8d36846fe1cf3
7
+ data.tar.gz: d6b9d7a73176eaa0f07a2562a601189225a3b6f74ae1f2ce5a00f91b248936f728fa67ea9edc647a8b937a5a1293bfe22558a10bb2ab4cfa6af0b7859468a86d
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ pkg
5
5
  *.db
6
6
  app_root/log/*
7
7
  .bundle
8
+ spec/shared/app_root/db/*.sqlite3
@@ -2,9 +2,9 @@ language: ruby
2
2
  sudo: false
3
3
  rvm:
4
4
  - "1.8.7"
5
- - "1.9.3"
6
5
  - "2.1.0"
7
- - ree
6
+ - "2.2.6"
7
+ - "2.4.1"
8
8
  before_install: gem install bundler # Fix bundler issues on 1.9.3
9
9
  before_script: rake travis_ci:prepare
10
10
  script: rake all:bundle all:spec
@@ -15,3 +15,4 @@ branches:
15
15
  only:
16
16
  - master
17
17
  - travis-testing
18
+ - garyf-dev
data/README.md CHANGED
@@ -8,7 +8,7 @@ Consul is an authorization solution for Ruby on Rails where you describe *sets o
8
8
  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
9
  Also see our crash course video: [Solving bizare authorization requirements with Rails](http://bizarre-authorization.talks.makandra.com/).
10
10
 
11
- Consul is tested with Rails 2.3, 3.0, 3.2 and 4.1 on Ruby 1.8.7, 1.9.3 and 2.1.0.
11
+ Consul is tested with Rails 2.3, 3.2, 4.1, 4.2.7, and 5.1.1 on Ruby 1.8.7, 2.1.0, 2.2.6, and 2.4.1 (only if supported, for each Ruby/Rails combination).
12
12
 
13
13
 
14
14
  Describing access to your application
@@ -281,7 +281,7 @@ class Power
281
281
  power :client_notes do |client|
282
282
  client.notes.where(:state => 'published')
283
283
  end
284
-
284
+
285
285
  end
286
286
  ```
287
287
 
@@ -824,7 +824,8 @@ Development
824
824
  Test applications for various Rails versions lives in `spec`. You can run specs from the project root by saying:
825
825
 
826
826
  ```
827
- bundle exec rake all:spec
827
+ rake all:bundle
828
+ rake all:spec
828
829
  ```
829
830
 
830
831
  If you would like to contribute:
data/Rakefile CHANGED
@@ -45,11 +45,15 @@ def for_each_directory_of(path, &block)
45
45
  Dir[path].sort.each do |rakefile|
46
46
  directory = File.dirname(rakefile)
47
47
  puts '', "\033[4;34m# #{directory}\033[0m", '' # blue underline
48
-
48
+
49
49
  if directory.include?('rails-2.3') and RUBY_VERSION != '1.8.7'
50
50
  puts 'Skipping - Rails 2.3 requires Ruby 1.8.7'
51
- elsif directory.include?('rails-4.1') and RUBY_VERSION == '1.8.7'
52
- puts 'Skipping - Rails 4.1 does not support Ruby 1.8'
51
+ elsif directory.include?('rails-3.2') && RUBY_VERSION >= '2.2.0'
52
+ puts 'Skipping - Rails 3.2.13 does not support Ruby 2.2+'
53
+ elsif directory.include?('rails-4.2') && (RUBY_VERSION < '1.9.3' || RUBY_VERSION >= '2.4.0')
54
+ puts 'Skipping - Rails 4.2 requires Ruby 1.9.3+ .. 2.3.x'
55
+ elsif directory.include?('rails-5.1.1') && RUBY_VERSION < '2.2.2'
56
+ puts 'Skipping - Rails 5 requires Ruby 2.2.2+'
53
57
  else
54
58
  block.call(directory)
55
59
  end
@@ -43,8 +43,10 @@ module Consul
43
43
  def skip_power_check(options = {})
44
44
  if Rails.version.to_i < 4
45
45
  skip_before_filter :unchecked_power, options
46
- else
46
+ elsif Rails.version.to_i < 5
47
47
  skip_before_action :unchecked_power, options
48
+ else
49
+ skip_before_action :unchecked_power, { :raise => false }.merge!(options)
48
50
  end
49
51
  end
50
52
 
@@ -1,3 +1,3 @@
1
1
  module Consul
2
- VERSION = '0.12.3'
2
+ VERSION = '0.12.4'
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: 0.12.3
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2017-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: memoizer
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.5.1
97
+ rubygems_version: 2.2.2
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: A scope-based authorization solution for Ruby on Rails.