elm-rails 0.2.2 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +5 -7
- data/lib/elm/rails/helper.rb +3 -1
- data/lib/elm/rails/railtie.rb +1 -6
- data/lib/elm/rails/sprockets.rb +1 -4
- data/lib/elm/rails/version.rb +1 -1
- data/lib/elm/rails.rb +0 -1
- metadata +53 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4ec1559494630865ee47726db10b1acaf759cc0c4f02bb34bf5d4a9d93a14c41
|
4
|
+
data.tar.gz: 155a64409bd58d1c5eadaab2e2b248f7cfa101d43a944055a115cb381bc0b8d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a391d5e4552ced909609bbaadbbfa994ba0776410194f836d305be9346ebd4cec07a6e1d23fddd9e07682b3c91005a0041b532a68a7d54e54a0ee5e97912c8e
|
7
|
+
data.tar.gz: 2c3503723f9f210c234dab4653f584868eec1dd134691db18973871a3a06f6e503b97f0d145ce757d451e06e448bf17abad135aa4b398d520868f0c097bdf6cd
|
data/Rakefile
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'bundler/setup'
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
require 'rspec/core/rake_task'
|
3
4
|
|
4
|
-
|
5
|
-
t.pattern = "**/*_test.rb"
|
6
|
-
end
|
7
|
-
|
8
|
-
task :default => :test
|
5
|
+
RSpec::Core::RakeTask.new(:spec)
|
9
6
|
|
7
|
+
task default: :spec
|
data/lib/elm/rails/helper.rb
CHANGED
@@ -43,7 +43,9 @@ module Elm
|
|
43
43
|
var embedDiv = currentScript.previousSibling;
|
44
44
|
|
45
45
|
onLoad(function() {
|
46
|
-
|
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
|
data/lib/elm/rails/railtie.rb
CHANGED
@@ -16,12 +16,7 @@ module Elm
|
|
16
16
|
|
17
17
|
config.assets.configure do |env|
|
18
18
|
env.register_mime_type "text/x-elm", extensions: [".elm"]
|
19
|
-
|
20
|
-
if Gem::Version.new(Sprockets::VERSION) >= Gem::Version.new("3.0.0")
|
21
|
-
env.register_transformer "text/x-elm", "application/javascript", Elm::Rails::Sprockets
|
22
|
-
else
|
23
|
-
env.register_engine ".elm", Elm::Rails::Sprockets
|
24
|
-
end
|
19
|
+
env.register_transformer "text/x-elm", "application/javascript", Elm::Rails::Sprockets
|
25
20
|
end
|
26
21
|
end
|
27
22
|
end
|
data/lib/elm/rails/sprockets.rb
CHANGED
@@ -28,10 +28,7 @@ module Elm
|
|
28
28
|
DependencyGraph.new(input[:filename], input[:load_path]).each do |dependency|
|
29
29
|
context.depend_on dependency
|
30
30
|
end
|
31
|
-
compiled = Elm::Compiler.compile(input[:filename],
|
32
|
-
debug: debug_flag,
|
33
|
-
elm_make_path: Elm::Rails.elm_make_path
|
34
|
-
})
|
31
|
+
compiled = Elm::Compiler.compile(input[:filename], debug: debug_flag)
|
35
32
|
context.metadata.merge data: compiled
|
36
33
|
end
|
37
34
|
|
data/lib/elm/rails/version.rb
CHANGED
data/lib/elm/rails.rb
CHANGED
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
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Bonetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,30 +16,44 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '6.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sprockets-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: elm-compiler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
47
|
+
version: 0.4.0
|
34
48
|
type: :runtime
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
54
|
+
version: 0.4.0
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
56
|
+
name: appraisal
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - ">="
|
@@ -53,7 +67,35 @@ dependencies:
|
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: byebug
|
57
99
|
requirement: !ruby/object:Gem::Requirement
|
58
100
|
requirements:
|
59
101
|
- - ">="
|
@@ -66,7 +108,7 @@ dependencies:
|
|
66
108
|
- - ">="
|
67
109
|
- !ruby/object:Gem::Version
|
68
110
|
version: '0'
|
69
|
-
description:
|
111
|
+
description: Compile Elm through Sprockets
|
70
112
|
email:
|
71
113
|
- frank.r.bonetti@gmail.com
|
72
114
|
executables: []
|
@@ -100,9 +142,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
142
|
- !ruby/object:Gem::Version
|
101
143
|
version: '0'
|
102
144
|
requirements: []
|
103
|
-
|
104
|
-
rubygems_version: 2.6.8
|
145
|
+
rubygems_version: 3.2.32
|
105
146
|
signing_key:
|
106
147
|
specification_version: 4
|
107
|
-
summary:
|
148
|
+
summary: Compile Elm through Sprockets
|
108
149
|
test_files: []
|