teepee 0.12.9 → 0.12.10
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.rb +8 -0
- 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: 0159390a4b4b2b60da09bcfc1a47041354e89788
|
4
|
+
data.tar.gz: 08b7c6858998637c1c5b7fdd3d592d9b00ff7dac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca4f2b3b9d349e617ee856964719568d97253e98e0531a0e11f092c582df7730bf290ed14ca5f729b8ba729c8abc4b9b720fc96c562aa7b312790862f7f790b4
|
7
|
+
data.tar.gz: b4f90e882854fafb4898379db7dd1c86f5ba2fa0a69334abc3245779f5c0be7f1ede64eb4fb4bbafe71d5e314d7ded0f599c0bcf2fcb8d857e5e2eac963c9c7a
|
@@ -319,6 +319,12 @@ module Teepee
|
|
319
319
|
when "%t",
|
320
320
|
"%total"
|
321
321
|
@@commander.percent_total *numbers_from_expressions
|
322
|
+
when "floor"
|
323
|
+
@@commander.floor number_from_expression
|
324
|
+
when "ceil",
|
325
|
+
"ciel",
|
326
|
+
"ceiling"
|
327
|
+
@@commander.ceiling number_from_expression
|
322
328
|
when "mod",
|
323
329
|
"modulus",
|
324
330
|
"modulo"
|
data/lib/teepee/commander.rb
CHANGED
@@ -332,6 +332,10 @@ module Teepee
|
|
332
332
|
end
|
333
333
|
end
|
334
334
|
|
335
|
+
def ceiling number
|
336
|
+
ensure_numeric number.ceil
|
337
|
+
end
|
338
|
+
|
335
339
|
def comment expressions
|
336
340
|
nil
|
337
341
|
end
|
@@ -415,6 +419,10 @@ module Teepee
|
|
415
419
|
"false"
|
416
420
|
end
|
417
421
|
|
422
|
+
def floor number
|
423
|
+
ensure_numeric number.floor
|
424
|
+
end
|
425
|
+
|
418
426
|
def folder_id id
|
419
427
|
id_command_handler id, :Folder
|
420
428
|
end
|
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.12.
|
4
|
+
version: 0.12.10
|
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-
|
11
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|