mavenlink 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES ADDED
@@ -0,0 +1 @@
1
+ 0.2.4 - Add client.create_workspace and workspace.create_invitation methods.
@@ -137,7 +137,7 @@ module Mavenlink
137
137
  klass.new(result.parsed_response, :basic_auth => basic_auth, :path_params => handle_proc(new_path_params, result.parsed_response))
138
138
  end
139
139
  else
140
- raise "Server error code #{result.code}"
140
+ raise "Server error code #{result.code}: #{result.parsed_response.inspect}"
141
141
  end
142
142
  end
143
143
 
@@ -31,6 +31,10 @@ module Mavenlink
31
31
  fetch("workspaces/#{workspace_id}", Workspace, {})
32
32
  end
33
33
 
34
+ def create_workspace(options)
35
+ build("workspaces", Workspace, options, {})
36
+ end
37
+
34
38
 
35
39
  def time_entries(options = {})
36
40
  fetch('time_entries', TimeEntry, options, lambda { |time_entry| {:workspace_id => time_entry['workspace_id']} })
@@ -81,6 +85,11 @@ module Mavenlink
81
85
  end
82
86
 
83
87
 
88
+ def create_invitation(options)
89
+ build("invite", WorkspaceInvitation, options, :workspace_id => id)
90
+ end
91
+
92
+
84
93
  def time_entries(options = {})
85
94
  fetch("time_entries", TimeEntry, options, :workspace_id => id)
86
95
  end
@@ -134,6 +143,11 @@ module Mavenlink
134
143
  end
135
144
  end
136
145
 
146
+ class WorkspaceInvitation < Base
147
+ request_path "/not_available_yet"
148
+ class_name :invitation
149
+ end
150
+
137
151
  class Participant < Base
138
152
  request_path "/workspaces/:workspace_id/participants/:id"
139
153
  class_name :participant
@@ -1,3 +1,3 @@
1
1
  module Mavenlink
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mavenlink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-23 00:00:00.000000000 Z
12
+ date: 2012-03-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &70322607217620 !ruby/object:Gem::Requirement
16
+ requirement: &70272539810760 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70322607217620
24
+ version_requirements: *70272539810760
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: webmock
27
- requirement: &70322607217040 !ruby/object:Gem::Requirement
27
+ requirement: &70272539810180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70322607217040
35
+ version_requirements: *70272539810180
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70322607216480 !ruby/object:Gem::Requirement
38
+ requirement: &70272539809640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70322607216480
46
+ version_requirements: *70272539809640
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rr
49
- requirement: &70322607215960 !ruby/object:Gem::Requirement
49
+ requirement: &70272539809120 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70322607215960
57
+ version_requirements: *70272539809120
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: json
60
- requirement: &70322607215400 !ruby/object:Gem::Requirement
60
+ requirement: &70272539808560 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70322607215400
68
+ version_requirements: *70272539808560
69
69
  description: This is a Ruby API client for Mavenlink. Mavenlink's project collaboration
70
70
  suite allows you to manage your business relationships, share files, and track project
71
71
  activity online from anywhere in the world. Within a project workspace in Mavenlink,
@@ -78,6 +78,7 @@ extra_rdoc_files: []
78
78
  files:
79
79
  - .gitignore
80
80
  - .rspec
81
+ - CHANGES
81
82
  - Gemfile
82
83
  - Gemfile.lock
83
84
  - LICENSE.txt