rspeckled 0.0.44 → 0.0.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data/lib/rspeckled/plugins/authentication.rb +5 -2
- data/lib/rspeckled/plugins/factory_bot.rb +30 -0
- data/lib/rspeckled/version.rb +1 -1
- data.tar.gz.sig +1 -2
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3e49aaff35f0dc2dcea096400705e77c1423c163919c3632acaaedbe82e0c858
|
4
|
+
data.tar.gz: 63b41e9b8a33d584475387c6a7bc795876724e44036d54f1dceae1f20db8d2a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 916b10bdf5725bf621336dfd8fe824ce9ef65d4bb0e9dc60a1d1a135a5957efaa52e336a9e096c2c053713cc00e4a0def64fc5f0a19b12bfaf68756802e98664
|
7
|
+
data.tar.gz: d1a269f6293a624ff5f197be3412cc77d8f1f221be932c13d5471ebc343b6b5389f3eaa96a4b9bee8d3598e607e8e020061de40a727ce4ec8ff4239cd9d8ca53
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -7,14 +7,17 @@ RSpec.configure do |config|
|
|
7
7
|
authentication_type = if options.is_a?(Hash) && options[:type]
|
8
8
|
options[:type]
|
9
9
|
else
|
10
|
-
:
|
10
|
+
:json_web_token
|
11
11
|
end
|
12
12
|
|
13
13
|
klass = case options
|
14
14
|
when TrueClass
|
15
15
|
User
|
16
16
|
when Hash
|
17
|
-
options[:class] ||
|
17
|
+
options[:class] || described_class
|
18
|
+
.name[/(.*?)::/, 1]
|
19
|
+
.concat('::User')
|
20
|
+
.constantize
|
18
21
|
else
|
19
22
|
options
|
20
23
|
end
|
@@ -17,6 +17,36 @@ begin
|
|
17
17
|
|
18
18
|
RSpec.configure do |config|
|
19
19
|
config.include FactoryBot::Syntax::Methods
|
20
|
+
|
21
|
+
config.before(:suite) do
|
22
|
+
FactoryBot.reload
|
23
|
+
|
24
|
+
FactoryBot.define do
|
25
|
+
sequence(:uuid) do |_n|
|
26
|
+
SecureRandom.uuid
|
27
|
+
end
|
28
|
+
|
29
|
+
sequence(:email) do |n|
|
30
|
+
"user#{n}@example.com"
|
31
|
+
end
|
32
|
+
|
33
|
+
sequence(:username) do |n|
|
34
|
+
"username#{n}"
|
35
|
+
end
|
36
|
+
|
37
|
+
sequence(:token) do
|
38
|
+
SecureRandom.hex(16)
|
39
|
+
end
|
40
|
+
|
41
|
+
sequence(:auth_token) do
|
42
|
+
Base64.strict_encode64(SecureRandom.hex(32))
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
config.before(:each) do
|
48
|
+
FactoryBot.rewind_sequences if FactoryBot.respond_to?(:rewind_sequences)
|
49
|
+
end
|
20
50
|
end
|
21
51
|
rescue LoadError
|
22
52
|
end
|
data/lib/rspeckled/version.rb
CHANGED
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
x��
|
2
|
-
��
|
1
|
+
?��uS��'d>�Y� �j;ZPl���k�{x��$�h��&_��e~�t1����%B'W��B'�38��(��:��Y����QV�LC���Gvi&;�4�b��R
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspeckled
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thegranddesign
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
Y2GAoHKstmfIVhc4XHOPpmTd2o/C29O9oaRgjrkfQEhF/KvJ/PhoV5hvokzsCyI5
|
32
32
|
iUeXPfvrGD/itYIBCgk+fnzyQQ4QtE5hTQaWQ3o2
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2018-
|
34
|
+
date: 2018-05-19 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.6
|
181
|
+
rubygems_version: 2.7.6
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Stop Copying and Pasting Your RSpec Configuration
|
metadata.gz.sig
CHANGED
Binary file
|