mtg_sdk 1.1.0 → 1.1.1
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.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/README.md +6 -4
- data/Rakefile +2 -0
- data/lib/mtg_sdk/version.rb +1 -1
- data/mtg_sdk.gemspec +1 -0
- data/test/card_test.rb +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b2532e6c12720acfd3e16467b1165d9de12f8cd
|
4
|
+
data.tar.gz: 49c72b92e713b07f91c8883deb78bab134719d81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbb2c15915d3a6f5aed7b59b582d350668d96996b22368ed0a416e5c36d8a26f6b38737f94d96456c35cbbbbcf9dbbd9d9e260d3f6750ed2019b19ec4027e588
|
7
|
+
data.tar.gz: fa2272cc64887c3b0d8ab3f4fbdc5b0ef190062f2e02a566fe2521d932aa7680590dc02c0d122d3cd597b0c219fa54473afd740f2edc2e67ae42d40c3e6083bb
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Magic: The Gathering SDK
|
2
2
|
|
3
|
-
|
3
|
+
[](https://badge.fury.io/rb/mtg_sdk) [](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]/
|
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
data/lib/mtg_sdk/version.rb
CHANGED
data/mtg_sdk.gemspec
CHANGED
data/test/card_test.rb
CHANGED
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.
|
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-
|
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
|