turrialba 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39bbd3758849ec1ca7e9a18e6d3b2918f31de038
4
- data.tar.gz: 6c4202b22569835cf6af3a5e72e89e30bceba998
3
+ metadata.gz: c9179232aa56bd552bd9dc281b7d3b374d0f6785
4
+ data.tar.gz: 7d32f2e17724bc84983a3f56b378b39a31408b24
5
5
  SHA512:
6
- metadata.gz: 5c5d8d984e482e87a480c1553e38eadf803f8bccc703f0e1103684ea86b863ef7a57930e590a6916933f7d1aeee4586075204049f6d11bb0dd2cc3742d7bf663
7
- data.tar.gz: 678274b317b3b10424f93f26c4a3637efbec8d8b1acea8134620811bab026540af7c361707667ee7110e364a70375145478cc33b1d4b32a02b764f86aca4bcdc
6
+ metadata.gz: f3b3cdf3922e344b3c3326db359e494e006efedc1a84cf667d8957f57364eabf452f6272795577e87b8c65047cf12ccbc25345ffe59342df725649a07bc5969b
7
+ data.tar.gz: b65351a96418109a9a1659b1bdd094d9509b785b080f19b044d6009811d44034206cbd576b2d47387a1bcf45444c5c8985d06db354140ed5bf85267114293778
@@ -14,6 +14,11 @@ module Turrialba
14
14
  User.new(response.parsed_response)
15
15
  end
16
16
 
17
+ def username(screen_name)
18
+ response = self.class.get("/user/#{screen_name}/username", headers: @auth_header)
19
+ User.new(response.parsed_response)
20
+ end
21
+
17
22
  def put_user(hash)
18
23
  uid = hash[:uid] || hash[:id_str]
19
24
  response = self.class.put("/user/#{uid}",
@@ -1,3 +1,3 @@
1
1
  module Turrialba
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turrialba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Valverde Arredondo