rpg-tools 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +15 -0
- data/.rspec +1 -0
- data/.travis.yml +6 -0
- data/.yardopts +3 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +20 -0
- data/README.textile +28 -0
- data/Rakefile +27 -0
- data/app/models/tools/check_roll.rb +82 -0
- data/app/models/tools/die.rb +35 -0
- data/app/models/tools/throw.rb +71 -0
- data/config/locales/en.yml +11 -0
- data/lib/generators/rpg_tools/install_generator.rb +21 -0
- data/lib/generators/rpg_tools/templates/initializer.rb +3 -0
- data/lib/rpg_tools.rb +11 -0
- data/lib/rpg_tools/engine.rb +11 -0
- data/rpg_tools.gemspec +30 -0
- data/spec/dummy/Gemfile +6 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +45 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +22 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +26 -0
- data/spec/dummy/config/environments/production.rb +49 -0
- data/spec/dummy/config/environments/test.rb +35 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +60 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/javascripts/application.js +2 -0
- data/spec/dummy/public/javascripts/controls.js +965 -0
- data/spec/dummy/public/javascripts/dragdrop.js +974 -0
- data/spec/dummy/public/javascripts/effects.js +1123 -0
- data/spec/dummy/public/javascripts/prototype.js +6001 -0
- data/spec/dummy/public/javascripts/rails.js +191 -0
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/dummy/public/stylesheets/scaffold.css +56 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/integration/navigation_spec.rb +9 -0
- data/spec/models/tools/check_roll_spec.rb +116 -0
- data/spec/models/tools/die_spec.rb +29 -0
- data/spec/models/tools/throw_spec.rb +55 -0
- data/spec/rpg_tools_spec.rb +7 -0
- data/spec/spec_helper.rb +36 -0
- metadata +216 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Configure Rails Envinronment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rspec/rails"
|
6
|
+
|
7
|
+
ActionMailer::Base.delivery_method = :test
|
8
|
+
ActionMailer::Base.perform_deliveries = true
|
9
|
+
ActionMailer::Base.default_url_options[:host] = "test.com"
|
10
|
+
|
11
|
+
Rails.backtrace_cleaner.remove_silencers!
|
12
|
+
|
13
|
+
# Configure capybara for integration testing
|
14
|
+
require "capybara/rails"
|
15
|
+
Capybara.default_driver = :rack_test
|
16
|
+
Capybara.default_selector = :css
|
17
|
+
|
18
|
+
# Run any available migration
|
19
|
+
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
|
20
|
+
|
21
|
+
# Load support files
|
22
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
23
|
+
|
24
|
+
# Load Factories
|
25
|
+
require 'factory_girl'
|
26
|
+
Dir["#{File.dirname(__FILE__)}/factories/*.rb"].each {|f| require f}
|
27
|
+
|
28
|
+
RSpec.configure do |config|
|
29
|
+
# Remove this line if you don't want RSpec's should and should_not
|
30
|
+
# methods or matchers
|
31
|
+
require 'rspec/expectations'
|
32
|
+
config.include RSpec::Matchers
|
33
|
+
|
34
|
+
# == Mock Framework
|
35
|
+
config.mock_with :rspec
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,216 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rpg-tools
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Eduardo Casanova Cuesta
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-08-20 00:00:00 +02:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 7
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 0
|
32
|
+
- 0
|
33
|
+
version: 3.0.0
|
34
|
+
type: :runtime
|
35
|
+
name: rails
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
type: :development
|
49
|
+
name: sqlite3-ruby
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ~>
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 49
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
- 10
|
62
|
+
- 3
|
63
|
+
version: 0.10.3
|
64
|
+
type: :development
|
65
|
+
name: ruby-debug
|
66
|
+
version_requirements: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
prerelease: false
|
69
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ~>
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 21
|
75
|
+
segments:
|
76
|
+
- 2
|
77
|
+
- 6
|
78
|
+
- 1
|
79
|
+
version: 2.6.1
|
80
|
+
type: :development
|
81
|
+
name: rspec-rails
|
82
|
+
version_requirements: *id004
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
prerelease: false
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ~>
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 31
|
91
|
+
segments:
|
92
|
+
- 1
|
93
|
+
- 3
|
94
|
+
- 2
|
95
|
+
version: 1.3.2
|
96
|
+
type: :development
|
97
|
+
name: factory_girl
|
98
|
+
version_requirements: *id005
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
prerelease: false
|
101
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ~>
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
hash: 21
|
107
|
+
segments:
|
108
|
+
- 1
|
109
|
+
- 0
|
110
|
+
- 1
|
111
|
+
version: 1.0.1
|
112
|
+
type: :development
|
113
|
+
name: capybara
|
114
|
+
version_requirements: *id006
|
115
|
+
description: "Some tools useful when creating a RPG: Die, Throw and CheckRoll."
|
116
|
+
email: ecasanovac@gmail.com
|
117
|
+
executables: []
|
118
|
+
|
119
|
+
extensions: []
|
120
|
+
|
121
|
+
extra_rdoc_files: []
|
122
|
+
|
123
|
+
files:
|
124
|
+
- .gitignore
|
125
|
+
- .rspec
|
126
|
+
- .travis.yml
|
127
|
+
- .yardopts
|
128
|
+
- Gemfile
|
129
|
+
- LICENSE.txt
|
130
|
+
- README.textile
|
131
|
+
- Rakefile
|
132
|
+
- app/models/tools/check_roll.rb
|
133
|
+
- app/models/tools/die.rb
|
134
|
+
- app/models/tools/throw.rb
|
135
|
+
- config/locales/en.yml
|
136
|
+
- lib/generators/rpg_tools/install_generator.rb
|
137
|
+
- lib/generators/rpg_tools/templates/initializer.rb
|
138
|
+
- lib/rpg_tools.rb
|
139
|
+
- lib/rpg_tools/engine.rb
|
140
|
+
- rpg_tools.gemspec
|
141
|
+
- spec/dummy/Gemfile
|
142
|
+
- spec/dummy/Rakefile
|
143
|
+
- spec/dummy/app/controllers/application_controller.rb
|
144
|
+
- spec/dummy/app/helpers/application_helper.rb
|
145
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
146
|
+
- spec/dummy/config.ru
|
147
|
+
- spec/dummy/config/application.rb
|
148
|
+
- spec/dummy/config/boot.rb
|
149
|
+
- spec/dummy/config/database.yml
|
150
|
+
- spec/dummy/config/environment.rb
|
151
|
+
- spec/dummy/config/environments/development.rb
|
152
|
+
- spec/dummy/config/environments/production.rb
|
153
|
+
- spec/dummy/config/environments/test.rb
|
154
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
155
|
+
- spec/dummy/config/initializers/inflections.rb
|
156
|
+
- spec/dummy/config/initializers/mime_types.rb
|
157
|
+
- spec/dummy/config/initializers/secret_token.rb
|
158
|
+
- spec/dummy/config/initializers/session_store.rb
|
159
|
+
- spec/dummy/config/locales/en.yml
|
160
|
+
- spec/dummy/config/routes.rb
|
161
|
+
- spec/dummy/db/test.sqlite3
|
162
|
+
- spec/dummy/public/404.html
|
163
|
+
- spec/dummy/public/422.html
|
164
|
+
- spec/dummy/public/500.html
|
165
|
+
- spec/dummy/public/favicon.ico
|
166
|
+
- spec/dummy/public/javascripts/application.js
|
167
|
+
- spec/dummy/public/javascripts/controls.js
|
168
|
+
- spec/dummy/public/javascripts/dragdrop.js
|
169
|
+
- spec/dummy/public/javascripts/effects.js
|
170
|
+
- spec/dummy/public/javascripts/prototype.js
|
171
|
+
- spec/dummy/public/javascripts/rails.js
|
172
|
+
- spec/dummy/public/stylesheets/.gitkeep
|
173
|
+
- spec/dummy/public/stylesheets/scaffold.css
|
174
|
+
- spec/dummy/script/rails
|
175
|
+
- spec/integration/navigation_spec.rb
|
176
|
+
- spec/models/tools/check_roll_spec.rb
|
177
|
+
- spec/models/tools/die_spec.rb
|
178
|
+
- spec/models/tools/throw_spec.rb
|
179
|
+
- spec/rpg_tools_spec.rb
|
180
|
+
- spec/spec_helper.rb
|
181
|
+
has_rdoc: true
|
182
|
+
homepage: https://github.com/roendal/rpg-tools
|
183
|
+
licenses: []
|
184
|
+
|
185
|
+
post_install_message:
|
186
|
+
rdoc_options: []
|
187
|
+
|
188
|
+
require_paths:
|
189
|
+
- lib
|
190
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
191
|
+
none: false
|
192
|
+
requirements:
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
hash: 3
|
196
|
+
segments:
|
197
|
+
- 0
|
198
|
+
version: "0"
|
199
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
|
+
none: false
|
201
|
+
requirements:
|
202
|
+
- - ">="
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
hash: 3
|
205
|
+
segments:
|
206
|
+
- 0
|
207
|
+
version: "0"
|
208
|
+
requirements: []
|
209
|
+
|
210
|
+
rubyforge_project:
|
211
|
+
rubygems_version: 1.6.2
|
212
|
+
signing_key:
|
213
|
+
specification_version: 3
|
214
|
+
summary: "Some tools useful when creating a RPG: Die, Throw and CheckRoll."
|
215
|
+
test_files: []
|
216
|
+
|