mac_generators 0.2.1 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +5 -5
  2. data/Rakefile +12 -16
  3. data/lib/generators/authentication/email/email_generator.rb +62 -63
  4. data/lib/generators/authentication/email/templates/create_identities.rb +1 -2
  5. data/lib/generators/authentication/email/templates/database_authentication.rb +2 -0
  6. data/lib/generators/authentication/email/templates/identities_controller.rb +4 -2
  7. data/lib/generators/authentication/email/templates/identity.rb +2 -0
  8. data/lib/generators/authentication/email/templates/sessions_controller.rb +2 -0
  9. data/lib/generators/authentication/email/templates/warden.rb +3 -1
  10. data/lib/generators/authentication/omniauth/omniauth_generator.rb +69 -68
  11. data/lib/generators/authentication/omniauth/templates/authentication_domain.rb +1 -1
  12. data/lib/generators/authentication/omniauth/templates/create_identities.rb +1 -1
  13. data/lib/generators/bootstrap/bootstrap_generator.rb +13 -13
  14. data/lib/mac_generators/version.rb +1 -1
  15. data/test/dummy/Rakefile +1 -1
  16. data/test/dummy/app/assets/config/manifest.js +3 -0
  17. data/test/dummy/app/controllers/application_controller.rb +4 -4
  18. data/test/dummy/config.ru +1 -1
  19. data/test/dummy/config/application.rb +3 -4
  20. data/test/dummy/config/boot.rb +4 -4
  21. data/test/dummy/config/environment.rb +1 -1
  22. data/test/dummy/config/environments/development.rb +1 -1
  23. data/test/dummy/config/environments/production.rb +2 -2
  24. data/test/dummy/config/environments/test.rb +1 -1
  25. data/test/dummy/config/initializers/secret_token.rb +1 -1
  26. data/test/dummy/config/initializers/session_store.rb +1 -1
  27. data/test/dummy/config/routes.rb +3 -3
  28. data/test/dummy/log/test.log +2981 -0
  29. data/test/dummy/script/rails +3 -3
  30. data/test/dummy/tmp/Gemfile +2 -2
  31. data/test/dummy/tmp/app/controllers/application_controller.rb +17 -16
  32. data/test/dummy/tmp/config/initializers/authentication_domain.rb +1 -1
  33. data/test/dummy/tmp/config/routes.rb +2 -2
  34. data/test/dummy/tmp/db/migrate/create_identities.rb +1 -1
  35. data/test/generators/authentication_email_generator_test.rb +64 -66
  36. data/test/generators/authentication_omniauth_generator_test.rb +46 -46
  37. data/test/support/generators_test_helper.rb +4 -4
  38. data/test/test_helper.rb +2 -24
  39. metadata +39 -54
  40. data/test/dummy/db/development.sqlite3 +0 -0
  41. data/test/dummy/db/test.sqlite3 +0 -0
@@ -1,35 +1,13 @@
1
1
  # Configure Rails Environment
2
2
  ENV["RAILS_ENV"] = "test"
3
3
 
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
5
  require "rails/test_help"
6
- require "minitest/rails"
7
- require "minitest/focus"
8
- #require "minitest/colorize"
9
-
10
- Rails.backtrace_cleaner.remove_silencers!
11
6
 
12
7
  # Load support files
13
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
14
9
 
15
10
  # Load fixtures from the engine
16
11
  if ActiveSupport::TestCase.method_defined?(:fixture_path=)
17
12
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
18
13
  end
19
-
20
- require 'rails/generators/test_case'
21
- class Rails::Generators::TestCase
22
- register_spec_type(self) do |desc|
23
- Class === desc && desc < Rails::Generators::Base
24
- end
25
-
26
- register_spec_type(/Generator( ?Test)?\z/i, self)
27
-
28
- def self.determine_default_generator(name)
29
- generator = determine_constant_from_test_name(name) do |constant|
30
- Class === constant && constant < Rails::Generators::Base
31
- end
32
- raise NameError.new("Unable to resolve generator for #{name}") if generator.nil?
33
- generator
34
- end
35
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mac_generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario A Chavez
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-29 00:00:00.000000000 Z
11
+ date: 2020-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,30 +16,16 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
19
+ version: 6.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.0
26
+ version: 6.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: minitest-rails
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: pry-rails
28
+ name: standardrb
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
@@ -95,6 +81,7 @@ files:
95
81
  - lib/tasks/mac_generators_tasks.rake
96
82
  - test/dummy/README.rdoc
97
83
  - test/dummy/Rakefile
84
+ - test/dummy/app/assets/config/manifest.js
98
85
  - test/dummy/app/assets/javascripts/application.js
99
86
  - test/dummy/app/assets/stylesheets/application.css
100
87
  - test/dummy/app/controllers/application_controller.rb
@@ -117,8 +104,7 @@ files:
117
104
  - test/dummy/config/initializers/wrap_parameters.rb
118
105
  - test/dummy/config/locales/en.yml
119
106
  - test/dummy/config/routes.rb
120
- - test/dummy/db/development.sqlite3
121
- - test/dummy/db/test.sqlite3
107
+ - test/dummy/log/test.log
122
108
  - test/dummy/public/404.html
123
109
  - test/dummy/public/422.html
124
110
  - test/dummy/public/500.html
@@ -143,10 +129,10 @@ files:
143
129
  - test/generators/authentication_omniauth_generator_test.rb
144
130
  - test/support/generators_test_helper.rb
145
131
  - test/test_helper.rb
146
- homepage: http://mario-chavez.decisionesinteligentes.com
132
+ homepage: https://mariochavez.io
147
133
  licenses: []
148
134
  metadata: {}
149
- post_install_message:
135
+ post_install_message:
150
136
  rdoc_options: []
151
137
  require_paths:
152
138
  - lib
@@ -161,59 +147,58 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
147
  - !ruby/object:Gem::Version
162
148
  version: '0'
163
149
  requirements: []
164
- rubyforge_project:
165
- rubygems_version: 2.4.5
166
- signing_key:
150
+ rubygems_version: 3.1.2
151
+ signing_key:
167
152
  specification_version: 4
168
153
  summary: Custom generators.
169
154
  test_files:
155
+ - test/dummy/app/controllers/application_controller.rb
156
+ - test/dummy/app/views/layouts/application.html.erb
157
+ - test/dummy/app/assets/config/manifest.js
170
158
  - test/dummy/app/assets/javascripts/application.js
171
159
  - test/dummy/app/assets/stylesheets/application.css
172
- - test/dummy/app/controllers/application_controller.rb
173
160
  - test/dummy/app/helpers/application_helper.rb
174
- - test/dummy/app/views/layouts/application.html.erb
175
- - test/dummy/config/application.rb
176
- - test/dummy/config/boot.rb
177
- - test/dummy/config/database.yml
178
- - test/dummy/config/environment.rb
179
- - test/dummy/config/environments/development.rb
161
+ - test/dummy/config/routes.rb
162
+ - test/dummy/config/locales/en.yml
180
163
  - test/dummy/config/environments/production.rb
164
+ - test/dummy/config/environments/development.rb
181
165
  - test/dummy/config/environments/test.rb
166
+ - test/dummy/config/environment.rb
167
+ - test/dummy/config/application.rb
168
+ - test/dummy/config/database.yml
169
+ - test/dummy/config/boot.rb
182
170
  - test/dummy/config/initializers/backtrace_silencers.rb
183
- - test/dummy/config/initializers/inflections.rb
184
- - test/dummy/config/initializers/locale.rb
185
171
  - test/dummy/config/initializers/mime_types.rb
186
- - test/dummy/config/initializers/secret_token.rb
187
172
  - test/dummy/config/initializers/session_store.rb
188
173
  - test/dummy/config/initializers/wrap_parameters.rb
189
- - test/dummy/config/locales/en.yml
190
- - test/dummy/config/routes.rb
174
+ - test/dummy/config/initializers/locale.rb
175
+ - test/dummy/config/initializers/secret_token.rb
176
+ - test/dummy/config/initializers/inflections.rb
191
177
  - test/dummy/config.ru
192
- - test/dummy/db/development.sqlite3
193
- - test/dummy/db/test.sqlite3
194
- - test/dummy/public/404.html
178
+ - test/dummy/script/rails
179
+ - test/dummy/Rakefile
180
+ - test/dummy/public/favicon.ico
195
181
  - test/dummy/public/422.html
196
182
  - test/dummy/public/500.html
197
- - test/dummy/public/favicon.ico
198
- - test/dummy/Rakefile
199
- - test/dummy/README.rdoc
200
- - test/dummy/script/rails
183
+ - test/dummy/public/404.html
184
+ - test/dummy/log/test.log
185
+ - test/dummy/tmp/app/models/identity.rb
201
186
  - test/dummy/tmp/app/controllers/application_controller.rb
202
187
  - test/dummy/tmp/app/controllers/sessions_controller.rb
203
- - test/dummy/tmp/app/models/identity.rb
188
+ - test/dummy/tmp/config/routes.rb
189
+ - test/dummy/tmp/config/locales/en.yml
190
+ - test/dummy/tmp/config/initializers/warden.rb
204
191
  - test/dummy/tmp/config/initializers/authentication_domain.rb
205
192
  - test/dummy/tmp/config/initializers/omniauth.rb
206
- - test/dummy/tmp/config/initializers/warden.rb
207
- - test/dummy/tmp/config/locales/en.yml
208
- - test/dummy/tmp/config/routes.rb
193
+ - test/dummy/tmp/lib/strategies/oauth_authentication.rb
209
194
  - test/dummy/tmp/db/migrate/create_identities.rb
210
195
  - test/dummy/tmp/Gemfile
211
- - test/dummy/tmp/lib/strategies/oauth_authentication.rb
196
+ - test/dummy/README.rdoc
197
+ - test/support/generators_test_helper.rb
212
198
  - test/fixtures/application_controller.rb
199
+ - test/fixtures/routes.rb
213
200
  - test/fixtures/en.yml
214
201
  - test/fixtures/Gemfile
215
- - test/fixtures/routes.rb
202
+ - test/test_helper.rb
216
203
  - test/generators/authentication_email_generator_test.rb
217
204
  - test/generators/authentication_omniauth_generator_test.rb
218
- - test/support/generators_test_helper.rb
219
- - test/test_helper.rb
File without changes
File without changes