teepee 0.16.0 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teepee/command-parser.rb +6 -0
- data/lib/teepee/commander-mixins/control.rb +3 -7
- data/lib/teepee/parser-node.rb +4 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 754aaf39d5ff99b769f1b9c64b6abee836f69dfc
|
4
|
+
data.tar.gz: d19c6e892b09eb5cf9c042994d87b8e5ffb247f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42fdc58d2d21794b6034bd82a2ae9eea3f04e7f33045531761bdcda3846e7baeb2fdd534972b987bfdf0ddaef3e7f7d37f7ee3b5ef80256218d64b1f31bd2ebc
|
7
|
+
data.tar.gz: 26ad3ccd200515e92ea52feb98cf7b35b908f2a46bea92255dbe5b3e8639627f07ea0062c61cafe20fea1de6a91447d06e744cad5e58512b58d394b5fdac9e68
|
@@ -159,19 +159,15 @@ module Teepee
|
|
159
159
|
update_variable k, old_value + 1
|
160
160
|
end
|
161
161
|
|
162
|
-
def
|
163
|
-
body.map
|
164
|
-
if clause.kind_of? CommandParser
|
165
|
-
clause.scope = scope
|
166
|
-
end
|
167
|
-
end
|
162
|
+
def update_scopes body
|
163
|
+
body.map {|node| node.use_scope scope}
|
168
164
|
body
|
169
165
|
end
|
170
166
|
|
171
167
|
def let1 expressions
|
172
168
|
variable, _, value, _, *body = expressions
|
173
169
|
scope[variable.to_html] = value.to_html
|
174
|
-
|
170
|
+
update_scopes(body).map(&:to_html)
|
175
171
|
end
|
176
172
|
|
177
173
|
def not_equal numbers
|
data/lib/teepee/parser-node.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teepee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Mark Gore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Teepee is a markup language, loosely based on Lisp and TeX, for ThinkingBicycle.com.
|
42
56
|
email: cgore@cgore.com
|
43
57
|
executables: []
|