rollr 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/rollr +13 -0
  2. metadata +2 -2
data/bin/rollr CHANGED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rollr'
4
+
5
+ a = ARGV[1]
6
+
7
+ if ARGV[1].include? "d"
8
+ a = ARGV[1].split(%r[d])[1].to_i
9
+ else
10
+ puts "Wrong Usage. Proper Usage: rollr [Integer] d[integer]"
11
+ end
12
+ puts Rollr::Die.new(a.to_i).roll(ARGV[0].to_i)
13
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-06 00:00:00.000000000 Z
12
+ date: 2012-06-09 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Rollr is a Gem that provides useful functions to simulate the Rolling
15
15
  of Dice... because we weren't social enough as is.