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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ns_macro_processor.rb +8 -3
- data/ns-macro-processor.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8926199b67b23ec24e06ae11ec1afc74812dd73e
|
4
|
+
data.tar.gz: 5985e743e903fd3bd472d791f64ccd4cb7f5a9b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89c3badc22e4a940c08b5755104b1382ca744d148fbf520f475d2a75a87294ff0302d378a9f7caa8f67fc6947de8b8d504b469cdfbabd3d37103a902611a0f7c
|
7
|
+
data.tar.gz: 1c994be53f56edaa37dcd9636208f63561b7a2a2b7a9af17c32e019cb01a6eee907b1f191d034bf11f259d524519b55a825e3a58becd960d38bd76411d080eb5
|
data/Gemfile.lock
CHANGED
data/lib/ns_macro_processor.rb
CHANGED
@@ -49,10 +49,15 @@ module NsMacroProcessor
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def execute(args)
|
52
|
-
|
53
|
-
|
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
|
-
|
60
|
+
lookup(args[0])
|
56
61
|
end
|
57
62
|
end
|
58
63
|
|
data/ns-macro-processor.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|