acts_as_user 1.2.4 → 1.2.5

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
  SHA1:
3
- metadata.gz: 4dd54b73d7bb9d87866db978fafcaaa535cb234e
4
- data.tar.gz: fe9438289e8012cc56877f12b115b0cd3a42fab5
3
+ metadata.gz: 08b2f1423c8dbd79e5e1bf685b6e49e4073049e2
4
+ data.tar.gz: 21aaaad336508302c5dd34ce74a5962900e2a7a4
5
5
  SHA512:
6
- metadata.gz: 7b90a135f61275dff488c372866798081d6363e30eb95eebe2428ff0f873517ddfdd08840034790f3bd74c496713db45537d033bf36c4a61978ae2b97dcb1e0f
7
- data.tar.gz: d49c92c72e30afdd45f1a609426e2647e523cd68ccd35b0524e29eaafc5e115814d2ca30503400ec32e899dd65266c9dcafba2249612ba1c67d80bcd5e297919
6
+ metadata.gz: 80b6d83f6dcd68843679a6cb799c08895d6dd275f90825b878f233562dff9f2170a599eb736dd7832d1308dd3b1f326870023ca4603f7ad9c59c8901b4fd3061
7
+ data.tar.gz: 0f0c76be3fe6af02c066193611c67f4def3591b089826b97b454be00ab60d8279c015bf6003f7c28d8e531c09d5f8556ca0bf42c1b9b10fff13440667b12c016
data/acts_as_user.gemspec CHANGED
@@ -18,18 +18,16 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.3"
21
+ spec.add_development_dependency "bundler"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency "rspec"
24
24
  spec.add_development_dependency "sqlite3"
25
- spec.add_development_dependency "activerecord"
26
25
  spec.add_development_dependency "rails"
27
26
  spec.add_development_dependency "shoulda-matchers"
28
27
  spec.add_development_dependency "activesupport"
29
- spec.add_development_dependency 'database_cleaner', ['~> 1.2.0']
28
+ spec.add_development_dependency 'database_cleaner'
30
29
  spec.add_development_dependency 'debugger'
31
30
 
32
- spec.add_dependency "orm_adapter", "~> 0.1"
33
- spec.add_dependency "activerecord", ">= 3.0"
34
- spec.add_dependency "activesupport"
31
+ spec.add_dependency "orm_adapter"
32
+ spec.add_runtime_dependency "activerecord"
35
33
  end
@@ -18,6 +18,9 @@ module ActsAsUser
18
18
  super
19
19
  end
20
20
 
21
+ def deep_inspect
22
+ "#{self.inspect} -- #{self.user.inspect}"
23
+ end
21
24
 
22
25
  protected
23
26
 
@@ -1,3 +1,3 @@
1
1
  module ActsAsUser
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
3
3
  end
@@ -40,4 +40,15 @@ describe Customer do
40
40
  @customer.user.email.should eql @customer.email
41
41
  end
42
42
  end
43
+
44
+ describe 'deep_inspect' do
45
+ before do
46
+ @customer = Customer.new(email: 'test@test.com')
47
+ @customer.save
48
+ end
49
+ it 'inspects both the user and the userable' do
50
+ @customer.deep_inspect.should include @customer.inspect
51
+ @customer.deep_inspect.should include @customer.user.inspect
52
+ end
53
+ end
43
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_user
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abraham Kuri
@@ -9,24 +9,10 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-16 00:00:00.000000000 Z
12
+ date: 2014-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - "~>"
19
- - !ruby/object:Gem::Version
20
- version: '1.3'
21
- type: :development
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - "~>"
26
- - !ruby/object:Gem::Version
27
- version: '1.3'
28
- - !ruby/object:Gem::Dependency
29
- name: rake
30
16
  requirement: !ruby/object:Gem::Requirement
31
17
  requirements:
32
18
  - - ">="
@@ -40,7 +26,7 @@ dependencies:
40
26
  - !ruby/object:Gem::Version
41
27
  version: '0'
42
28
  - !ruby/object:Gem::Dependency
43
- name: rspec
29
+ name: rake
44
30
  requirement: !ruby/object:Gem::Requirement
45
31
  requirements:
46
32
  - - ">="
@@ -54,7 +40,7 @@ dependencies:
54
40
  - !ruby/object:Gem::Version
55
41
  version: '0'
56
42
  - !ruby/object:Gem::Dependency
57
- name: sqlite3
43
+ name: rspec
58
44
  requirement: !ruby/object:Gem::Requirement
59
45
  requirements:
60
46
  - - ">="
@@ -68,7 +54,7 @@ dependencies:
68
54
  - !ruby/object:Gem::Version
69
55
  version: '0'
70
56
  - !ruby/object:Gem::Dependency
71
- name: activerecord
57
+ name: sqlite3
72
58
  requirement: !ruby/object:Gem::Requirement
73
59
  requirements:
74
60
  - - ">="
@@ -127,16 +113,16 @@ dependencies:
127
113
  name: database_cleaner
128
114
  requirement: !ruby/object:Gem::Requirement
129
115
  requirements:
130
- - - "~>"
116
+ - - ">="
131
117
  - !ruby/object:Gem::Version
132
- version: 1.2.0
118
+ version: '0'
133
119
  type: :development
134
120
  prerelease: false
135
121
  version_requirements: !ruby/object:Gem::Requirement
136
122
  requirements:
137
- - - "~>"
123
+ - - ">="
138
124
  - !ruby/object:Gem::Version
139
- version: 1.2.0
125
+ version: '0'
140
126
  - !ruby/object:Gem::Dependency
141
127
  name: debugger
142
128
  requirement: !ruby/object:Gem::Requirement
@@ -153,34 +139,20 @@ dependencies:
153
139
  version: '0'
154
140
  - !ruby/object:Gem::Dependency
155
141
  name: orm_adapter
156
- requirement: !ruby/object:Gem::Requirement
157
- requirements:
158
- - - "~>"
159
- - !ruby/object:Gem::Version
160
- version: '0.1'
161
- type: :runtime
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
164
- requirements:
165
- - - "~>"
166
- - !ruby/object:Gem::Version
167
- version: '0.1'
168
- - !ruby/object:Gem::Dependency
169
- name: activerecord
170
142
  requirement: !ruby/object:Gem::Requirement
171
143
  requirements:
172
144
  - - ">="
173
145
  - !ruby/object:Gem::Version
174
- version: '3.0'
146
+ version: '0'
175
147
  type: :runtime
176
148
  prerelease: false
177
149
  version_requirements: !ruby/object:Gem::Requirement
178
150
  requirements:
179
151
  - - ">="
180
152
  - !ruby/object:Gem::Version
181
- version: '3.0'
153
+ version: '0'
182
154
  - !ruby/object:Gem::Dependency
183
- name: activesupport
155
+ name: activerecord
184
156
  requirement: !ruby/object:Gem::Requirement
185
157
  requirements:
186
158
  - - ">="
@@ -254,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
226
  version: '0'
255
227
  requirements: []
256
228
  rubyforge_project:
257
- rubygems_version: 2.1.11
229
+ rubygems_version: 2.2.1
258
230
  signing_key:
259
231
  specification_version: 4
260
232
  summary: Handles multiple user roles on a rails app
@@ -269,3 +241,4 @@ test_files:
269
241
  - spec/support/database_cleaner.rb
270
242
  - spec/support/models.rb
271
243
  - spec/support/schema.rb
244
+ has_rdoc: