nodester 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -19,7 +19,9 @@ A more detailed description can be found at <http://rubydoc.info/gems/nodester>.
19
19
  ###Some Sample Code
20
20
 
21
21
  client = Nodester::Client.new("username","password")
22
+
22
23
  client.create_app 'myappname','server.js'
24
+
23
25
  ...
24
26
 
25
27
  ### Note
@@ -47,6 +49,9 @@ This gem was created to the tunes of Natalia Kills and Nicki Minaj.
47
49
 
48
50
  ## Release Notes
49
51
 
52
+ ### 0.0.5
53
+ * Bug Fixing: start stop app, error handling
54
+
50
55
  ### 0.0.3
51
56
  * Updated docs
52
57
 
@@ -47,7 +47,7 @@ private
47
47
  # @raise [ResponseError] raised in case of a web service related error.
48
48
  # @raise [StandardError] raised in case of an error that is not web service related.
49
49
  # @return [HTTParty::Response] the response as returned by the web request.
50
- def self.bad_response(response)
50
+ def bad_response(response)
51
51
  if response.class == HTTParty::Response
52
52
  raise ResponseError, response
53
53
  end
@@ -157,7 +157,7 @@ public
157
157
  # @return [HTTParty::Response] A response.
158
158
  def start_stop_app(appname,running = true)
159
159
 
160
- options={:body=> {:appname => appname, :running=>start}, :basic_auth => @auth}
160
+ options={:body=> {:appname => appname, :running=>running}, :basic_auth => @auth}
161
161
  handle_result self.class.put('/app', options)
162
162
  end
163
163
 
@@ -220,9 +220,7 @@ public
220
220
  options={:body => {:appname => appname,:key=>key},:basic_auth => @auth}
221
221
  handle_result self.class.get('/env', options)
222
222
  end
223
-
224
- # curl -X POST -u "mwawrusch:mw09543089" -d "appname=myappname&action=install&package=express" http://api.nodester.com/npm
225
-
223
+
226
224
  # Manages the NPM package manager associated with an app.
227
225
  # @param (String) appname the name of the app.
228
226
  # @param (String) action the action to perform. Can be install|upgrade|uninstall. Check official documentation
@@ -1,4 +1,4 @@
1
1
  module Nodester
2
2
  # The version of this gem.
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.5"
4
4
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: nodester
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Martin Wawrusch
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-30 00:00:00 -07:00
13
+ date: 2011-08-06 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency