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 +4 -4
- data/lib/castle-rb/models/context.rb +0 -3
- data/lib/castle-rb/models/location.rb +4 -0
- data/lib/castle-rb/models/user_agent.rb +4 -0
- data/lib/castle-rb/version.rb +1 -1
- data/lib/castle-rb.rb +2 -0
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/context_spec.rb +6 -0
- data/spec/models/event_spec.rb +6 -0
- data/spec/models/location_spec.rb +6 -0
- data/spec/models/user_agent_spec.rb +6 -0
- data/spec/models/user_spec.rb +5 -3
- data/spec/models/verification_spec.rb +6 -0
- data/spec/spec_helper.rb +2 -6
- metadata +38 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50a424d997b3d45198e82346d397d55273e41801
|
4
|
+
data.tar.gz: 8a62a7a1fdcda8f9398cabcc51791d0833670b33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8103ce836ba42ca80349de89ccf01db37f9858b8b5976032a2c8a806a2f76642bee7e0b3c589b05751f54ae107a95635403b6b61ce543c8f30f3cf174c9409f
|
7
|
+
data.tar.gz: 59cc626d91aa80d8433005008e6cfc0dd702b7fadbdd0a9cded48fac76e9f28a73d01d3b651f5eba77a271dfe59e4cde94178163da4769e27c912d4db9aeb441
|
data/lib/castle-rb/version.rb
CHANGED
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'
|
data/spec/models/user_spec.rb
CHANGED
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.
|
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
|
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
|
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
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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.
|
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.
|
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
|