actionview_precompiler 0.2.2 → 0.2.3

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: 54648a555675269d325f654f8bf2b607d84b6eaff4ec2f44d9f5181a8e285f5f
4
- data.tar.gz: 965ac39efad07eee3e8dc32b0533e979bc39ffa55c0042ac38719107cdbe9720
3
+ metadata.gz: 6f3734d67f86056784f7949e66fc5027be5cc29eb554fdc69a0b00f4692c0254
4
+ data.tar.gz: 010ffab3de043d3d71a6d0d58c3e6a2789f164f8edd5b18c54ce5b7429a266ca
5
5
  SHA512:
6
- metadata.gz: 1b16a4512fae780cdc43f4494886c882f3eb9ac7625e84beb7958a46fdc58c78d809607277de9806b6cbd9a1e35b1667f71a86237483f755fe5cd013e5c7244e
7
- data.tar.gz: 2baad1d37a76b09c9752c1a74249a9ec0566aeb8699a56340f94e7ee126d3733b925f276faa4db4f3a7543afc8457e4e40e7f34fc14c41c121a95cecba2d99e5
6
+ metadata.gz: ca66b59f8768cdfe813b17dd9277211e269da5d978013ae9dda7b3e07d588a2b0a8c412849f8f5c866d44b23b3eadf6327ce92366f7b29888c131c48f6585c3b
7
+ data.tar.gz: dfb74620b2c5aaa56e008ce39172654cec82c98d951e3af57f63cea0d55f027d06489b48f412dfcee7efd46ba75ce6280d2456c82493dd9ad7094476c89ccc58
@@ -48,7 +48,12 @@ module ActionviewPrecompiler
48
48
  end
49
49
 
50
50
  def to_hash
51
- children[0].children[0..-2].each_slice(2).to_h
51
+ list = children[0]
52
+ if list.nil?
53
+ {}
54
+ else
55
+ list.children[0..-2].each_slice(2).to_h
56
+ end
52
57
  end
53
58
 
54
59
  def to_string
@@ -14,6 +14,10 @@ module ActionviewPrecompiler
14
14
  def type
15
15
  nil
16
16
  end
17
+
18
+ def format
19
+ nil
20
+ end
17
21
  end
18
22
 
19
23
  def initialize(filename)
@@ -1,3 +1,3 @@
1
1
  module ActionviewPrecompiler
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionview_precompiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hawthorn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-27 00:00:00.000000000 Z
11
+ date: 2020-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.17'
33
+ version: '2.1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.17'
40
+ version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubygems_version: 3.1.0.pre3
105
+ rubygems_version: 3.1.2
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Precompiles ActionView templates