Module: InlineFormsInstaller
- Defined in:
- lib/inline_forms_installer.rb,
lib/inline_forms_installer/creator.rb,
lib/inline_forms_installer/version.rb
Defined Under Namespace
Classes: Creator
Constant Summary collapse
- VERSION =
"7.11.0"- INLINE_FORMS_VERSION =
Kept in sync with inline_forms gem releases from the same repo tag.
VERSION
Class Method Summary collapse
Class Method Details
.gem_root ⇒ Object
5 6 7 8 9 10 |
# File 'lib/inline_forms_installer.rb', line 5 def self.gem_root @gem_root ||= begin spec = Gem.loaded_specs["inline_forms_installer"] spec ? spec.full_gem_path : File.("..", __dir__) end end |
.inline_forms_gem_root ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/inline_forms_installer.rb', line 12 def self.inline_forms_gem_root @inline_forms_gem_root ||= begin if ENV["INLINE_FORMS_ROOT"] && File.directory?(ENV["INLINE_FORMS_ROOT"]) File.(ENV["INLINE_FORMS_ROOT"]) else Gem::Specification.find_by_name("inline_forms").full_gem_path end end rescue Gem::MissingSpecError # Monorepo dev: engine sources live beside the installer gem. File.("..", __dir__) end |
.inline_forms_version ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/inline_forms_installer.rb', line 25 def self.inline_forms_version @inline_forms_version ||= begin Gem::Specification.find_by_name("inline_forms").version.to_s rescue Gem::MissingSpecError INLINE_FORMS_VERSION end end |