elm-rails 0.4.0 → 0.4.2

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
2
  SHA256:
3
- metadata.gz: 2c4bf15553d59828e56015af0b347acae178259cab0a14a93ffbad59ef79fafe
4
- data.tar.gz: 42708641c861cdd273d88a4915534b5261e6f38a9007ea3df78b157183ee2e16
3
+ metadata.gz: 928344096b3197327645b57b474ac1488476ae3c7bc8d79b072aa8b9bf651080
4
+ data.tar.gz: 5bcdf5d011c2b64bde29dab42fa33ad092742777dac21527545fad32074252cb
5
5
  SHA512:
6
- metadata.gz: efd952a9299184d383e890716a07968a4e9e0b59563cb28e3855cc260178cdb88bcccacc4a1a6c5d7bd344d7ab3a43ec46bcf0ddcda27fd6cbc5fafd6c359812
7
- data.tar.gz: ebbc4675b6399e6640fd9fa78958cbd061f4dc8c389b36709aab385db8f2b300484f15abe46393aebf4b519a6e385a758a80b1f441bdcc3d128b47d2afaf2203
6
+ metadata.gz: 297508b9b92da89f411683569787b161abac0a40d28a5287e488447f3a947163b72225ec7ac91ef3a546445e4d704edf505d96f4c70f2120163bcd7bbb2ef154
7
+ data.tar.gz: 1e4a4b46623cb49e7cad3d5308bb43fbaec172a862123a5a10d171418e6578c04fe3fe7190c202183c8a57cc94afdb5a4487d8406486da6e576df5d4e0d32316
@@ -43,7 +43,9 @@ module Elm
43
43
  var embedDiv = currentScript.previousSibling;
44
44
 
45
45
  onLoad(function() {
46
- window.#{raw module_name} = #{raw module_name}.embed(embedDiv, #{raw args.to_json});
46
+ var args = #{raw args.to_json};
47
+ args.node = embedDiv;
48
+ window.#{raw module_name} = #{raw module_name}.init(args)
47
49
  });
48
50
  })();
49
51
  HTML
@@ -1,5 +1,5 @@
1
1
  module Elm
2
2
  module Rails
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elm-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Bonetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-26 00:00:00.000000000 Z
11
+ date: 2023-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: elm-compiler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.4.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.4.0
55
55
  - !ruby/object:Gem::Dependency
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.1.6
145
+ rubygems_version: 3.2.32
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Compile Elm through Sprockets