teepee 0.13.4 → 0.14.0

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: ba17434f9bdd0f415ddbd5ff87b7a7a0f5cab2b0
4
- data.tar.gz: 6ae850a704ecf4ec9a14746ccb50e725206e58c4
3
+ metadata.gz: 1ad7e873be682b29bf46708116025d300e1bed12
4
+ data.tar.gz: d699edba2d17a0ef8bc4e34cb7f3e216ffd995ff
5
5
  SHA512:
6
- metadata.gz: f06f732e23ea7ceaff2e5b77ddab5c695b686a342327c8af45b63c8dd130461a0c918dc45725a62688628a341165becd3e07c0b17b8a166bb9b41d4df9a3b0fe
7
- data.tar.gz: a3e211db74bf8fa9979a92995a25f02280e01a51a8d24cd9f2d00fb2c61afe111f28de105db0493746b63faa431348fef787a34f3cdd9becddd418d046badfda
6
+ metadata.gz: e731b8981c1955eb899030e90c661d7215794e329b9aff21be068c9bf9d38add3279567925e03770d252312f7e7e9fcc8d265865ce9fe0c55b8a8a31cce5747d
7
+ data.tar.gz: aa4ea47a6d83c2901a2dc9ab79fb206cc56b863ccee39004f747f3c0f26aa13decc0a410f6d220de6356a55c43bee9de05dc0dd91c65809bc9fe5ccec1df5199
@@ -67,6 +67,14 @@ module Teepee
67
67
  end
68
68
 
69
69
  def to_html
70
+ if @@commander.variables.include? command.word
71
+ @@commander.get_operator command.word
72
+ else
73
+ builtins
74
+ end
75
+ end
76
+
77
+ def builtins
70
78
  case command.word
71
79
  when "backslash",
72
80
  "bslash",
@@ -37,6 +37,8 @@
37
37
 
38
38
  module Teepee
39
39
  class Commander
40
+ attr_reader :variables
41
+
40
42
  def initialize params
41
43
  # We don't use the params in the base class, but might in derived classes.
42
44
  @variables = Hash.new
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.13.4
4
+ version: 0.14.0
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-04-16 00:00:00.000000000 Z
11
+ date: 2016-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport