credly 0.0.4 → 0.0.5

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: 7d73a1a91ed38cb22be254446f025f3d12ac4b3c
4
- data.tar.gz: 5db8c0a62664c3cf6b5c52f846fb75e2b20ba4f4
3
+ metadata.gz: 02a1884cbf0b7c374ff0f9c9b584e5e25076fb24
4
+ data.tar.gz: eeff40331e7d02e365cb57738a0340741593ae1a
5
5
  SHA512:
6
- metadata.gz: 221debeb8b02a85eba180f5153657414fe7db68fcf8e25ac2088f6f25cedc3aa1ae9676317370965154c1250d4cfc6eef4a25f23108743c207e9faa73a7090cc
7
- data.tar.gz: 09d22bbfd23a7d8ce7966613dec92f616b757445227fe3eb938898ea0cabd6bf60660ac1b2f5fcb598efa2d73a3f3b98314a732d6c8ef5ac1e50be410dd05e1d
6
+ metadata.gz: 3770e0eff95ae434f01ba8171cfc7db87956e1ea5c48a652164a8ac8bce8017815033a7095ee6c859d3a9ce2af8df56bf298de83a79b48ac82bd821aa1f8e0c3
7
+ data.tar.gz: ccf41c50135f06a3785397095a01f6af672f0ea79c3c0fb02c7591eac11b672f71db4b5cd2930144bb98d736bdd1f4ab20007cea8e59f07b3d6cd652f1c8180f
@@ -0,0 +1,9 @@
1
+ module Credly
2
+ class Api
3
+ class Me < Base
4
+ def profile(options = {})
5
+ get("me", options)
6
+ end
7
+ end
8
+ end
9
+ end
@@ -62,6 +62,10 @@ module Credly
62
62
  Api::Members.new(:client => self, :id => id)
63
63
  end
64
64
 
65
+ def me(id = nil)
66
+ Api::Me.new(:client => self, :id => id)
67
+ end
68
+
65
69
  private
66
70
 
67
71
  def versioned_path(path)
@@ -1,3 +1,3 @@
1
1
  module Credly
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -83,4 +83,11 @@ describe 'API' do
83
83
  end
84
84
  end
85
85
 
86
+ describe 'Me' do
87
+ it "me" do
88
+ expect_api_call(:get, 'me', {})
89
+ client.me.profile()
90
+ end
91
+ end
92
+
86
93
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Rodríguez-Baltanás Díaz
@@ -267,6 +267,7 @@ files:
267
267
  - lib/credly/api/base.rb
268
268
  - lib/credly/api/categories.rb
269
269
  - lib/credly/api/evidence.rb
270
+ - lib/credly/api/me.rb
270
271
  - lib/credly/api/member_badges.rb
271
272
  - lib/credly/api/members.rb
272
273
  - lib/credly/client.rb