proz 0.1.0 → 0.1.1

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: ce56796415fbd0457c7635f426ed7f272db6182d
4
- data.tar.gz: e986249da1efbff28b2ba8737902fc3783275fde
3
+ metadata.gz: 4c985fdf49664430f32bf62fa0b3c2efb85ec15c
4
+ data.tar.gz: 3b474ae58c23157bfe6c3fad804274b6de575284
5
5
  SHA512:
6
- metadata.gz: 8ccfa74152c5b474d47412443ad488fca67f7a3fb95d7df612ee301ac40df607a6c60149a4f9b243859e133ddb64a22efa8d3702122c58b0756d95389a93cc06
7
- data.tar.gz: 2949a7f862770f4f4d3bba9e356d89292374218fb471f65eda77f993208df95ff912275c440646c7aff5e2d6ea8f1f2920d1402acece04269fc64c7214b02439
6
+ metadata.gz: 65e574b5110d6aa7f8c1eedc342c5c8d9ec6bbf42445086efc07ddd29ff4f5fab95de4c599e6eb21e1aa7f8297ee9b50cc2af12e6e709404e8b68b4ba7b27864
7
+ data.tar.gz: 1f8a631c41f531333f844656b9bacdc3f5bc9890efca25b846dd91840a8dfaf2f28f7b95278481e030157cdfa8e461ddf8dfac3021ff0f04b92595ff292dbec0
data/lib/proz/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Proz
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -10,19 +10,25 @@ module Proz
10
10
  end
11
11
 
12
12
  def entries
13
- self.class.get("/wiwo", headers: { 'X-Proz-API-Key' => api_key })
13
+ all_wiwos
14
14
  end
15
15
 
16
16
  def wiwo_entries
17
- self.class.get("/wiwo", headers: { 'X-Proz-API-Key' => api_key }).entries["wiwos"]
17
+ all_wiwos.entries["wiwos"]
18
18
  end
19
19
 
20
20
  def user_entries
21
- self.class.get("/wiwo", headers: { 'X-Proz-API-Key' => api_key }).entries["users"]
21
+ all_wiwos.entries["users"]
22
22
  end
23
23
 
24
24
  def user_entries(user_uuid)
25
25
  self.class.get("/wiwo?user_uuid=" + user_uuid, headers: { 'X-Proz-API-Key' => api_key })
26
26
  end
27
+
28
+ private
29
+
30
+ def all_wiwos
31
+ @wiwos ||= self.class.get("/wiwo", headers: { 'X-Proz-API-Key' => api_key })
32
+ end
27
33
  end
28
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias