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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 592fe0f86123f0ad238f843c561347cf32199e00
4
- data.tar.gz: 6022ce54d4354c1318d1568b886e5158061510f0
2
+ SHA256:
3
+ metadata.gz: 2c4bf15553d59828e56015af0b347acae178259cab0a14a93ffbad59ef79fafe
4
+ data.tar.gz: 42708641c861cdd273d88a4915534b5261e6f38a9007ea3df78b157183ee2e16
5
5
  SHA512:
6
- metadata.gz: 5d26269dfbbfc7a8a2d3a74e3c29e36a8f6c3d5c1c6154354d675b2a490096764b0642d454cc6ec5b5af085c4d934a4d7dba77c9d4f5abc1c3eb9577b4df673a
7
- data.tar.gz: 032b7dc7d53ddb166253810de041d9b1a889cfe35d092c6f6360c57cc3b99d355add224279f763c336699de4c4d66ff71bf082e5f212fbef735b7176d2b527cb
6
+ metadata.gz: efd952a9299184d383e890716a07968a4e9e0b59563cb28e3855cc260178cdb88bcccacc4a1a6c5d7bd344d7ab3a43ec46bcf0ddcda27fd6cbc5fafd6c359812
7
+ data.tar.gz: ebbc4675b6399e6640fd9fa78958cbd061f4dc8c389b36709aab385db8f2b300484f15abe46393aebf4b519a6e385a758a80b1f441bdcc3d128b47d2afaf2203
data/Rakefile CHANGED
@@ -1,9 +1,7 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
1
+ require 'bundler/setup'
2
+ require 'bundler/gem_tasks'
3
+ require 'rspec/core/rake_task'
3
4
 
4
- Rake::TestTask.new do |t|
5
- t.pattern = "**/*_test.rb"
6
- end
7
-
8
- task :default => :test
5
+ RSpec::Core::RakeTask.new(:spec)
9
6
 
7
+ task default: :spec
@@ -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
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Elm
2
2
  module Rails
3
- VERSION = "0.2.2"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
data/lib/elm/rails.rb CHANGED
@@ -3,6 +3,5 @@ require "elm/rails/railtie"
3
3
 
4
4
  module Elm
5
5
  module Rails
6
- mattr_accessor(:elm_make_path) { "elm-make" }
7
6
  end
8
7
  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.2.2
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: 2018-04-09 00:00:00.000000000 Z
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: '4.0'
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: '4.0'
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.3.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.3.0
54
+ version: 0.4.0
41
55
  - !ruby/object:Gem::Dependency
42
- name: minitest
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: appraisal
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: Description of ElmRails.
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
- rubyforge_project:
104
- rubygems_version: 2.6.8
145
+ rubygems_version: 3.1.6
105
146
  signing_key:
106
147
  specification_version: 4
107
- summary: Summary of ElmRails.
148
+ summary: Compile Elm through Sprockets
108
149
  test_files: []