inline_forms_installer 7.13.17 → 8.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6200d605a00e7f95a08b3133687e22666b42d9bb0e86e927267997faca06e3df
4
- data.tar.gz: 203cd9b9aae3455ed785815583fb91b4cf52e7ee51b045d7f8a9ec7b366ac8e0
3
+ metadata.gz: dd3c5925a09649543ee457a7150ce972a9369172b2b458c32997fe6e8bcb2c2f
4
+ data.tar.gz: e518a25462d7003a2b40415dbdd60782f87f6fb8b7e26068a4ae223c7ef75131
5
5
  SHA512:
6
- metadata.gz: 3612327a247fc7787c571f11f5b5530c8f418c6f6585fdb05f450ed022bea0ff5de9aabc241e8a757ff4c117792cd4521dc25532342fa79a4f9c6a3e230914a0
7
- data.tar.gz: b19f20b4707c07eb687176ea9d32ba52cb11c1e91397d8599fcd0629f5f49478bf23c730c89fba62b6a7d9be9801ed16db8bd7addd0f999625597e07a710b8c9
6
+ metadata.gz: b2679daccabc402e75e1651946d55f9c04101460d80c881336c618f4d1a4662e38a840c2a397f2da5dbb19f126159a101d40f7bf67e070c3dc8a53e52e36c9ca
7
+ data.tar.gz: ef9c2b32d0d7df9370feece3b35e97bcb842013e5d89a4da83a4cacb950e295d7d513ebd165f9cf25c6d4b2b9af9dbe4f2b5e11efb05acbed5a46e9776eee074
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.executables = ["inline_forms"]
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_dependency("inline_forms", "~> 7")
22
+ s.add_dependency("inline_forms", "~> 8")
23
23
  s.add_dependency("rvm", ">= 1.11", "< 2.0")
24
24
  s.add_dependency("thor", ">= 1.0", "< 2.0")
25
25
  end
@@ -60,14 +60,14 @@ module InlineFormsInstaller
60
60
  end
61
61
 
62
62
  inline_forms_version = InlineFormsInstaller.inline_forms_version
63
- # The Gemfile pins `gem "inline_forms", "~> 7"`, so Bundler resolves the
63
+ # The Gemfile pins `gem "inline_forms", "~> 8"`, so Bundler resolves the
64
64
  # highest 7.x available on RubyGems at install time. The
65
65
  # `inline_forms_version` value above is just whatever happens to be in
66
66
  # the Creator's own gemset and may differ from what lands in the app;
67
67
  # report the constraint instead of a misleading exact version, and let
68
68
  # `print_create_summary` read the actual locked versions from the
69
69
  # generated app's Gemfile.lock once `bundle install` is done.
70
- say "Creating #{app_name} (inline_forms ~> 7) with development database #{database}...", :green
70
+ say "Creating #{app_name} (inline_forms ~> 8) with development database #{database}...", :green
71
71
 
72
72
  regex = /\A[0-9a-zA-Z][0-9a-zA-Z_-]+[0-9a-zA-Z]\Z/
73
73
  if !regex.match(app_name)
@@ -169,7 +169,7 @@ module InlineFormsInstaller
169
169
  # Read the Bundler-locked version of `gem_name` from the generated app's
170
170
  # Gemfile.lock so the install summary reports what actually shipped to
171
171
  # the app, not what happens to be in the Creator's own gemset (the two
172
- # can differ because the Gemfile pins `~> 7`).
172
+ # can differ because the Gemfile pins `~> 8`).
173
173
  def locked_gem_version(app_name, gem_name)
174
174
  lock_path = File.expand_path(File.join(app_name, "Gemfile.lock"))
175
175
  return nil unless File.file?(lock_path)
@@ -71,7 +71,7 @@ gem 'foundation-rails', '~> 6.9'
71
71
  if ENV["INLINE_FORMS_GEMFILE_PATH"] && File.directory?(ENV["INLINE_FORMS_GEMFILE_PATH"])
72
72
  gem "inline_forms", path: ENV["INLINE_FORMS_GEMFILE_PATH"]
73
73
  else
74
- gem "inline_forms", "~> 7"
74
+ gem "inline_forms", "~> 8"
75
75
  end
76
76
  gem 'jquery-rails'
77
77
  gem 'jquery-timepicker-rails'
@@ -102,7 +102,7 @@ gem 'importmap-rails'
102
102
  gem 'turbo-rails'
103
103
  gem 'tabs_on_rails', '~> 3.0'
104
104
  gem 'unicorn'
105
- gem 'validation_hints', '~> 7'
105
+ gem 'validation_hints', '~> 8'
106
106
  gem 'will_paginate'
107
107
 
108
108
  gem_group :test do
@@ -499,37 +499,6 @@ create_file 'config/initializers/paper_trail_yaml_safe_load.rb', <<-PT_YAML.stri
499
499
  ActiveRecord.yaml_column_permitted_classes |= Rails.application.config.active_record.yaml_column_permitted_classes
500
500
  PT_YAML
501
501
 
502
- # Create Translations
503
- say "- Generate models and tables and views for translations..." # TODO Translations need to be done in inline_forms, and then generate a yml file, perhaps
504
- generate "inline_forms", "InlineFormsLocale name:string inline_forms_translations:belongs_to _enabled:yes _presentation:\#{name}"
505
- sleep 1 # unique migration timestamps per generator
506
- generate "inline_forms", "InlineFormsKey name:string inline_forms_translations:has_many inline_forms_translations:associated _enabled:yes _presentation:\#{name}"
507
- sleep 1
508
- generate "inline_forms", "InlineFormsTranslation inline_forms_key:belongs_to inline_forms_locale:dropdown value:text interpolations:text is_proc:boolean _presentation:\#{value}"
509
- # Plain long text uses :plain_text; ActionText-backed fields use :rich_text.
510
- sleep 1 # to get unique migration number
511
- create_file "db/migrate/" +
512
- Time.now.utc.strftime("%Y%m%d%H%M%S") +
513
- "_" +
514
- "inline_forms_create_view_for_translations.rb", <<-VIEW_MIGRATION.strip_heredoc
515
- class InlineFormsCreateViewForTranslations < ActiveRecord::Migration[7.2]
516
- def self.up
517
- execute 'CREATE VIEW translations
518
- AS
519
- SELECT L.name AS locale,
520
- K.name AS thekey,
521
- T.value AS value,
522
- T.interpolations AS interpolations,
523
- T.is_proc AS is_proc
524
- FROM inline_forms_keys K, inline_forms_locales L, inline_forms_translations T
525
- WHERE T.inline_forms_key_id = K.id AND T.inline_forms_locale_id = L.id '
526
- end
527
- def self.down
528
- execute 'DROP VIEW translations'
529
- end
530
- end
531
- VIEW_MIGRATION
532
-
533
502
  say "- Creating application title via locales..."
534
503
  create_file "config/locales/inline_forms_local.en.yml", <<-END_LOCALE.strip_heredoc
535
504
  en:
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineFormsInstaller
3
- VERSION = "7.13.17"
3
+ VERSION = "8.0.0"
4
4
 
5
5
  # Written into generated apps' `.ruby-version` (must match gemspec `required_ruby_version`).
6
6
  TARGET_RUBY_VERSION = "ruby-4.0.4"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms_installer
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.13.17
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '7'
20
+ version: '8'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '7'
27
+ version: '8'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rvm
30
30
  requirement: !ruby/object:Gem::Requirement