cnf 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cnf.rb +5 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b920024e5d6c96e53af3404755603e12990bf69a
4
- data.tar.gz: 5253465c96c49d6f3a36b118bfd935561595c81e
3
+ metadata.gz: 5d275c2be28059a3601bd3b7c633d62b91fce62b
4
+ data.tar.gz: ab62c4e65af21b2a76079d774504031235e15e4c
5
5
  SHA512:
6
- metadata.gz: 1b90759a59acafdd6cc331da63422d06955e314cc144f2cfc015df9a5d6dcda185bc25c4ceb2781ec93201fb81f17841de4d05461503d45c1f6f0f80825480a6
7
- data.tar.gz: 839ab0f0ab896093c149c1411f8fc9d5f97cd5276faaa76f31d8239eba133c4ffd77a23cc21934b380171efbbc345d845b709cacf8a7af9b687fa4d10a410088
6
+ metadata.gz: c7c0ee3450f10345ae9067a61e1f23215327d06a541cf0f890b906bbf1d08983a8c9c36a54afe4d7c885b721053d8361a68cb25b1d6904b0f35ab250df3015e1
7
+ data.tar.gz: '058e30d2bce3d3eb301df2590e5d458aa3e0691ca72aa8c672269773b93e74491a721329380a63fed9c664f1715f9ce0e4855bb47d2e16c66389c9ea65faf8e0'
data/lib/cnf.rb CHANGED
@@ -14,9 +14,12 @@ module Cnf
14
14
  end
15
15
  alias_method :all, :fetch_data
16
16
 
17
+ def parsed_fetched_data
18
+ @parsed_fetched_data ||= RecursiveOpenStruct.new(fetch_data, recurse_over_arrays: true)
19
+ end
20
+
17
21
  def method_missing(m, *args, &block)
18
- data = RecursiveOpenStruct.new(fetch_data, recurse_over_arrays: true)
19
- data.send(m)
22
+ parsed_fetched_data.send(m)
20
23
  end
21
24
 
22
25
  def markups
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cnf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacek Jakubik
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-06-26 00:00:00.000000000 Z
14
+ date: 2017-08-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: excon
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.5.1
129
+ rubygems_version: 2.5.2
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Fetches stack configuration