steam-id2 0.4.2 → 0.4.3

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: ad73a926e51a5ce9f1f6b75f50b065677ccc8443
4
- data.tar.gz: 8417f19396fa3f8b771c5e885cade4ecf65ab293
3
+ metadata.gz: ba7072926756ac80a5781db6e6ffc65b89b0bdf2
4
+ data.tar.gz: a7401e6ad98f14dd251e04d8059b54c733fb7a6a
5
5
  SHA512:
6
- metadata.gz: 215d742afbd19a0484e06a82144500fb71bd760eb583c4ef679410c656a02d2d396f9ea8c0731d505e12c7fbe40e48ce1c49e9ca1e8a0eeddc59335dbac82c49
7
- data.tar.gz: 36c12b22561ced936bdfa572a45bfb8adccf46b2bc5d7226e8eacbfb95b921c099141ab1fd58a744e3c4dd9d636dee3b0b86fa003f0d31fa6e3efcea1ab5dac5
6
+ metadata.gz: a60344b2ac790464335e8727f87800eff124f110f315d1c295a2ae3e24e1225d02c4b3c98fbdc0c27d721fe14597fdf38a6d44fb9ef3154375b87d90ae22c48e
7
+ data.tar.gz: 57d1e29d46fb4837d29fb781e40d8ce5fa4f837573fdae015c487cee551485b10ea2ee141e1c40d22130648f1a939bcb629f4cccfc6851879bf9f5f09335a6f0
data/CHANGELOG.md CHANGED
@@ -19,6 +19,14 @@ glance - what to expact from upgrading to a new version.
19
19
  ### Removed
20
20
 
21
21
 
22
+ ## [0.4.3] - 2017-11-30
23
+
24
+ ### Fixed
25
+
26
+ - Handle non-ASCII vanity URLs by throwing an exception instead of failing when
27
+ creating an URL.
28
+
29
+
22
30
  ## [0.4.2] - 2017-11-25
23
31
 
24
32
  ### Fixed
@@ -124,13 +124,14 @@ module SteamID
124
124
 
125
125
  # Create SteamID object based on custom URL. Note that this requires the
126
126
  # API key to be set.
127
- # @param url [String] custom URL:
127
+ # @param url [String] custom URL - must be ASCII:
128
128
  # - http://steamcommunity.com/id/some-custom-url
129
129
  # - some-custom-url
130
130
  # @return [SteamID]
131
131
  # @raise [ArgumentError] If the supplied string was not a valid custom URL.
132
132
  # @raise [WebApiError] If the Steam API returned an error.
133
133
  def from_vanity_url(url)
134
+ raise ArgumentError, "Vanity URL must be ASCII." unless url.ascii_only?
134
135
  PATTERN_CUSTOM_URL.match(url) do |m|
135
136
  url = m[1]
136
137
  end
data/steam-id2.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "steam-id2"
7
- spec.version = '0.4.2'
7
+ spec.version = '0.4.3'
8
8
  spec.authors = ["Michael Senn"]
9
9
  spec.email = ["michael@morrolan.ch"]
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steam-id2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Senn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-25 00:00:00.000000000 Z
11
+ date: 2017-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: steam-condenser