castle-rb 1.2.3 → 1.2.4

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: 1e4f9334cd96aecfb3b2ceddf39e4482d484348b
4
- data.tar.gz: 72fa63344e243d9eb1b845edd41786a62096c894
3
+ metadata.gz: 50a424d997b3d45198e82346d397d55273e41801
4
+ data.tar.gz: 8a62a7a1fdcda8f9398cabcc51791d0833670b33
5
5
  SHA512:
6
- metadata.gz: ecdc346c5a55cb257fd41062d1c6d0c18cb9ca74c812286a5101323c8b5ce9551937e0aca703ed24718fd6c6ebb707f4a6d9bb1849457e5d5798f3795b91be69
7
- data.tar.gz: 09574519d6ed77de4061b6cd5bb42d0bf426cd81f6b6b2774a76d65110f07542e5d47012a9c28453591be7aebb839117f866d0bf70e457a621d30e6cfccd21bd
6
+ metadata.gz: a8103ce836ba42ca80349de89ccf01db37f9858b8b5976032a2c8a806a2f76642bee7e0b3c589b05751f54ae107a95635403b6b61ce543c8f30f3cf174c9409f
7
+ data.tar.gz: 59cc626d91aa80d8433005008e6cfc0dd702b7fadbdd0a9cded48fac76e9f28a73d01d3b651f5eba77a271dfe59e4cde94178163da4769e27c912d4db9aeb441
@@ -12,7 +12,4 @@ module Castle
12
12
  end
13
13
  end
14
14
  end
15
-
16
- class UserAgent < Model; end
17
- class Location < Model; end
18
15
  end
@@ -0,0 +1,4 @@
1
+ module Castle
2
+ class Location < Model
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Castle
2
+ class UserAgent < Model
3
+ end
4
+ end
@@ -1,3 +1,3 @@
1
1
  module Castle
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
data/lib/castle-rb.rb CHANGED
@@ -33,6 +33,8 @@ end
33
33
  require 'castle-rb/models/model'
34
34
  require 'castle-rb/models/account'
35
35
  require 'castle-rb/models/event'
36
+ require 'castle-rb/models/location'
37
+ require 'castle-rb/models/user_agent'
36
38
  require 'castle-rb/models/context'
37
39
  require 'castle-rb/models/user'
38
40
  require 'castle-rb/models/verification'
@@ -0,0 +1,6 @@
1
+ describe Castle::Account do
2
+ it 'extends Castle::Model' do
3
+ instance = Castle::Account.new
4
+ expect(instance).to be_a Castle::Model
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ describe Castle::Context do
2
+ it 'extends Castle::Model' do
3
+ instance = Castle::Context.new
4
+ expect(instance).to be_a Castle::Model
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ describe Castle::Event do
2
+ it 'extends Castle::Model' do
3
+ instance = Castle::Event.new
4
+ expect(instance).to be_a Castle::Model
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ describe Castle::Location do
2
+ it 'extends Castle::Model' do
3
+ instance = Castle::Location.new
4
+ expect(instance).to be_a Castle::Model
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ describe Castle::UserAgent do
2
+ it 'extends Castle::Model' do
3
+ instance = Castle::UserAgent.new
4
+ expect(instance).to be_a Castle::Model
5
+ end
6
+ end
@@ -1,4 +1,6 @@
1
- require 'spec_helper'
2
-
3
- describe 'Castle::User' do
1
+ describe Castle::User do
2
+ it 'extends Castle::Model' do
3
+ instance = Castle::User.new
4
+ expect(instance).to be_a Castle::Model
5
+ end
4
6
  end
@@ -0,0 +1,6 @@
1
+ describe Castle::Verification do
2
+ it 'extends Castle::Model' do
3
+ instance = Castle::Verification.new
4
+ expect(instance).to be_a Castle::Model
5
+ end
6
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'bundler/setup'
3
3
  require 'rack'
4
- require 'vcr'
5
4
  require 'webmock/rspec'
6
5
  require 'simplecov'
7
6
  require 'coveralls'
@@ -12,15 +11,12 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
12
11
  ]
13
12
  SimpleCov.start do
14
13
  add_filter 'spec'
14
+ add_group 'Models', 'lib/castle-rb/models'
15
+ add_group 'Support', 'lib/castle-rb/support'
15
16
  end
16
17
 
17
18
  require 'castle-rb'
18
19
 
19
- VCR.configure do |config|
20
- config.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
21
- config.hook_into :webmock
22
- end
23
-
24
20
  Castle.configure do |config|
25
21
  config.api_secret = 'secretkey'
26
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: castle-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Brissmyr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-25 00:00:00.000000000 Z
11
+ date: 2015-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: her
@@ -16,154 +16,140 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.6
19
+ version: '0.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.6
26
+ version: '0.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.1
33
+ version: '0.10'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.9.1
40
+ version: '0.10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: multi_json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: '1.11'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.0'
54
+ version: '1.11'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: request_store
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.1'
61
+ version: '1.2'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.1'
68
+ version: '1.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">"
74
74
  - !ruby/object:Gem::Version
75
- version: '3'
75
+ version: '2'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">"
81
81
  - !ruby/object:Gem::Version
82
- version: '3'
82
+ version: '2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '3.3'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '3.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rack
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '1.6'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '1.6'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: webmock
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: vcr
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '0'
117
+ version: '1.21'
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '0'
124
+ version: '1.21'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: timecop
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: '0'
131
+ version: '0.8'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: '0'
138
+ version: '0.8'
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: coveralls
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: 0.7.2
145
+ version: '0.8'
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: 0.7.2
152
+ version: '0.8'
167
153
  description: Secure your authentication stack with user account monitoring
168
154
  email: johan@castle.io
169
155
  executables: []
@@ -179,8 +165,10 @@ files:
179
165
  - lib/castle-rb/models/account.rb
180
166
  - lib/castle-rb/models/context.rb
181
167
  - lib/castle-rb/models/event.rb
168
+ - lib/castle-rb/models/location.rb
182
169
  - lib/castle-rb/models/model.rb
183
170
  - lib/castle-rb/models/user.rb
171
+ - lib/castle-rb/models/user_agent.rb
184
172
  - lib/castle-rb/models/verification.rb
185
173
  - lib/castle-rb/request.rb
186
174
  - lib/castle-rb/support/cookie_store.rb
@@ -189,7 +177,13 @@ files:
189
177
  - lib/castle-rb/support/sinatra.rb
190
178
  - lib/castle-rb/utils.rb
191
179
  - lib/castle-rb/version.rb
180
+ - spec/models/account_spec.rb
181
+ - spec/models/context_spec.rb
182
+ - spec/models/event_spec.rb
183
+ - spec/models/location_spec.rb
184
+ - spec/models/user_agent_spec.rb
192
185
  - spec/models/user_spec.rb
186
+ - spec/models/verification_spec.rb
193
187
  - spec/spec_helper.rb
194
188
  homepage: https://castle.io
195
189
  licenses:
@@ -216,5 +210,11 @@ signing_key:
216
210
  specification_version: 4
217
211
  summary: Castle
218
212
  test_files:
213
+ - spec/models/account_spec.rb
214
+ - spec/models/context_spec.rb
215
+ - spec/models/event_spec.rb
216
+ - spec/models/location_spec.rb
217
+ - spec/models/user_agent_spec.rb
219
218
  - spec/models/user_spec.rb
219
+ - spec/models/verification_spec.rb
220
220
  - spec/spec_helper.rb