sportdb-market 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +1 -1
- data/README.md +5 -7
- data/lib/sportdb/market.rb +6 -4
- data/lib/sportdb/market/loader.rb +6 -3
- data/lib/sportdb/market/models/event_quote.rb +5 -3
- data/lib/sportdb/market/models/game.rb +5 -3
- data/lib/sportdb/market/models/group_quote.rb +6 -3
- data/lib/sportdb/market/models/quote.rb +5 -3
- data/lib/sportdb/market/models/service.rb +5 -3
- data/lib/sportdb/market/reader.rb +5 -3
- data/lib/sportdb/market/version.rb +4 -4
- metadata +11 -9
data/History.md
CHANGED
data/README.md
CHANGED
@@ -14,14 +14,12 @@ sportdb plugin for market quotes (odds, etc)
|
|
14
14
|
TBD
|
15
15
|
|
16
16
|
|
17
|
-
##
|
17
|
+
## License
|
18
18
|
|
19
|
-
|
19
|
+
The `sportdb-market` scripts are dedicated to the public domain.
|
20
|
+
Use it as you please with no restrictions whatsoever.
|
20
21
|
|
21
|
-
$ gem install sportdb-market
|
22
22
|
|
23
|
+
## Questions? Comments?
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
The `sportdb-market` scripts are dedicated to the public domain.
|
27
|
-
Use it as you please with no restrictions whatsoever.
|
25
|
+
Send them along to the [Open Sports Database & Friends Forum/Mailing List](http://groups.google.com/group/opensport). Thanks!
|
data/lib/sportdb/market.rb
CHANGED
@@ -14,7 +14,8 @@ require 'sportdb/market/loader'
|
|
14
14
|
require 'sportdb/market/reader'
|
15
15
|
|
16
16
|
|
17
|
-
module SportDb
|
17
|
+
module SportDb
|
18
|
+
module Market
|
18
19
|
|
19
20
|
def self.banner
|
20
21
|
"sportdb-market #{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
@@ -32,7 +33,7 @@ module SportDb::Market
|
|
32
33
|
|
33
34
|
def self.create
|
34
35
|
CreateDb.new.up
|
35
|
-
# WorldDb::
|
36
|
+
# WorldDb::Model::Prop.create!( key: 'db.schema.sport.market.version', value: SportDb::Market::VERSION )
|
36
37
|
end
|
37
38
|
|
38
39
|
|
@@ -50,7 +51,7 @@ module SportDb::Market
|
|
50
51
|
## todo: move into its own file???
|
51
52
|
|
52
53
|
## make models available in sportdb module by default with namespace
|
53
|
-
# e.g. lets you use Team instead of
|
54
|
+
# e.g. lets you use Team instead of Model::Team
|
54
55
|
include SportDb::Models
|
55
56
|
|
56
57
|
def run( args=[] )
|
@@ -70,7 +71,8 @@ module SportDb::Market
|
|
70
71
|
Deleter.new.run
|
71
72
|
end # method delete!
|
72
73
|
|
73
|
-
end
|
74
|
+
end # module Market
|
75
|
+
end # module SportDb
|
74
76
|
|
75
77
|
|
76
78
|
## say hello
|
@@ -1,12 +1,13 @@
|
|
1
1
|
|
2
|
-
module SportDb
|
2
|
+
module SportDb
|
3
|
+
module Market
|
3
4
|
|
4
5
|
class Loader
|
5
6
|
|
6
7
|
include LogUtils::Logging
|
7
8
|
|
8
9
|
## make models available in sportdb module by default with namespace
|
9
|
-
# e.g. lets you use Team instead of
|
10
|
+
# e.g. lets you use Team instead of Model::Team
|
10
11
|
include SportDb::Models
|
11
12
|
|
12
13
|
attr_reader :include_path
|
@@ -53,4 +54,6 @@ private
|
|
53
54
|
end
|
54
55
|
|
55
56
|
end # class Loader
|
56
|
-
|
57
|
+
|
58
|
+
end # module Market
|
59
|
+
end # module SportDb
|
@@ -1,7 +1,8 @@
|
|
1
1
|
|
2
|
-
# NB: just use namespace SportDb::
|
2
|
+
# NB: just use namespace SportDb::Model (not SportDb::Model::Market)
|
3
3
|
|
4
|
-
module SportDb
|
4
|
+
module SportDb
|
5
|
+
module Model
|
5
6
|
|
6
7
|
class EventQuote < ActiveRecord::Base
|
7
8
|
|
@@ -24,4 +25,5 @@ class EventQuote < ActiveRecord::Base
|
|
24
25
|
|
25
26
|
end # class EventQuote
|
26
27
|
|
27
|
-
end
|
28
|
+
end # module Model
|
29
|
+
end # module SportDb
|
@@ -1,7 +1,8 @@
|
|
1
1
|
|
2
|
-
# NB: just use namespace SportDb::
|
2
|
+
# NB: just use namespace SportDb::Model (not SportDb::Model::Market)
|
3
3
|
|
4
|
-
module SportDb
|
4
|
+
module SportDb
|
5
|
+
module Model
|
5
6
|
|
6
7
|
################################
|
7
8
|
# extend Game w/ quotes etc.
|
@@ -12,4 +13,5 @@ class Game
|
|
12
13
|
|
13
14
|
end # class Game
|
14
15
|
|
15
|
-
end
|
16
|
+
end # module Model
|
17
|
+
end # module SportDb
|
@@ -1,7 +1,8 @@
|
|
1
1
|
|
2
|
-
# NB: just use namespace SportDb::
|
2
|
+
# NB: just use namespace SportDb::Model (not SportDb::Model::Market)
|
3
3
|
|
4
|
-
module SportDb
|
4
|
+
module SportDb
|
5
|
+
module Model
|
5
6
|
|
6
7
|
class GroupQuote < ActiveRecord::Base
|
7
8
|
|
@@ -23,4 +24,6 @@ class GroupQuote < ActiveRecord::Base
|
|
23
24
|
|
24
25
|
end # class GroupQuote
|
25
26
|
|
26
|
-
end
|
27
|
+
end # module Model
|
28
|
+
end # module SportDb
|
29
|
+
|
@@ -1,7 +1,8 @@
|
|
1
1
|
|
2
|
-
## NB: just use namespace SportDb::
|
2
|
+
## NB: just use namespace SportDb::Model (not SportDb::Model::Market)
|
3
3
|
|
4
|
-
module SportDb
|
4
|
+
module SportDb
|
5
|
+
module Model
|
5
6
|
|
6
7
|
class Quote < ActiveRecord::Base
|
7
8
|
|
@@ -33,4 +34,5 @@ class Quote < ActiveRecord::Base
|
|
33
34
|
|
34
35
|
end # class Quote
|
35
36
|
|
36
|
-
end
|
37
|
+
end # module Model
|
38
|
+
end # module SportDb
|
@@ -1,7 +1,8 @@
|
|
1
1
|
|
2
|
-
# NB: just use namespace SportDb::
|
2
|
+
# NB: just use namespace SportDb::Model (not SportDb::Model::Market)
|
3
3
|
|
4
|
-
module SportDb
|
4
|
+
module SportDb
|
5
|
+
module Model
|
5
6
|
|
6
7
|
class Service < ActiveRecord::Base
|
7
8
|
|
@@ -10,4 +11,5 @@ class Service < ActiveRecord::Base
|
|
10
11
|
|
11
12
|
end # class Service
|
12
13
|
|
13
|
-
end # module
|
14
|
+
end # module Model
|
15
|
+
end # module SportDb
|
@@ -1,5 +1,6 @@
|
|
1
1
|
|
2
|
-
module SportDb
|
2
|
+
module SportDb
|
3
|
+
module Market
|
3
4
|
|
4
5
|
### load quotes from plain text files
|
5
6
|
|
@@ -8,7 +9,7 @@ class Reader
|
|
8
9
|
include LogUtils::Logging
|
9
10
|
|
10
11
|
## make models available in sportdb module by default with namespace
|
11
|
-
# e.g. lets you use Team instead of
|
12
|
+
# e.g. lets you use Team instead of Model::Team
|
12
13
|
include SportDb::Models
|
13
14
|
|
14
15
|
attr_reader :include_path
|
@@ -278,4 +279,5 @@ private
|
|
278
279
|
|
279
280
|
end # class Reader
|
280
281
|
|
281
|
-
end # module
|
282
|
+
end # module Market
|
283
|
+
end # module SportDb
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-market
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,36 +9,38 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
16
|
-
requirement: &
|
16
|
+
requirement: &20542596 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '4.0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *20542596
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hoe
|
27
|
-
requirement: &
|
27
|
+
requirement: &20542308 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '3.
|
32
|
+
version: '3.7'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *20542308
|
36
36
|
description: sportdb plugin for market quotes (odds, etc)
|
37
37
|
email: opensport@googlegroups.com
|
38
38
|
executables: []
|
39
39
|
extensions: []
|
40
40
|
extra_rdoc_files:
|
41
|
+
- History.md
|
41
42
|
- Manifest.txt
|
43
|
+
- README.md
|
42
44
|
files:
|
43
45
|
- History.md
|
44
46
|
- Manifest.txt
|
@@ -78,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
80
|
version: '0'
|
79
81
|
requirements: []
|
80
82
|
rubyforge_project: sportdb-market
|
81
|
-
rubygems_version: 1.8.
|
83
|
+
rubygems_version: 1.8.16
|
82
84
|
signing_key:
|
83
85
|
specification_version: 3
|
84
86
|
summary: sportdb plugin for market quotes (odds, etc)
|