mtg_sdk 3.0.0 → 3.1.0

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: 25875bd28fe30187bf4086c299a31ce2f6bb7d54
4
- data.tar.gz: fa4810004879a322704de56cb64207751c82dee0
3
+ metadata.gz: 36eb4def49749cb31cfaee8680b4aee2903e6a5a
4
+ data.tar.gz: dac98aa5d3b906792d5adf73999a5bda7e1f8bc7
5
5
  SHA512:
6
- metadata.gz: a9d8f91ac97d58556c8f5567c494cc73c70dfab653c0286e85e1b42f37c9b51ad10984be800b0013ed8a02367090af72b3db53bf2bb9347fb905ed5923a4217f
7
- data.tar.gz: ff79e1b583d8dfe254d345be274a60dc894efecfb997bc9c7286a25b684783eb2a2decef77229f6dbdebeb27950b1212602e3cd44f7b477fc189004de762902b
6
+ metadata.gz: a07c395cdb3f9dcb8520e6bbc00738148fe894c34042f49a56a4406adc35ee8df4904d7348dded574b082cc4ca7f99fd128d414f305820894cac50590f4f1bbd
7
+ data.tar.gz: ca756b6daf91b634091dc5cddd94f386d881ee69404facb2fb0b3ffc9ed3ed74ce7b8f2bdf40048d45507c9b9d063fd6b3cd3d62c1ad4df5e181f804c7b5d88b
data/.gitignore CHANGED
@@ -1,25 +1,25 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- test/fixtures
18
- coverage
19
- tmp
20
- *.bundle
21
- *.so
22
- *.o
23
- *.a
24
- mkmf.log
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ test/fixtures
18
+ coverage
19
+ tmp
20
+ *.bundle
21
+ *.so
22
+ *.o
23
+ *.a
24
+ mkmf.log
25
25
  .vscode
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
- language: ruby
2
- before_install:
3
- - gem install bundler --version '1.12.5'
4
- rvm:
5
- - 2.1.2
6
-
7
- addons:
8
- code_climate:
9
- repo_token: 42ac805c08eb080273606ebe764d348c33902f543e22ec8b3f558d595049ec72
1
+ language: ruby
2
+ before_install:
3
+ - gem install bundler --version '1.12.5'
4
+ rvm:
5
+ - 2.1.2
6
+
7
+ addons:
8
+ code_climate:
9
+ repo_token: 42ac805c08eb080273606ebe764d348c33902f543e22ec8b3f558d595049ec72
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in mtg_sdk.gemspec
4
- gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in mtg_sdk.gemspec
4
+ gemspec
data/LICENSE.txt CHANGED
@@ -1,22 +1,22 @@
1
- Copyright (c) 2016 Andrew Backes
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright (c) 2016 Andrew Backes
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,174 +1,175 @@
1
- # Magic: The Gathering SDK
2
-
3
- [![Gem Version](https://badge.fury.io/rb/mtg_sdk.svg)](https://badge.fury.io/rb/mtg_sdk)
4
- [![Build Status](https://travis-ci.org/MagicTheGathering/mtg-sdk-ruby.svg?branch=master)](https://travis-ci.org/MagicTheGathering/mtg-sdk-ruby)
5
- [![Dependency Status](https://gemnasium.com/MagicTheGathering/mtg-sdk-ruby.svg)](https://gemnasium.com/MagicTheGathering/mtg-sdk-ruby)
6
- [![Code Climate](https://codeclimate.com/github/MagicTheGathering/mtg-sdk-ruby/badges/gpa.svg)](https://codeclimate.com/github/MagicTheGathering/mtg-sdk-ruby)
7
- [![Test Coverage](https://codeclimate.com/github/MagicTheGathering/mtg-sdk-ruby/badges/coverage.svg)](https://codeclimate.com/github/MagicTheGathering/mtg-sdk-ruby/coverage)
8
-
9
- This is the Magic: The Gathering SDK Ruby implementation. It is a wrapper around the MTG API of [magicthegathering.io](http://magicthegathering.io/).
10
-
11
- ## Installation
12
-
13
- Add this line to your application's Gemfile:
14
-
15
- gem 'mtg_sdk'
16
-
17
- And then execute:
18
-
19
- $ bundle
20
-
21
- Or install it yourself as:
22
-
23
- $ gem install mtg_sdk
24
-
25
- ## Usage
26
-
27
- To change the API version (currently defaults to version 1)
28
-
29
- MTG.configure do |config|
30
- config.api_version = 2
31
- end
32
-
33
- ### Classes
34
-
35
- Card
36
- Set
37
- ForeignName
38
- Ruling
39
- Legality
40
- Subtype
41
- Supertype
42
- Type
43
- Changelog
44
-
45
- ### Properties Per Class
46
-
47
- #### Card
48
-
49
- name
50
- multiverse_id
51
- layout
52
- names
53
- mana_cost
54
- cmc
55
- colors
56
- type
57
- supertypes
58
- subtypes
59
- rarity
60
- text
61
- flavor
62
- artist
63
- number
64
- power
65
- toughness
66
- loyalty
67
- variations
68
- watermark
69
- border
70
- timeshifted
71
- hand
72
- life
73
- reserved
74
- release_date
75
- starter
76
- rulings
77
- foreign_names
78
- printings
79
- original_text
80
- original_type
81
- legalities
82
- source
83
- image_url
84
- set
85
- set_name
86
- id
87
-
88
- #### Set
89
-
90
- code
91
- name
92
- gatherer_code
93
- old_code
94
- magic_cards_info_code
95
- release_date
96
- border
97
- type
98
- block
99
- online_only
100
- booster
101
- mkm_id
102
- mkm_name
103
-
104
- #### ForeignName
105
-
106
- language
107
- name
108
- multiverse_id
109
-
110
- #### Ruling
111
-
112
- date
113
- text
114
-
115
- #### Legality
116
-
117
- format
118
- legality
119
-
120
- #### Changelog
121
-
122
- version
123
- release_date
124
- details
125
-
126
- ### Functions Available
127
-
128
- #### Find a card by multiverse id
129
-
130
- card = MTG::Card.find(386616)
131
-
132
- #### Filter Cards via query parameters
133
-
134
- cards = MTG::Card.where(set: 'ktk').where(subtypes: 'warrior,human').all
135
-
136
- #### Find all cards (will take awhile)
137
-
138
- cards = MTG::Card.all
139
-
140
- #### Get all cards, but only a specific page of data
141
-
142
- cards = MTG::Card.where(page: 5).where(pageSize: 100).all
143
-
144
- #### Find a set by code
145
-
146
- set = MTG::Set.find('ktk')
147
-
148
- #### Filter sets via query parameters
149
-
150
- sets = MTG::Set.where(name: 'khans').all
151
-
152
- #### Get all Sets
153
-
154
- sets = MTG::Set.all
155
-
156
- #### Get all Types
157
-
158
- types = MTG::Type.all
159
-
160
- #### Get all Subtypes
161
-
162
- subtypes = MTG::Subtype.all
163
-
164
- #### Get all Supertypes
165
-
166
- supertypes = MTG::Supertype.all
167
-
168
- ## Contributing
169
-
170
- 1. Fork it ( https://github.com/[my-github-username]/mtg-sdk-ruby/fork )
171
- 2. Create your feature branch (`git checkout -b my-new-feature`)
172
- 3. Commit your changes (`git commit -am 'Add some feature'`)
173
- 4. Push to the branch (`git push origin my-new-feature`)
174
- 5. Create a new Pull Request
1
+ # Magic: The Gathering SDK
2
+
3
+ [![mtg-developers on discord](https://img.shields.io/badge/discord-mtg%20developers-738bd7.svg)](https://discord.gg/qwGJNnP)
4
+ [![Gem Version](https://badge.fury.io/rb/mtg_sdk.svg)](https://badge.fury.io/rb/mtg_sdk)
5
+ [![Build Status](https://travis-ci.org/MagicTheGathering/mtg-sdk-ruby.svg?branch=master)](https://travis-ci.org/MagicTheGathering/mtg-sdk-ruby)
6
+ [![Dependency Status](https://gemnasium.com/MagicTheGathering/mtg-sdk-ruby.svg)](https://gemnasium.com/MagicTheGathering/mtg-sdk-ruby)
7
+ [![Code Climate](https://codeclimate.com/github/MagicTheGathering/mtg-sdk-ruby/badges/gpa.svg)](https://codeclimate.com/github/MagicTheGathering/mtg-sdk-ruby)
8
+ [![Test Coverage](https://codeclimate.com/github/MagicTheGathering/mtg-sdk-ruby/badges/coverage.svg)](https://codeclimate.com/github/MagicTheGathering/mtg-sdk-ruby/coverage)
9
+
10
+ This is the Magic: The Gathering SDK Ruby implementation. It is a wrapper around the MTG API of [magicthegathering.io](http://magicthegathering.io/).
11
+
12
+ ## Installation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ gem 'mtg_sdk'
17
+
18
+ And then execute:
19
+
20
+ $ bundle
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install mtg_sdk
25
+
26
+ ## Usage
27
+
28
+ To change the API version (currently defaults to version 1)
29
+
30
+ MTG.configure do |config|
31
+ config.api_version = 2
32
+ end
33
+
34
+ ### Classes
35
+
36
+ Card
37
+ Set
38
+ ForeignName
39
+ Ruling
40
+ Legality
41
+ Subtype
42
+ Supertype
43
+ Type
44
+ Changelog
45
+
46
+ ### Properties Per Class
47
+
48
+ #### Card
49
+
50
+ name
51
+ multiverse_id
52
+ layout
53
+ names
54
+ mana_cost
55
+ cmc
56
+ colors
57
+ type
58
+ supertypes
59
+ subtypes
60
+ rarity
61
+ text
62
+ flavor
63
+ artist
64
+ number
65
+ power
66
+ toughness
67
+ loyalty
68
+ variations
69
+ watermark
70
+ border
71
+ timeshifted
72
+ hand
73
+ life
74
+ reserved
75
+ release_date
76
+ starter
77
+ rulings
78
+ foreign_names
79
+ printings
80
+ original_text
81
+ original_type
82
+ legalities
83
+ source
84
+ image_url
85
+ set
86
+ set_name
87
+ id
88
+
89
+ #### Set
90
+
91
+ code
92
+ name
93
+ gatherer_code
94
+ old_code
95
+ magic_cards_info_code
96
+ release_date
97
+ border
98
+ type
99
+ block
100
+ online_only
101
+ booster
102
+ mkm_id
103
+ mkm_name
104
+
105
+ #### ForeignName
106
+
107
+ language
108
+ name
109
+ multiverse_id
110
+
111
+ #### Ruling
112
+
113
+ date
114
+ text
115
+
116
+ #### Legality
117
+
118
+ format
119
+ legality
120
+
121
+ #### Changelog
122
+
123
+ version
124
+ release_date
125
+ details
126
+
127
+ ### Functions Available
128
+
129
+ #### Find a card by multiverse id
130
+
131
+ card = MTG::Card.find(386616)
132
+
133
+ #### Filter Cards via query parameters
134
+
135
+ cards = MTG::Card.where(set: 'ktk').where(subtypes: 'warrior,human').all
136
+
137
+ #### Find all cards (will take awhile)
138
+
139
+ cards = MTG::Card.all
140
+
141
+ #### Get all cards, but only a specific page of data
142
+
143
+ cards = MTG::Card.where(page: 5).where(pageSize: 100).all
144
+
145
+ #### Find a set by code
146
+
147
+ set = MTG::Set.find('ktk')
148
+
149
+ #### Filter sets via query parameters
150
+
151
+ sets = MTG::Set.where(name: 'khans').all
152
+
153
+ #### Get all Sets
154
+
155
+ sets = MTG::Set.all
156
+
157
+ #### Get all Types
158
+
159
+ types = MTG::Type.all
160
+
161
+ #### Get all Subtypes
162
+
163
+ subtypes = MTG::Subtype.all
164
+
165
+ #### Get all Supertypes
166
+
167
+ supertypes = MTG::Supertype.all
168
+
169
+ ## Contributing
170
+
171
+ 1. Fork it ( https://github.com/[my-github-username]/mtg-sdk-ruby/fork )
172
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
173
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
174
+ 4. Push to the branch (`git push origin my-new-feature`)
175
+ 5. Create a new Pull Request