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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/steam-id/parser.rb +2 -1
- data/steam-id2.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba7072926756ac80a5781db6e6ffc65b89b0bdf2
|
4
|
+
data.tar.gz: a7401e6ad98f14dd251e04d8059b54c733fb7a6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/steam-id/parser.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2017-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: steam-condenser
|