webcoder 0.0.1 → 0.0.2

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.
@@ -19,8 +19,8 @@ require 'webcoder/report'
19
19
  require 'webcoder/job'
20
20
  require 'webcoder/input'
21
21
  require 'webcoder/output'
22
- require 'webcoder/account'
23
22
  require 'webcoder/notification'
24
23
  require 'webcoder/response'
25
24
  require 'webcoder/upload'
25
+ require 'webcoder/user'
26
26
  require 'webcoder/version'
@@ -36,7 +36,7 @@ module Webcoder
36
36
 
37
37
  def self.delete(path, options={})
38
38
  options = options.dup
39
- url = url_for(path)
39
+ url = url_for(path, options)
40
40
  options = add_api_key_header(options)
41
41
  HTTP.delete(url, options)
42
42
  end
@@ -0,0 +1,13 @@
1
+ module Webcoder
2
+ class User < Resource
3
+
4
+ def self.create(params={}, options={})
5
+ params[:id] = params.delete(:api_key) if params[:api_key]
6
+ post("/users", params, options)
7
+ end
8
+
9
+ def self.destroy(api_key, options = {})
10
+ delete("/users/#{api_key}", options)
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Webcoder
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webcoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
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: 2014-02-18 00:00:00.000000000 Z
12
+ date: 2014-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -56,7 +56,6 @@ files:
56
56
  - README.md
57
57
  - Rakefile
58
58
  - lib/webcoder.rb
59
- - lib/webcoder/account.rb
60
59
  - lib/webcoder/errors.rb
61
60
  - lib/webcoder/http.rb
62
61
  - lib/webcoder/http/net_http.rb
@@ -71,6 +70,7 @@ files:
71
70
  - lib/webcoder/response.rb
72
71
  - lib/webcoder/serializer.rb
73
72
  - lib/webcoder/upload.rb
73
+ - lib/webcoder/user.rb
74
74
  - lib/webcoder/version.rb
75
75
  - lib/webcoder/webcoder.rb
76
76
  - webcoder.gemspec
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  segments:
91
91
  - 0
92
- hash: 3063039980127814060
92
+ hash: 564024424563470309
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  segments:
100
100
  - 0
101
- hash: 3063039980127814060
101
+ hash: 564024424563470309
102
102
  requirements: []
103
103
  rubyforge_project:
104
104
  rubygems_version: 1.8.25
@@ -1,21 +0,0 @@
1
- module Webcoder
2
- class Account < Resource
3
-
4
- def self.create(params={}, options={})
5
- post("/account", params, options)
6
- end
7
-
8
- def self.details(options={})
9
- get("/account", options)
10
- end
11
-
12
- def self.integration(options={})
13
- put("/account/integration", nil, options)
14
- end
15
-
16
- def self.live(options={})
17
- put("/account/live", nil, options)
18
- end
19
-
20
- end
21
- end