crapshoot 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -51,7 +51,3 @@ Rake::RDocTask.new do |rdoc|
51
51
  rdoc.rdoc_files.include('lib/**/*.rb')
52
52
  end
53
53
 
54
- require 'yard'
55
- YARD::Rake::YardocTask.new do |t|
56
- t.files = ['lib/**/*.rb', 'README.rdoc']
57
- end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Bryce Kerley"]
10
- s.date = %q{2011-1-12}
10
+ s.date = %q{2011-09-03}
11
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
12
  s.email = "bkerley@brycekerley.net"
13
13
  s.extra_rdoc_files = [
@@ -23,10 +23,8 @@ Gem::Specification.new do |s|
23
23
  s.summary = %q{The alpha and omega of rolling dice}
24
24
  s.required_ruby_version = '~> 1.9.2'
25
25
 
26
- s.add_runtime_dependency(%q<activesupport>, ["~> 3.0"])
27
26
  s.add_development_dependency(%q<guard-test>, ["~> 0.1.4"])
28
27
  s.add_development_dependency(%q<shoulda>, ["~> 2.11.3"])
29
28
  s.add_development_dependency(%q<bundler>, ["~> 1.0.7"])
30
- s.add_development_dependency(%q<yard>, ["~> 0.6.4"])
31
29
  end
32
30
 
@@ -1,5 +1,5 @@
1
1
  require 'delegate'
2
- require 'active_support'
2
+ require 'securerandom'
3
3
  %w{ result scanner postfixer evaluator }.each do |f|
4
4
  require File.join(File.dirname(__FILE__), 'crapshoot', f)
5
5
  end
@@ -36,7 +36,7 @@ module Crapshoot
36
36
 
37
37
  def roll_a_die
38
38
  # +1 because we can roll a zero
39
- ActiveSupport::SecureRandom.random_number(@sides) + 1
39
+ SecureRandom.random_number(@sides) + 1
40
40
  end
41
41
 
42
42
  class TooManyDiceException < RuntimeError
@@ -1,3 +1,3 @@
1
1
  module Crapshoot
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,106 +1,58 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: crapshoot
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 4
8
- - 0
9
- version: 0.4.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.1
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Bryce Kerley
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-01-12 00:00:00 +00:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: activesupport
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ~>
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 3
29
- - 0
30
- version: "3.0"
31
- type: :runtime
32
- prerelease: false
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
12
+ date: 2011-09-03 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
35
15
  name: guard-test
36
- requirement: &id002 !ruby/object:Gem::Requirement
16
+ requirement: &70182454654240 !ruby/object:Gem::Requirement
37
17
  none: false
38
- requirements:
18
+ requirements:
39
19
  - - ~>
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- - 1
44
- - 4
20
+ - !ruby/object:Gem::Version
45
21
  version: 0.1.4
46
22
  type: :development
47
23
  prerelease: false
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
24
+ version_requirements: *70182454654240
25
+ - !ruby/object:Gem::Dependency
50
26
  name: shoulda
51
- requirement: &id003 !ruby/object:Gem::Requirement
27
+ requirement: &70182454649740 !ruby/object:Gem::Requirement
52
28
  none: false
53
- requirements:
29
+ requirements:
54
30
  - - ~>
55
- - !ruby/object:Gem::Version
56
- segments:
57
- - 2
58
- - 11
59
- - 3
31
+ - !ruby/object:Gem::Version
60
32
  version: 2.11.3
61
33
  type: :development
62
34
  prerelease: false
63
- version_requirements: *id003
64
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *70182454649740
36
+ - !ruby/object:Gem::Dependency
65
37
  name: bundler
66
- requirement: &id004 !ruby/object:Gem::Requirement
38
+ requirement: &70182454645140 !ruby/object:Gem::Requirement
67
39
  none: false
68
- requirements:
40
+ requirements:
69
41
  - - ~>
70
- - !ruby/object:Gem::Version
71
- segments:
72
- - 1
73
- - 0
74
- - 7
42
+ - !ruby/object:Gem::Version
75
43
  version: 1.0.7
76
44
  type: :development
77
45
  prerelease: false
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: yard
81
- requirement: &id005 !ruby/object:Gem::Requirement
82
- none: false
83
- requirements:
84
- - - ~>
85
- - !ruby/object:Gem::Version
86
- segments:
87
- - 0
88
- - 6
89
- - 4
90
- version: 0.6.4
91
- type: :development
92
- prerelease: false
93
- version_requirements: *id005
94
- 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.
46
+ version_requirements: *70182454645140
47
+ description: Crapshoot is a dice-rolling gem for most of your pen-and-paper gaming
48
+ needs; roll 4d6v to find out how much time it will save.
95
49
  email: bkerley@brycekerley.net
96
50
  executables: []
97
-
98
51
  extensions: []
99
-
100
- extra_rdoc_files:
52
+ extra_rdoc_files:
101
53
  - LICENSE.txt
102
54
  - README.rdoc
103
- files:
55
+ files:
104
56
  - .document
105
57
  - .gitignore
106
58
  - Gemfile
@@ -127,41 +79,32 @@ files:
127
79
  - test/postfixer_test.rb
128
80
  - test/result_test.rb
129
81
  - test/scanner_test.rb
130
- has_rdoc: true
131
82
  homepage: http://github.com/bkerley/crapshoot
132
- licenses:
83
+ licenses:
133
84
  - MIT
134
85
  post_install_message:
135
86
  rdoc_options: []
136
-
137
- require_paths:
87
+ require_paths:
138
88
  - lib
139
- required_ruby_version: !ruby/object:Gem::Requirement
89
+ required_ruby_version: !ruby/object:Gem::Requirement
140
90
  none: false
141
- requirements:
91
+ requirements:
142
92
  - - ~>
143
- - !ruby/object:Gem::Version
144
- segments:
145
- - 1
146
- - 9
147
- - 2
93
+ - !ruby/object:Gem::Version
148
94
  version: 1.9.2
149
- required_rubygems_version: !ruby/object:Gem::Requirement
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
96
  none: false
151
- requirements:
152
- - - ">="
153
- - !ruby/object:Gem::Version
154
- segments:
155
- - 0
156
- version: "0"
97
+ requirements:
98
+ - - ! '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
157
101
  requirements: []
158
-
159
102
  rubyforge_project:
160
- rubygems_version: 1.3.7
103
+ rubygems_version: 1.8.7
161
104
  signing_key:
162
105
  specification_version: 3
163
106
  summary: The alpha and omega of rolling dice
164
- test_files:
107
+ test_files:
165
108
  - test/crapshoot_test.rb
166
109
  - test/evaluator_test.rb
167
110
  - test/helper.rb