devise-encryptable 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/.gitignore +17 -0
  2. data/.travis.yml +9 -0
  3. data/Changelog.md +4 -0
  4. data/Gemfile +16 -0
  5. data/Gemfile.lock +134 -0
  6. data/LICENSE +201 -0
  7. data/README.md +43 -0
  8. data/Rakefile +11 -0
  9. data/devise-encryptable.gemspec +19 -0
  10. data/gemfiles/Gemfile.rails-3.1.x +15 -0
  11. data/gemfiles/Gemfile.rails-3.1.x.lock +136 -0
  12. data/lib/devise-encryptable.rb +1 -0
  13. data/lib/devise/encryptable/encryptable.rb +28 -0
  14. data/lib/devise/encryptable/encryptors/authlogic_sha512.rb +21 -0
  15. data/lib/devise/encryptable/encryptors/base.rb +26 -0
  16. data/lib/devise/encryptable/encryptors/clearance_sha1.rb +19 -0
  17. data/lib/devise/encryptable/encryptors/restful_authentication_sha1.rb +24 -0
  18. data/lib/devise/encryptable/encryptors/sha1.rb +27 -0
  19. data/lib/devise/encryptable/encryptors/sha512.rb +27 -0
  20. data/lib/devise/encryptable/model.rb +86 -0
  21. data/lib/devise/encryptable/version.rb +5 -0
  22. data/test/devise/encryptable/encryptable_test.rb +65 -0
  23. data/test/devise/encryptable/encryptors_test.rb +32 -0
  24. data/test/rails_app/.gitignore +15 -0
  25. data/test/rails_app/Rakefile +7 -0
  26. data/test/rails_app/app/models/.gitkeep +0 -0
  27. data/test/rails_app/app/models/admin.rb +5 -0
  28. data/test/rails_app/app/models/user.rb +5 -0
  29. data/test/rails_app/config.ru +4 -0
  30. data/test/rails_app/config/application.rb +59 -0
  31. data/test/rails_app/config/boot.rb +6 -0
  32. data/test/rails_app/config/database.yml +3 -0
  33. data/test/rails_app/config/environment.rb +5 -0
  34. data/test/rails_app/config/environments/development.rb +37 -0
  35. data/test/rails_app/config/environments/production.rb +67 -0
  36. data/test/rails_app/config/environments/test.rb +37 -0
  37. data/test/rails_app/config/initializers/devise.rb +14 -0
  38. data/test/rails_app/db/migrate/20120508165529_create_tables.rb +77 -0
  39. data/test/support/assertions.rb +14 -0
  40. data/test/support/factories.rb +22 -0
  41. data/test/support/swappers.rb +28 -0
  42. data/test/test_helper.rb +21 -0
  43. metadata +126 -0
@@ -0,0 +1,21 @@
1
+ require "rubygems"
2
+ require "bundler/setup"
3
+ Bundler.require(:default)
4
+
5
+ require "devise/encryptable/encryptable"
6
+
7
+ require "minitest/autorun"
8
+ require "minitest/unit"
9
+
10
+ require "mocha"
11
+
12
+ require "rails_app/config/environment"
13
+
14
+ require 'support/assertions'
15
+ require 'support/factories'
16
+ require 'support/swappers'
17
+
18
+ ActiveRecord::Migration.verbose = false
19
+ ActiveRecord::Base.logger = Logger.new(nil)
20
+
21
+ ActiveRecord::Migrator.migrate(File.expand_path("test/rails_app/db/migrate"))
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: devise-encryptable
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Carlos Antonio da Silva
9
+ - José Valim
10
+ - Rodrigo Flores
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+ date: 2012-05-09 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: devise
18
+ requirement: !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: '2.1'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ~>
30
+ - !ruby/object:Gem::Version
31
+ version: '2.1'
32
+ description: Encryption solution for salted-encryptors on Devise
33
+ email: contact@plataformatec.com.br
34
+ executables: []
35
+ extensions: []
36
+ extra_rdoc_files: []
37
+ files:
38
+ - .gitignore
39
+ - .travis.yml
40
+ - Changelog.md
41
+ - Gemfile
42
+ - Gemfile.lock
43
+ - LICENSE
44
+ - README.md
45
+ - Rakefile
46
+ - devise-encryptable.gemspec
47
+ - gemfiles/Gemfile.rails-3.1.x
48
+ - gemfiles/Gemfile.rails-3.1.x.lock
49
+ - lib/devise-encryptable.rb
50
+ - lib/devise/encryptable/encryptable.rb
51
+ - lib/devise/encryptable/encryptors/authlogic_sha512.rb
52
+ - lib/devise/encryptable/encryptors/base.rb
53
+ - lib/devise/encryptable/encryptors/clearance_sha1.rb
54
+ - lib/devise/encryptable/encryptors/restful_authentication_sha1.rb
55
+ - lib/devise/encryptable/encryptors/sha1.rb
56
+ - lib/devise/encryptable/encryptors/sha512.rb
57
+ - lib/devise/encryptable/model.rb
58
+ - lib/devise/encryptable/version.rb
59
+ - test/devise/encryptable/encryptable_test.rb
60
+ - test/devise/encryptable/encryptors_test.rb
61
+ - test/rails_app/.gitignore
62
+ - test/rails_app/Rakefile
63
+ - test/rails_app/app/models/.gitkeep
64
+ - test/rails_app/app/models/admin.rb
65
+ - test/rails_app/app/models/user.rb
66
+ - test/rails_app/config.ru
67
+ - test/rails_app/config/application.rb
68
+ - test/rails_app/config/boot.rb
69
+ - test/rails_app/config/database.yml
70
+ - test/rails_app/config/environment.rb
71
+ - test/rails_app/config/environments/development.rb
72
+ - test/rails_app/config/environments/production.rb
73
+ - test/rails_app/config/environments/test.rb
74
+ - test/rails_app/config/initializers/devise.rb
75
+ - test/rails_app/db/migrate/20120508165529_create_tables.rb
76
+ - test/support/assertions.rb
77
+ - test/support/factories.rb
78
+ - test/support/swappers.rb
79
+ - test/test_helper.rb
80
+ homepage: http://github.com/plataformatec/devise_encryptable
81
+ licenses: []
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubyforge_project:
100
+ rubygems_version: 1.8.23
101
+ signing_key:
102
+ specification_version: 3
103
+ summary: Encryption solution for salted-encryptors on Devise
104
+ test_files:
105
+ - test/devise/encryptable/encryptable_test.rb
106
+ - test/devise/encryptable/encryptors_test.rb
107
+ - test/rails_app/.gitignore
108
+ - test/rails_app/Rakefile
109
+ - test/rails_app/app/models/.gitkeep
110
+ - test/rails_app/app/models/admin.rb
111
+ - test/rails_app/app/models/user.rb
112
+ - test/rails_app/config.ru
113
+ - test/rails_app/config/application.rb
114
+ - test/rails_app/config/boot.rb
115
+ - test/rails_app/config/database.yml
116
+ - test/rails_app/config/environment.rb
117
+ - test/rails_app/config/environments/development.rb
118
+ - test/rails_app/config/environments/production.rb
119
+ - test/rails_app/config/environments/test.rb
120
+ - test/rails_app/config/initializers/devise.rb
121
+ - test/rails_app/db/migrate/20120508165529_create_tables.rb
122
+ - test/support/assertions.rb
123
+ - test/support/factories.rb
124
+ - test/support/swappers.rb
125
+ - test/test_helper.rb
126
+ has_rdoc: