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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d193b2d05b85f50c16df4a9b7cf52aaeff1e772
4
- data.tar.gz: 249d9ea3981b171ee5c4d4ae46f55afe568f18db
3
+ metadata.gz: 0159390a4b4b2b60da09bcfc1a47041354e89788
4
+ data.tar.gz: 08b7c6858998637c1c5b7fdd3d592d9b00ff7dac
5
5
  SHA512:
6
- metadata.gz: 49e07246150d6c39bb0a2f2836efe2b30c26699d681b2a4efa3343812c4ee367e347a280063e44522faf0c1e9bc292e5ab50addd2edf667ded3b137ba868126e
7
- data.tar.gz: ab2f00b1dd57f6a35a4fd0c6999aa56bef184513ed7601533d1b4ca80f3c0a6b5c9b3059b8cb70331e8d581b1befc386c88b0518fa4fa6b62a262ea3127a2bd4
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"
@@ -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.9
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-03-28 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport