wp-api-client 0.2.1 → 0.2.2

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: 94ebe4bf9964cd59307bc4936c8c965ebffff39d
4
- data.tar.gz: 2fa3a08a085bc684be79f6e1cdc8eff8b671e507
3
+ metadata.gz: c50b50f037a644caac4f4b7a62151dc611b97744
4
+ data.tar.gz: 6c5bad2367af9c5965f5d2ccd7aeccd06b24bb08
5
5
  SHA512:
6
- metadata.gz: 6910fe16593959cdeb492278344d669bf20e734088493076255c8263698ab8e23adae2a671cb9d4cdf822d8e38a06d91f0705d9696859a458836132195cc9191
7
- data.tar.gz: 2bdd4f9c237badbcd4cb16b3197556b295a5633741a4696ad07758d7ec7c6c0e6166b7f3afe649212e051ede4e43801c42cac0d4ba408dd5f47be81cca36d8fa
6
+ metadata.gz: 1d095bc06ef8e4d2a3575c321ba965f6e55ef05526b2d6a4f1133bd9576eccdf0ca5838a5fa7a6a608cb946a8e8190c28c5bbebeb888a3f514f0cf37b3ae67d3
7
+ data.tar.gz: ea828e89a0b046c617fae2a6ec55639326a0ed579dd63853210c5af8482e6d6b7e273bd806eed244e784746d3682584c90a0cd837e575edac7f39e59dce0dd99
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /config/oauth.json
11
+ *.gem
@@ -36,7 +36,13 @@ module WpApiClient
36
36
  end
37
37
 
38
38
  def meta(key = nil)
39
- @meta ||= relations("https://api.w.org/meta", key)
39
+ @meta ||= relations("https://api.w.org/meta")
40
+
41
+ if key
42
+ @meta[key.to_s]
43
+ else
44
+ @meta
45
+ end
40
46
  end
41
47
  end
42
48
  end
@@ -1,3 +1,3 @@
1
1
  module WpApiClient
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wp-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duncan Brown
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-04 00:00:00.000000000 Z
11
+ date: 2016-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday