smogon 0.5.1 → 0.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8c7a6387b3294593de143119b75fd708550cc61
4
- data.tar.gz: 152c6d7ccaa49c69a06660bb7f10671ac824371f
3
+ metadata.gz: 6b4c544fa43ec9787e19713b37837aed880f5558
4
+ data.tar.gz: 9631e14e37748d286c838dbaf81b37090403bc9e
5
5
  SHA512:
6
- metadata.gz: cd42c463d15cc29fed4c475d0cd6e429250e9d900fc59e3abbd8358d4fc4585a62bcac11e3a314f939958bf330c38400e9509f51bd2ee6957ab5d0388f867946
7
- data.tar.gz: 6c65fd8d1dbe353fac4bff43046b4b30d776578d3daa5b49869a58ac2486f657ea4301142cda142017a9be038e98424f784f1826c24b7f2e2085df155b518cd0
6
+ metadata.gz: 1948345687b6bc977edab359e3c4dd354a9b57fb5e0cba1740d03f5d8c6069e66bfedca0c0c81133c81a914696daab3e43e4cf94d5323d076b90a543fe761873
7
+ data.tar.gz: 45f665797cabd6a038fdea25d064f9b46520e510cb38e7c3d67344cbed65eb83b6a339d327e24db4010b5191bec96995e4cdb15cecb44597070f8ac292bae057
@@ -22,7 +22,7 @@ module Smogon
22
22
  attr_accessor :name, :_name, :description, :type, :power, :accuracy, :pp, :priority, :damage, :target
23
23
 
24
24
  def to_s
25
- "Name: #{@name}\nDescription: #{@description}\nType: #{@type}\nPower: #{@ower}\nAccuracy: #{@accuracy}\nPP: #{@pp}\nPriority: #{@priority}\nDamage: #{@damage}\nTarget: #{@target}"
25
+ "Name: #{@name}\nDescription: #{@description}\nType: #{@type}\nPower: #{@power}\nAccuracy: #{@accuracy}\nPP: #{@pp}\nPriority: #{@priority}\nDamage: #{@damage}\nTarget: #{@target}"
26
26
  end
27
27
 
28
28
  def url
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Smogon
21
21
  def self.version
22
- '0.5.1'
22
+ '0.5.2'
23
23
  end
24
24
  end
@@ -31,4 +31,11 @@ describe 'Smogon' do
31
31
  moveset.any?.should be_true
32
32
  moveset.first.nature.include?('Jolly').should be_true
33
33
  end
34
+
35
+ it 'returns the name of the Pokémon relative to the given ID' do
36
+ Smogon::Pokemon.id2name(111).should eql('Rhyhorn')
37
+ moveset = Smogon::Movesetdex.get 'Blaziken', 'uber', 'bw'
38
+ moveset.any?.should be_true
39
+ moveset.first.nature.include?('Jolly').should be_true
40
+ end
34
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smogon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-19 00:00:00.000000000 Z
11
+ date: 2014-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri