crapshoot 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +1 -8
- data/Rakefile +2 -21
- data/crapshoot.gemspec +14 -75
- data/lib/crapshoot/version.rb +3 -0
- data/test/{test_crapshoot.rb → crapshoot_test.rb} +0 -0
- data/test/{test_evaluator.rb → evaluator_test.rb} +0 -0
- data/test/{test_postfixer.rb → postfixer_test.rb} +0 -0
- data/test/{test_scanner.rb → scanner_test.rb} +0 -0
- metadata +26 -84
- data/Gemfile.lock +0 -34
- data/VERSION +0 -1
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Gemfile.lock
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
require 'rubygems'
|
2
1
|
require 'bundler'
|
3
2
|
begin
|
4
3
|
Bundler.setup(:default, :development)
|
4
|
+
Bundler::GemHelper.install_tasks
|
5
5
|
rescue Bundler::BundlerError => e
|
6
6
|
$stderr.puts e.message
|
7
7
|
$stderr.puts "Run `bundle install` to install missing gems"
|
@@ -9,29 +9,10 @@ rescue Bundler::BundlerError => e
|
|
9
9
|
end
|
10
10
|
require 'rake'
|
11
11
|
|
12
|
-
require 'jeweler'
|
13
|
-
Jeweler::Tasks.new do |gem|
|
14
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
15
|
-
gem.name = "crapshoot"
|
16
|
-
gem.homepage = "http://github.com/bkerley/crapshoot"
|
17
|
-
gem.license = "MIT"
|
18
|
-
gem.summary = %Q{The alpha and omega of rolling dice}
|
19
|
-
gem.description = %Q{Crapshoot is a dice-rolling gem that parses complicated notation for most of your pen-and-paper gaming needs.}
|
20
|
-
gem.email = "bkerley@brycekerley.net"
|
21
|
-
gem.authors = ["Bryce Kerley"]
|
22
|
-
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
23
|
-
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
24
|
-
gem.add_runtime_dependency 'activesupport', '~> 3.0'
|
25
|
-
gem.add_development_dependency 'shoulda', '~> 2.11.3'
|
26
|
-
gem.add_development_dependency 'bundler', '~> 1.0.7'
|
27
|
-
gem.add_development_dependency 'jeweler', '~> 1.5.2'
|
28
|
-
end
|
29
|
-
Jeweler::RubygemsDotOrgTasks.new
|
30
|
-
|
31
12
|
require 'rake/testtask'
|
32
13
|
Rake::TestTask.new(:test) do |test|
|
33
14
|
test.libs << 'lib' << 'test'
|
34
|
-
test.pattern = 'test
|
15
|
+
test.pattern = 'test/*_test.rb'
|
35
16
|
test.verbose = true
|
36
17
|
end
|
37
18
|
|
data/crapshoot.gemspec
CHANGED
@@ -1,92 +1,31 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
require "crapshoot/version"
|
5
3
|
|
6
4
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version =
|
5
|
+
s.name = 'crapshoot'
|
6
|
+
s.version = Crapshoot::VERSION
|
9
7
|
|
10
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
9
|
s.authors = ["Bryce Kerley"]
|
12
|
-
s.date = %q{
|
13
|
-
s.description =
|
14
|
-
s.email =
|
10
|
+
s.date = %q{2011-1-12}
|
11
|
+
s.description = "Crapshoot is a dice-rolling gem for most of your pen-and-paper gaming needs; roll 4d6v to find out how much time it will save."
|
12
|
+
s.email = "bkerley@brycekerley.net"
|
15
13
|
s.extra_rdoc_files = [
|
16
14
|
"LICENSE.txt",
|
17
15
|
"README.rdoc"
|
18
16
|
]
|
19
|
-
s.files
|
20
|
-
"
|
21
|
-
"Gemfile",
|
22
|
-
"Gemfile.lock",
|
23
|
-
"Guardfile",
|
24
|
-
"LICENSE.txt",
|
25
|
-
"README.rdoc",
|
26
|
-
"Rakefile",
|
27
|
-
"VERSION",
|
28
|
-
"crapshoot.gemspec",
|
29
|
-
"lib/crapshoot.rb",
|
30
|
-
"lib/crapshoot/evaluator.rb",
|
31
|
-
"lib/crapshoot/parser/scan.rb",
|
32
|
-
"lib/crapshoot/parser/scan.rl",
|
33
|
-
"lib/crapshoot/postfixer.rb",
|
34
|
-
"lib/crapshoot/scanner.rb",
|
35
|
-
"lib/crapshoot/tokens/arithmetic.rb",
|
36
|
-
"lib/crapshoot/tokens/base.rb",
|
37
|
-
"lib/crapshoot/tokens/constant.rb",
|
38
|
-
"lib/crapshoot/tokens/series.rb",
|
39
|
-
"test/helper.rb",
|
40
|
-
"test/test_crapshoot.rb",
|
41
|
-
"test/test_evaluator.rb",
|
42
|
-
"test/test_postfixer.rb",
|
43
|
-
"test/test_scanner.rb"
|
44
|
-
]
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
45
19
|
s.homepage = %q{http://github.com/bkerley/crapshoot}
|
46
20
|
s.licenses = ["MIT"]
|
47
21
|
s.require_paths = ["lib"]
|
48
22
|
s.rubygems_version = %q{1.3.7}
|
49
23
|
s.summary = %q{The alpha and omega of rolling dice}
|
50
|
-
s.
|
51
|
-
"test/helper.rb",
|
52
|
-
"test/test_crapshoot.rb",
|
53
|
-
"test/test_evaluator.rb",
|
54
|
-
"test/test_postfixer.rb",
|
55
|
-
"test/test_scanner.rb"
|
56
|
-
]
|
57
|
-
|
58
|
-
if s.respond_to? :specification_version then
|
59
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
60
|
-
s.specification_version = 3
|
24
|
+
s.required_ruby_version = '~> 1.9.2'
|
61
25
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
s.add_development_dependency(%q<shoulda>, ["~> 2.11.3"])
|
67
|
-
s.add_runtime_dependency(%q<activesupport>, ["~> 3.0"])
|
68
|
-
s.add_development_dependency(%q<shoulda>, ["~> 2.11.3"])
|
69
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.0.7"])
|
70
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
71
|
-
else
|
72
|
-
s.add_dependency(%q<activesupport>, ["~> 3.0"])
|
73
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
74
|
-
s.add_dependency(%q<guard-test>, ["~> 0.1.4"])
|
75
|
-
s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
|
76
|
-
s.add_dependency(%q<activesupport>, ["~> 3.0"])
|
77
|
-
s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
|
78
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.7"])
|
79
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
80
|
-
end
|
81
|
-
else
|
82
|
-
s.add_dependency(%q<activesupport>, ["~> 3.0"])
|
83
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
84
|
-
s.add_dependency(%q<guard-test>, ["~> 0.1.4"])
|
85
|
-
s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
|
86
|
-
s.add_dependency(%q<activesupport>, ["~> 3.0"])
|
87
|
-
s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
|
88
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.7"])
|
89
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
90
|
-
end
|
26
|
+
s.add_runtime_dependency(%q<activesupport>, ["~> 3.0"])
|
27
|
+
s.add_development_dependency(%q<guard-test>, ["~> 0.1.4"])
|
28
|
+
s.add_development_dependency(%q<shoulda>, ["~> 2.11.3"])
|
29
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.7"])
|
91
30
|
end
|
92
31
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Bryce Kerley
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-01-12 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -31,24 +31,9 @@ dependencies:
|
|
31
31
|
type: :runtime
|
32
32
|
prerelease: false
|
33
33
|
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: jeweler
|
36
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
|
-
requirements:
|
39
|
-
- - ~>
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
segments:
|
42
|
-
- 1
|
43
|
-
- 5
|
44
|
-
- 2
|
45
|
-
version: 1.5.2
|
46
|
-
type: :development
|
47
|
-
prerelease: false
|
48
|
-
version_requirements: *id002
|
49
34
|
- !ruby/object:Gem::Dependency
|
50
35
|
name: guard-test
|
51
|
-
requirement: &
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
52
37
|
none: false
|
53
38
|
requirements:
|
54
39
|
- - ~>
|
@@ -60,39 +45,10 @@ dependencies:
|
|
60
45
|
version: 0.1.4
|
61
46
|
type: :development
|
62
47
|
prerelease: false
|
63
|
-
version_requirements: *
|
64
|
-
- !ruby/object:Gem::Dependency
|
65
|
-
name: shoulda
|
66
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
|
-
requirements:
|
69
|
-
- - ~>
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
segments:
|
72
|
-
- 2
|
73
|
-
- 11
|
74
|
-
- 3
|
75
|
-
version: 2.11.3
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: *id004
|
79
|
-
- !ruby/object:Gem::Dependency
|
80
|
-
name: activesupport
|
81
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
|
-
requirements:
|
84
|
-
- - ~>
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
segments:
|
87
|
-
- 3
|
88
|
-
- 0
|
89
|
-
version: "3.0"
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: *id005
|
48
|
+
version_requirements: *id002
|
93
49
|
- !ruby/object:Gem::Dependency
|
94
50
|
name: shoulda
|
95
|
-
requirement: &
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
96
52
|
none: false
|
97
53
|
requirements:
|
98
54
|
- - ~>
|
@@ -104,10 +60,10 @@ dependencies:
|
|
104
60
|
version: 2.11.3
|
105
61
|
type: :development
|
106
62
|
prerelease: false
|
107
|
-
version_requirements: *
|
63
|
+
version_requirements: *id003
|
108
64
|
- !ruby/object:Gem::Dependency
|
109
65
|
name: bundler
|
110
|
-
requirement: &
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
111
67
|
none: false
|
112
68
|
requirements:
|
113
69
|
- - ~>
|
@@ -119,23 +75,8 @@ dependencies:
|
|
119
75
|
version: 1.0.7
|
120
76
|
type: :development
|
121
77
|
prerelease: false
|
122
|
-
version_requirements: *
|
123
|
-
-
|
124
|
-
name: jeweler
|
125
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
|
-
requirements:
|
128
|
-
- - ~>
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
segments:
|
131
|
-
- 1
|
132
|
-
- 5
|
133
|
-
- 2
|
134
|
-
version: 1.5.2
|
135
|
-
type: :development
|
136
|
-
prerelease: false
|
137
|
-
version_requirements: *id008
|
138
|
-
description: Crapshoot is a dice-rolling gem that parses complicated notation for most of your pen-and-paper gaming needs.
|
78
|
+
version_requirements: *id004
|
79
|
+
description: Crapshoot is a dice-rolling gem for most of your pen-and-paper gaming needs; roll 4d6v to find out how much time it will save.
|
139
80
|
email: bkerley@brycekerley.net
|
140
81
|
executables: []
|
141
82
|
|
@@ -146,13 +87,12 @@ extra_rdoc_files:
|
|
146
87
|
- README.rdoc
|
147
88
|
files:
|
148
89
|
- .document
|
90
|
+
- .gitignore
|
149
91
|
- Gemfile
|
150
|
-
- Gemfile.lock
|
151
92
|
- Guardfile
|
152
93
|
- LICENSE.txt
|
153
94
|
- README.rdoc
|
154
95
|
- Rakefile
|
155
|
-
- VERSION
|
156
96
|
- crapshoot.gemspec
|
157
97
|
- lib/crapshoot.rb
|
158
98
|
- lib/crapshoot/evaluator.rb
|
@@ -164,11 +104,12 @@ files:
|
|
164
104
|
- lib/crapshoot/tokens/base.rb
|
165
105
|
- lib/crapshoot/tokens/constant.rb
|
166
106
|
- lib/crapshoot/tokens/series.rb
|
107
|
+
- lib/crapshoot/version.rb
|
108
|
+
- test/crapshoot_test.rb
|
109
|
+
- test/evaluator_test.rb
|
167
110
|
- test/helper.rb
|
168
|
-
- test/
|
169
|
-
- test/
|
170
|
-
- test/test_postfixer.rb
|
171
|
-
- test/test_scanner.rb
|
111
|
+
- test/postfixer_test.rb
|
112
|
+
- test/scanner_test.rb
|
172
113
|
has_rdoc: true
|
173
114
|
homepage: http://github.com/bkerley/crapshoot
|
174
115
|
licenses:
|
@@ -181,12 +122,13 @@ require_paths:
|
|
181
122
|
required_ruby_version: !ruby/object:Gem::Requirement
|
182
123
|
none: false
|
183
124
|
requirements:
|
184
|
-
- -
|
125
|
+
- - ~>
|
185
126
|
- !ruby/object:Gem::Version
|
186
|
-
hash: -2401645687353954734
|
187
127
|
segments:
|
188
|
-
-
|
189
|
-
|
128
|
+
- 1
|
129
|
+
- 9
|
130
|
+
- 2
|
131
|
+
version: 1.9.2
|
190
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
133
|
none: false
|
192
134
|
requirements:
|
@@ -203,8 +145,8 @@ signing_key:
|
|
203
145
|
specification_version: 3
|
204
146
|
summary: The alpha and omega of rolling dice
|
205
147
|
test_files:
|
148
|
+
- test/crapshoot_test.rb
|
149
|
+
- test/evaluator_test.rb
|
206
150
|
- test/helper.rb
|
207
|
-
- test/
|
208
|
-
- test/
|
209
|
-
- test/test_postfixer.rb
|
210
|
-
- test/test_scanner.rb
|
151
|
+
- test/postfixer_test.rb
|
152
|
+
- test/scanner_test.rb
|
data/Gemfile.lock
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
activesupport (3.0.3)
|
5
|
-
configuration (1.2.0)
|
6
|
-
git (1.2.5)
|
7
|
-
guard (0.2.2)
|
8
|
-
open_gem (~> 1.4.2)
|
9
|
-
thor (~> 0.14.3)
|
10
|
-
guard-test (0.1.4)
|
11
|
-
guard (>= 0.2.2)
|
12
|
-
test-unit (~> 2.1)
|
13
|
-
jeweler (1.5.2)
|
14
|
-
bundler (~> 1.0.0)
|
15
|
-
git (>= 1.2.5)
|
16
|
-
rake
|
17
|
-
launchy (0.3.7)
|
18
|
-
configuration (>= 0.0.5)
|
19
|
-
rake (>= 0.8.1)
|
20
|
-
open_gem (1.4.2)
|
21
|
-
launchy (~> 0.3.5)
|
22
|
-
rake (0.8.7)
|
23
|
-
shoulda (2.11.3)
|
24
|
-
test-unit (2.1.2)
|
25
|
-
thor (0.14.6)
|
26
|
-
|
27
|
-
PLATFORMS
|
28
|
-
ruby
|
29
|
-
|
30
|
-
DEPENDENCIES
|
31
|
-
activesupport (~> 3.0)
|
32
|
-
guard-test (~> 0.1.4)
|
33
|
-
jeweler (~> 1.5.2)
|
34
|
-
shoulda (~> 2.11.3)
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.1.1
|