inline_forms 6.2.2 → 6.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9e19b3d82e6de0df43442bb214a4a86584883559
4
- data.tar.gz: 8a27cd31703bff9ed2ebd766993f5385871c7ebf
2
+ SHA256:
3
+ metadata.gz: f48aa1b89fe880b19beb6d406899df02eee17b8d3e983bf178191d0df55a5b31
4
+ data.tar.gz: 3a809751b43e2c28e2540755d1129e28ef94ae45e8dc58e6b262020e6f184111
5
5
  SHA512:
6
- metadata.gz: 76aac0acc9134eb2c01c56deb8f31126411ceaa3d7dd83d67aeafe65eb89c2252ecadc5188e21089acae582867b74e75df9ed79bf6755d9f6e43d88ff8b0f266
7
- data.tar.gz: a83a88d9941cc3d4d9a8303289088a14ca1e9ced0b4e144d15ece3de6f33dc6a11587711a19c2b2726b053a74040061c9cee6d43ff459d4289ad9efc8fcd7a9e
6
+ metadata.gz: 0df25af0155983aabef89dec1d79beff5847fff623bdde5638d58c36dbf0ac31f03e7a6a1ef21fbd2011692f1784d93ec0e4255e619619200059bcb7556c0a9b
7
+ data.tar.gz: aacb19a78f02779eb3f0c6483d0291414f63d7edb31a88f4d54d3985cc34a95900362060b44c7d30f4ec36a4aef98ec1de23a11255431f09a5633c1577b862d2
@@ -13,5 +13,6 @@
13
13
  <body>
14
14
  <%= yield %>
15
15
  <%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
16
+ <%= javascript_include_tag Ckeditor.cdn_url %>
16
17
  </body>
17
18
  </html>
@@ -16,5 +16,6 @@
16
16
  <%= yield %>
17
17
  </div>
18
18
  <%= javascript_include_tag 'inline_forms/inline_forms', 'data-turbolinks-track' => true %>
19
+ <%= javascript_include_tag Ckeditor.cdn_url %>
19
20
  </body>
20
21
  </html>
@@ -71,18 +71,18 @@ else
71
71
  create_file "config/database.yml", <<-END_DATABASEYML.strip_heredoc
72
72
  development:
73
73
  adapter: mysql2
74
- database: <%= Rails.application.credentials.development[:database] %>
75
- username: <%= Rails.application.credentials.development[:username] %>
76
- password: <%= Rails.application.credentials.development[:password] %>
74
+ database: <%= Rails.application.credentials[:db_name] %>
75
+ username: <%= Rails.application.credentials[:db_username] %>
76
+ password: <%= Rails.application.credentials[:db_password] %>
77
77
  END_DATABASEYML
78
78
 
79
79
  say "- Setting development database in credentials"
80
80
  create_file "temp_development_database_credentials", <<-END_DEV_DB_CRED.strip_heredoc
81
81
 
82
- development:
83
- database: #{app_name.downcase}_dev
84
- username: #{app_name.downcase}_dev_user
85
- password: #{app_name.downcase}_dev_password
82
+ # development database
83
+ db_name: #{app_name.downcase}_dev
84
+ db_username: #{app_name.downcase}_dev_user
85
+ db_password: #{app_name.downcase}_dev_password
86
86
 
87
87
  END_DEV_DB_CRED
88
88
 
@@ -91,9 +91,9 @@ run "EDITOR='cat temp_development_database_credentials >> ' rails credentials:ed
91
91
  remove_file 'temp_development_database_credentials'
92
92
 
93
93
  say "\n *** Please make sure to create a mysql development database with the following credentials:
94
- database: #{app_name.downcase}_dev
95
- username: #{app_name.downcase}_dev_user
96
- password: #{app_name.downcase}_dev_password
94
+ db_name: #{app_name.downcase}_dev
95
+ db_username: #{app_name.downcase}_dev_user
96
+ db_password: #{app_name.downcase}_dev_password
97
97
 
