pokemon_tcg_sdk 2.3.0 → 2.4.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: 480bd77457d18adf702ebbe27487d668a0cb3477
4
- data.tar.gz: a08938dd0834cfca2c050801ff09201c81afa973
3
+ metadata.gz: cc1c3ac4395f2df72b5f198e5bcf076fb471a192
4
+ data.tar.gz: 6826cb6c3ea57320c68f73c511011483ec519a68
5
5
  SHA512:
6
- metadata.gz: eae9b137e60912497d64d94533a7bc1761b50ba5f94a43bc4faa9ceb142fb37557ead8b42e668fb2db465dc3469cf9d160037aa059463b062435d5c1b5bada28
7
- data.tar.gz: 566a429fde35e5b1c3969cd4a54497b511b5213a0eb0e9dc145c3a6fd72e87c7d04f10e1861d9c41dd656e37feb5279cfffb05e709f78f67a4bd5662127e9a73
6
+ metadata.gz: 5f05e1ead81822b86fae542753f975e3a1cbb3eca43a3e49821b4499faafca96fcae4b71e79d3feb521a5271cf50fc0dbf22d8e456c04af0b295d4d92a57e04a
7
+ data.tar.gz: 142be52d14ddcfacefc0438f8f6ca642dd15e0d1155a9ff7d5085c8a050204f80d46e3221a7aba4598ea1bacf4ea8925feba96976cde908b34aec997d65d08ac
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
@@ -1,4 +1,4 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.0
4
- before_install: gem install bundler -v 1.12.5
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.0
4
+ before_install: gem install bundler -v 1.12.5
@@ -1,49 +1,49 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, and in the interest of
4
- fostering an open and welcoming community, we pledge to respect all people who
5
- contribute through reporting issues, posting feature requests, updating
6
- documentation, submitting pull requests or patches, and other activities.
7
-
8
- We are committed to making participation in this project a harassment-free
9
- experience for everyone, regardless of level of experience, gender, gender
10
- identity and expression, sexual orientation, disability, personal appearance,
11
- body size, race, ethnicity, age, religion, or nationality.
12
-
13
- Examples of unacceptable behavior by participants include:
14
-
15
- * The use of sexualized language or imagery
16
- * Personal attacks
17
- * Trolling or insulting/derogatory comments
18
- * Public or private harassment
19
- * Publishing other's private information, such as physical or electronic
20
- addresses, without explicit permission
21
- * Other unethical or unprofessional conduct
22
-
23
- Project maintainers have the right and responsibility to remove, edit, or
24
- reject comments, commits, code, wiki edits, issues, and other contributions
25
- that are not aligned to this Code of Conduct, or to ban temporarily or
26
- permanently any contributor for other behaviors that they deem inappropriate,
27
- threatening, offensive, or harmful.
28
-
29
- By adopting this Code of Conduct, project maintainers commit themselves to
30
- fairly and consistently applying these principles to every aspect of managing
31
- this project. Project maintainers who do not follow or enforce the Code of
32
- Conduct may be permanently removed from the project team.
33
-
34
- This code of conduct applies both within project spaces and in public spaces
35
- when an individual is representing the project or its community.
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
- reported by contacting a project maintainer at backes.andrew@gmail.com. All
39
- complaints will be reviewed and investigated and will result in a response that
40
- is deemed necessary and appropriate to the circumstances. Maintainers are
41
- obligated to maintain confidentiality with regard to the reporter of an
42
- incident.
43
-
44
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
- version 1.3.0, available at
46
- [http://contributor-covenant.org/version/1/3/0/][version]
47
-
48
- [homepage]: http://contributor-covenant.org
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at backes.andrew@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
49
  [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in pokemon_tcg_sdk.gemspec
4
- gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in pokemon_tcg_sdk.gemspec
4
+ gemspec
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 Andrew Backes
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Andrew Backes
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,154 +1,154 @@
1
- # Pokémon TCG SDK
2
-
3
- [![Gem Version](https://badge.fury.io/rb/pokemon_tcg_sdk.svg)](https://badge.fury.io/rb/pokemon_tcg_sdk)
4
- [![Build Status](https://travis-ci.org/PokemonTCG/pokemon-tcg-sdk-ruby.svg?branch=master)](https://travis-ci.org/PokemonTCG/pokemon-tcg-sdk-ruby)
5
- [![Dependency Status](https://gemnasium.com/badges/github.com/PokemonTCG/pokemon-tcg-sdk-ruby.svg)](https://gemnasium.com/github.com/PokemonTCG/pokemon-tcg-sdk-ruby)
6
- [![Code Climate](https://codeclimate.com/github/PokemonTCG/pokemon-tcg-sdk-ruby/badges/gpa.svg)](https://codeclimate.com/github/PokemonTCG/pokemon-tcg-sdk-ruby)
7
- [![Coverage Status](https://coveralls.io/repos/github/PokemonTCG/pokemon-tcg-sdk-ruby/badge.svg?branch=master)](https://coveralls.io/github/PokemonTCG/pokemon-tcg-sdk-ruby?branch=master)
8
-
9
- This is the Pokémon TCG SDK Ruby implementation. It is a wrapper around the Pokémon TCG API of [pokemontcg.io](http://pokemontcg.io/).
10
-
11
- ## Installation
12
-
13
- Add this line to your application's Gemfile:
14
-
15
- gem 'pokemon_tcg_sdk'
16
-
17
- And then execute:
18
-
19
- $ bundle
20
-
21
- Or install it yourself as:
22
-
23
- $ gem install pokemon_tcg_sdk
24
-
25
- ## Usage
26
-
27
- To change the API version (currently defaults to version 1)
28
-
29
- Pokemon.configure do |config|
30
- config.api_version = 2
31
- end
32
-
33
- ### Classes
34
-
35
- Card
36
- Set
37
- Type
38
- Supertype
39
- Subtype
40
- Ability
41
- AncientTrait
42
- Attack
43
- TypeValue
44
-
45
- ### Properties Per Class
46
-
47
- #### Card
48
-
49
- id
50
- name
51
- national_pokedex_number
52
- image_url
53
- image_url_hi_res
54
- subtype
55
- supertype
56
- ability
57
- ancient_trait
58
- hp
59
- number
60
- artist
61
- rarity
62
- series
63
- set
64
- set_code
65
- retreat_cost
66
- text
67
- types
68
- attacks
69
- weaknesses
70
- resistances
71
-
72
- #### Set
73
-
74
- code
75
- name
76
- series
77
- total_cards
78
- standard_legal
79
- expanded_legal
80
- release_date
81
-
82
- #### Ability
83
-
84
- name
85
- text
86
- type
87
-
88
- #### AncientTrait
89
-
90
- name
91
- text
92
-
93
- #### Attack
94
-
95
- cost
96
- name
97
- text
98
- damage
99
- converted_energy_cost
100
-
101
- #### TypeValue
102
-
103
- type
104
- value
105
-
106
- ### Functions Available
107
-
108
- #### Find a card by id
109
-
110
- card = Pokemon::Card.find('xy1-1')
111
-
112
- #### Filter Cards via query parameters
113
-
114
- cards = Pokemon::Card.where(set: 'generations').where(supertype: 'pokemon').all
115
-
116
- #### Find all cards (will take awhile)
117
-
118
- cards = Pokemon::Card.all
119
-
120
- #### Get all cards, but only a specific page of data
121
-
122
- cards = Pokemon::Card.where(page: 5).where(pageSize: 100).all
123
-
124
- #### Find a set by code
125
-
126
- set = Pokemon::Set.find('base1')
127
-
128
- #### Filter sets via query parameters
129
-
130
- sets = Pokemon::Set.where(standardLegal: true).all
131
-
132
- #### Get all Sets
133
-
134
- sets = Pokemon::Set.all
135
-
136
- #### Get all Types
137
-
138
- types = Pokemon::Type.all
139
-
140
- #### Get all Subtypes
141
-
142
- subtypes = Pokemon::Subtype.all
143
-
144
- #### Get all Supertypes
145
-
146
- supertypes = Pokemon::Supertype.all
147
-
148
- ## Contributing
149
-
150
- 1. Fork it ( https://github.com/[my-github-username]/pokemon-tcg-sdk-ruby/fork )
151
- 2. Create your feature branch (`git checkout -b my-new-feature`)
152
- 3. Commit your changes (`git commit -am 'Add some feature'`)
153
- 4. Push to the branch (`git push origin my-new-feature`)
154
- 5. Create a new Pull Request
1
+ # Pokémon TCG SDK
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/pokemon_tcg_sdk.svg)](https://badge.fury.io/rb/pokemon_tcg_sdk)
4
+ [![Build Status](https://travis-ci.org/PokemonTCG/pokemon-tcg-sdk-ruby.svg?branch=master)](https://travis-ci.org/PokemonTCG/pokemon-tcg-sdk-ruby)
5
+ [![Dependency Status](https://gemnasium.com/badges/github.com/PokemonTCG/pokemon-tcg-sdk-ruby.svg)](https://gemnasium.com/github.com/PokemonTCG/pokemon-tcg-sdk-ruby)
6
+ [![Code Climate](https://codeclimate.com/github/PokemonTCG/pokemon-tcg-sdk-ruby/badges/gpa.svg)](https://codeclimate.com/github/PokemonTCG/pokemon-tcg-sdk-ruby)
7
+ [![Coverage Status](https://coveralls.io/repos/github/PokemonTCG/pokemon-tcg-sdk-ruby/badge.svg?branch=master)](https://coveralls.io/github/PokemonTCG/pokemon-tcg-sdk-ruby?branch=master)
8
+
9
+ This is the Pokémon TCG SDK Ruby implementation. It is a wrapper around the Pokémon TCG API of [pokemontcg.io](http://pokemontcg.io/).
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ gem 'pokemon_tcg_sdk'
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install pokemon_tcg_sdk
24
+
25
+ ## Usage
26
+
27
+ To change the API version (currently defaults to version 1)
28
+
29
+ Pokemon.configure do |config|
30
+ config.api_version = 2
31
+ end
32
+
33
+ ### Classes
34
+
35
+ Card
36
+ Set
37
+ Type
38
+ Supertype
39
+ Subtype
40
+ Ability
41
+ AncientTrait
42
+ Attack
43
+ TypeValue
44
+
45
+ ### Properties Per Class
46
+
47
+ #### Card
48
+
49
+ id
50
+ name
51
+ national_pokedex_number
52
+ image_url
53
+ image_url_hi_res
54
+ subtype
55
+ supertype
56
+ ability
57
+ ancient_trait
58
+ hp
59
+ number
60
+ artist
61
+ rarity
62
+ series
63
+ set
64
+ set_code
65
+ retreat_cost
66
+ text
67
+ types
68
+ attacks
69
+ weaknesses
70
+ resistances
71
+
72
+ #### Set
73
+
74
+ code
75
+ name
76
+ series
77
+ total_cards
78
+ standard_legal
79
+ expanded_legal
80
+ release_date
81
+
82
+ #### Ability
83
+
84
+ name
85
+ text
86
+ type
87
+
88
+ #### AncientTrait
89
+
90
+ name
91
+ text
92
+
93
+ #### Attack
94
+
95
+ cost
96
+ name
97
+ text
98
+ damage
99
+ converted_energy_cost
100
+
101
+ #### TypeValue
102
+
103
+ type
104
+ value
105
+
106
+ ### Functions Available
107
+
108
+ #### Find a card by id
109
+
110
+ card = Pokemon::Card.find('xy1-1')
111
+
112
+ #### Filter Cards via query parameters
113
+
114
+ cards = Pokemon::Card.where(set: 'generations').where(supertype: 'pokemon').all
115
+
116
+ #### Find all cards (will take awhile)
117
+
118
+ cards = Pokemon::Card.all
119
+
120
+ #### Get all cards, but only a specific page of data
121
+
122
+ cards = Pokemon::Card.where(page: 5).where(pageSize: 100).all
123
+
124
+ #### Find a set by code
125
+
126
+ set = Pokemon::Set.find('base1')
127
+
128
+ #### Filter sets via query parameters
129
+
130
+ sets = Pokemon::Set.where(standardLegal: true).all
131
+
132
+ #### Get all Sets
133
+
134
+ sets = Pokemon::Set.all
135
+
136
+ #### Get all Types
137
+
138
+ types = Pokemon::Type.all
139
+
140
+ #### Get all Subtypes
141
+
142
+ subtypes = Pokemon::Subtype.all
143
+
144
+ #### Get all Supertypes
145
+
146
+ supertypes = Pokemon::Supertype.all
147
+
148
+ ## Contributing
149
+
150
+ 1. Fork it ( https://github.com/[my-github-username]/pokemon-tcg-sdk-ruby/fork )
151
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
152
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
153
+ 4. Push to the branch (`git push origin my-new-feature`)
154
+ 5. Create a new Pull Request