ruby-identitas-api 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +7 -3
- data/README.md +6 -39
- data/lib/ruby/identitas/api.rb +1 -1
- data/lib/ruby/identitas/api/version.rb +1 -1
- data/lib/ruby/identitas/endpoints/me.rb +2 -9
- data/lib/ruby/identitas/endpoints/user.rb +0 -7
- data/ruby-identitas-api.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: afbbe87714067344d14740ffb0c95851ff995ad6370f6b485c513b8882568198
|
4
|
+
data.tar.gz: 6fc70abfeb99e04355cbc7fc2e612177d19b14dc2f96567662658bf9dcb14c44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 450e4aaf9a86c6501876ed21088bf26e1a755d1a848fbdcf61f3989192903186ca727364285b7ce56b68ea68740520b3e5416099ef02d79608767ca8dfaf55a3
|
7
|
+
data.tar.gz: b9a0f3d5c0a44808e678fe1174864d49ba6ef6633988be62b98e126782a12014781e32acac2e5a5dc435e86fb1961c3d14eb231117c2a9b8939e7e282a0e7a52
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby-identitas-api (0.
|
4
|
+
ruby-identitas-api (0.4.0)
|
5
5
|
httparty
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
diff-lcs (1.3)
|
11
|
-
httparty (0.
|
11
|
+
httparty (0.16.3)
|
12
|
+
mime-types (~> 3.0)
|
12
13
|
multi_xml (>= 0.5.2)
|
14
|
+
mime-types (3.2.2)
|
15
|
+
mime-types-data (~> 3.2015)
|
16
|
+
mime-types-data (3.2018.0812)
|
13
17
|
multi_xml (0.6.0)
|
14
18
|
rake (10.5.0)
|
15
19
|
rspec (3.7.0)
|
@@ -36,4 +40,4 @@ DEPENDENCIES
|
|
36
40
|
ruby-identitas-api!
|
37
41
|
|
38
42
|
BUNDLED WITH
|
39
|
-
1.16.
|
43
|
+
1.16.4
|
data/README.md
CHANGED
@@ -35,9 +35,9 @@ response = request.me
|
|
35
35
|
|
36
36
|
## Endpoints
|
37
37
|
|
38
|
-
###
|
38
|
+
### verify credential
|
39
39
|
|
40
|
-
|
40
|
+
Verify your credential
|
41
41
|
|
42
42
|
parameters :
|
43
43
|
|
@@ -48,28 +48,12 @@ parameters :
|
|
48
48
|
example :
|
49
49
|
|
50
50
|
```ruby
|
51
|
-
response = request.
|
51
|
+
response = request.verify_credential.parsed_response
|
52
52
|
```
|
53
53
|
|
54
|
-
###
|
55
|
-
|
56
|
-
Get my invitations
|
57
|
-
|
58
|
-
parameters :
|
59
|
-
|
60
|
-
| name | type |
|
61
|
-
| ------------ | ------------ |
|
62
|
-
|`access_token`| query string |
|
63
|
-
|
64
|
-
example :
|
65
|
-
|
66
|
-
```ruby
|
67
|
-
response = request.my_invitations.parsed_response
|
68
|
-
```
|
69
|
-
|
70
|
-
### my invitations count
|
54
|
+
### me
|
71
55
|
|
72
|
-
Get
|
56
|
+
Get detail information about user
|
73
57
|
|
74
58
|
parameters :
|
75
59
|
|
@@ -80,7 +64,7 @@ parameters :
|
|
80
64
|
example :
|
81
65
|
|
82
66
|
```ruby
|
83
|
-
response = request.
|
67
|
+
response = request.me.parsed_response
|
84
68
|
```
|
85
69
|
|
86
70
|
### token status
|
@@ -138,23 +122,6 @@ example :
|
|
138
122
|
response = request.create_user({email: "m.yunan.helmy@gmail.com", first_name: "Yunan", last_name: "Helmy", password: "mys3cret", password_confirmation: "mys3cret"}).parsed_response
|
139
123
|
```
|
140
124
|
|
141
|
-
### Invite user
|
142
|
-
|
143
|
-
Invite user
|
144
|
-
|
145
|
-
parameters :
|
146
|
-
|
147
|
-
| name | type |
|
148
|
-
| ------------ | ------------ |
|
149
|
-
|`access_token`| query string |
|
150
|
-
|`email`| query string |
|
151
|
-
|
152
|
-
example :
|
153
|
-
|
154
|
-
```ruby
|
155
|
-
response = request.invite_user({email: "m.yunan.helmy@gmail.com"}).parsed_response
|
156
|
-
```
|
157
|
-
|
158
125
|
## Development
|
159
126
|
|
160
127
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/ruby/identitas/api.rb
CHANGED
@@ -8,18 +8,11 @@ module Ruby
|
|
8
8
|
self.class.get(endpoint, query: options)
|
9
9
|
end
|
10
10
|
|
11
|
-
def
|
11
|
+
def verify_credential(options = {})
|
12
12
|
options.merge!({access_token: @token})
|
13
|
-
endpoint = build_endpoint("/v1/
|
13
|
+
endpoint = build_endpoint("/v1/verify_credential")
|
14
14
|
self.class.get(endpoint, query: options)
|
15
15
|
end
|
16
|
-
|
17
|
-
def my_invitations_count(options = {})
|
18
|
-
options.merge!({access_token: @token})
|
19
|
-
endpoint = build_endpoint("/v1/me/invitations/count")
|
20
|
-
self.class.get(endpoint, query: options)
|
21
|
-
end
|
22
|
-
|
23
16
|
end
|
24
17
|
end
|
25
18
|
end
|
@@ -7,13 +7,6 @@ module Ruby
|
|
7
7
|
endpoint = build_endpoint("/v1/users")
|
8
8
|
self.class.post(endpoint, query: options)
|
9
9
|
end
|
10
|
-
|
11
|
-
def invite_user(options = {})
|
12
|
-
options.merge!({access_token: @token})
|
13
|
-
endpoint = build_endpoint("/v1/users/invite")
|
14
|
-
self.class.post(endpoint, query: options)
|
15
|
-
end
|
16
|
-
|
17
10
|
end
|
18
11
|
end
|
19
12
|
end
|
data/ruby-identitas-api.gemspec
CHANGED
@@ -10,8 +10,8 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.authors = ["yunanhelmy"]
|
11
11
|
spec.email = ["m.yunan.helmy@gmail.com"]
|
12
12
|
|
13
|
-
spec.summary = "API wrapper for
|
14
|
-
spec.description = "API wrapper for
|
13
|
+
spec.summary = "API wrapper for Symbolic"
|
14
|
+
spec.description = "API wrapper for Symbolic"
|
15
15
|
spec.homepage = "https://github.com/extrainteger/ruby-identitas-api"
|
16
16
|
spec.license = "MIT"
|
17
17
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-identitas-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yunanhelmy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
|
-
description: API wrapper for
|
69
|
+
description: API wrapper for Symbolic
|
70
70
|
email:
|
71
71
|
- m.yunan.helmy@gmail.com
|
72
72
|
executables: []
|
@@ -195,10 +195,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
version: '0'
|
196
196
|
requirements: []
|
197
197
|
rubyforge_project:
|
198
|
-
rubygems_version: 2.
|
198
|
+
rubygems_version: 2.7.7
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
|
-
summary: API wrapper for
|
201
|
+
summary: API wrapper for Symbolic
|
202
202
|
test_files:
|
203
203
|
- spec/dummy/.gitignore
|
204
204
|
- spec/dummy/Gemfile
|