accredible-api-ruby 0.1.20 → 0.1.40

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: c9b482a4ed3812d4ef67921f81acae76e6afab6f
4
- data.tar.gz: ded731ba81ca910c4f12fe3151b038bd17719e8b
3
+ metadata.gz: 81a6b3846e20e6a8bd2e8530efb40bda679b752c
4
+ data.tar.gz: b23cdadc0a9f948b28705bd2a4e1682485709090
5
5
  SHA512:
6
- metadata.gz: cb15f3ca484e621b336a396e7f8bbddda307e9697365420903992a6eb0bfaa5dd4821f36116655d02cad33b7770348a5a6582182b940253cf9c24285a7acd072
7
- data.tar.gz: ac0c0e6007f248349c26710f8fcb9aa96b8de0470681c1473ec768f4cf8a79412a7180f7fb25433ca47312b72a35d58c3096bc6a1447a81410e8e5f3e17431aa
6
+ metadata.gz: a0f02a79c27546d422c4c04711d99a654169fe2e2ec91ed73e32fbbcb395fa9f6ff67ddc1f9b5546a2aae8c5b983866d15226c64711681b4917adb23c759d288
7
+ data.tar.gz: 60188aea6c0639a84e06bf5f143432954501100a08499e5eb252409b6ba65ec0f05b721903ad82747d45200fc01f11987a14f07d99a034cc5cdec50d3b13135e
@@ -1,6 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 1.8.7
5
- - 2.0.0
6
3
  - 2.2.0
data/README.md CHANGED
@@ -1,11 +1,23 @@
1
- # accredible
1
+ ![Accredible Logo](https://s3.amazonaws.com/accredible-cdn/accredible_logo_sm.png)
2
+
3
+ # Accredible API Ruby SDK
4
+ ![Build Status](https://travis-ci.org/accredible/accredible-api-ruby.svg?branch=master)
5
+
2
6
  Overview
3
7
  --------
4
8
  The Accredible platform enables organizations to create, manage and distribute digital credentials as digital certificates or open badges.
5
9
 
6
10
  An example digital certificate and badge can be viewed here: https://www.credential.net/10000005
7
11
 
8
- This gem wraps the Accredible API in Ruby for easy integration into projects. Full API documentation can be found here: http://docs.accrediblecredentialapi.apiary.io/
12
+ This gem wraps the Accredible API in Ruby for easy integration into projects. The full REST API documentation can be found here: http://docs.accrediblecredentialapi.apiary.io/
13
+
14
+ We forked the original by sublimecoder so that we can provide updates without interfering with their active usage. This repository and gem are the officially maintained Ruby wrappers for Accredible.
15
+
16
+ Example Output
17
+ --------------
18
+ ![Example Digital Certificate](https://s3.amazonaws.com/accredible-cdn/example-digital-certificate.png)
19
+
20
+ ![Example Open Badge](https://s3.amazonaws.com/accredible-cdn/example-digital-badge.png)
9
21
 
10
22
  Install
11
23
  --------
@@ -112,6 +124,13 @@ Supported Ruby versions
112
124
  Currently only Ruby 2.0+ is supported. Contributions are welcome if you need to
113
125
  support a different version.
114
126
 
127
+ Bug reports
128
+ -----------
129
+
130
+ If you discover any bugs, feel free to create an issue on GitHub. Please add as much information as possible to help us fixing the possible bug. We also encourage you to help even more by forking and sending us a pull request.
131
+
132
+ https://github.com/accredible/accredible-api-ruby/issues
133
+
115
134
  License
116
135
  -------
117
136
  Accredible-API-Ruby is is free software, and may be redistributed under the
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.files = `git ls-files`.split("\n")
18
18
 
19
- s.add_dependency("rest-client", "~> 1.8")
19
+ s.add_dependency("rest-client", "~> 2.0.2")
20
20
 
21
21
  s.add_development_dependency("byebug", "~> 8.2")
22
22
  s.add_development_dependency("pry", "~> 0.10")
@@ -6,8 +6,8 @@ module Accredible
6
6
  Accredible.request(uri, :delete)
7
7
  end
8
8
 
9
- def self.view_all
10
- uri = Group.view_all_end_point
9
+ def self.view_all(page=1,page_size=40)
10
+ uri = Group.view_all_end_point(page, page_size)
11
11
  Accredible.request(uri)
12
12
  end
13
13
 
@@ -33,8 +33,8 @@ module Accredible
33
33
  end
34
34
 
35
35
 
36
- def self.view_all_end_point
37
- Accredible.api_url("/issuer/group")
36
+ def self.view_all_end_point(page,page_size)
37
+ Accredible.api_url("/issuer/all_groups?page=#{page}&page_size={page_size}")
38
38
  end
39
39
  end
40
40
  end
@@ -1,3 +1,3 @@
1
1
  module Accredible
2
- VERSION = "0.1.20"
2
+ VERSION = "0.1.40"
3
3
  end
@@ -40,10 +40,10 @@ describe Accredible::Group do
40
40
  end
41
41
 
42
42
  it "#view_all_end_point should return the view all end point" do
43
- end_point = group.view_all_end_point
43
+ end_point = group.view_all_end_point(1,20)
44
44
 
45
45
  expect(end_point).to include("accredible")
46
- expect(end_point).to include("group")
46
+ expect(end_point).to include("all_groups")
47
47
  expect(end_point).to include("issuer")
48
48
  end
49
49
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accredible-api-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Smith
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '1.8'
21
+ version: 2.0.2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '1.8'
28
+ version: 2.0.2
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: byebug
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -121,7 +121,6 @@ files:
121
121
  - ".rspec"
122
122
  - ".travis.yml"
123
123
  - Gemfile
124
- - Gemfile.lock
125
124
  - LICENSE
126
125
  - README.md
127
126
  - Rakefile