triglav-client 0.0.2 → 0.0.3

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: 62815a4e1f4c19e2f9ae358eb292871715a03347
4
- data.tar.gz: 1b03f93401193af97d27d35307d89948b4d9a5a7
3
+ metadata.gz: 01e910aa582540480c64224ed218898530fe32bb
4
+ data.tar.gz: e4c7c133738561cfcece8d284f579c67629dc1c3
5
5
  SHA512:
6
- metadata.gz: 83a12fe20133acfe8be4d0a974dd0e1c60a92fb32fee14ad63d4f9f2e2a7113194d0700c09c41246fe462e72e4521d97df47c0c74c35b6f3e99eeddace6d0a0f
7
- data.tar.gz: 980cedd1d2c412898564ea130a160a89ada98e37c51812b896c21675e274639e1e86a090f08c0ba62d1314bacccc36a87073543f4ab80a0a888d211f0b148342
6
+ metadata.gz: 7ef626eccb314aa7f5ee91d3bb3bd57253277b33d86a1bd7ee7e8aec6d20642f14394b4dc29522c5c43c62b01d27db0a1141cc5bc1f92b0cfd8101535db41650
7
+ data.tar.gz: fb721cc27b0fc9d3e32e87cdbccaca2d1b6453ef971b5874d8fe6600447f3057f85aacb8191423b711c25891cce63e7757ec83b731cbc7b03c81b028cdade9ad
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes for triglav-client-ruby
2
2
 
3
+ ## 0.0.3
4
+
5
+ * Updadated API endpoints along with Triglav's changes.
6
+
3
7
  ## 0.0.2
4
8
 
5
9
  * Supported CRUD APIs.
@@ -19,15 +19,15 @@ module Triglav
19
19
  end
20
20
 
21
21
  API_ENDPOINT_MAP = {
22
- services: { method: :get, path: '/api/services.json' },
23
- roles: { method: :get, path: '/api/roles.json' },
24
- roles_in: { method: :get, path: ['/api/services/%s/roles.json'] },
25
- hosts: { method: :get, path: '/api/hosts.json' },
22
+ services: { method: :get, path: '/api/services' },
23
+ roles: { method: :get, path: '/api/roles' },
24
+ roles_in: { method: :get, path: ['/api/services/%s/roles'] },
25
+ hosts: { method: :get, path: '/api/hosts' },
26
26
  hosts_in: {
27
27
  method: :get,
28
28
  path: [
29
- '/api/services/%s/hosts.json',
30
- '/api/services/%s/roles/%s/hosts.json',
29
+ '/api/services/%s/hosts',
30
+ '/api/services/%s/roles/%s/hosts',
31
31
  ]
32
32
  },
33
33
  }
@@ -1,5 +1,5 @@
1
1
  module Triglav
2
2
  class Client
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
data/lib/triglav/model.rb CHANGED
@@ -12,11 +12,11 @@ module Triglav
12
12
  end
13
13
 
14
14
  API_ENDPOINT_MAP = {
15
- create: { method: :post, path: '/api/%s.json' },
16
- show: { method: :get, path: '/api/%s/%s.json' },
17
- update: { method: :post, path: '/api/%s/%s.json' },
18
- destroy: { method: :delete, path: '/api/%s/%s.json' },
19
- revert: { method: :get, path: '/api/%s/%s/revert.json' },
15
+ create: { method: :post, path: '/api/%s' },
16
+ show: { method: :get, path: '/api/%s/%s' },
17
+ update: { method: :post, path: '/api/%s/%s' },
18
+ destroy: { method: :delete, path: '/api/%s/%s' },
19
+ revert: { method: :get, path: '/api/%s/%s/revert' },
20
20
  }
21
21
 
22
22
  def self.endpoint_for (type, *args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triglav-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaro Kuribayashi