gaptool-api 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.2.0
data/gaptool-api.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gaptool-api"
8
- s.version = "0.1.1"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Bailey"]
12
- s.date = "2012-12-21"
12
+ s.date = "2013-01-07"
13
13
  s.description = "gaptool-server ruby API"
14
14
  s.email = "m@mdb.io"
15
15
  s.extra_rdoc_files = [
data/lib/gaptool-api.rb CHANGED
@@ -10,6 +10,11 @@ module GTAPI
10
10
  GaptoolServer.base_uri uri
11
11
  end
12
12
 
13
+ def redishash(hash)
14
+ options = {:body => hash, :headers => @auth}
15
+ JSON::parse self.class.post("/redishash", options)
16
+ end
17
+
13
18
  def getonenode(role, environment, id)
14
19
  options = {:headers => @auth}
15
20
  JSON::parse self.class.get("/host/#{role}/#{environment}/#{id}", options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaptool-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-21 00:00:00.000000000 Z
12
+ date: 2013-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -141,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  segments:
143
143
  - 0
144
- hash: 2571795730897300101
144
+ hash: 2921231889024537349
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  none: false
147
147
  requirements: