consul 0.10.1 → 0.10.2

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.

@@ -18,7 +18,7 @@ module Consul
18
18
  # class. Unfortunately we can only reproduce this in live Rails
19
19
  # apps, not in Consul tests. Might be some standard gem that is not
20
20
  # loaded in Consul tests.
21
- result.respond_to?(:scoped) || !!result
21
+ result.respond_to?(:load_target, true) || !!result
22
22
  end
23
23
 
24
24
  def default_include_object?(power_name, *args)
@@ -1,3 +1,3 @@
1
1
  module Consul
2
- VERSION = '0.10.1'
2
+ VERSION = '0.10.2'
3
3
  end
@@ -94,16 +94,11 @@ describe Consul::Power do
94
94
  @user.power.clients?.should be_true
95
95
  end
96
96
 
97
- it 'should not trigger a query if the power returns a scope' do
98
- Client.count.should > 0 # show that we have records in the database
99
- Client.should_not_receive(:new) # show that no query was triggered by showing that no record was instantiated
100
- @user.power.clients?
101
- end
102
-
103
97
  it 'should not trigger a query if the power returns a has many association' do
104
98
  Note.count.should > 0 # show that we have records in the database
105
- Note.should_not_receive(:new) # show that no query was triggered by showing that no record was instantiated
106
- @user.power.client_notes?(@client1.reload)
99
+ @client1.reload
100
+ @user.power.client_notes?(@client1)
101
+ @client1.notes.loaded?.should be_false
107
102
  end
108
103
 
109
104
  end
metadata CHANGED
@@ -1,74 +1,70 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: consul
3
- version: !ruby/object:Gem::Version
4
- hash: 53
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.10.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 10
9
- - 1
10
- version: 0.10.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Henning Koch
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-10-07 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-10-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: memoizer
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rails
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
39
25
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
47
38
  type: :runtime
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: edge_rider
51
39
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
53
41
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: edge_rider
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
61
54
  type: :runtime
62
- version_requirements: *id003
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
63
62
  description: A scope-based authorization solution for Ruby on Rails.
64
63
  email: henning.koch@makandra.de
65
64
  executables: []
66
-
67
65
  extensions: []
68
-
69
66
  extra_rdoc_files: []
70
-
71
- files:
67
+ files:
72
68
  - .gitignore
73
69
  - .travis.yml
74
70
  - LICENSE
@@ -172,39 +168,29 @@ files:
172
168
  - spec/shared/consul/controllers/users_controller_spec.rb
173
169
  - spec/shared/consul/power_spec.rb
174
170
  - spec/shared/consul/util_spec.rb
175
- has_rdoc: true
176
171
  homepage: https://github.com/makandra/consul
177
- licenses:
172
+ licenses:
178
173
  - MIT
179
174
  post_install_message:
180
175
  rdoc_options: []
181
-
182
- require_paths:
176
+ require_paths:
183
177
  - lib
184
- required_ruby_version: !ruby/object:Gem::Requirement
178
+ required_ruby_version: !ruby/object:Gem::Requirement
185
179
  none: false
186
- requirements:
187
- - - ">="
188
- - !ruby/object:Gem::Version
189
- hash: 3
190
- segments:
191
- - 0
192
- version: "0"
193
- required_rubygems_version: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - ! '>='
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
184
+ required_rubygems_version: !ruby/object:Gem::Requirement
194
185
  none: false
195
- requirements:
196
- - - ">="
197
- - !ruby/object:Gem::Version
198
- hash: 3
199
- segments:
200
- - 0
201
- version: "0"
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
202
190
  requirements: []
203
-
204
191
  rubyforge_project:
205
- rubygems_version: 1.3.9.5
192
+ rubygems_version: 1.8.25
206
193
  signing_key:
207
194
  specification_version: 3
208
195
  summary: A scope-based authorization solution for Ruby on Rails.
209
196
  test_files: []
210
-