98
98
  or use 'rails credentials:edit' to change these values.\n\n", :red
99
99
 
@@ -101,21 +101,22 @@ end
101
101
  append_file "config/database.yml", <<-END_DATABASEYML.strip_heredoc
102
102
  production:
103
103
  adapter: mysql2
104
- database: <%= Rails.application.credentials.production[:database] %>
105
- username: <%= Rails.application.credentials.production[:username] %>
106
- password: <%= Rails.application.credentials.production[:password] %>
104
+ database: <%= Rails.application.credentials[:db_name] %>
105
+ username: <%= Rails.application.credentials[:db_username] %>
106
+ password: <%= Rails.application.credentials[:db_password] %>
107
107
  END_DATABASEYML
108
108
 
109
109
  say "Setting production database in credentials"
110
110
  create_file "temp_production_database_credentials", <<-END_PROD_DB_CRED.strip_heredoc
111
- production:
112
- database: #{app_name.downcase}_prod
113
- username: #{app_name.downcase}_prod_user
114
- password:
111
+
112
+ # production database
113
+ db_name: #{app_name.downcase}_prod
114
+ db_username: #{app_name.downcase}_prod_user
115
+ db_password:
115
116
 
116
117
  END_PROD_DB_CRED
117
118
 
118
- run "EDITOR='cat temp_production_database_credentials >> ' rails credentials:edit"
119
+ run "EDITOR='cat temp_production_database_credentials >> ' rails credentials:edit --environment production"
119
120
 
120
121
  remove_file 'temp_production_database_credentials'
121
122
 
@@ -323,6 +324,10 @@ copy_file File.join(GENERATOR_PATH, 'lib/generators/templates/application_record
323
324
  say "- Install ckeditor..."
324
325
  generate "ckeditor:install --orm=active_record --backend=carrierwave"
325
326
 
327
+ say "- Add ckeditor/config.js to precompile assets..."
328
+ append_to_file 'config/initializers/assets.rb',
329
+ 'Rails.application.config.assets.precompile += %w[ckeditor/config.js]'
330
+
326
331
  say "- Paper_trail install..."
327
332
  generate "paper_trail:install --with-changes --with-mysql"
328
333
 
@@ -461,34 +466,66 @@ END_ABILITY
461
466
  # devise mailer stuff
462
467
  say "- Injecting devise mailer stuff in environments/production.rb..."
463
468
  # strip_heredoc_with_indent(2) became strip_heredoc(2), but only in rails 4... :-(
464
- insert_into_file "config/environments/production.rb", <<-DEVISE_MAILER_STUFF.strip_heredoc, :before => "end\n"
469
+ insert_into_file "config/environments/production.rb", <<-DEVISE_MAILER_PROD_STUFF.strip_heredoc, :before => "end\n"
465
470
 
466
471
  # for devise
467
- config.action_mailer.default_url_options = { protocol: 'https', host: 'YOURHOSTNAME' }
472
+ config.action_mailer.default_url_options = { protocol: 'https', host: Rails.application.credentials[:smtp_app_host] }
468
473
  config.action_mailer.delivery_method = :smtp
469
474
  config.action_mailer.smtp_settings = {
470
- address: 'YOURMAILSERVER',
475
+ address: Rails.application.credentials[:smtp_host],
471
476
  enable_starttls_auto: true,
472
- password: 'YOURPASSWORD',
473
- user_name: 'YOURUSERNAME'
477
+ password: Rails.application.credentials[:smtp_password] ,
478
+ user_name: Rails.application.credentials[:smtp_username]
474
479
  }
475
480
 
476
- DEVISE_MAILER_STUFF
481
+ DEVISE_MAILER_PROD_STUFF
482
+
483
+ say "Setting production smtp settings in credentials"
484
+ create_file "temp_production_smtp_credentials", <<-END_PROD_SMTP_CRED.strip_heredoc
485
+
486
+ # devise mailer stuff for production:
487
+ smtp_app_host: APP_HOST
488
+ smtp_host: SMTP_HOST
489
+ smtp_username: USERNAME
490
+ smtp_password: PASSWORD
491
+
492
+ END_PROD_SMTP_CRED
493
+
494
+ run "EDITOR='cat temp_production_smtp_credentials >> ' rails credentials:edit --environment production"
495
+
496
+ remove_file 'temp_production_smtp_credentials'
477
497
 
478
498
  say "- Injecting devise mailer stuff in environments/development.rb..."
479
499
  # strip_heredoc_with_indent(2) became strip_heredoc(2), but only in rails 4... :-(
480
- insert_into_file "config/environments/development.rb", <<-DEVISE_MAILER_STUFF.strip_heredoc, :before => "\nend\n"
500
+ insert_into_file "config/environments/development.rb", <<-DEVISE_MAILER_DEV_STUFF.strip_heredoc, :before => "\nend\n"
481
501
  # for devise
482
502
  config.action_mailer.default_url_options = { protocol: 'http', host: 'localhost', port: 3000 }
483
503
  config.action_mailer.delivery_method = :smtp
484
504
  config.action_mailer.smtp_settings = {
485
- address: 'YOURMAILSERVER',
505
+ address: Rails.application.credentials[:smtp_host],
486
506
  enable_starttls_auto: true,
487
- password: 'YOURPASSWORD',
488
- user_name: 'YOURUSERNAME'
507
+ password: Rails.application.credentials[:smtp_password] ,
508
+ user_name: Rails.application.credentials[:smtp_username]
489
509
  }
490
510
 
491
- DEVISE_MAILER_STUFF
511
+ DEVISE_MAILER_DEV_STUFF
512
+
513
+ say "Setting development smtp settings in credentials"
514
+ create_file "temp_development_smtp_credentials", <<-END_DEV_SMTP_CRED.strip_heredoc
515
+
516
+ # devise mailers stuff for development:
517
+ smtp_app_host: APP_HOST
518
+ smtp_host: SMTP_HOST
519
+ smtp_username: USERNAME
520
+ smtp_password: PASSWORD
521
+
522
+ END_DEV_SMTP_CRED
523
+
524
+ run "EDITOR='cat temp_development_smtp_credentials >> ' rails credentials:edit"
525
+
526
+ remove_file 'temp_development_smtp_credentials'
527
+
528
+
492
529
 
493
530
  # capify
494
531
  say "- Capify..."
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "6.2.2"
3
+ VERSION = "6.2.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.2
4
+ version: 6.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares
@@ -10,48 +10,48 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-04-12 00:00:00.000000000 Z
13
+ date: 2021-08-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rvm
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '>='
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  version: '0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: thor
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: validation_hints
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - '>='
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
@@ -72,14 +72,14 @@ dependencies:
72
72
  name: rails-i18n
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  description: Inline Forms aims to ease the setup of forms that provide inline editing.
@@ -93,8 +93,8 @@ executables:
93
93
  extensions: []
94
94
  extra_rdoc_files: []
95
95
  files:
96
- - .document
97
- - .gitignore
96
+ - ".document"
97
+ - ".gitignore"
98
98
  - Gemfile
99
99
  - LICENSE.txt
100
100
  - README.rdoc
@@ -237,17 +237,16 @@ require_paths:
237
237
  - lib
238
238
  required_ruby_version: !ruby/object:Gem::Requirement
239
239
  requirements:
240
- - - '>='
240
+ - - ">="
241
241
  - !ruby/object:Gem::Version
242
242
  version: '0'
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  requirements:
245
- - - '>='
245
+ - - ">="
246
246
  - !ruby/object:Gem::Version
247
247
  version: '0'
248
248
  requirements: []
249
- rubyforge_project: inline_forms
250
- rubygems_version: 2.6.14
249
+ rubygems_version: 3.2.3
251
250
  signing_key:
252
251
  specification_version: 4
253
252
  summary: Inline editing of forms.