fishbans 1.1.3 → 1.1.4

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: 529bfd5850eeb75f9b38a6d1d0396164429b9a7c
4
- data.tar.gz: e62d07a8bcadedea93a133e37b490d8278416be8
3
+ metadata.gz: 06f227a174210eb010e8dd19316428c6a990ba25
4
+ data.tar.gz: 6526c7c298b8cb1b23682278380b5aa3b6e839f0
5
5
  SHA512:
6
- metadata.gz: b964dea92a3e2902a17483dd87545271802380d90499777275f2f16a0503717e0415bee25bc9f3a4bcb8e5d0b08415a642214301329a1e4a99ae3d34e88d0df1
7
- data.tar.gz: d4c72e646aa933abb6166b4e6cf3d9eb17d8e57bd43ba121437fd5b5db3b8b8a2b58c966de2e1c268e7afdfbac3d3cfae0864a112af92f0fa3adb75449da4743
6
+ metadata.gz: c29b2241ddd6d93e094b0dfa96e7bf198f55b3530886c68c0301c1ddf5e5ea0908b4c10eacca16ccedcca6005299460c8f5d64ebd14128a04272a0535d3bc952
7
+ data.tar.gz: 389eaa3a1001a38eff9a3c4c18261444336abbdb4bb5948346e27428187605b1434bb03c6cc60cb2ac98d7a0e6f927bebdfc77241f3a6c1950598ae5174dcd9c
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
  ## Version 1
3
+ ### Version 1.1.4
4
+ * Remove a couple unnecessary things from the PlayerSkins and BlockEngine (is_a? check and downcase).
5
+
3
6
  ### Version 1.1.3
4
7
  * Use pessimistic version requirements.
5
8
  * Bump HTTPClient version.
@@ -29,7 +29,7 @@ module Fishbans
29
29
  # this will not be perfect just by nature of the API.
30
30
  # @return [ChunkyPNG::Image] The ChunkyPNG instance of that monster image.
31
31
  def get_monster(id, three = false, size = 42)
32
- id = id.to_s unless id.is_a?(String)
32
+ id = id.to_s
33
33
  url = 'http://blocks.fishbans.com'
34
34
  url += "/#{id}" if id =~ /^m/
35
35
  url += "/m#{id}" if id !~ /^m/
@@ -36,7 +36,6 @@ module Fishbans
36
36
  # @param size [Fixnum] See #get_player_head.
37
37
  # @return [ChunkyPNG::Image] The ChunkyPNG::Image instance for the params.
38
38
  def get_player_image(username, type, size)
39
- type.downcase
40
39
  url = "http://i.fishbans.com/#{type}/#{username}/#{size}"
41
40
  response = get(url, false)
42
41
  ChunkyPNG::Image.from_blob(response.body)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fishbans
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eli Foster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -71,8 +71,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  version: '0'
72
72
  requirements: []
73
73
  rubyforge_project:
74
- rubygems_version: 2.5.1
74
+ rubygems_version: 2.6.4
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: A Ruby gem for accessing the Fishbans Minecraft API.
78
78
  test_files: []
79
+ has_rdoc: