devise-encryptable 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8dd60f2dee3a54f8dcd5c04c1d8821c93097a24a
4
+ data.tar.gz: 50fbc07c6d0de371c73aca7965594c80e67b3b2a
5
+ SHA512:
6
+ metadata.gz: a43d94fb24dae5c551909347591411f0c3c5331a96c78c68559d11ca0b055998a6c94b7c188da1a28b19c8d5d2e596f7fb8474e54cf58ac772dc7ad90333d652
7
+ data.tar.gz: 757a66eb7ec1f1c1144a457cc8d09b6080ccadc23b7c76fda99dc27a6ffa717eb8451cdb60c6f573461afc88c6ce490b09e39c34e5e9b5ad809a8c306b9a4bf3
data/.travis.yml CHANGED
@@ -1,9 +1,13 @@
1
+ language: ruby
1
2
  rvm:
2
3
  - 1.8.7
3
4
  - 1.9.2
4
5
  - 1.9.3
5
- recipients:
6
- - carlos@plataformatec.com.br
7
- - jose.valim@plataformatec.com.br
8
- - rafael.franca@plataformatec.com.br
9
- - rodrigo.flores@plataformatec.com.br
6
+ - 2.0.0
7
+ notifications:
8
+ email: false
9
+ campfire:
10
+ on_success: change
11
+ on_failure: always
12
+ rooms:
13
+ - secure: "apo8q+63WTaltM6kUD4GFoMO3zVXaMV0O38yo7LN0xyD2O9650UpTZZdMZ6D\narJ29YCumJf3KsdPcxq3wcM0JhNCkg/G+apJYUDRJdlcboYr84v3/MbJf53U\ng8p7Big1TYbt5cjD40VQJTSqlzHgPoQAy2wGjuryuCY8jt+6wB0="
data/Gemfile CHANGED
@@ -1,16 +1,10 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in encryptor.gemspec
4
3
  gemspec
5
4
 
6
- gem 'devise', "~> 2.1.0.rc"
5
+ gem 'devise', '~> 2.1'
7
6
  gem 'minitest'
8
7
  gem 'rails', "~> 3.2"
9
8
  gem 'sqlite3'
10
9
 
11
- gem 'mocha', :require => false
12
-
13
- gem 'pry'
14
- gem 'pry-doc'
15
- gem 'pry-nav'
16
- gem 'awesome_print'
10
+ gem 'mocha', '~> 0.13.3', :require => false
data/Gemfile.lock CHANGED
@@ -1,128 +1,111 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devise-encryptable (0.1.1)
5
- devise (>= 2.1.0.rc)
4
+ devise-encryptable (0.1.2)
5
+ devise (>= 2.1.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionmailer (3.2.3)
11
- actionpack (= 3.2.3)
12
- mail (~> 2.4.4)
13
- actionpack (3.2.3)
14
- activemodel (= 3.2.3)
15
- activesupport (= 3.2.3)
10
+ actionmailer (3.2.13)
11
+ actionpack (= 3.2.13)
12
+ mail (~> 2.5.3)
13
+ actionpack (3.2.13)
14
+ activemodel (= 3.2.13)
15
+ activesupport (= 3.2.13)
16
16
  builder (~> 3.0.0)
17
17
  erubis (~> 2.7.0)
18
- journey (~> 1.0.1)
19
- rack (~> 1.4.0)
18
+ journey (~> 1.0.4)
19
+ rack (~> 1.4.5)
20
20
  rack-cache (~> 1.2)
21
21
  rack-test (~> 0.6.1)
22
- sprockets (~> 2.1.2)
23
- activemodel (3.2.3)
24
- activesupport (= 3.2.3)
22
+ sprockets (~> 2.2.1)
23
+ activemodel (3.2.13)
24
+ activesupport (= 3.2.13)
25
25
  builder (~> 3.0.0)
26
- activerecord (3.2.3)
27
- activemodel (= 3.2.3)
28
- activesupport (= 3.2.3)
26
+ activerecord (3.2.13)
27
+ activemodel (= 3.2.13)
28
+ activesupport (= 3.2.13)
29
29
  arel (~> 3.0.2)
30
30
  tzinfo (~> 0.3.29)
31
- activeresource (3.2.3)
32
- activemodel (= 3.2.3)
33
- activesupport (= 3.2.3)
34
- activesupport (3.2.3)
35
- i18n (~> 0.6)
31
+ activeresource (3.2.13)
32
+ activemodel (= 3.2.13)
33
+ activesupport (= 3.2.13)
34
+ activesupport (3.2.13)
35
+ i18n (= 0.6.1)
36
36
  multi_json (~> 1.0)
37
37
  arel (3.0.2)
38
- awesome_print (1.0.2)
39
38
  bcrypt-ruby (3.0.1)
40
- builder (3.0.0)
41
- coderay (1.0.6)
42
- devise (2.1.0.rc)
39
+ builder (3.0.4)
40
+ devise (2.2.4)
43
41
  bcrypt-ruby (~> 3.0)
44
- orm_adapter (~> 0.0.3)
42
+ orm_adapter (~> 0.1)
45
43
  railties (~> 3.1)
46
- warden (~> 1.1.1)
44
+ warden (~> 1.2.1)
47
45
  erubis (2.7.0)
48
- hike (1.2.1)
49
- i18n (0.6.0)
50
- journey (1.0.3)
51
- json (1.7.1)
52
- mail (2.4.4)
46
+ hike (1.2.2)
47
+ i18n (0.6.1)
48
+ journey (1.0.4)
49
+ json (1.7.7)
50
+ mail (2.5.3)
53
51
  i18n (>= 0.4.0)
54
52
  mime-types (~> 1.16)
55
53
  treetop (~> 1.4.8)
56
54
  metaclass (0.0.1)
57
- method_source (0.7.1)
58
- mime-types (1.18)
59
- minitest (2.5.1)
60
- mocha (0.11.4)
55
+ mime-types (1.23)
56
+ minitest (4.7.4)
57
+ mocha (0.13.3)
61
58
  metaclass (~> 0.0.1)
62
- multi_json (1.3.4)
63
- orm_adapter (0.0.7)
59
+ multi_json (1.7.3)
60
+ orm_adapter (0.4.0)
64
61
  polyglot (0.3.3)
65
- pry (0.9.9.4)
66
- coderay (~> 1.0.5)
67
- method_source (~> 0.7.1)
68
- slop (>= 2.4.4, < 3)
69
- pry-doc (0.4.1)
70
- pry (>= 0.9.0)
71
- yard (~> 0.7.4)
72
- pry-nav (0.2.1)
73
- pry (~> 0.9.9)
74
- rack (1.4.1)
62
+ rack (1.4.5)
75
63
  rack-cache (1.2)
76
64
  rack (>= 0.4)
77
- rack-ssl (1.3.2)
65
+ rack-ssl (1.3.3)
78
66
  rack
79
- rack-test (0.6.1)
67
+ rack-test (0.6.2)
80
68
  rack (>= 1.0)
81
- rails (3.2.3)
82
- actionmailer (= 3.2.3)
83
- actionpack (= 3.2.3)
84
- activerecord (= 3.2.3)
85
- activeresource (= 3.2.3)
86
- activesupport (= 3.2.3)
69
+ rails (3.2.13)
70
+ actionmailer (= 3.2.13)
71
+ actionpack (= 3.2.13)
72
+ activerecord (= 3.2.13)
73
+ activeresource (= 3.2.13)
74
+ activesupport (= 3.2.13)
87
75
  bundler (~> 1.0)
88
- railties (= 3.2.3)
89
- railties (3.2.3)
90
- actionpack (= 3.2.3)
91
- activesupport (= 3.2.3)
76
+ railties (= 3.2.13)
77
+ railties (3.2.13)
78
+ actionpack (= 3.2.13)
79
+ activesupport (= 3.2.13)
92
80
  rack-ssl (~> 1.3.2)
93
81
  rake (>= 0.8.7)
94
82
  rdoc (~> 3.4)
95
- thor (~> 0.14.6)
96
- rake (0.9.2.2)
97
- rdoc (3.12)
83
+ thor (>= 0.14.6, < 2.0)
84
+ rake (10.0.4)
85
+ rdoc (3.12.2)
98
86
  json (~> 1.4)
99
- slop (2.4.4)
100
- sprockets (2.1.3)
87
+ sprockets (2.2.2)
101
88
  hike (~> 1.2)
89
+ multi_json (~> 1.0)
102
90
  rack (~> 1.0)
103
91
  tilt (~> 1.1, != 1.3.0)
104
- sqlite3 (1.3.6)
105
- thor (0.14.6)
106
- tilt (1.3.3)
107
- treetop (1.4.10)
92
+ sqlite3 (1.3.7)
93
+ thor (0.18.1)
94
+ tilt (1.4.0)
95
+ treetop (1.4.12)
108
96
  polyglot
109
97
  polyglot (>= 0.3.1)
110
- tzinfo (0.3.33)
111
- warden (1.1.1)
98
+ tzinfo (0.3.37)
99
+ warden (1.2.1)
112
100
  rack (>= 1.0)
113
- yard (0.7.5)
114
101
 
115
102
  PLATFORMS
116
103
  ruby
117
104
 
118
105
  DEPENDENCIES
119
- awesome_print
120
- devise (~> 2.1.0.rc)
106
+ devise (~> 2.1)
121
107
  devise-encryptable!
122
108
  minitest
123
- mocha
124
- pry
125
- pry-doc
126
- pry-nav
109
+ mocha (~> 0.13.3)
127
110
  rails (~> 3.2)
128
111
  sqlite3
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Devise Encryptable
2
2
 
3
+ [![Build Status](https://api.travis-ci.org/plataformatec/devise-encryptable.png)](https://travis-ci.org/plataformatec/devise-encryptable)
4
+
3
5
  Use alternative (and even your own!) encryptors with Devise.
4
6
 
5
7
  ## Usage
@@ -40,4 +42,4 @@ And you're ready to go!
40
42
 
41
43
  ## License
42
44
 
43
- Apache License version 2. Copyright 2012 Plataformatec http://plataformatec.com.br
45
+ Apache License version 2. Copyright 2012-2013 Plataformatec http://plataformatec.com.br
data/Rakefile CHANGED
@@ -2,7 +2,10 @@
2
2
  require "bundler/gem_tasks"
3
3
  require 'rake/testtask'
4
4
 
5
- desc 'Run Devise unit tests.'
5
+ desc 'Default: run unit tests.'
6
+ task :default => :test
7
+
8
+ desc 'Run unit tests.'
6
9
  Rake::TestTask.new(:test) do |t|
7
10
  t.libs << 'lib'
8
11
  t.libs << 'test'
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = "contact@plataformatec.com.br"
7
7
  gem.description = %q{Encryption solution for salted-encryptors on Devise}
8
8
  gem.summary = %q{Encryption solution for salted-encryptors on Devise}
9
- gem.homepage = "http://github.com/plataformatec/devise_encryptable"
9
+ gem.homepage = "http://github.com/plataformatec/devise-encryptable"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -15,5 +15,5 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Devise::Encryptable::VERSION
17
17
 
18
- gem.add_dependency("devise", '>= 2.1.0.rc')
18
+ gem.add_dependency("devise", '>= 2.1.0')
19
19
  end
@@ -2,14 +2,9 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "devise-encryptable", :path => ".."
4
4
 
5
- gem 'devise', '>= 2.1.0.rc'
5
+ gem 'devise', '~> 2.1'
6
6
  gem 'minitest'
7
7
  gem 'rails', "3.1.4"
8
8
  gem 'sqlite3'
9
9
 
10
- gem 'mocha', :require => false
11
-
12
- gem 'pry'
13
- gem 'pry-doc'
14
- gem 'pry-nav'
15
- gem 'awesome_print'
10
+ gem 'mocha', '~> 0.13.3', :require => false
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- devise-encryptable (0.1.0)
5
- devise (>= 2.1.0.rc)
4
+ devise-encryptable (0.1.2)
5
+ devise (>= 2.1.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -36,49 +36,37 @@ GEM
36
36
  activesupport (3.1.4)
37
37
  multi_json (~> 1.0)
38
38
  arel (2.2.3)
39
- awesome_print (1.0.2)
40
39
  bcrypt-ruby (3.0.1)
41
- builder (3.0.0)
42
- coderay (1.0.6)
43
- devise (2.1.0.rc)
40
+ builder (3.0.4)
41
+ devise (2.2.4)
44
42
  bcrypt-ruby (~> 3.0)
45
- orm_adapter (~> 0.0.3)
43
+ orm_adapter (~> 0.1)
46
44
  railties (~> 3.1)
47
- warden (~> 1.1.1)
45
+ warden (~> 1.2.1)
48
46
  erubis (2.7.0)
49
- hike (1.2.1)
50
- i18n (0.6.0)
51
- json (1.7.1)
47
+ hike (1.2.2)
48
+ i18n (0.6.4)
49
+ json (1.7.7)
52
50
  mail (2.3.3)
53
51
  i18n (>= 0.4.0)
54
52
  mime-types (~> 1.16)
55
53
  treetop (~> 1.4.8)
56
54
  metaclass (0.0.1)
57
- method_source (0.7.1)
58
- mime-types (1.18)
59
- minitest (3.0.0)
60
- mocha (0.11.4)
55
+ mime-types (1.23)
56
+ minitest (4.7.4)
57
+ mocha (0.13.3)
61
58
  metaclass (~> 0.0.1)
62
- multi_json (1.3.4)
63
- orm_adapter (0.0.7)
59
+ multi_json (1.7.3)
60
+ orm_adapter (0.4.0)
64
61
  polyglot (0.3.3)
65
- pry (0.9.9.4)
66
- coderay (~> 1.0.5)
67
- method_source (~> 0.7.1)
68
- slop (>= 2.4.4, < 3)
69
- pry-doc (0.4.1)
70
- pry (>= 0.9.0)
71
- yard (~> 0.7.4)
72
- pry-nav (0.2.1)
73
- pry (~> 0.9.9)
74
- rack (1.3.6)
62
+ rack (1.3.10)
75
63
  rack-cache (1.2)
76
64
  rack (>= 0.4)
77
65
  rack-mount (0.8.3)
78
66
  rack (>= 1.0.0)
79
- rack-ssl (1.3.2)
67
+ rack-ssl (1.3.3)
80
68
  rack
81
- rack-test (0.6.1)
69
+ rack-test (0.6.2)
82
70
  rack (>= 1.0)
83
71
  rails (3.1.4)
84
72
  actionmailer (= 3.1.4)
@@ -95,36 +83,30 @@ GEM
95
83
  rake (>= 0.8.7)
96
84
  rdoc (~> 3.4)
97
85
  thor (~> 0.14.6)
98
- rake (0.9.2.2)
99
- rdoc (3.12)
86
+ rake (10.0.4)
87
+ rdoc (3.12.2)
100
88
  json (~> 1.4)
101
- slop (2.4.4)
102
89
  sprockets (2.0.4)
103
90
  hike (~> 1.2)
104
91
  rack (~> 1.0)
105
92
  tilt (~> 1.1, != 1.3.0)
106
- sqlite3 (1.3.6)
93
+ sqlite3 (1.3.7)
107
94
  thor (0.14.6)
108
- tilt (1.3.3)
109
- treetop (1.4.10)
95
+ tilt (1.4.0)
96
+ treetop (1.4.12)
110
97
  polyglot
111
98
  polyglot (>= 0.3.1)
112
- tzinfo (0.3.33)
113
- warden (1.1.1)
99
+ tzinfo (0.3.37)
100
+ warden (1.2.1)
114
101
  rack (>= 1.0)
115
- yard (0.7.5)
116
102
 
117
103
  PLATFORMS
118
104
  ruby
119
105
 
120
106
  DEPENDENCIES
121
- awesome_print
122
- devise (>= 2.1.0.rc)
107
+ devise (~> 2.1)
123
108
  devise-encryptable!
124
109
  minitest
125
- mocha
126
- pry
127
- pry-doc
128
- pry-nav
110
+ mocha (~> 0.13.3)
129
111
  rails (= 3.1.4)
130
112
  sqlite3
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Encryptable
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -1,3 +1,7 @@
1
1
  development:
2
- adapter: 'sqlite3'
3
- database: 'db/development.sqlite'
2
+ adapter: sqlite3
3
+ database: ":memory:"
4
+
5
+ test:
6
+ adapter: sqlite3
7
+ database: ":memory:"
data/test/test_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ ENV["RAILS_ENV"] = "test"
1
2
  require "devise"
2
3
  require "active_support/core_ext/module/attribute_accessors"
3
4
 
@@ -6,7 +7,7 @@ require "devise/encryptable/encryptable"
6
7
  require "minitest/autorun"
7
8
  require "minitest/unit"
8
9
 
9
- require "mocha"
10
+ require "mocha/setup"
10
11
 
11
12
  require "rails_app/config/environment"
12
13
 
@@ -17,4 +18,4 @@ require 'support/swappers'
17
18
  ActiveRecord::Migration.verbose = false
18
19
  ActiveRecord::Base.logger = Logger.new(nil)
19
20
 
20
- ActiveRecord::Migrator.migrate(File.expand_path("test/rails_app/db/migrate"))
21
+ ActiveRecord::Migrator.migrate(File.expand_path("test/rails_app/db/migrate"))
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-encryptable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Carlos Antonio da Silva
@@ -11,24 +10,22 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2012-05-09 00:00:00.000000000 Z
13
+ date: 2013-05-07 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: devise
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - '>='
22
20
  - !ruby/object:Gem::Version
23
- version: 2.1.0.rc
21
+ version: 2.1.0
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ! '>='
26
+ - - '>='
30
27
  - !ruby/object:Gem::Version
31
- version: 2.1.0.rc
28
+ version: 2.1.0
32
29
  description: Encryption solution for salted-encryptors on Devise
33
30
  email: contact@plataformatec.com.br
34
31
  executables: []
@@ -60,6 +57,7 @@ files:
60
57
  - test/devise/encryptable/encryptors_test.rb
61
58
  - test/rails_app/.gitignore
62
59
  - test/rails_app/Rakefile
60
+ - test/rails_app/app/controllers/application_controller.rb
63
61
  - test/rails_app/app/models/.gitkeep
64
62
  - test/rails_app/app/models/admin.rb
65
63
  - test/rails_app/app/models/user.rb
@@ -77,41 +75,35 @@ files:
77
75
  - test/support/factories.rb
78
76
  - test/support/swappers.rb
79
77
  - test/test_helper.rb
80
- homepage: http://github.com/plataformatec/devise_encryptable
78
+ homepage: http://github.com/plataformatec/devise-encryptable
81
79
  licenses: []
80
+ metadata: {}
82
81
  post_install_message:
83
82
  rdoc_options: []
84
83
  require_paths:
85
84
  - lib
86
85
  required_ruby_version: !ruby/object:Gem::Requirement
87
- none: false
88
86
  requirements:
89
- - - ! '>='
87
+ - - '>='
90
88
  - !ruby/object:Gem::Version
91
89
  version: '0'
92
- segments:
93
- - 0
94
- hash: -4589347329383548179
95
90
  required_rubygems_version: !ruby/object:Gem::Requirement
96
- none: false
97
91
  requirements:
98
- - - ! '>='
92
+ - - '>='
99
93
  - !ruby/object:Gem::Version
100
94
  version: '0'
101
- segments:
102
- - 0
103
- hash: -4589347329383548179
104
95
  requirements: []
105
96
  rubyforge_project:
106
- rubygems_version: 1.8.23
97
+ rubygems_version: 2.0.3
107
98
  signing_key:
108
- specification_version: 3
99
+ specification_version: 4
109
100
  summary: Encryption solution for salted-encryptors on Devise
110
101
  test_files:
111
102
  - test/devise/encryptable/encryptable_test.rb
112
103
  - test/devise/encryptable/encryptors_test.rb
113
104
  - test/rails_app/.gitignore
114
105
  - test/rails_app/Rakefile
106
+ - test/rails_app/app/controllers/application_controller.rb
115
107
  - test/rails_app/app/models/.gitkeep
116
108
  - test/rails_app/app/models/admin.rb
117
109
  - test/rails_app/app/models/user.rb
@@ -129,4 +121,3 @@ test_files:
129
121
  - test/support/factories.rb
130
122
  - test/support/swappers.rb
131
123
  - test/test_helper.rb
132
- has_rdoc: