react_rails_modal 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/react_rails_modal.rb +0 -1
- data/lib/react_rails_modal/railtie.rb +3 -2
- data/lib/react_rails_modal/version.rb +1 -1
- metadata +1 -2
- data/lib/react_rails_modal/asset_variant.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaf9076b61363445db0b0d45253642f4e992a595
|
4
|
+
data.tar.gz: 3140cf72aaeafd264100b8c56bc694899b9e2bf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7c79c84053fde1da933976e98f6b393f48bec79b2bdb34f61da0b9606d76d2b9b03364951ab2f233d422f2ce058a6c5fb108ba309c57f0c46176f0897d286b7
|
7
|
+
data.tar.gz: 00d16a757fbc91b3d0962d1576ab3382294f446d543b777bd29c2de9bf48d6570833b679cda4d1a0868428e47cd2e455d96cd01edc6a38cd67bd3a45dc99563e
|
data/lib/react_rails_modal.rb
CHANGED
@@ -2,11 +2,12 @@ require 'rails'
|
|
2
2
|
|
3
3
|
module ReactRailsModal
|
4
4
|
class Railtie < ::Rails::Railtie
|
5
|
+
GEM_ROOT = Pathname.new('../../../').expand_path(__FILE__)
|
6
|
+
|
5
7
|
config.react_rails_modal = ActiveSupport::OrderedOptions.new
|
6
8
|
|
7
9
|
initializer 'react_rails_modal.set_variant' do |app|
|
8
|
-
|
9
|
-
app.config.assets.paths << asset_variant.react_rails_modal_directory if app.config.respond_to?(:assets)
|
10
|
+
app.config.assets.paths << GEM_ROOT.join('lib/assets/javascripts/').to_s if app.config.respond_to?(:assets)
|
10
11
|
end
|
11
12
|
end
|
12
13
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: react_rails_modal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kiyodori
|
@@ -78,7 +78,6 @@ files:
|
|
78
78
|
- lib/assets/javascripts/react_rails_modal.js
|
79
79
|
- lib/generators/react_rails_modal/install_generator.rb
|
80
80
|
- lib/react_rails_modal.rb
|
81
|
-
- lib/react_rails_modal/asset_variant.rb
|
82
81
|
- lib/react_rails_modal/railtie.rb
|
83
82
|
- lib/react_rails_modal/version.rb
|
84
83
|
homepage: https://github.com/kiyodori/react_rails_modal
|
@@ -1,12 +0,0 @@
|
|
1
|
-
module ReactRailsModal
|
2
|
-
# This class add react_rails_modal path to the sprockets environment.
|
3
|
-
class AssetVariant
|
4
|
-
GEM_ROOT = Pathname.new('../../../').expand_path(__FILE__)
|
5
|
-
|
6
|
-
attr_reader :react_rails_modal_directory
|
7
|
-
|
8
|
-
def initialize
|
9
|
-
@react_rails_modal_directory = GEM_ROOT.join('lib/assets/javascripts/').to_s
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|