mtg_sdk 1.1.0 → 1.1.1

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: 4353e75a89aba6da5aa50592dee8da876ee90786
4
- data.tar.gz: 7fc8122432048c31012f265b1b5a04b59d8b869f
3
+ metadata.gz: 2b2532e6c12720acfd3e16467b1165d9de12f8cd
4
+ data.tar.gz: 49c72b92e713b07f91c8883deb78bab134719d81
5
5
  SHA512:
6
- metadata.gz: b2b5632c106b9a09aac1c516b5872c081e416fd100890c6c410d10dd024a01aeb49500d2abd0281ae3a1a199708587d4b95dc06e1bf77bba859f870c9bbc1c8a
7
- data.tar.gz: c81824ddefde9a001118ed2490b0e511b89532551bbd632e50da9da43cb069833c1796fac423ad4b624e3f7b8109a37320aa572b50a51165ef31e0aea39b3302
6
+ metadata.gz: dbb2c15915d3a6f5aed7b59b582d350668d96996b22368ed0a416e5c36d8a26f6b38737f94d96456c35cbbbbcf9dbbd9d9e260d3f6750ed2019b19ec4027e588
7
+ data.tar.gz: fa2272cc64887c3b0d8ab3f4fbdc5b0ef190062f2e02a566fe2521d932aa7680590dc02c0d122d3cd597b0c219fa54473afd740f2edc2e67ae42d40c3e6083bb
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.1.2
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Magic: The Gathering SDK
2
2
 
3
- This is the Magic: The Gathering SDK Ruby implementation. It is a wrapper around the MTG API of magicthegathering.io.
3
+ [![Gem Version](https://badge.fury.io/rb/mtg_sdk.svg)](https://badge.fury.io/rb/mtg_sdk) [![Build Status](https://travis-ci.org/MagicTheGathering/mtg-sdk-ruby.svg?branch=master)](https://travis-ci.org/MagicTheGathering/mtg-sdk-ruby)
4
+
5
+ This is the Magic: The Gathering SDK Ruby implementation. It is a wrapper around the MTG API of [magicthegathering.io](http://magicthegathering.io/).
4
6
 
5
7
  ## Installation
6
8
 
@@ -124,7 +126,7 @@ To change the API version (currently defaults to version 1)
124
126
 
125
127
  #### Filter Cards via query parameters
126
128
 
127
- cards = MTG::Card.where(set: ktk).where(subtypes: 'warrior,human').all
129
+ cards = MTG::Card.where(set: 'ktk').where(subtypes: 'warrior,human').all
128
130
 
129
131
  #### Find all cards (will take awhile)
130
132
 
@@ -140,7 +142,7 @@ To change the API version (currently defaults to version 1)
140
142
 
141
143
  #### Filter sets via query parameters
142
144
 
143
- sets = MTG::Set.where(name: khans).all
145
+ sets = MTG::Set.where(name: 'khans').all
144
146
 
145
147
  #### Get all Sets
146
148
 
@@ -160,7 +162,7 @@ To change the API version (currently defaults to version 1)
160
162
 
161
163
  ## Contributing
162
164
 
163
- 1. Fork it ( https://github.com/[my-github-username]/mtg_sdk/fork )
165
+ 1. Fork it ( https://github.com/[my-github-username]/mtg-sdk-ruby/fork )
164
166
  2. Create your feature branch (`git checkout -b my-new-feature`)
165
167
  3. Commit your changes (`git commit -am 'Add some feature'`)
166
168
  4. Push to the branch (`git push origin my-new-feature`)
data/Rakefile CHANGED
@@ -2,6 +2,8 @@ require "bundler/gem_tasks"
2
2
  require 'rake/testtask'
3
3
  require_relative 'lib/mtg_sdk'
4
4
 
5
+ task :default => :test
6
+
5
7
  Rake::TestTask.new do |t|
6
8
  t.libs << "test"
7
9
  t.test_files = FileList['test/*_test.rb']
@@ -1,3 +1,3 @@
1
1
  module MTG
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
data/mtg_sdk.gemspec CHANGED
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.add_dependency "faraday"
28
28
  spec.add_dependency "faraday_middleware"
29
+ spec.add_dependency "multi_xml"
29
30
  spec.add_dependency "json"
30
31
  spec.add_dependency "multi_json"
31
32
  spec.add_dependency "roar"
data/test/card_test.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require_relative 'test_helper'
2
3
 
3
4
  class CardTest < Minitest::Test
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mtg_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Backes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: multi_xml
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: json
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -173,6 +187,7 @@ extensions: []
173
187
  extra_rdoc_files: []
174
188
  files:
175
189
  - ".gitignore"
190
+ - ".travis.yml"
176
191
  - Gemfile
177
192
  - LICENSE.txt
178
193
  - README.md