ns-macro-processor 0.0.2 → 0.0.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
  SHA1:
3
- metadata.gz: d4c6acbce70533c0ec4bb0401502331b160d627c
4
- data.tar.gz: 36221f37910e0e2071ab17cb0d9d137e3f8e224b
3
+ metadata.gz: 8926199b67b23ec24e06ae11ec1afc74812dd73e
4
+ data.tar.gz: 5985e743e903fd3bd472d791f64ccd4cb7f5a9b3
5
5
  SHA512:
6
- metadata.gz: 563814813617135dd792b371f2bba02b0fef481336d03ae3ca69d838fa7ec96a0f7439ef85393cef55a32a15b3a21719e07b16dc2ebc6dd4c000d6f8d6d6ba17
7
- data.tar.gz: 4aa822f7c63e5cd17bdbf73b27d286ebea08678f7be79b1046cc2e5f5430ac53a5385575ff7e8da99365fcf14b0f54e17c1c0f34e61ae17a5c1b235ed7d0f3f8
6
+ metadata.gz: 89c3badc22e4a940c08b5755104b1382ca744d148fbf520f475d2a75a87294ff0302d378a9f7caa8f67fc6947de8b8d504b469cdfbabd3d37103a902611a0f7c
7
+ data.tar.gz: 1c994be53f56edaa37dcd9636208f63561b7a2a2b7a9af17c32e019cb01a6eee907b1f191d034bf11f259d524519b55a825e3a58becd960d38bd76411d080eb5
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ns-macro-processor (0.0.1)
4
+ ns-macro-processor (0.0.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -49,10 +49,15 @@ module NsMacroProcessor
49
49
  end
50
50
 
51
51
  def execute(args)
52
- if args[0] == 'include'
53
- return lookup(:filestore).contents_of(args[1])
52
+ case args[0]
53
+ when 'define'
54
+ raise SyntaxError.new('~{define name value}', args.join(' ')) unless args.length >= 2
55
+ @params[args[1]] = args[2] || ''
56
+ ''
57
+ when 'include'
58
+ lookup(:filestore).contents_of(args[1])
54
59
  else
55
- return lookup(args[0])
60
+ lookup(args[0])
56
61
  end
57
62
  end
58
63
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'ns-macro-processor'
5
- spec.version = '0.0.2'
5
+ spec.version = '0.0.3'
6
6
  spec.licenses = ['MIT']
7
7
  spec.authors = ['Kevin Rutherford']
8
8
  spec.email = ['kevin@rutherford-software.com']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ns-macro-processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Rutherford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-01 00:00:00.000000000 Z
11
+ date: 2018-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec