elm-rails 0.2.2 → 0.4.0
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/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: 2c4bf15553d59828e56015af0b347acae178259cab0a14a93ffbad59ef79fafe
|
4
|
+
data.tar.gz: 42708641c861cdd273d88a4915534b5261e6f38a9007ea3df78b157183ee2e16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efd952a9299184d383e890716a07968a4e9e0b59563cb28e3855cc260178cdb88bcccacc4a1a6c5d7bd344d7ab3a43ec46bcf0ddcda27fd6cbc5fafd6c359812
|
7
|
+
data.tar.gz: ebbc4675b6399e6640fd9fa78958cbd061f4dc8c389b36709aab385db8f2b300484f15abe46393aebf4b519a6e385a758a80b1f441bdcc3d128b47d2afaf2203
|
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/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.0
|
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: 2022-08-26 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.1.6
|
105
146
|
signing_key:
|
106
147
|
specification_version: 4
|
107
|
-
summary:
|
148
|
+
summary: Compile Elm through Sprockets
|
108
149
|
test_files: []
|