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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fac6dbbe1a01fd4f0cc2423606ee88238abb7ef0
4
- data.tar.gz: 561d21750ffc7f2714a58f2b571d6a26688d2872
2
+ SHA256:
3
+ metadata.gz: afbbe87714067344d14740ffb0c95851ff995ad6370f6b485c513b8882568198
4
+ data.tar.gz: 6fc70abfeb99e04355cbc7fc2e612177d19b14dc2f96567662658bf9dcb14c44
5
5
  SHA512:
6
- metadata.gz: 71a0fc39b27937bf6d3d37986a39c9e453312b92c0826512e4480468f60f87dd1c7fd939d804a6da86b9a9b50c8b327edab1d79cc6b101dd0fcfb52807650cc2
7
- data.tar.gz: 8d0f296da1033fb18e1d80b856bd945692a7fea97b5a7644e8c42390b9c51aee3f2219a8a67bade265dd87c62af87f0e86442c7d14261b0f94a2c2219600a8dc
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.3.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.15.7)
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.0
43
+ 1.16.4
data/README.md CHANGED
@@ -35,9 +35,9 @@ response = request.me
35
35
 
36
36
  ## Endpoints
37
37
 
38
- ### me
38
+ ### verify credential
39
39
 
40
- Get detail information about user
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.me.parsed_response
51
+ response = request.verify_credential.parsed_response
52
52
  ```
53
53
 
54
- ### my invitations
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 my invitations count
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.my_invitations_count.parsed_response
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.
@@ -8,7 +8,7 @@ module Ruby
8
8
  module Api
9
9
  extend Ruby::Identitas::Configuration
10
10
 
11
- define_setting :url, "https://api.identitas.com"
11
+ define_setting :url, "https://symbolic.id"
12
12
 
13
13
  end
14
14
  end
@@ -1,7 +1,7 @@
1
1
  module Ruby
2
2
  module Identitas
3
3
  module Api
4
- VERSION = "0.5.0"
4
+ VERSION = "0.6.0"
5
5
  end
6
6
  end
7
7
  end
@@ -8,18 +8,11 @@ module Ruby
8
8
  self.class.get(endpoint, query: options)
9
9
  end
10
10
 
11
- def my_invitations(options = {})
11
+ def verify_credential(options = {})
12
12
  options.merge!({access_token: @token})
13
- endpoint = build_endpoint("/v1/me/invitations")
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
@@ -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 Identitas"
14
- spec.description = "API wrapper for Identitas"
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.5.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-04-30 00:00:00.000000000 Z
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 Identitas
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.6.8
198
+ rubygems_version: 2.7.7
199
199
  signing_key:
200
200
  specification_version: 4
201
- summary: API wrapper for Identitas
201
+ summary: API wrapper for Symbolic
202
202
  test_files:
203
203
  - spec/dummy/.gitignore
204
204
  - spec/dummy/Gemfile