steam-id2 0.2.0 → 0.3.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: 81a7fe5f9064ba5259dc3366e558ba3052446188
4
- data.tar.gz: 488b3aacb8eb452eba6ebd4350398d5a56df01e9
3
+ metadata.gz: ec86282b71c3b0a2d93e517510b3d2e61665dd55
4
+ data.tar.gz: 2fd43ccf4fba3dd093cbe227f0f2dd708235de26
5
5
  SHA512:
6
- metadata.gz: 3dd101d76d86023df8b5fe11bd78c44f3c76bd4bece7c621568538c8ed131e160a96227302dba9f6b61660e798a33d9b31c6b23e6d6321f8f88ed85a32c4402e
7
- data.tar.gz: c86fc02d708b0376067e85202cfb0130115a81d4e449934d90640414903d3727bd6ea8bafbeaa22ee8c5fe11e5be25639d5a9b09433f775a30c878591bfad36c
6
+ metadata.gz: a58b02610133e911555d3a2f6f868a63764195373ebd8f3c629666628f584f98333686a72f232b6ac559ca99e7f68db33762e21bcac252cd8b9f1d5918a44673
7
+ data.tar.gz: 44f6747c01d2da87c87bbd8680d5e99b2ebd3c62951ce81ab8229098dc5dd8a0db220f1c1b74cf1e07897a2a6c5ec7fba5cde8e92fb7d23b12f968334bc74c33
data/CHANGELOG.md CHANGED
@@ -19,6 +19,13 @@ glance - what to expact from upgrading to a new version.
19
19
  ### Removed
20
20
 
21
21
 
22
+ ## [0.3.0] - 2017-05-30
23
+
24
+ ### Added
25
+
26
+ - Support for community URLs containing Steam ID3.
27
+
28
+
22
29
  ## [0.2.0] - 2017-03-07
23
30
 
24
31
  ### Added
@@ -13,6 +13,7 @@ module SteamID
13
13
  PATTERN_ACCOUNT_ID = /^[0-9]+$/
14
14
 
15
15
  PATTERN_COMMUNITY_URL = /^https?:\/\/steamcommunity\.com\/profiles\/(765[0-9]+)\/?$/
16
+ PATTERN_COMMUNITY_URL_STEAM_ID_3 = /^https?:\/\/steamcommunity\.com\/profiles\/\[U:([0-9]{1,2}):([0-9]+)\]$/i
16
17
  PATTERN_CUSTOM_URL = /^https?:\/\/steamcommunity\.com\/id\/([^\/]+)\/?$/
17
18
 
18
19
  # Resolve custom URL into account ID suitable for API calls.
@@ -45,6 +46,10 @@ module SteamID
45
46
  return self.from_steam_id(m[1])
46
47
  end
47
48
 
49
+ PATTERN_COMMUNITY_URL_STEAM_ID_3.match(url) do |m|
50
+ return self.from_steam_id(m[2])
51
+ end
52
+
48
53
  raise ArgumentError, "#{ url.inspect } is not a supported community URL."
49
54
  end
50
55
 
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.2.0'
7
+ spec.version = '0.3.0'
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.2.0
4
+ version: 0.3.0
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-03-07 00:00:00.000000000 Z
11
+ date: 2017-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: steam-condenser