rubygamertag 0.2.10 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygamertag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -97,15 +97,7 @@ email:
97
97
  executables: []
98
98
  extensions: []
99
99
  extra_rdoc_files: []
100
- files:
101
- - .gitignore
102
- - Gemfile
103
- - LICENSE
104
- - README.md
105
- - Rakefile
106
- - lib/rubygamertag.rb
107
- - lib/rubygamertag/version.rb
108
- - rubygamertag.gemspec
100
+ files: []
109
101
  homepage: https://github.com/Ponyboy47/rubygamertag
110
102
  licenses: []
111
103
  post_install_message:
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- coverage
2
- rdoc
3
- doc
4
- .yardoc
5
- .bundle
6
- pkg
7
- Gemfile.lock
8
- *.swp
9
- *.gem
10
-
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in rubygamertag.gemspec
4
- gemspec
5
-
data/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- Copyright (c) 2012 Jacob Williams
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.
21
-
data/README.md DELETED
@@ -1,119 +0,0 @@
1
- # RubyGamertag
2
-
3
- An interface for accessing your XBOX Live profile and game data.
4
-
5
- ## Install
6
-
7
- ```
8
- gem install rubygamertag
9
- ```
10
-
11
- Gemfile:
12
-
13
- ```
14
- require 'rubygamertag'
15
- ```
16
-
17
- ## Usage
18
-
19
- # Get Profile Info:
20
- <pre><code>
21
- profile = RubyGamertag::Profile.new("Major+Nelson")
22
- profile.Gamertag = "Major Nelson"
23
- profile.tier = "Gold"
24
- profile.is_cheater = false
25
- profile.is_online = [false, "Last seen 2 hours ago playing Battlefield 3"]
26
- profile.avatars = {'Tile' => "http://avatar.xboxlive.com/avatar/Major%20Nelson/avatarpic-s.png", 'Small' => "http://avatar.xboxlive.com/avatar/Major Nelson/avatarpic-s.png", 'Large' => "http://avatar.xboxlive.com/avatar/Major Nelson/avatarpic-l.png", 'Body' => "http://avatar.xboxlive.com/avatar/Major Nelson/avatarpic-body.png"}
27
- profile.Gamerscore = 58722
28
- profile.Reputation = 20
29
- profile.Name = ""
30
- profile.Motto = ""
31
- profile.Location = ""
32
- profile.Bio = ""
33
- </code></pre>
34
-
35
- # Get Games Data:
36
- <pre><code>
37
- games = RubyGamertag::Games.new("RealJBlaze")
38
- games.Gamertag = "RealJBlaze"
39
- games.GameCount = 132
40
- games.TotalEarnedGamerScore = 53220
41
- games.TotalPossibleGamerScore = 107905
42
- games.TotalEarnedAchievments = 2423
43
- games.TotalPossibleAchievments = 4653
44
- games.PercentCompleted = 52
45
- games.PlayedGames.each do |game|
46
- game.Id
47
- game.Title
48
- game.Url
49
- game.BoxArt
50
- game.LargeBoxArt
51
- game.EarnedGamerScore
52
- game.PossibleGamerScore
53
- game.EarnedAchievments
54
- game.PossibleAchievments
55
- game.PercentCompleted
56
- game.LastPlayed
57
- end
58
- </code></pre>
59
-
60
- # Games Achievments Data:
61
- <pre><code>
62
- achievments = RubyGamertag::Achievments.new("Major+Nelson")
63
- achievments.each do |game|
64
- game.Title
65
- game.Url
66
- game.BoxArt
67
- game.LargeBoxArt
68
- game.EarnedGamerScore
69
- game.PossibleGamerScore
70
- game.EarnedAchievments
71
- game.PossibleAchievments
72
- game.LastPlayed
73
- game.Achievments.each do |achievment|
74
- achievment.Id
75
- achievment.TileUrl
76
- achievment.Title
77
- achievment.Description
78
- achievment.GamerScore
79
- achievment.IsSecret
80
- achievment.Unlocked
81
- achievment.DateEarned
82
- achievment.EarnedOffline
83
- end
84
- end
85
- </code></pre>
86
-
87
- # Get Info On Friends:
88
- <pre><code>
89
- friends = RubyGamertag::Friends.new("Major+Nelson")
90
- friends.TotalFriends = 100
91
- friends.TotalOnlineFriends = 3
92
- friends.TotalOfflineFriends = 97
93
- friends.Friends.each do |friend|
94
- friend.Gamertag
95
- friend.AvatarSmall
96
- friend.AvatarLarge
97
- friend.GamerScore
98
- friend.IsOnline
99
- friend.PresenceInfo.LastOnline
100
- friend.PresenceInfo.OnlineStatus
101
- friend.PresenceInfo.Game.Title
102
- friend.PresenceInfo.Game.Id
103
- friend.PresenceInfo.Game.Url
104
- end
105
- </code></pre>
106
-
107
- ## Documentation
108
-
109
- ## Note on Patches/Pull Requests
110
-
111
- * Fork the project.
112
- * Make your feature addition or bug fix.
113
- * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
114
- * Send me a pull request.
115
-
116
-
117
- ## Copyright
118
-
119
- Copyright (c) 2012 Jacob Williams
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- require 'bundler'
2
- Bundler::GemHelper.install_tasks
3
-
4
- require 'rake'
5
- require 'rspec/core/rake_task'
6
-
7
- RSpec::Core::RakeTask.new(:spec) do |spec|
8
- spec.pattern = 'spec/**/*_spec.rb'
9
- spec.rspec_opts = ['--backtrace']
10
- end
11
-
12
- task :default => :spec
@@ -1,3 +0,0 @@
1
- module RubyGamertag
2
- VERSION = "0.2.10"
3
- end
data/lib/rubygamertag.rb DELETED
@@ -1,11 +0,0 @@
1
- require "./rubygamertag/version"
2
- require './rubygamertag/profile'
3
- require './rubygamertag/games'
4
- require './rubygamertag/achievments'
5
- require './rubygamertag/friends'
6
- require './rubygamertag/message'
7
- require './rubygamertag/classes'
8
-
9
- module RubyGamertag
10
-
11
- end
data/rubygamertag.gemspec DELETED
@@ -1,27 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/rubygamertag/version', __FILE__)
3
-
4
- Gem::Specification.new do |s|
5
- s.name = "rubygamertag"
6
- s.version = RubyGamertag::VERSION
7
- s.authors = ["Ponyboy47"]
8
- s.email = ["ponyboy47@gmail.com"]
9
- s.homepage = "https://github.com/Ponyboy47/rubygamertag"
10
- s.summary = %q{A gem for retrieving XBOX Live gamertag info}
11
- s.description = %q{Get Info on XBL Gamertag profile, games, and achievments}
12
-
13
- s.rubyforge_project = "rubygamertag"
14
-
15
- s.files = `git ls-files`.split($\)
16
- s.test_files = s.files.grep(%r{^(test|spec|features)/})
17
- s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
- s.require_paths = ["lib"]
19
-
20
- s.add_dependency 'json'
21
-
22
- s.add_development_dependency 'rake'
23
- s.add_development_dependency 'rspec'
24
- s.add_development_dependency 'vcr'
25
- s.add_development_dependency 'fakeweb'
26
- end
27
-