elo_rating 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b56895aa2ec414462c5b2480ed2ebe93fa9f642
4
- data.tar.gz: 50b2f10121650d74f5344d28eb440663d3b3a672
3
+ metadata.gz: 234b746cfd73febb6fafd5c60bba73541f30bd98
4
+ data.tar.gz: 4a563d7890683bcdbf076d20e1440d4148f5030f
5
5
  SHA512:
6
- metadata.gz: 7bd15401b85f7c9b8a0b5414ed45d44755afbb70b15b3308ca5cede8f41775f108b00763a3521ce6b2a9856673ea39e3e5b94b3ed41cd79eb6a493d3c19d8d1a
7
- data.tar.gz: 63b7eb3a19af7eccca15b9c07c9c93ee0d77b01b142d25dbcb17fc5575d8ddecaa3460f94f65cd292df50aa7dd3ca1327153886f2f63e0c13e4334c8b8e5faa6
6
+ metadata.gz: 019a19ba4502f0e88bfcefbdee250b7ab61295d0970fa6d79ebb20ff23e286e5fee2c9b88fcf5c306068fadec480eab929198581861bd45ea158b08c012bae12
7
+ data.tar.gz: 374d0bff359bdb950cddc367815ba32e4f6ea771d6cf6931ee8863036d9a6371872bd99a8917257f5a84cb2725b185eddfc64515927065a42da0ae38029d4988
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ Guardfile
2
+ Gemfile
3
+ Gemfile.lock
4
+ doc/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in elo_rating.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,63 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ elo_rating (0.3.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ celluloid (0.15.2)
10
+ timers (~> 1.1.0)
11
+ coderay (1.1.0)
12
+ diff-lcs (1.2.5)
13
+ ffi (1.9.3)
14
+ formatador (0.2.5)
15
+ guard (2.6.1)
16
+ formatador (>= 0.2.4)
17
+ listen (~> 2.7)
18
+ lumberjack (~> 1.0)
19
+ pry (>= 0.9.12)
20
+ thor (>= 0.18.1)
21
+ guard-rspec (4.2.10)
22
+ guard (~> 2.1)
23
+ rspec (>= 2.14, < 4.0)
24
+ listen (2.7.9)
25
+ celluloid (>= 0.15.2)
26
+ rb-fsevent (>= 0.9.3)
27
+ rb-inotify (>= 0.9)
28
+ lumberjack (1.0.7)
29
+ method_source (0.8.2)
30
+ pry (0.10.0)
31
+ coderay (~> 1.1.0)
32
+ method_source (~> 0.8.1)
33
+ slop (~> 3.4)
34
+ rake (10.3.1)
35
+ rb-fsevent (0.9.4)
36
+ rb-inotify (0.9.5)
37
+ ffi (>= 0.5.0)
38
+ rspec (3.0.0)
39
+ rspec-core (~> 3.0.0)
40
+ rspec-expectations (~> 3.0.0)
41
+ rspec-mocks (~> 3.0.0)
42
+ rspec-core (3.0.2)
43
+ rspec-support (~> 3.0.0)
44
+ rspec-expectations (3.0.2)
45
+ diff-lcs (>= 1.2.0, < 2.0)
46
+ rspec-support (~> 3.0.0)
47
+ rspec-mocks (3.0.2)
48
+ rspec-support (~> 3.0.0)
49
+ rspec-support (3.0.2)
50
+ slop (3.5.0)
51
+ thor (0.19.1)
52
+ timers (1.1.0)
53
+
54
+ PLATFORMS
55
+ ruby
56
+
57
+ DEPENDENCIES
58
+ bundler (~> 1.6)
59
+ elo_rating!
60
+ guard
61
+ guard-rspec
62
+ rake
63
+ rspec
data/Guardfile ADDED
@@ -0,0 +1,24 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard :rspec do
5
+ watch(%r{^spec/.+_spec\.rb$})
6
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7
+ watch('spec/spec_helper.rb') { "spec" }
8
+
9
+ # Rails example
10
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
11
+ watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
12
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
13
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
14
+ watch('config/routes.rb') { "spec/routing" }
15
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
16
+
17
+ # Capybara features specs
18
+ watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
19
+
20
+ # Turnip features and steps
21
+ watch(%r{^spec/acceptance/(.+)\.feature$})
22
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
23
+ end
24
+
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  It can handle multiple players in one game and allows for custom K-factor functions.
6
6
 
7
- - [API Documentation]()
7
+ - [API Documentation](https://mxhold.github.io/elo_rating/doc/)
8
8
 
9
9
  ## Getting started
10
10
 
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'elo_rating/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "elo_rating"
8
+ spec.version = EloRating::VERSION
9
+ spec.authors = ["Max Holder"]
10
+ spec.email = ["mxhold@gmail.com"]
11
+ spec.summary = "Tiny library for calculating Elo ratings"
12
+ spec.description = "Tiny library for calculating Elo ratings. Handles multiplayer matches and allows for custom k-factor functions."
13
+ spec.homepage = "http://github.com/mxhold/elo_rating"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.6"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "guard"
25
+ spec.add_development_dependency "guard-rspec"
26
+ end
@@ -0,0 +1,3 @@
1
+ module EloRating
2
+ VERSION = "0.3.0"
3
+ end
data/lib/elo_rating.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require "elo_rating/version"
2
+ require 'elo_rating/match'
1
3
  # :main: README.md
2
4
 
3
5
  ##
@@ -70,4 +72,3 @@ module EloRating
70
72
  end
71
73
  end
72
74
 
73
- require 'elo_rating/match'
metadata CHANGED
@@ -1,26 +1,104 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elo_rating
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Holder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-28 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2014-06-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
13
83
  description: Tiny library for calculating Elo ratings. Handles multiplayer matches
14
84
  and allows for custom k-factor functions.
15
- email: mxhold@gmail.com
85
+ email:
86
+ - mxhold@gmail.com
16
87
  executables: []
17
88
  extensions: []
18
89
  extra_rdoc_files: []
19
90
  files:
91
+ - ".gitignore"
92
+ - Gemfile
93
+ - Gemfile.lock
94
+ - Guardfile
20
95
  - LICENSE
21
96
  - README.md
97
+ - Rakefile
98
+ - elo_rating.gemspec
22
99
  - lib/elo_rating.rb
23
100
  - lib/elo_rating/match.rb
101
+ - lib/elo_rating/version.rb
24
102
  - spec/elo_rating_spec.rb
25
103
  - spec/match_spec.rb
26
104
  homepage: http://github.com/mxhold/elo_rating