devise_imprintable 0.0.2

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.
Files changed (49) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +22 -0
  3. data/LICENSE +22 -0
  4. data/README.md +54 -0
  5. data/Rakefile +16 -0
  6. data/devise_imprintable.gemspec +29 -0
  7. data/lib/devise_imprintable/hook.rb +5 -0
  8. data/lib/devise_imprintable/model.rb +12 -0
  9. data/lib/devise_imprintable/version.rb +3 -0
  10. data/lib/devise_imprintable.rb +14 -0
  11. data/lib/generators/active_record/devise_imprintable_generator.rb +13 -0
  12. data/lib/generators/active_record/templates/migration.rb +14 -0
  13. data/lib/generators/devise_imprintable/devise_imprintable_generator.rb +17 -0
  14. data/test/integration/inventable_test.rb +34 -0
  15. data/test/integration_tests_helper.rb +51 -0
  16. data/test/orm/active_record.rb +4 -0
  17. data/test/rails_app/Rakefile +7 -0
  18. data/test/rails_app/app/controllers/application_controller.rb +3 -0
  19. data/test/rails_app/app/controllers/home_controller.rb +4 -0
  20. data/test/rails_app/app/controllers/users_controller.rb +12 -0
  21. data/test/rails_app/app/helpers/application_helper.rb +2 -0
  22. data/test/rails_app/app/models/user.rb +32 -0
  23. data/test/rails_app/app/views/home/index.html.erb +0 -0
  24. data/test/rails_app/app/views/layouts/application.html.erb +16 -0
  25. data/test/rails_app/app/views/users/invitations/new.html.erb +15 -0
  26. data/test/rails_app/config/application.rb +23 -0
  27. data/test/rails_app/config/boot.rb +11 -0
  28. data/test/rails_app/config/database.yml +22 -0
  29. data/test/rails_app/config/environment.rb +5 -0
  30. data/test/rails_app/config/environments/development.rb +25 -0
  31. data/test/rails_app/config/environments/production.rb +49 -0
  32. data/test/rails_app/config/environments/test.rb +35 -0
  33. data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/rails_app/config/initializers/devise.rb +207 -0
  35. data/test/rails_app/config/initializers/inflections.rb +10 -0
  36. data/test/rails_app/config/initializers/mime_types.rb +5 -0
  37. data/test/rails_app/config/initializers/secret_token.rb +7 -0
  38. data/test/rails_app/config/initializers/session_store.rb +8 -0
  39. data/test/rails_app/config/initializers/wrap_parameters.rb +14 -0
  40. data/test/rails_app/config/locales/devise.en.yml +57 -0
  41. data/test/rails_app/config/locales/en.yml +14 -0
  42. data/test/rails_app/config/mongoid.yml +10 -0
  43. data/test/rails_app/config/routes.rb +4 -0
  44. data/test/rails_app/config.ru +4 -0
  45. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +28 -0
  46. data/test/rails_app/log/test.log +1641 -0
  47. data/test/rails_app/script/rails +6 -0
  48. data/test/test_helper.rb +23 -0
  49. metadata +176 -0
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,23 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ DEVISE_ORM = (ENV["DEVISE_ORM"] || :active_record).to_sym
3
+
4
+ $:.unshift File.dirname(__FILE__)
5
+ puts "\n==> Devise.orm = #{DEVISE_ORM.inspect}"
6
+ require "rails_app/config/environment"
7
+ include Devise::TestHelpers
8
+ require "orm/#{DEVISE_ORM}"
9
+ require 'rails/test_help'
10
+ require 'capybara/rails'
11
+
12
+ ActionMailer::Base.delivery_method = :test
13
+ ActionMailer::Base.perform_deliveries = true
14
+ ActionMailer::Base.default_url_options[:host] = 'test.com'
15
+
16
+ ActiveSupport::Deprecation.silenced = true
17
+
18
+ class ActionDispatch::IntegrationTest
19
+ include Capybara::DSL
20
+ end
21
+ class ActionController::TestCase
22
+ include Devise::TestHelpers
23
+ end
metadata ADDED
@@ -0,0 +1,176 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: devise_imprintable
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Sergey Efremov
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-09-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.1.0
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.1.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: railties
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '3.0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: devise
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: 2.1.0
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.1.0
62
+ description: An imprintable strategy for Devise
63
+ email:
64
+ - efremov.sergey@gmail.com
65
+ executables: []
66
+ extensions: []
67
+ extra_rdoc_files: []
68
+ files:
69
+ - .gitignore
70
+ - Gemfile
71
+ - LICENSE
72
+ - README.md
73
+ - Rakefile
74
+ - devise_imprintable.gemspec
75
+ - lib/devise_imprintable.rb
76
+ - lib/devise_imprintable/hook.rb
77
+ - lib/devise_imprintable/model.rb
78
+ - lib/devise_imprintable/version.rb
79
+ - lib/generators/active_record/devise_imprintable_generator.rb
80
+ - lib/generators/active_record/templates/migration.rb
81
+ - lib/generators/devise_imprintable/devise_imprintable_generator.rb
82
+ - test/integration/inventable_test.rb
83
+ - test/integration_tests_helper.rb
84
+ - test/orm/active_record.rb
85
+ - test/rails_app/Rakefile
86
+ - test/rails_app/app/controllers/application_controller.rb
87
+ - test/rails_app/app/controllers/home_controller.rb
88
+ - test/rails_app/app/controllers/users_controller.rb
89
+ - test/rails_app/app/helpers/application_helper.rb
90
+ - test/rails_app/app/models/user.rb
91
+ - test/rails_app/app/views/home/index.html.erb
92
+ - test/rails_app/app/views/layouts/application.html.erb
93
+ - test/rails_app/app/views/users/invitations/new.html.erb
94
+ - test/rails_app/config.ru
95
+ - test/rails_app/config/application.rb
96
+ - test/rails_app/config/boot.rb
97
+ - test/rails_app/config/database.yml
98
+ - test/rails_app/config/environment.rb
99
+ - test/rails_app/config/environments/development.rb
100
+ - test/rails_app/config/environments/production.rb
101
+ - test/rails_app/config/environments/test.rb
102
+ - test/rails_app/config/initializers/backtrace_silencers.rb
103
+ - test/rails_app/config/initializers/devise.rb
104
+ - test/rails_app/config/initializers/inflections.rb
105
+ - test/rails_app/config/initializers/mime_types.rb
106
+ - test/rails_app/config/initializers/secret_token.rb
107
+ - test/rails_app/config/initializers/session_store.rb
108
+ - test/rails_app/config/initializers/wrap_parameters.rb
109
+ - test/rails_app/config/locales/devise.en.yml
110
+ - test/rails_app/config/locales/en.yml
111
+ - test/rails_app/config/mongoid.yml
112
+ - test/rails_app/config/routes.rb
113
+ - test/rails_app/db/migrate/20100401102949_create_tables.rb
114
+ - test/rails_app/log/test.log
115
+ - test/rails_app/script/rails
116
+ - test/test_helper.rb
117
+ homepage: https://github.com/EvilFaeton/devise_imprintable
118
+ licenses: []
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: 1.8.6
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: 1.3.6
135
+ requirements: []
136
+ rubyforge_project:
137
+ rubygems_version: 1.8.24
138
+ signing_key:
139
+ specification_version: 3
140
+ summary: It adds support to devise for track time and ip for first user sign in.
141
+ test_files:
142
+ - test/integration/inventable_test.rb
143
+ - test/integration_tests_helper.rb
144
+ - test/orm/active_record.rb
145
+ - test/rails_app/Rakefile
146
+ - test/rails_app/app/controllers/application_controller.rb
147
+ - test/rails_app/app/controllers/home_controller.rb
148
+ - test/rails_app/app/controllers/users_controller.rb
149
+ - test/rails_app/app/helpers/application_helper.rb
150
+ - test/rails_app/app/models/user.rb
151
+ - test/rails_app/app/views/home/index.html.erb
152
+ - test/rails_app/app/views/layouts/application.html.erb
153
+ - test/rails_app/app/views/users/invitations/new.html.erb
154
+ - test/rails_app/config.ru
155
+ - test/rails_app/config/application.rb
156
+ - test/rails_app/config/boot.rb
157
+ - test/rails_app/config/database.yml
158
+ - test/rails_app/config/environment.rb
159
+ - test/rails_app/config/environments/development.rb
160
+ - test/rails_app/config/environments/production.rb
161
+ - test/rails_app/config/environments/test.rb
162
+ - test/rails_app/config/initializers/backtrace_silencers.rb
163
+ - test/rails_app/config/initializers/devise.rb
164
+ - test/rails_app/config/initializers/inflections.rb
165
+ - test/rails_app/config/initializers/mime_types.rb
166
+ - test/rails_app/config/initializers/secret_token.rb
167
+ - test/rails_app/config/initializers/session_store.rb
168
+ - test/rails_app/config/initializers/wrap_parameters.rb
169
+ - test/rails_app/config/locales/devise.en.yml
170
+ - test/rails_app/config/locales/en.yml
171
+ - test/rails_app/config/mongoid.yml
172
+ - test/rails_app/config/routes.rb
173
+ - test/rails_app/db/migrate/20100401102949_create_tables.rb
174
+ - test/rails_app/log/test.log
175
+ - test/rails_app/script/rails
176
+ - test/test_helper.rb