generamba 1.2.1 → 1.2.2

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
  SHA1:
3
- metadata.gz: 4a885d6ecf032e290074a25ae99a2ed9d81148b7
4
- data.tar.gz: 23a627c2bd626d8190cc6530ef2e435383075519
3
+ metadata.gz: 637b42e3016dd729206b91d9b97f62979d793d35
4
+ data.tar.gz: 9d01d87099dd86f9c6c1a66858e0ed8fefc12e18
5
5
  SHA512:
6
- metadata.gz: 8eb7a6003512d2d470ec9ec686bdca8c6d48cbf4e695bb90049bf21fa9778a2b87d369b80a3ef7b38165ad1f212eb4ca8a1c66f6117adf5f6c15a96303944d3b
7
- data.tar.gz: 60db96f7d31a178343da611f1165f6495bf117236e73ffe17a5f4524480db79a4badb174bf46c6801574634666b378ef3ba3b6f86af3c4ae9dc7e7e8ab871833
6
+ metadata.gz: a84576cc44416329e406f1cd42e3cc385689f0c3191d9c15f4e66cbdac7ec4ff060a306503c77ff62ff6cbc4a178802acd593204cbe21b8a9ca0a9798925b90a
7
+ data.tar.gz: b3a8970f1f89b8835e676a9e80f9db44b2e7815bdd23357391d91e8f543bbc10f8865cb93be34af03ba98a582db0ac75a83d57465f4a70d59767e1691fc51c03
@@ -22,7 +22,11 @@ module Generamba
22
22
  # @return [Bool]
23
23
  def self.validate_spec(template_name, template_path)
24
24
  spec_path = self.obtain_spec_path(template_name, template_path)
25
- spec = YAML.load_file(spec_path)
25
+
26
+ spec_source = IO.read(spec_path)
27
+ spec_template = Liquid::Template.parse(spec_source)
28
+ spec_content = spec_template.render
29
+ spec = YAML.load(spec_content)
26
30
 
27
31
  is_spec_valid =
28
32
  spec[TEMPLATE_NAME_KEY] != nil &&
@@ -1,5 +1,5 @@
1
1
  module Generamba
2
- VERSION = '1.2.1'
3
- RELEASE_DATE = '26.09.2016'
2
+ VERSION = '1.2.2'
3
+ RELEASE_DATE = '27.09.2016'
4
4
  RELEASE_LINK = "https://github.com/rambler-ios/Generamba/releases/tag/#{VERSION}"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generamba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Egor Tolstoy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-09-26 00:00:00.000000000 Z
13
+ date: 2016-09-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor