ecm_contact2 5.1.0 → 5.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/config/locales/de.yml +1 -0
  3. data/config/locales/en.yml +1 -0
  4. data/lib/ecm/contact/version.rb +1 -1
  5. data/spec/dummy/Rakefile +6 -0
  6. data/spec/dummy/app/assets/config/manifest.js +5 -0
  7. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  8. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  9. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  10. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  11. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  12. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  13. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  14. data/spec/dummy/app/jobs/application_job.rb +2 -0
  15. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  16. data/spec/dummy/app/models/application_record.rb +3 -0
  17. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  18. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  19. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  20. data/spec/dummy/bin/bundle +3 -0
  21. data/spec/dummy/bin/rails +4 -0
  22. data/spec/dummy/bin/rake +4 -0
  23. data/spec/dummy/bin/setup +38 -0
  24. data/spec/dummy/bin/update +29 -0
  25. data/spec/dummy/bin/yarn +11 -0
  26. data/spec/dummy/config.ru +5 -0
  27. data/spec/dummy/config/application.rb +26 -0
  28. data/spec/dummy/config/boot.rb +5 -0
  29. data/spec/dummy/config/cable.yml +10 -0
  30. data/spec/dummy/config/database.yml +25 -0
  31. data/spec/dummy/config/environment.rb +5 -0
  32. data/spec/dummy/config/environments/development.rb +54 -0
  33. data/spec/dummy/config/environments/production.rb +91 -0
  34. data/spec/dummy/config/environments/test.rb +42 -0
  35. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  36. data/spec/dummy/config/initializers/assets.rb +14 -0
  37. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  39. data/spec/dummy/config/initializers/ecm_contact.rb +83 -0
  40. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  41. data/spec/dummy/config/initializers/inflections.rb +16 -0
  42. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  43. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  44. data/spec/dummy/config/locales/en.yml +33 -0
  45. data/spec/dummy/config/puma.rb +56 -0
  46. data/spec/dummy/config/routes.rb +3 -0
  47. data/spec/dummy/config/secrets.yml +32 -0
  48. data/spec/dummy/config/spring.rb +6 -0
  49. data/spec/dummy/db/development.sqlite3 +0 -0
  50. data/spec/dummy/db/migrate/20170813150718_create_ecm_contact_contact_requests.ecm_contact.rb +16 -0
  51. data/spec/dummy/db/schema.rb +27 -0
  52. data/spec/dummy/db/test.sqlite3 +0 -0
  53. data/spec/dummy/log/development.log +193 -0
  54. data/spec/dummy/log/test.log +2482 -0
  55. data/spec/dummy/package.json +5 -0
  56. data/spec/dummy/public/404.html +67 -0
  57. data/spec/dummy/public/422.html +67 -0
  58. data/spec/dummy/public/500.html +66 -0
  59. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  60. data/spec/dummy/public/apple-touch-icon.png +0 -0
  61. data/spec/dummy/public/favicon.ico +0 -0
  62. data/spec/factories/ecm_contact_contact_requests.rb +10 -0
  63. data/spec/fixtures/ecm/contact/contact_request_mailer/notify +3 -0
  64. data/spec/jobs/ecm/contact/notify_new_contact_request_job_spec.rb +22 -0
  65. data/spec/mailers/ecm/contact/contact_request_mailer_spec.rb +24 -0
  66. data/spec/mailers/previews/ecm/contact/contact_request_mailer_preview.rb +11 -0
  67. data/spec/models/ecm/contact/contact_request_spec.rb +48 -0
  68. data/spec/models/generic_spec.rb +34 -0
  69. data/spec/rails_helper.rb +58 -0
  70. data/spec/spec_helper.rb +96 -0
  71. data/spec/support/action_mailer.rb +13 -0
  72. data/spec/support/active_job.rb +9 -0
  73. data/spec/support/factory_girl.rb +9 -0
  74. data/spec/support/shoulda_matchers.rb +8 -0
  75. metadata +72 -3
  76. data/app/views/de.yml +0 -47
@@ -0,0 +1,13 @@
1
+ module MailerHelpers
2
+ def emails
3
+ ActionMailer::Base.deliveries
4
+ end
5
+
6
+ def last_email
7
+ emails.last
8
+ end
9
+ end
10
+
11
+ RSpec.configure do |config|
12
+ config.include MailerHelpers, type: :mailer
13
+ end
@@ -0,0 +1,9 @@
1
+ RSpec.configure do |config|
2
+ config.include ActiveJob::TestHelper
3
+
4
+ config.before(:each) do
5
+ clear_enqueued_jobs
6
+ end
7
+ end
8
+
9
+ ActiveJob::Base.queue_adapter = :test
@@ -0,0 +1,9 @@
1
+ require 'factory_girl'
2
+
3
+ RSpec.configure do |config|
4
+ config.include FactoryGirl::Syntax::Methods
5
+
6
+ config.before(:suite) do
7
+ FactoryGirl.find_definitions
8
+ end
9
+ end
@@ -0,0 +1,8 @@
1
+ require 'shoulda-matchers'
2
+
3
+ Shoulda::Matchers.configure do |config|
4
+ config.integrate do |with|
5
+ with.test_framework :rspec
6
+ with.library :rails
7
+ end
8
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_contact2
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-15 00:00:00.000000000 Z
11
+ date: 2018-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -216,7 +216,6 @@ files:
216
216
  - app/mailers/ecm/contact/contact_request_mailer.rb
217
217
  - app/models/ecm/contact/application_record.rb
218
218
  - app/models/ecm/contact/contact_request.rb
219
- - app/views/de.yml
220
219
  - app/views/ecm/contact/contact_request_mailer/notify.html.haml
221
220
  - app/views/ecm/contact/contact_request_mailer/notify.text.erb
222
221
  - app/views/ecm/contact/contact_requests/_form.haml
@@ -237,6 +236,76 @@ files:
237
236
  - lib/generators/ecm/contact/install/templates/initializer.rb
238
237
  - lib/generators/ecm/contact/install/templates/routes.source
239
238
  - lib/tasks/ecm_contact_tasks.rake
