starcraft2 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-version +1 -1
- data/.rvmrc +1 -1
- data/.travis.yml +1 -0
- data/lib/starcraft2/achievement.rb +3 -3
- data/lib/starcraft2/character.rb +1 -1
- data/lib/starcraft2/client.rb +6 -6
- data/lib/starcraft2/ladder.rb +2 -2
- data/lib/starcraft2/loader.rb +2 -1
- data/lib/starcraft2/member.rb +1 -1
- data/lib/starcraft2/reward.rb +3 -3
- data/lib/starcraft2/{string.rb → string_utils.rb} +4 -4
- data/spec/starcraft2/achievement_spec.rb +8 -8
- data/spec/starcraft2/character_spec.rb +13 -13
- data/spec/starcraft2/client_spec.rb +13 -13
- data/spec/starcraft2/member_spec.rb +26 -26
- data/spec/starcraft2/reward_spec.rb +6 -6
- data/spec/starcraft2/string_utils_spec.rb +9 -0
- data/starcraft2.gemspec +2 -1
- metadata +121 -103
- data/spec/starcraft2/string_spec.rb +0 -7
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-
|
1
|
+
ruby-2.0.0
|
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm use
|
1
|
+
rvm use 2.0.0@starcraft2 --create
|
data/.travis.yml
CHANGED
@@ -4,12 +4,12 @@ module Starcraft2
|
|
4
4
|
|
5
5
|
def initialize(options = {})
|
6
6
|
options.each do |k,v|
|
7
|
-
self.send(:"#{k.to_s
|
7
|
+
self.send(:"#{StringUtils.underscore(k.to_s)}=", v)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.build(
|
12
|
-
data = JSON.parse(
|
11
|
+
def self.build(achievements_json)
|
12
|
+
data = JSON.parse(achievements_json)
|
13
13
|
data['achievements'].map do |achievement|
|
14
14
|
new(achievement)
|
15
15
|
end
|
data/lib/starcraft2/character.rb
CHANGED
data/lib/starcraft2/client.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Starcraft2
|
2
2
|
class Client
|
3
|
-
ACHIEVEMENTS_PATH =
|
4
|
-
REWARDS_PATH =
|
5
|
-
LADDER_PATH =
|
3
|
+
ACHIEVEMENTS_PATH = '/api/sc2/data/achievements'
|
4
|
+
REWARDS_PATH = '/api/sc2/data/rewards'
|
5
|
+
LADDER_PATH = '/api/sc2/ladder/'
|
6
6
|
|
7
7
|
attr_accessor :locale, :host
|
8
8
|
|
@@ -39,7 +39,7 @@ module Starcraft2
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def achievements_url
|
42
|
-
|
42
|
+
'http://' + host + ACHIEVEMENTS_PATH + locale_param
|
43
43
|
end
|
44
44
|
|
45
45
|
def rewards_data
|
@@ -47,7 +47,7 @@ module Starcraft2
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def rewards_url
|
50
|
-
|
50
|
+
'http://' + host + REWARDS_PATH + locale_param
|
51
51
|
end
|
52
52
|
|
53
53
|
def ladder_data(id)
|
@@ -55,7 +55,7 @@ module Starcraft2
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def ladder_url(id)
|
58
|
-
|
58
|
+
'http://' + host + LADDER_PATH + id.to_s + locale_param
|
59
59
|
end
|
60
60
|
|
61
61
|
def locale_param
|
data/lib/starcraft2/ladder.rb
CHANGED
data/lib/starcraft2/loader.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'httparty'
|
2
2
|
require 'json'
|
3
|
-
|
3
|
+
|
4
|
+
require File.join('starcraft2', 'string_utils')
|
4
5
|
require File.join('starcraft2', 'client')
|
5
6
|
require File.join('starcraft2', 'achievement')
|
6
7
|
require File.join('starcraft2', 'reward')
|
data/lib/starcraft2/member.rb
CHANGED
data/lib/starcraft2/reward.rb
CHANGED
@@ -4,12 +4,12 @@ module Starcraft2
|
|
4
4
|
|
5
5
|
def initialize(options = {})
|
6
6
|
options.each do |k,v|
|
7
|
-
self.send(:"#{k.to_s
|
7
|
+
self.send(:"#{StringUtils.underscore(k.to_s)}=", v)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.build(
|
12
|
-
data = JSON.parse(
|
11
|
+
def self.build(rewards_json)
|
12
|
+
data = JSON.parse(rewards_json)
|
13
13
|
data['portraits'].map do |reward|
|
14
14
|
new(reward)
|
15
15
|
end
|
@@ -1,10 +1,10 @@
|
|
1
|
-
class
|
2
|
-
def underscore
|
3
|
-
word =
|
1
|
+
class StringUtils
|
2
|
+
def self.underscore(string)
|
3
|
+
word = string.dup
|
4
4
|
word.gsub!(/::/, '/')
|
5
5
|
word.gsub!(/([A-Z]+)([A-Z][a-z])/,'\1_\2')
|
6
6
|
word.gsub!(/([a-z\d])([A-Z])/,'\1_\2')
|
7
|
-
word.tr!(
|
7
|
+
word.tr!('-', '_')
|
8
8
|
word.downcase!
|
9
9
|
word
|
10
10
|
end
|
@@ -2,11 +2,11 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Starcraft2::Achievement do
|
4
4
|
describe '#build' do
|
5
|
-
let(:achievements) { Starcraft2::Achievement.build(@
|
5
|
+
let(:achievements) { Starcraft2::Achievement.build(@achievements_json) }
|
6
6
|
|
7
7
|
before do
|
8
8
|
VCR.use_cassette('achievements') do
|
9
|
-
@
|
9
|
+
@achievements_json = HTTParty.get('http://us.battle.net/api/sc2/data/achievements').body
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
@@ -19,7 +19,7 @@ describe Starcraft2::Achievement do
|
|
19
19
|
end
|
20
20
|
|
21
21
|
describe '.initialize' do
|
22
|
-
let(:achievement) {Starcraft2::Achievement.new(@options)}
|
22
|
+
let(:achievement) { Starcraft2::Achievement.new(@options) }
|
23
23
|
|
24
24
|
before do
|
25
25
|
@options = {}
|
@@ -30,12 +30,12 @@ describe Starcraft2::Achievement do
|
|
30
30
|
@achievement = Starcraft2::Achievement.build(HTTParty.get('http://us.battle.net/api/sc2/data/achievements').body).first
|
31
31
|
end
|
32
32
|
|
33
|
-
@achievement.title.should ==
|
34
|
-
@achievement.description.should ==
|
33
|
+
@achievement.title.should == 'FFA Destroyer'
|
34
|
+
@achievement.description.should == 'Win a Free-For-All Unranked game as each race option.'
|
35
35
|
@achievement.achievement_id.should == 91475320766632
|
36
36
|
@achievement.category_id.should == 4325391
|
37
37
|
@achievement.points.should == 10
|
38
|
-
@achievement.icon.should == {
|
38
|
+
@achievement.icon.should == {'x' => 0, 'y' => -375, 'w' => 75, 'h' => 75, 'offset' => 45, 'url' => 'http://media.blizzard.com/sc2/achievements/5-75.jpg'}
|
39
39
|
end
|
40
40
|
|
41
41
|
it 'should store the title' do
|
@@ -64,8 +64,8 @@ describe Starcraft2::Achievement do
|
|
64
64
|
end
|
65
65
|
|
66
66
|
it 'should store the icon data' do
|
67
|
-
@options = {:icon => {
|
68
|
-
achievement.icon.should == {
|
67
|
+
@options = {:icon => {'x' => 1, 'y' => 2, 'w' => 3, 'h' => 4, 'offset' => 0, 'url' => 'http://example.com'}}
|
68
|
+
achievement.icon.should == {'x' => 1, 'y' => 2, 'w' => 3, 'h' => 4, 'offset' => 0, 'url' => 'http://example.com'}
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|
@@ -14,28 +14,28 @@ describe Starcraft2::Character do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'should store the realm' do
|
17
|
-
@options = {:realm =>
|
18
|
-
character.realm.should ==
|
17
|
+
@options = {:realm => 'somewhere'}
|
18
|
+
character.realm.should == 'somewhere'
|
19
19
|
end
|
20
20
|
|
21
21
|
it 'should store the display_name' do
|
22
|
-
@options = {:display_name =>
|
23
|
-
character.display_name.should ==
|
22
|
+
@options = {:display_name => 'display me'}
|
23
|
+
character.display_name.should == 'display me'
|
24
24
|
end
|
25
25
|
|
26
|
-
it
|
27
|
-
@options = {:clan_name =>
|
28
|
-
character.clan_name.should ==
|
26
|
+
it 'should store the clan_name' do
|
27
|
+
@options = {:clan_name => 'clan name'}
|
28
|
+
character.clan_name.should == 'clan name'
|
29
29
|
end
|
30
30
|
|
31
|
-
it
|
32
|
-
@options = {:clan_tag =>
|
33
|
-
character.clan_tag.should ==
|
31
|
+
it 'should store the clan_tag' do
|
32
|
+
@options = {:clan_tag => 'clan tag'}
|
33
|
+
character.clan_tag.should == 'clan tag'
|
34
34
|
end
|
35
35
|
|
36
|
-
it
|
37
|
-
@options = {:profile_path =>
|
38
|
-
character.profile_path.should ==
|
36
|
+
it 'should store the profile_path' do
|
37
|
+
@options = {:profile_path => '/some/path'}
|
38
|
+
character.profile_path.should == '/some/path'
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -17,7 +17,7 @@ describe Starcraft2::Client do
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
describe
|
20
|
+
describe '.initialize' do
|
21
21
|
it 'should store the locale' do
|
22
22
|
@options = { :locale => 'en_US' }
|
23
23
|
client.locale.should == 'en_US'
|
@@ -29,7 +29,7 @@ describe Starcraft2::Client do
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
describe
|
32
|
+
describe '.achievements' do
|
33
33
|
it 'should return an array of achievements' do
|
34
34
|
VCR.use_cassette('achievements') do
|
35
35
|
client.achievements.class.should == Array
|
@@ -42,16 +42,16 @@ describe Starcraft2::Client do
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
it
|
46
|
-
@options.merge!({:locale =>
|
45
|
+
it 'should return achievements in the correct locale' do
|
46
|
+
@options.merge!({:locale => 'pt_BR'})
|
47
47
|
|
48
48
|
VCR.use_cassette('achievements') do
|
49
|
-
client.achievements.first.title.should ==
|
49
|
+
client.achievements.first.title.should == 'TCT Destruidor'
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe
|
54
|
+
describe '.rewards' do
|
55
55
|
it 'should return an array of rewards' do
|
56
56
|
VCR.use_cassette('rewards') do
|
57
57
|
client.rewards.class.should == Array
|
@@ -64,11 +64,11 @@ describe Starcraft2::Client do
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
-
it
|
68
|
-
@options.merge!({:locale =>
|
67
|
+
it 'should return rewards in the correct locale' do
|
68
|
+
@options.merge!({:locale => 'pt_BR'})
|
69
69
|
|
70
70
|
VCR.use_cassette('rewards') do
|
71
|
-
client.rewards.first.title.should ==
|
71
|
+
client.rewards.first.title.should == 'Kachinsky'
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
@@ -98,9 +98,9 @@ describe Starcraft2::Client do
|
|
98
98
|
member.character.id == 2778732
|
99
99
|
member.character.realm == 1
|
100
100
|
member.character.display_name == 'lIlIlIlIlIlI'
|
101
|
-
member.character.clan_name ==
|
102
|
-
member.character.clan_tag ==
|
103
|
-
member.character.profile_path ==
|
101
|
+
member.character.clan_name == ''
|
102
|
+
member.character.clan_tag == ''
|
103
|
+
member.character.profile_path == '/profile/2778732/1/lIlIlIlIlIlI/'
|
104
104
|
|
105
105
|
member.points.should == 2362.0
|
106
106
|
member.wins.should == 250
|
@@ -108,7 +108,7 @@ describe Starcraft2::Client do
|
|
108
108
|
member.join_timestamp.should == 1373859935
|
109
109
|
member.highest_rank.should == 1
|
110
110
|
member.previous_rank.should == 1
|
111
|
-
member.favorite_race_p1.should ==
|
111
|
+
member.favorite_race_p1.should == 'PROTOSS'
|
112
112
|
end
|
113
113
|
end
|
114
114
|
end
|
@@ -4,12 +4,12 @@ describe Starcraft2::Member do
|
|
4
4
|
describe '.initialize' do
|
5
5
|
let(:member) { Starcraft2::Member.new(@options) }
|
6
6
|
let(:character) { {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
'id' => 333319,
|
8
|
+
'realm' => 1,
|
9
|
+
'displayName' => 'NajM',
|
10
|
+
'clanName' => '',
|
11
|
+
'clanTag' => '',
|
12
|
+
'profilePath' => '/profile/333319/1/NajM/'
|
13
13
|
} }
|
14
14
|
|
15
15
|
before do
|
@@ -22,10 +22,10 @@ describe Starcraft2::Member do
|
|
22
22
|
|
23
23
|
member.character.id .should == 333319
|
24
24
|
member.character.realm.should == 1
|
25
|
-
member.character.display_name.should ==
|
26
|
-
member.character.clan_name.should ==
|
27
|
-
member.character.clan_tag.should ==
|
28
|
-
member.character.profile_path.should ==
|
25
|
+
member.character.display_name.should == 'NajM'
|
26
|
+
member.character.clan_name.should == ''
|
27
|
+
member.character.clan_tag.should == ''
|
28
|
+
member.character.profile_path.should == '/profile/333319/1/NajM/'
|
29
29
|
end
|
30
30
|
|
31
31
|
it 'should store the join timestamp' do
|
@@ -38,44 +38,44 @@ describe Starcraft2::Member do
|
|
38
38
|
member.points.should == 1234
|
39
39
|
end
|
40
40
|
|
41
|
-
it
|
41
|
+
it 'should store the wins' do
|
42
42
|
@options = {:wins => 123}
|
43
43
|
member.wins.should == 123
|
44
44
|
end
|
45
45
|
|
46
|
-
it
|
46
|
+
it 'should store the losses' do
|
47
47
|
@options = {:losses => 12}
|
48
48
|
member.losses.should == 12
|
49
49
|
end
|
50
50
|
|
51
|
-
it
|
51
|
+
it 'should store the highest rank' do
|
52
52
|
@options = {:highest_rank => 1}
|
53
53
|
member.highest_rank.should == 1
|
54
54
|
end
|
55
55
|
|
56
|
-
it
|
56
|
+
it 'should store the previous rank' do
|
57
57
|
@options = {:previous_rank => 5}
|
58
58
|
member.previous_rank.should == 5
|
59
59
|
end
|
60
60
|
|
61
|
-
it
|
62
|
-
@options = {:favorite_race_p1 =>
|
63
|
-
member.favorite_race_p1.should ==
|
61
|
+
it 'should store the favorite race for player 1' do
|
62
|
+
@options = {:favorite_race_p1 => 'Protoss'}
|
63
|
+
member.favorite_race_p1.should == 'Protoss'
|
64
64
|
end
|
65
65
|
|
66
|
-
it
|
67
|
-
@options = {:favorite_race_p2 =>
|
68
|
-
member.favorite_race_p2.should ==
|
66
|
+
it 'should store the favorite race for player 2' do
|
67
|
+
@options = {:favorite_race_p2 => 'Protoss'}
|
68
|
+
member.favorite_race_p2.should == 'Protoss'
|
69
69
|
end
|
70
70
|
|
71
|
-
it
|
72
|
-
@options = {:favorite_race_p3 =>
|
73
|
-
member.favorite_race_p3.should ==
|
71
|
+
it 'should store the favorite race for player 3' do
|
72
|
+
@options = {:favorite_race_p3 => 'Protoss'}
|
73
|
+
member.favorite_race_p3.should == 'Protoss'
|
74
74
|
end
|
75
75
|
|
76
|
-
it
|
77
|
-
@options = {:favorite_race_p4 =>
|
78
|
-
member.favorite_race_p4.should ==
|
76
|
+
it 'should store the favorite race for player 4' do
|
77
|
+
@options = {:favorite_race_p4 => 'Protoss'}
|
78
|
+
member.favorite_race_p4.should == 'Protoss'
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Starcraft2::Reward do
|
4
4
|
describe '#build' do
|
@@ -30,9 +30,9 @@ describe Starcraft2::Reward do
|
|
30
30
|
@reward = Starcraft2::Reward.build(HTTParty.get('http://us.battle.net/api/sc2/data/rewards').body).first
|
31
31
|
end
|
32
32
|
|
33
|
-
@reward.title.should ==
|
33
|
+
@reward.title.should == 'Kachinsky'
|
34
34
|
@reward.id.should == 2951153716
|
35
|
-
@reward.icon.should == {
|
35
|
+
@reward.icon.should == {'x' => 0, 'y' => 0, 'w' => 90, 'h' => 90, 'offset' => 0, 'url' => 'http://media.blizzard.com/sc2/portraits/0-90.jpg'}
|
36
36
|
@reward.achievement_id.should == 0
|
37
37
|
end
|
38
38
|
|
@@ -47,11 +47,11 @@ describe Starcraft2::Reward do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
it 'should store the icon data' do
|
50
|
-
@options = {:icon => {
|
51
|
-
reward.icon.should == {
|
50
|
+
@options = {:icon => {'x' => 1, 'y' => 2, 'w' => 3, 'h' => 4, 'offset' => 0, 'url' => 'http://example.com'}}
|
51
|
+
reward.icon.should == {'x' => 1, 'y' => 2, 'w' => 3, 'h' => 4, 'offset' => 0, 'url' => 'http://example.com'}
|
52
52
|
end
|
53
53
|
|
54
|
-
it
|
54
|
+
it 'should store the achievement id' do
|
55
55
|
@options = {:achievement_id => 5}
|
56
56
|
reward.achievement_id.should == 5
|
57
57
|
end
|
data/starcraft2.gemspec
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.add_dependency 'httparty'
|
4
|
+
gem.add_dependency 'json'
|
4
5
|
|
5
6
|
gem.authors = ["Josh Ellithorpe", "James Fickel", "Jan Hein Hoogstad"]
|
6
7
|
gem.email = ["quest@mac.com"]
|
@@ -13,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
13
14
|
gem.test_files = `git ls-files -- {spec}/*`.split("\n")
|
14
15
|
gem.name = "starcraft2"
|
15
16
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = "0.0.
|
17
|
+
gem.version = "0.0.7"
|
17
18
|
|
18
19
|
gem.add_development_dependency 'rspec', '~> 2.6.0'
|
19
20
|
gem.add_development_dependency 'rake'
|
metadata
CHANGED
@@ -1,121 +1,135 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: starcraft2
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Josh Ellithorpe
|
9
14
|
- James Fickel
|
10
15
|
- Jan Hein Hoogstad
|
11
16
|
autorequire:
|
12
17
|
bindir: bin
|
13
18
|
cert_chain: []
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
+
|
20
|
+
date: 2013-08-14 00:00:00 Z
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
19
24
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
32
|
+
name: httparty
|
25
33
|
prerelease: false
|
26
|
-
|
34
|
+
type: :runtime
|
35
|
+
requirement: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
27
38
|
none: false
|
28
|
-
requirements:
|
29
|
-
- -
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
46
|
+
name: json
|
47
|
+
prerelease: false
|
48
|
+
type: :runtime
|
49
|
+
requirement: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
35
52
|
none: false
|
36
|
-
requirements:
|
53
|
+
requirements:
|
37
54
|
- - ~>
|
38
|
-
- !ruby/object:Gem::Version
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 23
|
57
|
+
segments:
|
58
|
+
- 2
|
59
|
+
- 6
|
60
|
+
- 0
|
39
61
|
version: 2.6.0
|
40
|
-
|
62
|
+
name: rspec
|
41
63
|
prerelease: false
|
42
|
-
|
64
|
+
type: :development
|
65
|
+
requirement: *id003
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
43
68
|
none: false
|
44
|
-
requirements:
|
45
|
-
- -
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
|
48
|
-
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
49
76
|
name: rake
|
50
|
-
requirement: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
|
-
requirements:
|
53
|
-
- - ! '>='
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
56
|
-
type: :development
|
57
77
|
prerelease: false
|
58
|
-
|
78
|
+
type: :development
|
79
|
+
requirement: *id004
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
59
82
|
none: false
|
60
|
-
requirements:
|
61
|
-
- -
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
|
64
|
-
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
version: "0"
|
65
90
|
name: vcr
|
66
|
-
requirement: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
|
-
requirements:
|
69
|
-
- - ! '>='
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '0'
|
72
|
-
type: :development
|
73
91
|
prerelease: false
|
74
|
-
|
92
|
+
type: :development
|
93
|
+
requirement: *id005
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
75
96
|
none: false
|
76
|
-
requirements:
|
77
|
-
- -
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
|
80
|
-
|
97
|
+
requirements:
|
98
|
+
- - "="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
hash: 25
|
101
|
+
segments:
|
102
|
+
- 1
|
103
|
+
- 11
|
104
|
+
version: "1.11"
|
81
105
|
name: webmock
|
82
|
-
requirement: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
|
-
requirements:
|
85
|
-
- - '='
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: '1.11'
|
88
|
-
type: :development
|
89
106
|
prerelease: false
|
90
|
-
|
107
|
+
type: :development
|
108
|
+
requirement: *id006
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
91
111
|
none: false
|
92
|
-
requirements:
|
93
|
-
- -
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
|
96
|
-
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
hash: 3
|
116
|
+
segments:
|
117
|
+
- 0
|
118
|
+
version: "0"
|
97
119
|
name: simplecov
|
98
|
-
requirement: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
|
-
requirements:
|
101
|
-
- - ! '>='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
120
|
prerelease: false
|
106
|
-
|
107
|
-
|
108
|
-
requirements:
|
109
|
-
- - ! '>='
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: '0'
|
121
|
+
type: :development
|
122
|
+
requirement: *id007
|
112
123
|
description: A small SC2 api wrapper
|
113
|
-
email:
|
124
|
+
email:
|
114
125
|
- quest@mac.com
|
115
126
|
executables: []
|
127
|
+
|
116
128
|
extensions: []
|
129
|
+
|
117
130
|
extra_rdoc_files: []
|
118
|
-
|
131
|
+
|
132
|
+
files:
|
119
133
|
- .gitignore
|
120
134
|
- .ruby-version
|
121
135
|
- .rvmrc
|
@@ -137,7 +151,7 @@ files:
|
|
137
151
|
- lib/starcraft2/loader.rb
|
138
152
|
- lib/starcraft2/member.rb
|
139
153
|
- lib/starcraft2/reward.rb
|
140
|
-
- lib/starcraft2/
|
154
|
+
- lib/starcraft2/string_utils.rb
|
141
155
|
- spec/spec_helper.rb
|
142
156
|
- spec/starcraft2/achievement_spec.rb
|
143
157
|
- spec/starcraft2/character_spec.rb
|
@@ -145,36 +159,40 @@ files:
|
|
145
159
|
- spec/starcraft2/ladder_spec.rb
|
146
160
|
- spec/starcraft2/member_spec.rb
|
147
161
|
- spec/starcraft2/reward_spec.rb
|
148
|
-
- spec/starcraft2/
|
162
|
+
- spec/starcraft2/string_utils_spec.rb
|
149
163
|
- starcraft2.gemspec
|
150
|
-
homepage:
|
164
|
+
homepage: ""
|
151
165
|
licenses: []
|
166
|
+
|
152
167
|
post_install_message:
|
153
168
|
rdoc_options: []
|
154
|
-
|
169
|
+
|
170
|
+
require_paths:
|
155
171
|
- lib
|
156
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
172
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
157
173
|
none: false
|
158
|
-
requirements:
|
159
|
-
- -
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
|
162
|
-
segments:
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
hash: 3
|
178
|
+
segments:
|
163
179
|
- 0
|
164
|
-
|
165
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
|
+
version: "0"
|
181
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
182
|
none: false
|
167
|
-
requirements:
|
168
|
-
- -
|
169
|
-
- !ruby/object:Gem::Version
|
170
|
-
|
171
|
-
segments:
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
hash: 3
|
187
|
+
segments:
|
172
188
|
- 0
|
173
|
-
|
189
|
+
version: "0"
|
174
190
|
requirements: []
|
191
|
+
|
175
192
|
rubyforge_project:
|
176
193
|
rubygems_version: 1.8.25
|
177
194
|
signing_key:
|
178
195
|
specification_version: 3
|
179
196
|
summary: A small SC2 api wrapper
|
180
197
|
test_files: []
|
198
|
+
|