teepee 0.12.10 → 0.12.11

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: 0159390a4b4b2b60da09bcfc1a47041354e89788
4
- data.tar.gz: 08b7c6858998637c1c5b7fdd3d592d9b00ff7dac
3
+ metadata.gz: ecf663db7d98476598a43fc1a2f56555ccdc76ee
4
+ data.tar.gz: 29fe97871b75e502cb0c01196cdb1f0762efe180
5
5
  SHA512:
6
- metadata.gz: ca4f2b3b9d349e617ee856964719568d97253e98e0531a0e11f092c582df7730bf290ed14ca5f729b8ba729c8abc4b9b720fc96c562aa7b312790862f7f790b4
7
- data.tar.gz: b4f90e882854fafb4898379db7dd1c86f5ba2fa0a69334abc3245779f5c0be7f1ede64eb4fb4bbafe71d5e314d7ded0f599c0bcf2fcb8d857e5e2eac963c9c7a
6
+ metadata.gz: 168e130a4d794f1f906e7ad6996b650d4771167748e10f8797bc736d65b383ddac85a6a7c961f40b187abeeb15f98b61d9a9d0d418536f45ebab8fd6bc47eb04
7
+ data.tar.gz: f2af3dff36c80878129014eee1302592e3714961beaedf415bd570267eb15385c9519b953ff12193f8014069b1234803c4d03af624508b9d5d13502d5027c6af
@@ -325,6 +325,8 @@ module Teepee
325
325
  "ciel",
326
326
  "ceiling"
327
327
  @@commander.ceiling number_from_expression
328
+ when "round"
329
+ @@commander.round *numbers_from_expressions
328
330
  when "mod",
329
331
  "modulus",
330
332
  "modulo"
@@ -677,6 +677,14 @@ module Teepee
677
677
  "]"
678
678
  end
679
679
 
680
+ def round number, precision = nil, *_
681
+ if precision.nil?
682
+ ensure_numeric number.round
683
+ else
684
+ ensure_numeric number.round precision
685
+ end
686
+ end
687
+
680
688
  def sin angle
681
689
  ensure_numeric Math.sin angle
682
690
  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.10
4
+ version: 0.12.11
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-01 00:00:00.000000000 Z
11
+ date: 2016-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport