mtg_sdk 2.0.0 → 2.0.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: 6710db90dfe637bdd5d2994d720efd7fa6d67a11
4
- data.tar.gz: e2d54bf4f36a29feca515e47f681423b708d7240
3
+ metadata.gz: 39c79e795376a12fc93ab9c63cfd906ef113ecac
4
+ data.tar.gz: 1c52b593707230b39b40d679e2844ac4d0b9d345
5
5
  SHA512:
6
- metadata.gz: f3db4337be3f5713ea869e1daa86f7c37f663376d7a196f363f1c22ef0ba845cf37e4257b9e4e24096c0a71beec34fe4adb9bed612d2ff932cb64e4dcf877d01
7
- data.tar.gz: 4010b3ec452aec330656785b92e93ad03ceb2968c291ea5e7f64c5db93136b626d9b7a4c261bb1e27804273e9488e697a2e39631eb384839cb7c11629312091a
6
+ metadata.gz: 5c10c3cb3856d11f5c9a8f63c3ef966ac081d6025403f3163068fc4a323faf30eaf6180c0687550a1024d1b8299d9a12c9daedaf353a0ee9c573cd2a668222be
7
+ data.tar.gz: 2dd584261c67e62b776e1f98565cc4526f7df26336cb8047cd93e80450f6833ca5aadd4e37018c6364ff87dc4188b48f219fb8fb466f219ae7a3dbf0cb0abf23
data/.gitignore CHANGED
@@ -15,6 +15,7 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  test/fixtures
18
+ coverage
18
19
  tmp
19
20
  *.bundle
20
21
  *.so
@@ -2,3 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.1.2
5
+
6
+ addons:
7
+ code_climate:
8
+ repo_token: 42ac805c08eb080273606ebe764d348c33902f543e22ec8b3f558d595049ec72
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Magic: The Gathering SDK
2
2
 
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)
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)
4
8
 
5
9
  This is the Magic: The Gathering SDK Ruby implementation. It is a wrapper around the MTG API of [magicthegathering.io](http://magicthegathering.io/).
6
10
 
@@ -134,7 +138,7 @@ To change the API version (currently defaults to version 1)
134
138
 
135
139
  #### Get all cards, but only a specific page of data
136
140
 
137
- cards = MTG::Card.where(page: 5).where(pageSize: 100).get
141
+ cards = MTG::Card.where(page: 5).where(pageSize: 100).all
138
142
 
139
143
  #### Find a set by code
140
144
 
@@ -32,7 +32,7 @@ module MTG
32
32
  property :hand
33
33
  property :life
34
34
  property :reserved
35
- property :release_date, as: :release_date, type: Date
35
+ property :release_date, as: :releaseDate, type: Date
36
36
  property :starter
37
37
  property :original_text, as: :originalText
38
38
  property :original_type, as: :originalType
@@ -41,6 +41,7 @@ module MTG
41
41
  property :id
42
42
  property :image_url, as: :imageUrl
43
43
 
44
+ collection :names
44
45
  collection :supertypes
45
46
  collection :subtypes
46
47
  collection :types
@@ -1,3 +1,3 @@
1
1
  module MTG
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -23,6 +23,9 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "minitest"
24
24
  spec.add_development_dependency "vcr"
25
25
  spec.add_development_dependency "webmock"
26
+ spec.add_development_dependency "simplecov"
27
+ spec.add_development_dependency "coveralls"
28
+ spec.add_development_dependency "codeclimate-test-reporter"
26
29
 
27
30
  spec.add_dependency "faraday"
28
31
  spec.add_dependency "faraday_middleware"
@@ -1,4 +1,15 @@
1
1
  #test/test_helper.rb
2
+ require 'simplecov'
3
+ require 'coveralls'
4
+ require 'codeclimate-test-reporter'
5
+
6
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
7
+ SimpleCov::Formatter::HTMLFormatter,
8
+ Coveralls::SimpleCov::Formatter,
9
+ CodeClimate::TestReporter::Formatter
10
+ ])
11
+ SimpleCov.start
12
+
2
13
  require_relative '../lib/mtg_sdk'
3
14
  require 'minitest/autorun'
4
15
  require 'webmock/minitest'
@@ -7,4 +18,5 @@ require 'vcr'
7
18
  VCR.configure do |c|
8
19
  c.cassette_library_dir = "test/fixtures"
9
20
  c.hook_into :webmock
21
+ c.ignore_hosts 'codeclimate.com'
10
22
  end
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: 2.0.0
4
+ version: 2.0.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-03-29 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,48 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: coveralls
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: codeclimate-test-reporter
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
83
125
  - !ruby/object:Gem::Dependency
84
126
  name: faraday
85
127
  requirement: !ruby/object:Gem::Requirement
@@ -241,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
283
  version: '0'
242
284
  requirements: []
243
285
  rubyforge_project:
244
- rubygems_version: 2.2.2
286
+ rubygems_version: 2.5.1
245
287
  signing_key:
246
288
  specification_version: 4
247
289
  summary: 'Magic: The Gathering SDK for magicthegathering.io'