ascension 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.lre ADDED
@@ -0,0 +1 @@
1
+ load "lib/ascension.rb"
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,37 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "rspec", "~> 2.8.0"
10
+ gem "rdoc", "~> 3.12"
11
+ gem "bundler", ">= 1.0.0"
12
+ gem "jeweler", "~> 1.8.4"
13
+ #gem "rcov", ">= 0"
14
+
15
+ gem 'guard'
16
+ gem 'guard-rspec'
17
+ gem 'guard-spork'
18
+
19
+ gem 'lre'
20
+
21
+ gem 'rr'
22
+ end
23
+
24
+ gem 'mharris_ext'
25
+ gem "rchoice", :path => '/code/orig/rchoice'
26
+ #gem "rchoice", :path => "/users/mharris717/gems/rchoice-0.2.0"
27
+ #gem 'rchoice','0.2.0'
28
+ #gem 'rchoice', :git => "git@github.com:mharris717/rchoice.git", :branch => "gemdir"
29
+
30
+ gem "mongo_persist", :path => "/code/orig/mongo_persist"
31
+ gem 'andand'
32
+
33
+ gem 'activesupport'
34
+ gem 'bson_ext'
35
+ gem 'mongo_scope'
36
+ gem 'mongo'
37
+ gem 'sinatra'
@@ -0,0 +1,128 @@
1
+ PATH
2
+ remote: /code/orig/mongo_persist
3
+ specs:
4
+ mongo_persist (0.0.1)
5
+ activesupport
6
+ fattr
7
+
8
+ PATH
9
+ remote: /code/orig/rchoice
10
+ specs:
11
+ rchoice (0.2.0)
12
+ andand
13
+ mharris_ext
14
+
15
+ GEM
16
+ remote: http://rubygems.org/
17
+ specs:
18
+ activesupport (3.2.13)
19
+ i18n (= 0.6.1)
20
+ multi_json (~> 1.0)
21
+ andand (1.3.3)
22
+ bson (1.7.0)
23
+ bson_ext (1.7.0)
24
+ bson (~> 1.7.0)
25
+ childprocess (0.3.9)
26
+ ffi (~> 1.0, >= 1.0.11)
27
+ coderay (1.0.9)
28
+ diff-lcs (1.1.3)
29
+ facets (2.9.3)
30
+ fattr (2.2.1)
31
+ ffi (1.4.0)
32
+ ffi (1.4.0-java)
33
+ git (1.2.5)
34
+ guard (1.6.2)
35
+ listen (>= 0.6.0)
36
+ lumberjack (>= 1.0.2)
37
+ pry (>= 0.9.10)
38
+ terminal-table (>= 1.4.3)
39
+ thor (>= 0.14.6)
40
+ guard-rspec (1.2.1)
41
+ guard (>= 1.1)
42
+ guard-spork (1.4.2)
43
+ childprocess (>= 0.2.3)
44
+ guard (>= 1.1)
45
+ spork (>= 0.8.4)
46
+ i18n (0.6.1)
47
+ jeweler (1.8.4)
48
+ bundler (~> 1.0)
49
+ git (>= 1.2.5)
50
+ rake
51
+ rdoc
52
+ json (1.7.7)
53
+ json (1.7.7-java)
54
+ listen (0.7.3)
55
+ lre (0.3.0)
56
+ fattr
57
+ mharris_ext
58
+ watchr
59
+ lumberjack (1.0.2)
60
+ method_source (0.8.1)
61
+ mharris_ext (1.6.0)
62
+ facets
63
+ fattr
64
+ mongo (1.7.0)
65
+ bson (~> 1.7.0)
66
+ mongo_scope (0.0.5)
67
+ mongo
68
+ multi_json (1.7.1)
69
+ pry (0.9.12)
70
+ coderay (~> 1.0.5)
71
+ method_source (~> 0.8)
72
+ slop (~> 3.4)
73
+ pry (0.9.12-java)
74
+ coderay (~> 1.0.5)
75
+ method_source (~> 0.8)
76
+ slop (~> 3.4)
77
+ spoon (~> 0.0)
78
+ rack (1.5.2)
79
+ rack-protection (1.5.0)
80
+ rack
81
+ rake (10.0.4)
82
+ rdoc (3.12.2)
83
+ json (~> 1.4)
84
+ rr (1.0.4)
85
+ rspec (2.8.0)
86
+ rspec-core (~> 2.8.0)
87
+ rspec-expectations (~> 2.8.0)
88
+ rspec-mocks (~> 2.8.0)
89
+ rspec-core (2.8.0)
90
+ rspec-expectations (2.8.0)
91
+ diff-lcs (~> 1.1.2)
92
+ rspec-mocks (2.8.0)
93
+ sinatra (1.3.6)
94
+ rack (~> 1.4)
95
+ rack-protection (~> 1.3)
96
+ tilt (~> 1.3, >= 1.3.3)
97
+ slop (3.4.3)
98
+ spoon (0.0.3)
99
+ ffi
100
+ spork (0.9.2)
101
+ terminal-table (1.4.5)
102
+ thor (0.17.0)
103
+ tilt (1.3.6)
104
+ watchr (0.7)
105
+
106
+ PLATFORMS
107
+ java
108
+ ruby
109
+
110
+ DEPENDENCIES
111
+ activesupport
112
+ andand
113
+ bson_ext
114
+ bundler (>= 1.0.0)
115
+ guard
116
+ guard-rspec
117
+ guard-spork
118
+ jeweler (~> 1.8.4)
119
+ lre
120
+ mharris_ext
121
+ mongo
122
+ mongo_persist!
123
+ mongo_scope
124
+ rchoice!
125
+ rdoc (~> 3.12)
126
+ rr
127
+ rspec (~> 2.8.0)
128
+ sinatra
@@ -0,0 +1,27 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+
5
+
6
+
7
+ guard 'rspec', :cli => "--drb" do
8
+ watch(%r{^spec/.+_spec\.rb$})
9
+ watch(%r{^lib/(.+)\.rb$}) { "spec" } # { |m| "spec/lib/#{m[1]}_spec.rb" }
10
+ watch(%r{^lib/(.+)\.treetop$}) { "spec" }
11
+ watch('spec/spec_helper.rb') { "spec" }
12
+ end
13
+
14
+
15
+
16
+
17
+ guard 'spork' do
18
+ watch('config/application.rb')
19
+ watch('config/environment.rb')
20
+ watch('config/environments/test.rb')
21
+ watch(%r{^config/initializers/.+\.rb$})
22
+ watch('Gemfile')
23
+ watch('Gemfile.lock')
24
+ watch('spec/spec_helper.rb') { :rspec }
25
+ watch('test/test_helper.rb') { :test_unit }
26
+ watch(%r{features/support/}) { :cucumber }
27
+ end
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Mike Harris
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,19 @@
1
+ = ascension
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to ascension
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
+ * Fork the project.
10
+ * Start a feature/bugfix branch.
11
+ * Commit and push until you are happy with your contribution.
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2013 Mike Harris. See LICENSE.txt for
18
+ further details.
19
+
@@ -0,0 +1,75 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "ascension"
18
+ gem.homepage = "http://github.com/mharris717/ascension"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{ascension}
21
+ gem.description = %Q{ascension}
22
+ gem.email = "mharris717@gmail.com"
23
+ gem.authors = ["Mike Harris"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rspec/core'
29
+ require 'rspec/core/rake_task'
30
+ RSpec::Core::RakeTask.new(:spec) do |spec|
31
+ spec.pattern = FileList['spec/**/*_spec.rb']
32
+ end
33
+
34
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
35
+ spec.pattern = 'spec/**/*_spec.rb'
36
+ spec.rcov = true
37
+ end
38
+
39
+ task :default => :spec
40
+
41
+ require 'rdoc/task'
42
+ Rake::RDocTask.new do |rdoc|
43
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
44
+
45
+ rdoc.rdoc_dir = 'rdoc'
46
+ rdoc.title = "ascension #{version}"
47
+ rdoc.rdoc_files.include('README*')
48
+ rdoc.rdoc_files.include('lib/**/*.rb')
49
+ end
50
+
51
+ task :environment do
52
+ load "lib/ascension.rb"
53
+ end
54
+
55
+ task :dump_game => :environment do
56
+ require 'json'
57
+ obj = Game.collection.find.to_a[0]
58
+ str = obj.to_json
59
+ File.create "vol/game.json",str
60
+
61
+ require 'pp'
62
+
63
+ File.open("vol/game_pp.json","w") do |f|
64
+ PP.pp(obj,f)
65
+ end
66
+ end
67
+
68
+ task :reset_game => :environment do
69
+ Game.collection.remove
70
+ Game.reset!
71
+ puts Game.collection.find_one_object.mongo_id
72
+ end
73
+
74
+
75
+
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,129 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "ascension"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Mike Harris"]
12
+ s.date = "2013-04-05"
13
+ s.description = "ascension"
14
+ s.email = "mharris717@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".lre",
22
+ ".rspec",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "Guardfile",
26
+ "LICENSE.txt",
27
+ "README.rdoc",
28
+ "Rakefile",
29
+ "VERSION",
30
+ "ascension.gemspec",
31
+ "lib/ascension.rb",
32
+ "lib/ascension/Ascension-statistics_v1.csv",
33
+ "lib/ascension/ability.rb",
34
+ "lib/ascension/card.rb",
35
+ "lib/ascension/cards.csv",
36
+ "lib/ascension/cards.rb",
37
+ "lib/ascension/cards2.csv",
38
+ "lib/ascension/events.rb",
39
+ "lib/ascension/parse.rb",
40
+ "lib/ascension/pool.rb",
41
+ "lib/ascension/run.rb",
42
+ "lib/ascension/setup_rchoice.rb",
43
+ "lib/ascension/to_json.rb",
44
+ "lib/ascension/turn_manager.rb",
45
+ "notes.txt",
46
+ "spec/card_spec.rb",
47
+ "spec/center_spec.rb",
48
+ "spec/choice_instance_spec.rb",
49
+ "spec/main_spec.rb",
50
+ "spec/parse_spec.rb",
51
+ "spec/spec_helper.rb",
52
+ "vol/dmp.json",
53
+ "vol/dmp2.json",
54
+ "vol/find_by_id.rb",
55
+ "vol/game.json",
56
+ "vol/game_pp.json",
57
+ "vol/test_persist.rb",
58
+ "web/main.rb"
59
+ ]
60
+ s.homepage = "http://github.com/mharris717/ascension"
61
+ s.licenses = ["MIT"]
62
+ s.require_paths = ["lib"]
63
+ s.rubygems_version = "1.8.23"
64
+ s.summary = "ascension"
65
+
66
+ if s.respond_to? :specification_version then
67
+ s.specification_version = 3
68
+
69
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
70
+ s.add_runtime_dependency(%q<mharris_ext>, [">= 0"])
71
+ s.add_runtime_dependency(%q<rchoice>, [">= 0"])
72
+ s.add_runtime_dependency(%q<mongo_persist>, [">= 0"])
73
+ s.add_runtime_dependency(%q<andand>, [">= 0"])
74
+ s.add_runtime_dependency(%q<activesupport>, [">= 0"])
75
+ s.add_runtime_dependency(%q<bson_ext>, [">= 0"])
76
+ s.add_runtime_dependency(%q<mongo_scope>, [">= 0"])
77
+ s.add_runtime_dependency(%q<mongo>, [">= 0"])
78
+ s.add_runtime_dependency(%q<sinatra>, [">= 0"])
79
+ s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
80
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
81
+ s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
82
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
83
+ s.add_development_dependency(%q<guard>, [">= 0"])
84
+ s.add_development_dependency(%q<guard-rspec>, [">= 0"])
85
+ s.add_development_dependency(%q<guard-spork>, [">= 0"])
86
+ s.add_development_dependency(%q<lre>, [">= 0"])
87
+ s.add_development_dependency(%q<rr>, [">= 0"])
88
+ else
89
+ s.add_dependency(%q<mharris_ext>, [">= 0"])
90
+ s.add_dependency(%q<rchoice>, [">= 0"])
91
+ s.add_dependency(%q<mongo_persist>, [">= 0"])
92
+ s.add_dependency(%q<andand>, [">= 0"])
93
+ s.add_dependency(%q<activesupport>, [">= 0"])
94
+ s.add_dependency(%q<bson_ext>, [">= 0"])
95
+ s.add_dependency(%q<mongo_scope>, [">= 0"])
96
+ s.add_dependency(%q<mongo>, [">= 0"])
97
+ s.add_dependency(%q<sinatra>, [">= 0"])
98
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
99
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
100
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
101
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
102
+ s.add_dependency(%q<guard>, [">= 0"])
103
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
104
+ s.add_dependency(%q<guard-spork>, [">= 0"])
105
+ s.add_dependency(%q<lre>, [">= 0"])
106
+ s.add_dependency(%q<rr>, [">= 0"])
107
+ end
108
+ else
109
+ s.add_dependency(%q<mharris_ext>, [">= 0"])
110
+ s.add_dependency(%q<rchoice>, [">= 0"])
111
+ s.add_dependency(%q<mongo_persist>, [">= 0"])
112
+ s.add_dependency(%q<andand>, [">= 0"])
113
+ s.add_dependency(%q<activesupport>, [">= 0"])
114
+ s.add_dependency(%q<bson_ext>, [">= 0"])
115
+ s.add_dependency(%q<mongo_scope>, [">= 0"])
116
+ s.add_dependency(%q<mongo>, [">= 0"])
117
+ s.add_dependency(%q<sinatra>, [">= 0"])
118
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
119
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
120
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
121
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
122
+ s.add_dependency(%q<guard>, [">= 0"])
123
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
124
+ s.add_dependency(%q<guard-spork>, [">= 0"])
125
+ s.add_dependency(%q<lre>, [">= 0"])
126
+ s.add_dependency(%q<rr>, [">= 0"])
127
+ end
128
+ end
129
+