239
+ - spec/dummy/Rakefile
240
+ - spec/dummy/app/assets/config/manifest.js
241
+ - spec/dummy/app/assets/javascripts/application.js
242
+ - spec/dummy/app/assets/javascripts/cable.js
243
+ - spec/dummy/app/assets/stylesheets/application.css
244
+ - spec/dummy/app/channels/application_cable/channel.rb
245
+ - spec/dummy/app/channels/application_cable/connection.rb
246
+ - spec/dummy/app/controllers/application_controller.rb
247
+ - spec/dummy/app/helpers/application_helper.rb
248
+ - spec/dummy/app/jobs/application_job.rb
249
+ - spec/dummy/app/mailers/application_mailer.rb
250
+ - spec/dummy/app/models/application_record.rb
251
+ - spec/dummy/app/views/layouts/application.html.erb
252
+ - spec/dummy/app/views/layouts/mailer.html.erb
253
+ - spec/dummy/app/views/layouts/mailer.text.erb
254
+ - spec/dummy/bin/bundle
255
+ - spec/dummy/bin/rails
256
+ - spec/dummy/bin/rake
257
+ - spec/dummy/bin/setup
258
+ - spec/dummy/bin/update
259
+ - spec/dummy/bin/yarn
260
+ - spec/dummy/config.ru
261
+ - spec/dummy/config/application.rb
262
+ - spec/dummy/config/boot.rb
263
+ - spec/dummy/config/cable.yml
264
+ - spec/dummy/config/database.yml
265
+ - spec/dummy/config/environment.rb
266
+ - spec/dummy/config/environments/development.rb
267
+ - spec/dummy/config/environments/production.rb
268
+ - spec/dummy/config/environments/test.rb
269
+ - spec/dummy/config/initializers/application_controller_renderer.rb
270
+ - spec/dummy/config/initializers/assets.rb
271
+ - spec/dummy/config/initializers/backtrace_silencers.rb
272
+ - spec/dummy/config/initializers/cookies_serializer.rb
273
+ - spec/dummy/config/initializers/ecm_contact.rb
274
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
275
+ - spec/dummy/config/initializers/inflections.rb
276
+ - spec/dummy/config/initializers/mime_types.rb
277
+ - spec/dummy/config/initializers/wrap_parameters.rb
278
+ - spec/dummy/config/locales/en.yml
279
+ - spec/dummy/config/puma.rb
280
+ - spec/dummy/config/routes.rb
281
+ - spec/dummy/config/secrets.yml
282
+ - spec/dummy/config/spring.rb
283
+ - spec/dummy/db/development.sqlite3
284
+ - spec/dummy/db/migrate/20170813150718_create_ecm_contact_contact_requests.ecm_contact.rb
285
+ - spec/dummy/db/schema.rb
286
+ - spec/dummy/db/test.sqlite3
287
+ - spec/dummy/log/development.log
288
+ - spec/dummy/log/test.log
289
+ - spec/dummy/package.json
290
+ - spec/dummy/public/404.html
291
+ - spec/dummy/public/422.html
292
+ - spec/dummy/public/500.html
293
+ - spec/dummy/public/apple-touch-icon-precomposed.png
294
+ - spec/dummy/public/apple-touch-icon.png
295
+ - spec/dummy/public/favicon.ico
296
+ - spec/factories/ecm_contact_contact_requests.rb
297
+ - spec/fixtures/ecm/contact/contact_request_mailer/notify
298
+ - spec/jobs/ecm/contact/notify_new_contact_request_job_spec.rb
299
+ - spec/mailers/ecm/contact/contact_request_mailer_spec.rb
300
+ - spec/mailers/previews/ecm/contact/contact_request_mailer_preview.rb
301
+ - spec/models/ecm/contact/contact_request_spec.rb
302
+ - spec/models/generic_spec.rb
303
+ - spec/rails_helper.rb
304
+ - spec/spec_helper.rb
305
+ - spec/support/action_mailer.rb
306
+ - spec/support/active_job.rb
307
+ - spec/support/factory_girl.rb
308
+ - spec/support/shoulda_matchers.rb
240
309
  homepage: https://github.com/robotex82/ecm_contact2
241
310
  licenses:
242
311
  - MIT
@@ -1,47 +0,0 @@
1
- de:
2
- ecm:
3
- contact:
4
- form:
5
- messages:
6
- delivered: "Ihre Kontaktanfrage wurde versandt."
7
- contact_request:
8
- index:
9
- page_title: Kontaktanfrage
10
- meta_description: Kontaktieren Sie uns über unser Kontaktformular
11
- title: Kontaktanfrage
12
- contact_requests:
13
- form:
14
- submit: Abschicken
15
- request:
16
- subject: "[%{application_name}] Neue Kontaktanfrage"
17
- views:
18
- actions:
19
- back: 'Zurück'
20
- routes:
21
- ecm_contact_engine: kontakt
22
- # ecm_contact: kontakt
23
- contact_requests: anfrage
24
- simple_form:
25
- "yes": 'Ja'
26
- "no": 'Nein'
27
- required:
28
- text: 'Pflichtfeld'
29
- mark: '*'
30
- placeholders:
31
- contact_request:
32
- name: "Max Mustermann"
33
- email: "max.mustermann@example.com"
34
- message: "Hi Dave..."
35
- phone: "+49 69 12345678"
36
- mail_form:
37
- models:
38
- ecm/contact/contact_request: Kontaktanfrage
39
- attributes:
40
- ecm/contact/contact_request:
41
- email: E-Mail
42
- name: Name
43
- message: Nachricht
44
- phone: Telefon
45
- accept_terms_of_service: Hiermit erlaube ich dem Seitenbetreiber die Nutzung meiner Daten zwecks Beantwortung dieser Kontaktanfrage.
46
- contact_request:
47
- title: "Kontaktanfrage"