teepee 0.14.1 → 0.14.2

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: 90aab67a11f17f6ead3c9180b307e3a918737139
4
- data.tar.gz: 1727d86d63a5acf338fc96b9dbad8cb8b51adbe8
3
+ metadata.gz: 934a4375366a91d6eb2af5b31e9536f3913c77d2
4
+ data.tar.gz: 91a64a44e704e7bdcf92ba27567e7b9d000662db
5
5
  SHA512:
6
- metadata.gz: 45a18e5c9f2514bb3e9491c08ebfbf322a6d5a68ec64f8c3427aa5e18671c5fad9467cd2964901754ed55d91fb30bb047db1e63050ab0fd8d95719a9fdc4c782
7
- data.tar.gz: b7dae579ecd6ebbb17e71ca27f94a74610ca5d62787d502a5f908cf004e96f6e01d4698ae26a16f47f21673073f734a237571fd481bf0006f12423ff026497f1
6
+ metadata.gz: 58f7eb26662febca1755054842436cb28603095246dbe1782b7b8ce8df9562b777b4cca4fe8489c0cb2063732a0b9b77fba9b344a66a801d7e9bc42e39203baa
7
+ data.tar.gz: f3bb26a8c3889f8d5b2239253c142b47f4ca483ec3ce812f69523e3c2f993773597b12f19f560cdebbe968ddf009cafc9e814d631b5fdff774fa016217f146e5
@@ -432,6 +432,8 @@ module Teepee
432
432
  @@commander.get_operator first_word_token
433
433
  when "set"
434
434
  @@commander.set_operator expressions
435
+ when "dotimes"
436
+ @@commander.dotimes expressions
435
437
  else
436
438
  command_error "unknown command #{command.to_html}"
437
439
  end
@@ -390,6 +390,10 @@ module Teepee
390
390
  "$"
391
391
  end
392
392
 
393
+ def dotimes expressions
394
+ span_operator(expressions[1..-1] * expressions.first.to_number)
395
+ end
396
+
393
397
  def e
394
398
  Math::E
395
399
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teepee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Mark Gore