mackerel-rb 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/mackerel/client/host.rb +4 -4
- data/lib/mackerel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32cbe20baab0c32925c4763db61bbd0d857e5880
|
4
|
+
data.tar.gz: 37d88a75e41e08b94208423dfa1869eced102e11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02eca6326a8753950750bdde5a29edb8a2cfc827bad5faddef1d77ad0c1559b51dd195a94f24de7240b60a137a4432b809d2835f08db041b66c5f140a4df23ce
|
7
|
+
data.tar.gz: 823601a2fbcd23cf79e61016153025796816bb75a3d723058d3c8e234906d7fb0e1d9d303be70de01535f873791fcb14dabff6e117f6b416493b98c7dad900bf
|
data/README.md
CHANGED
data/lib/mackerel/client/host.rb
CHANGED
@@ -11,13 +11,13 @@ module Mackerel
|
|
11
11
|
response.body.host
|
12
12
|
end
|
13
13
|
|
14
|
-
def create_host(
|
15
|
-
response = post "hosts"
|
14
|
+
def create_host(params)
|
15
|
+
response = post "hosts", params
|
16
16
|
response.body.host
|
17
17
|
end
|
18
18
|
|
19
|
-
def update_host(id,
|
20
|
-
response = put "hosts/#{id}"
|
19
|
+
def update_host(id, params)
|
20
|
+
response = put "hosts/#{id}", params
|
21
21
|
response.body
|
22
22
|
end
|
23
23
|
|
data/lib/mackerel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mackerel-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mizokami
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|