safeguard-devise 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +17 -0
- data/app/assets/stylesheets/devise_safeguard.css +63 -0
- data/app/assets/stylesheets/devise_safeguard.sass +56 -0
- data/config/locales/en.yml +5 -0
- data/safeguard-devise-0.0.2.gem +0 -0
- data/safeguard-devise.gemspec +16 -6
- data/spec/safeguard-devise-test-app/app/assets/stylesheets/devise_safeguard.css +63 -0
- data/spec/safeguard-devise-test-app/config/locales/devise.safeguard.en.yml +5 -0
- metadata +15 -7
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDQzZmMyNjY0NTRmZmY1Y2U1MjhjZmVmOTNmMWQ4NDdiMjgyZDQwMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGUxOWViNTgzMzMxODkyYWFjYTlmYzA3YTZlMjdkYmFkZThhNjYwMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTc0N2IwNmQ3MGM3MWQ3NDEwNjdkZGFiYjJiNWMyZWQ2MmQxYTkwNTkxZTM1
|
10
|
+
MThiNDJmMzU5ZWJkNmRjM2VlMmExODFkMGJjNGFkOGNlOGE4YmVkNGNjZWQz
|
11
|
+
YTAxMTE5OWEwZjZiODhiN2IxN2VjNmY0YTk5YTIyMzBkYzNhNjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTYwMjNiM2I5NDUwN2RkMTEwZmIxNmFiYzAyM2UzNGJlYzUwODY1MmQ0Y2Zm
|
14
|
+
OTRiZGY0MTJiMWE4MjhjNDYxZmY5NjdiNTExM2I5YmE5OTkzMzhiMTI3N2Zm
|
15
|
+
ODlmNWQwNzMzZjc5MmZjNGNkZWMzYzFiYmE5YjliNDk2YmQzMmU=
|
data/README.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Devise Safeguard
|
2
|
+
|
3
|
+
## Instalação
|
4
|
+
|
5
|
+
Adicione as seguintes linhas nos arquivos de configurações
|
6
|
+
`Safeguard.api_url=[API_URL]
|
7
|
+
`Safeguard.api_key=[API_KEY]
|
8
|
+
|
9
|
+
Adiciona a gem do safeguard no Gemfile
|
10
|
+
`gem 'devise-safeguard'
|
11
|
+
|
12
|
+
Execute o comando abaixo para criar/editar os arquivos necessários para o funcionamento da Gem
|
13
|
+
` rails g devise_safeguard:install
|
14
|
+
` rails g devise_safeguard [MODEL]
|
15
|
+
` rake db:migrate
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
#safeguard-form-token{
|
2
|
+
width: 320px;
|
3
|
+
position: relative;
|
4
|
+
left: 50%;
|
5
|
+
margin-left: -160px;
|
6
|
+
margin-top: 100px;
|
7
|
+
font-family: 'OpenSansRegular', sans-serif;
|
8
|
+
}
|
9
|
+
|
10
|
+
#safeguard-form-token form{
|
11
|
+
background: none repeat scroll 0 0 #FBFBFB;
|
12
|
+
border: 1px solid #E5E5E5;
|
13
|
+
font-weight: normal;
|
14
|
+
height: 90px;
|
15
|
+
margin-left: 8px;
|
16
|
+
padding: 26px 24px 46px;
|
17
|
+
}
|
18
|
+
|
19
|
+
#safeguard-form-token #safeguard-token{
|
20
|
+
width: 235px;
|
21
|
+
padding: 4px 5px 5px 5px;
|
22
|
+
height: 16px;
|
23
|
+
color: #333333;
|
24
|
+
margin: 5px;
|
25
|
+
outline: none;
|
26
|
+
height: 28px;
|
27
|
+
border: 1px solid #c8c8c8;
|
28
|
+
padding: 0px 7px 0px 7px;
|
29
|
+
color: #555;
|
30
|
+
-webkit-box-shadow: 0px 1px 0px 0px #fff;
|
31
|
+
-moz-box-shadow: 0px 1px 0px 0px #fff;
|
32
|
+
box-shadow: 0px 1px 0px 0px #fff;
|
33
|
+
-webkit-border-radius: 4px;
|
34
|
+
-moz-border-radius: 4px;
|
35
|
+
border-radius: 4px;
|
36
|
+
-moz-background-clip: padding;
|
37
|
+
-webkit-background-clip: padding-box;
|
38
|
+
background-clip: padding-box;
|
39
|
+
background: #fff;
|
40
|
+
}
|
41
|
+
|
42
|
+
#safeguard-form-token .button{
|
43
|
+
width: 250px;
|
44
|
+
padding: 4px 5px 5px 5px;
|
45
|
+
height: 16px;
|
46
|
+
color: #333333;
|
47
|
+
margin: 5px;
|
48
|
+
outline: none;
|
49
|
+
height: 28px;
|
50
|
+
border: 1px solid #c8c8c8;
|
51
|
+
padding: 0px 7px 0px 7px;
|
52
|
+
color: #555;
|
53
|
+
-webkit-box-shadow: 0px 1px 0px 0px #fff;
|
54
|
+
-moz-box-shadow: 0px 1px 0px 0px #fff;
|
55
|
+
box-shadow: 0px 1px 0px 0px #fff;
|
56
|
+
-webkit-border-radius: 4px;
|
57
|
+
-moz-border-radius: 4px;
|
58
|
+
border-radius: 4px;
|
59
|
+
-moz-background-clip: padding;
|
60
|
+
-webkit-background-clip: padding-box;
|
61
|
+
background-clip: padding-box;
|
62
|
+
background: #fff;
|
63
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
#safeguard-form-token
|
2
|
+
width: 320px
|
3
|
+
position: relative
|
4
|
+
left: 50%
|
5
|
+
margin-left: -160px
|
6
|
+
margin-top: 100px
|
7
|
+
font-family: 'OpenSansRegular', sans-serif
|
8
|
+
form
|
9
|
+
background: none repeat scroll 0 0 #FBFBFB
|
10
|
+
border: 1px solid #E5E5E5
|
11
|
+
font-weight: normal
|
12
|
+
height: 90px
|
13
|
+
margin-left: 8px
|
14
|
+
padding: 26px 24px 46px
|
15
|
+
#safeguard-token
|
16
|
+
width: 235px
|
17
|
+
padding: 4px 5px 5px 5px
|
18
|
+
height: 16px
|
19
|
+
color: #333333
|
20
|
+
margin: 5px
|
21
|
+
outline: none
|
22
|
+
height: 28px
|
23
|
+
border: 1px solid #c8c8c8
|
24
|
+
padding: 0px 7px 0px 7px
|
25
|
+
color: #555
|
26
|
+
-webkit-box-shadow: 0px 1px 0px 0px #fff
|
27
|
+
-moz-box-shadow: 0px 1px 0px 0px #fff
|
28
|
+
box-shadow: 0px 1px 0px 0px #fff
|
29
|
+
-webkit-border-radius: 4px
|
30
|
+
-moz-border-radius: 4px
|
31
|
+
border-radius: 4px
|
32
|
+
-moz-background-clip: padding
|
33
|
+
-webkit-background-clip: padding-box
|
34
|
+
background-clip: padding-box
|
35
|
+
background: #fff
|
36
|
+
.button
|
37
|
+
width: 250px
|
38
|
+
padding: 4px 5px 5px 5px
|
39
|
+
height: 16px
|
40
|
+
color: #333333
|
41
|
+
margin: 5px
|
42
|
+
outline: none
|
43
|
+
height: 28px
|
44
|
+
border: 1px solid #c8c8c8
|
45
|
+
padding: 0px 7px 0px 7px
|
46
|
+
color: #555
|
47
|
+
-webkit-box-shadow: 0px 1px 0px 0px #fff
|
48
|
+
-moz-box-shadow: 0px 1px 0px 0px #fff
|
49
|
+
box-shadow: 0px 1px 0px 0px #fff
|
50
|
+
-webkit-border-radius: 4px
|
51
|
+
-moz-border-radius: 4px
|
52
|
+
border-radius: 4px
|
53
|
+
-moz-background-clip: padding
|
54
|
+
-webkit-background-clip: padding-box
|
55
|
+
background-clip: padding-box
|
56
|
+
background: #fff
|
Binary file
|
data/safeguard-devise.gemspec
CHANGED
@@ -6,26 +6,33 @@
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "safeguard-devise"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
|
-
s.authors = ["
|
14
|
-
s.date = "2014-02-
|
13
|
+
s.authors = ["diegonakamashi"]
|
14
|
+
s.date = "2014-02-24"
|
15
15
|
s.description = "Safeguard Devise module"
|
16
|
-
s.email = "
|
16
|
+
s.email = "diegonakamashi@gmail.com"
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"README.md"
|
19
|
+
]
|
17
20
|
s.files = [
|
18
21
|
".vagrant/machines/default/virtualbox/action_provision",
|
19
22
|
".vagrant/machines/default/virtualbox/action_set_name",
|
20
23
|
".vagrant/machines/default/virtualbox/id",
|
21
24
|
"Gemfile",
|
22
25
|
"Gemfile.lock",
|
26
|
+
"README.md",
|
23
27
|
"Rakefile",
|
24
28
|
"VERSION",
|
25
29
|
"Vagrantfile",
|
30
|
+
"app/assets/stylesheets/devise_safeguard.css",
|
31
|
+
"app/assets/stylesheets/devise_safeguard.sass",
|
26
32
|
"app/controllers/devise/devise_safeguard_controller.rb",
|
27
33
|
"app/views/devise/verify_safeguard.html.erb",
|
28
34
|
"app/views/devise/verify_safeguard.html.haml",
|
35
|
+
"config/locales/en.yml",
|
29
36
|
"config/locales/pt-BR.yml",
|
30
37
|
"lib/devise-safeguard/controllers/helpers.rb",
|
31
38
|
"lib/devise-safeguard/hooks/safeguard_authenticatable.rb",
|
@@ -124,6 +131,7 @@ Gem::Specification.new do |s|
|
|
124
131
|
"puppet/modules/redis/templates/redis.rhel.conf.erb",
|
125
132
|
"puppet/modules/redis/tests/init.pp",
|
126
133
|
"puppet/upgrade-puppet.sh",
|
134
|
+
"safeguard-devise-0.0.2.gem",
|
127
135
|
"safeguard-devise.gemspec",
|
128
136
|
"spec/controllers/safeguard_devise_controller_spec.rb",
|
129
137
|
"spec/devise/safeguard_authenticatable_spec.rb",
|
@@ -137,6 +145,7 @@ Gem::Specification.new do |s|
|
|
137
145
|
"spec/safeguard-devise-test-app/app/assets/images/.keep",
|
138
146
|
"spec/safeguard-devise-test-app/app/assets/javascripts/application.js",
|
139
147
|
"spec/safeguard-devise-test-app/app/assets/stylesheets/application.css",
|
148
|
+
"spec/safeguard-devise-test-app/app/assets/stylesheets/devise_safeguard.css",
|
140
149
|
"spec/safeguard-devise-test-app/app/controllers/application_controller.rb",
|
141
150
|
"spec/safeguard-devise-test-app/app/controllers/concerns/.keep",
|
142
151
|
"spec/safeguard-devise-test-app/app/controllers/home_controller.rb",
|
@@ -169,6 +178,7 @@ Gem::Specification.new do |s|
|
|
169
178
|
"spec/safeguard-devise-test-app/config/initializers/session_store.rb",
|
170
179
|
"spec/safeguard-devise-test-app/config/initializers/wrap_parameters.rb",
|
171
180
|
"spec/safeguard-devise-test-app/config/locales/devise.en.yml",
|
181
|
+
"spec/safeguard-devise-test-app/config/locales/devise.safeguard.en.yml",
|
172
182
|
"spec/safeguard-devise-test-app/config/locales/devise.safeguard.pt-BR.yml",
|
173
183
|
"spec/safeguard-devise-test-app/config/locales/en.yml",
|
174
184
|
"spec/safeguard-devise-test-app/config/routes.rb",
|
@@ -199,10 +209,10 @@ Gem::Specification.new do |s|
|
|
199
209
|
"spec/spec_helper.rb",
|
200
210
|
"spec/tests_helper/helpers.rb"
|
201
211
|
]
|
202
|
-
s.homepage = ""
|
212
|
+
s.homepage = "http://github.com/diegonakamashi/safeguard-devise"
|
203
213
|
s.licenses = ["MIT"]
|
204
214
|
s.rubygems_version = "2.2.2"
|
205
|
-
s.summary = "
|
215
|
+
s.summary = "Safeguard devise module"
|
206
216
|
|
207
217
|
if s.respond_to? :specification_version then
|
208
218
|
s.specification_version = 4
|
@@ -0,0 +1,63 @@
|
|
1
|
+
#safeguard-form-token{
|
2
|
+
width: 320px;
|
3
|
+
position: relative;
|
4
|
+
left: 50%;
|
5
|
+
margin-left: -160px;
|
6
|
+
margin-top: 100px;
|
7
|
+
font-family: 'OpenSansRegular', sans-serif;
|
8
|
+
}
|
9
|
+
|
10
|
+
#safeguard-form-token form{
|
11
|
+
background: none repeat scroll 0 0 #FBFBFB;
|
12
|
+
border: 1px solid #E5E5E5;
|
13
|
+
font-weight: normal;
|
14
|
+
height: 90px;
|
15
|
+
margin-left: 8px;
|
16
|
+
padding: 26px 24px 46px;
|
17
|
+
}
|
18
|
+
|
19
|
+
#safeguard-form-token #safeguard-token{
|
20
|
+
width: 235px;
|
21
|
+
padding: 4px 5px 5px 5px;
|
22
|
+
height: 16px;
|
23
|
+
color: #333333;
|
24
|
+
margin: 5px;
|
25
|
+
outline: none;
|
26
|
+
height: 28px;
|
27
|
+
border: 1px solid #c8c8c8;
|
28
|
+
padding: 0px 7px 0px 7px;
|
29
|
+
color: #555;
|
30
|
+
-webkit-box-shadow: 0px 1px 0px 0px #fff;
|
31
|
+
-moz-box-shadow: 0px 1px 0px 0px #fff;
|
32
|
+
box-shadow: 0px 1px 0px 0px #fff;
|
33
|
+
-webkit-border-radius: 4px;
|
34
|
+
-moz-border-radius: 4px;
|
35
|
+
border-radius: 4px;
|
36
|
+
-moz-background-clip: padding;
|
37
|
+
-webkit-background-clip: padding-box;
|
38
|
+
background-clip: padding-box;
|
39
|
+
background: #fff;
|
40
|
+
}
|
41
|
+
|
42
|
+
#safeguard-form-token .button{
|
43
|
+
width: 250px;
|
44
|
+
padding: 4px 5px 5px 5px;
|
45
|
+
height: 16px;
|
46
|
+
color: #333333;
|
47
|
+
margin: 5px;
|
48
|
+
outline: none;
|
49
|
+
height: 28px;
|
50
|
+
border: 1px solid #c8c8c8;
|
51
|
+
padding: 0px 7px 0px 7px;
|
52
|
+
color: #555;
|
53
|
+
-webkit-box-shadow: 0px 1px 0px 0px #fff;
|
54
|
+
-moz-box-shadow: 0px 1px 0px 0px #fff;
|
55
|
+
box-shadow: 0px 1px 0px 0px #fff;
|
56
|
+
-webkit-border-radius: 4px;
|
57
|
+
-moz-border-radius: 4px;
|
58
|
+
border-radius: 4px;
|
59
|
+
-moz-background-clip: padding;
|
60
|
+
-webkit-background-clip: padding-box;
|
61
|
+
background-clip: padding-box;
|
62
|
+
background: #fff;
|
63
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: safeguard-devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- diegonakamashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|
@@ -165,22 +165,27 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
description: Safeguard Devise module
|
168
|
-
email:
|
168
|
+
email: diegonakamashi@gmail.com
|
169
169
|
executables: []
|
170
170
|
extensions: []
|
171
|
-
extra_rdoc_files:
|
171
|
+
extra_rdoc_files:
|
172
|
+
- README.md
|
172
173
|
files:
|
173
174
|
- .vagrant/machines/default/virtualbox/action_provision
|
174
175
|
- .vagrant/machines/default/virtualbox/action_set_name
|
175
176
|
- .vagrant/machines/default/virtualbox/id
|
176
177
|
- Gemfile
|
177
178
|
- Gemfile.lock
|
179
|
+
- README.md
|
178
180
|
- Rakefile
|
179
181
|
- VERSION
|
180
182
|
- Vagrantfile
|
183
|
+
- app/assets/stylesheets/devise_safeguard.css
|
184
|
+
- app/assets/stylesheets/devise_safeguard.sass
|
181
185
|
- app/controllers/devise/devise_safeguard_controller.rb
|
182
186
|
- app/views/devise/verify_safeguard.html.erb
|
183
187
|
- app/views/devise/verify_safeguard.html.haml
|
188
|
+
- config/locales/en.yml
|
184
189
|
- config/locales/pt-BR.yml
|
185
190
|
- lib/devise-safeguard/controllers/helpers.rb
|
186
191
|
- lib/devise-safeguard/hooks/safeguard_authenticatable.rb
|
@@ -279,6 +284,7 @@ files:
|
|
279
284
|
- puppet/modules/redis/templates/redis.rhel.conf.erb
|
280
285
|
- puppet/modules/redis/tests/init.pp
|
281
286
|
- puppet/upgrade-puppet.sh
|
287
|
+
- safeguard-devise-0.0.2.gem
|
282
288
|
- safeguard-devise.gemspec
|
283
289
|
- spec/controllers/safeguard_devise_controller_spec.rb
|
284
290
|
- spec/devise/safeguard_authenticatable_spec.rb
|
@@ -292,6 +298,7 @@ files:
|
|
292
298
|
- spec/safeguard-devise-test-app/app/assets/images/.keep
|
293
299
|
- spec/safeguard-devise-test-app/app/assets/javascripts/application.js
|
294
300
|
- spec/safeguard-devise-test-app/app/assets/stylesheets/application.css
|
301
|
+
- spec/safeguard-devise-test-app/app/assets/stylesheets/devise_safeguard.css
|
295
302
|
- spec/safeguard-devise-test-app/app/controllers/application_controller.rb
|
296
303
|
- spec/safeguard-devise-test-app/app/controllers/concerns/.keep
|
297
304
|
- spec/safeguard-devise-test-app/app/controllers/home_controller.rb
|
@@ -324,6 +331,7 @@ files:
|
|
324
331
|
- spec/safeguard-devise-test-app/config/initializers/session_store.rb
|
325
332
|
- spec/safeguard-devise-test-app/config/initializers/wrap_parameters.rb
|
326
333
|
- spec/safeguard-devise-test-app/config/locales/devise.en.yml
|
334
|
+
- spec/safeguard-devise-test-app/config/locales/devise.safeguard.en.yml
|
327
335
|
- spec/safeguard-devise-test-app/config/locales/devise.safeguard.pt-BR.yml
|
328
336
|
- spec/safeguard-devise-test-app/config/locales/en.yml
|
329
337
|
- spec/safeguard-devise-test-app/config/routes.rb
|
@@ -353,7 +361,7 @@ files:
|
|
353
361
|
- spec/safeguard-devise-test-app/vendor/assets/stylesheets/.keep
|
354
362
|
- spec/spec_helper.rb
|
355
363
|
- spec/tests_helper/helpers.rb
|
356
|
-
homepage:
|
364
|
+
homepage: http://github.com/diegonakamashi/safeguard-devise
|
357
365
|
licenses:
|
358
366
|
- MIT
|
359
367
|
metadata: {}
|
@@ -376,6 +384,6 @@ rubyforge_project:
|
|
376
384
|
rubygems_version: 2.2.2
|
377
385
|
signing_key:
|
378
386
|
specification_version: 4
|
379
|
-
summary:
|
387
|
+
summary: Safeguard devise module
|
380
388
|
test_files: []
|
381
389
|
has_rdoc:
|