mavenlink 0.0.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +10 -3
- data/Gemfile.lock +38 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +69 -0
- data/Rakefile +50 -24
- data/TODO +18 -0
- data/VERSION +1 -0
- data/lib/mavenlink.rb +2 -134
- data/lib/mavenlink/base.rb +184 -0
- data/lib/mavenlink/client.rb +202 -96
- data/mavenlink.gemspec +85 -19
- data/spec/mavenlink/base_spec.rb +223 -0
- data/spec/mavenlink/client_spec.rb +183 -0
- data/spec/spec_helper.rb +13 -25
- metadata +243 -232
- checksums.yaml +0 -7
- data/.gitignore +0 -11
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/README.md +0 -241
- data/bin/mavenlink-console +0 -18
- data/doc/ml_logo_lb-primary.png +0 -0
- data/lib/config/specification.yml +0 -1665
- data/lib/mavenlink/account_invitation.rb +0 -4
- data/lib/mavenlink/account_membership.rb +0 -4
- data/lib/mavenlink/additional_item.rb +0 -4
- data/lib/mavenlink/assignment.rb +0 -5
- data/lib/mavenlink/attachment.rb +0 -11
- data/lib/mavenlink/backup_approver_association.rb +0 -4
- data/lib/mavenlink/concerns/custom_fieldable.rb +0 -9
- data/lib/mavenlink/concerns/indestructible.rb +0 -11
- data/lib/mavenlink/concerns/locked_record.rb +0 -30
- data/lib/mavenlink/cost_rate.rb +0 -4
- data/lib/mavenlink/custom_field.rb +0 -4
- data/lib/mavenlink/custom_field_choice.rb +0 -5
- data/lib/mavenlink/custom_field_value.rb +0 -4
- data/lib/mavenlink/errors.rb +0 -47
- data/lib/mavenlink/expense.rb +0 -4
- data/lib/mavenlink/expense_category.rb +0 -4
- data/lib/mavenlink/expense_report_submission.rb +0 -7
- data/lib/mavenlink/external_payment.rb +0 -4
- data/lib/mavenlink/external_reference.rb +0 -24
- data/lib/mavenlink/fixed_fee_item.rb +0 -4
- data/lib/mavenlink/holiday.rb +0 -4
- data/lib/mavenlink/holiday_calendar.rb +0 -4
- data/lib/mavenlink/holiday_calendar_association.rb +0 -4
- data/lib/mavenlink/holiday_calendar_membership.rb +0 -4
- data/lib/mavenlink/invoice.rb +0 -4
- data/lib/mavenlink/logger.rb +0 -62
- data/lib/mavenlink/model.rb +0 -279
- data/lib/mavenlink/organization.rb +0 -4
- data/lib/mavenlink/organization_membership.rb +0 -4
- data/lib/mavenlink/participation.rb +0 -4
- data/lib/mavenlink/post.rb +0 -4
- data/lib/mavenlink/project_template.rb +0 -4
- data/lib/mavenlink/project_template_assignment.rb +0 -4
- data/lib/mavenlink/railtie.rb +0 -7
- data/lib/mavenlink/rate_card.rb +0 -4
- data/lib/mavenlink/rate_card_role.rb +0 -4
- data/lib/mavenlink/rate_card_set.rb +0 -4
- data/lib/mavenlink/rate_card_set_version.rb +0 -30
- data/lib/mavenlink/rate_card_version.rb +0 -4
- data/lib/mavenlink/request.rb +0 -241
- data/lib/mavenlink/resolution.rb +0 -4
- data/lib/mavenlink/response.rb +0 -22
- data/lib/mavenlink/role.rb +0 -5
- data/lib/mavenlink/settings.rb +0 -11
- data/lib/mavenlink/skill.rb +0 -4
- data/lib/mavenlink/skill_category.rb +0 -4
- data/lib/mavenlink/skill_membership.rb +0 -4
- data/lib/mavenlink/specificators/association.rb +0 -13
- data/lib/mavenlink/specificators/attribute.rb +0 -13
- data/lib/mavenlink/specificators/base.rb +0 -24
- data/lib/mavenlink/specificators/validation.rb +0 -27
- data/lib/mavenlink/status_report.rb +0 -4
- data/lib/mavenlink/story.rb +0 -8
- data/lib/mavenlink/story_allocation_day.rb +0 -5
- data/lib/mavenlink/story_dependency.rb +0 -5
- data/lib/mavenlink/story_task.rb +0 -5
- data/lib/mavenlink/tag.rb +0 -5
- data/lib/mavenlink/time_adjustment.rb +0 -4
- data/lib/mavenlink/time_entry.rb +0 -4
- data/lib/mavenlink/time_off_entry.rb +0 -4
- data/lib/mavenlink/timesheet_submission.rb +0 -4
- data/lib/mavenlink/user.rb +0 -5
- data/lib/mavenlink/vendor.rb +0 -4
- data/lib/mavenlink/workspace.rb +0 -21
- data/lib/mavenlink/workspace_group.rb +0 -5
- data/lib/mavenlink/workspace_invoice_preference.rb +0 -4
- data/lib/mavenlink/workweek.rb +0 -4
- data/lib/mavenlink/workweek_membership.rb +0 -4
- data/spec/lib/mavenlink/account_membership_spec.rb +0 -8
- data/spec/lib/mavenlink/assignment_spec.rb +0 -17
- data/spec/lib/mavenlink/attachment_spec.rb +0 -30
- data/spec/lib/mavenlink/backup_approver_association_spec.rb +0 -9
- data/spec/lib/mavenlink/client_spec.rb +0 -187
- data/spec/lib/mavenlink/concerns/indestructible_spec.rb +0 -13
- data/spec/lib/mavenlink/concerns/locked_record_spec.rb +0 -28
- data/spec/lib/mavenlink/cost_rate_spec.rb +0 -9
- data/spec/lib/mavenlink/custom_field_value_spec.rb +0 -10
- data/spec/lib/mavenlink/expense_report_submission_spec.rb +0 -16
- data/spec/lib/mavenlink/expense_spec.rb +0 -23
- data/spec/lib/mavenlink/external_references_spec.rb +0 -144
- data/spec/lib/mavenlink/holiday_calendar_association_spec.rb +0 -8
- data/spec/lib/mavenlink/holiday_calendar_membership_spec.rb +0 -8
- data/spec/lib/mavenlink/holiday_spec.rb +0 -7
- data/spec/lib/mavenlink/invalid_request_error_spec.rb +0 -9
- data/spec/lib/mavenlink/invoice_spec.rb +0 -176
- data/spec/lib/mavenlink/model_spec.rb +0 -439
- data/spec/lib/mavenlink/post_spec.rb +0 -23
- data/spec/lib/mavenlink/rate_card_set_version_spec.rb +0 -119
- data/spec/lib/mavenlink/record_invalid_error_spec.rb +0 -16
- data/spec/lib/mavenlink/record_not_found_error_spec.rb +0 -9
- data/spec/lib/mavenlink/request_spec.rb +0 -381
- data/spec/lib/mavenlink/response_spec.rb +0 -50
- data/spec/lib/mavenlink/role_spec.rb +0 -9
- data/spec/lib/mavenlink/settings_spec.rb +0 -23
- data/spec/lib/mavenlink/skill_category_spec.rb +0 -7
- data/spec/lib/mavenlink/skill_membership_spec.rb +0 -9
- data/spec/lib/mavenlink/skill_spec.rb +0 -8
- data/spec/lib/mavenlink/specificators/association_spec.rb +0 -25
- data/spec/lib/mavenlink/specificators/attribute_spec.rb +0 -25
- data/spec/lib/mavenlink/specificators/validation_spec.rb +0 -39
- data/spec/lib/mavenlink/story_allocation_day_spec.rb +0 -64
- data/spec/lib/mavenlink/story_dependency_spec.rb +0 -16
- data/spec/lib/mavenlink/story_spec.rb +0 -69
- data/spec/lib/mavenlink/time_adjustment_spec.rb +0 -13
- data/spec/lib/mavenlink/time_entry_spec.rb +0 -43
- data/spec/lib/mavenlink/time_off_entry_spec.rb +0 -9
- data/spec/lib/mavenlink/user_spec.rb +0 -138
- data/spec/lib/mavenlink/workspace_group_spec.rb +0 -25
- data/spec/lib/mavenlink/workspace_spec.rb +0 -431
- data/spec/lib/mavenlink_spec.rb +0 -43
- data/spec/support/shared_examples.rb +0 -148
@@ -0,0 +1,183 @@
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
|
2
|
+
|
3
|
+
describe Mavenlink::Client do
|
4
|
+
before do
|
5
|
+
@client = Mavenlink::Client.new("user_id", "token")
|
6
|
+
end
|
7
|
+
|
8
|
+
describe "time entries" do
|
9
|
+
before do
|
10
|
+
@time_entries_json = <<-JSON
|
11
|
+
[
|
12
|
+
{
|
13
|
+
"workspace_id":1601,
|
14
|
+
"story_id":1581,
|
15
|
+
"creator_id":2,
|
16
|
+
"currency":"USD",
|
17
|
+
"created_at":"2010/08/02 09:39:01 -0700",
|
18
|
+
"date_performed":"2010/08/02",
|
19
|
+
"billable":false,
|
20
|
+
"notes":"",
|
21
|
+
"time_in_minutes":120,
|
22
|
+
"rate_in_cents":0,
|
23
|
+
"id":35
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"workspace_id":11746,
|
27
|
+
"story_id":null,
|
28
|
+
"creator_id":2,
|
29
|
+
"currency":"GBP",
|
30
|
+
"created_at":"2010/11/15 12:16:10 -0800",
|
31
|
+
"date_performed":"2010/11/15",
|
32
|
+
"billable":true,
|
33
|
+
"notes":"",
|
34
|
+
"time_in_minutes":60,
|
35
|
+
"rate_in_cents":2000,
|
36
|
+
"id":2060
|
37
|
+
}
|
38
|
+
]
|
39
|
+
JSON
|
40
|
+
|
41
|
+
|
42
|
+
@story_json = <<-JSON
|
43
|
+
{
|
44
|
+
"workspace_id":1601,
|
45
|
+
"state": "not started",
|
46
|
+
"description": "",
|
47
|
+
"story_type": "task",
|
48
|
+
"created_at": "2001/03/11 15:01:04 -0800",
|
49
|
+
"archived":false,
|
50
|
+
"assignee":
|
51
|
+
{
|
52
|
+
"full_name": "Some User",
|
53
|
+
"id": 4000
|
54
|
+
},
|
55
|
+
"due_date":null,
|
56
|
+
"position":1,
|
57
|
+
"id":1581,
|
58
|
+
"title": "Some Story",
|
59
|
+
"creator":
|
60
|
+
{
|
61
|
+
"full_name": "Some Other User",
|
62
|
+
"id": 4001
|
63
|
+
}
|
64
|
+
}
|
65
|
+
JSON
|
66
|
+
|
67
|
+
stub_request(:get, "https://user_id:token@mavenlink.local/api/v0/time_entries?per_page=5").
|
68
|
+
with(:headers => {'Accept'=>'application/json'}).
|
69
|
+
to_return(:status => 200, :body => @time_entries_json, :headers => {})
|
70
|
+
|
71
|
+
stub_request(:get, "https://user_id:token@mavenlink.local/api/v0/workspaces/1601/stories/1581?").
|
72
|
+
with(:headers => {'Accept'=>'application/json'}).
|
73
|
+
to_return(:status => 200, :body => @story_json, :headers => {})
|
74
|
+
|
75
|
+
@time_entries = @client.time_entries(:per_page => 5)
|
76
|
+
end
|
77
|
+
|
78
|
+
it "should do basic auth" do
|
79
|
+
WebMock.should have_requested(:get, "https://user_id:token@mavenlink.local/api/v0/time_entries?per_page=5")
|
80
|
+
end
|
81
|
+
|
82
|
+
it "should have many time_entries" do
|
83
|
+
@time_entries.length.should == 2
|
84
|
+
@time_entries.first.should be_a(Mavenlink::TimeEntry)
|
85
|
+
@time_entries.first.request_path.should == "/workspaces/1601/time_entries/35"
|
86
|
+
end
|
87
|
+
|
88
|
+
describe "the story on a time entry" do
|
89
|
+
it "is a working story object" do
|
90
|
+
story = @time_entries.first.story
|
91
|
+
story.should be_a(Mavenlink::Story)
|
92
|
+
story.title.should == "Some Story"
|
93
|
+
story.request_path.should == "/workspaces/1601/stories/1581"
|
94
|
+
end
|
95
|
+
|
96
|
+
it "has a nested creator and assignee" do
|
97
|
+
story = @time_entries.first.story
|
98
|
+
story.creator.should be_a(Mavenlink::User)
|
99
|
+
story.creator.full_name.should == "Some Other User"
|
100
|
+
story.assignee.should be_a(Mavenlink::User)
|
101
|
+
story.assignee.full_name.should == "Some User"
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
describe "events" do
|
107
|
+
before do
|
108
|
+
@story_json = <<-JSON
|
109
|
+
{
|
110
|
+
"title":"Story Title",
|
111
|
+
"creator":{
|
112
|
+
"id":354,
|
113
|
+
"full_name":"Some Other User"
|
114
|
+
},
|
115
|
+
"archived":false,
|
116
|
+
"id":7890,
|
117
|
+
"story_type":"deliverable",
|
118
|
+
"assignee":null,
|
119
|
+
"due_date":"2011/03/31",
|
120
|
+
"description":"",
|
121
|
+
"workspace_id":5678,
|
122
|
+
"state":"completed"
|
123
|
+
}
|
124
|
+
JSON
|
125
|
+
|
126
|
+
@events_json = <<-JSON
|
127
|
+
[
|
128
|
+
{
|
129
|
+
"subject_type":"Post",
|
130
|
+
"event_type":"PostCreatedEvent",
|
131
|
+
"subject": {
|
132
|
+
"id":2345,
|
133
|
+
"story_id":null,
|
134
|
+
"reply_count":0,
|
135
|
+
"workspace_id":1234,
|
136
|
+
"message":"Some message",
|
137
|
+
"user":{
|
138
|
+
"id":14,
|
139
|
+
"full_name":"Some User"
|
140
|
+
}
|
141
|
+
}
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"subject_type":"Story",
|
145
|
+
"event_type":"StoryCreatedEvent",
|
146
|
+
"subject": #{@story_json}
|
147
|
+
}
|
148
|
+
]
|
149
|
+
JSON
|
150
|
+
|
151
|
+
stub_request(:get, "https://user_id:token@mavenlink.local/api/v0/events?per_page=5").
|
152
|
+
with(:headers => {'Accept'=>'application/json'}).
|
153
|
+
to_return(:status => 200, :body => @events_json, :headers => {})
|
154
|
+
|
155
|
+
@events = @client.events(:per_page => 5)
|
156
|
+
end
|
157
|
+
|
158
|
+
it "should have many events with contained posts or stories" do
|
159
|
+
@events.length.should == 2
|
160
|
+
@events.first.should be_a(Mavenlink::Event)
|
161
|
+
@events.last.should be_a(Mavenlink::Event)
|
162
|
+
@events.first.subject_type.should == "Post"
|
163
|
+
@events.last.subject_type.should == "Story"
|
164
|
+
@events.first.subject.should be_a(Mavenlink::Post)
|
165
|
+
@events.last.subject.should be_a(Mavenlink::Story)
|
166
|
+
@events.first.subject.request_path.should == "/workspaces/1234/posts/2345"
|
167
|
+
@events.last.subject.request_path.should == "/workspaces/5678/stories/7890"
|
168
|
+
@events.first.subject.message.should == "Some message"
|
169
|
+
@events.last.subject.title.should == "Story Title"
|
170
|
+
@events.first.subject.user.full_name.should == "Some User"
|
171
|
+
@events.last.subject.creator.full_name.should == "Some Other User"
|
172
|
+
|
173
|
+
stub_request(:put, "https://user_id:token@mavenlink.local/api/v0/workspaces/5678/stories/7890").
|
174
|
+
with(:body => "story[title]=Some%20new%20title",
|
175
|
+
:headers => {'Accept'=>'application/json'}).
|
176
|
+
to_return(:status => 200, :body => @story_json.gsub(/Story Title/, 'Some new title'), :headers => {})
|
177
|
+
|
178
|
+
subject = @events.last.subject
|
179
|
+
subject.update(:title => "Some new title")
|
180
|
+
subject.title.should == "Some new title"
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,31 +1,19 @@
|
|
1
|
-
|
2
|
-
require 'shoulda/matchers/active_model'
|
3
|
-
require 'awesome_print'
|
4
|
-
require 'support/shared_examples'
|
1
|
+
ENV['TESTING'] = 'true'
|
5
2
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
3
|
+
Bundler.require(:default, :development)
|
4
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'mavenlink'))
|
5
|
+
require 'webmock/rspec'
|
10
6
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
end
|
7
|
+
# Requires supporting files with custom matchers and macros, etc,
|
8
|
+
# in ./support/ and its subdirectories.
|
9
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
15
10
|
|
16
|
-
|
17
|
-
|
11
|
+
RSpec.configure do |config|
|
12
|
+
def load_fixture(path)
|
13
|
+
File.read(File.join(File.dirname(__FILE__), 'fixtures', path))
|
18
14
|
end
|
15
|
+
|
16
|
+
config.mock_with :rr
|
19
17
|
end
|
20
18
|
|
21
|
-
|
22
|
-
Mavenlink.logger = Mavenlink::Logger.new(STDOUT)
|
23
|
-
Mavenlink.logger.level = Logger::INFO
|
24
|
-
|
25
|
-
RSpec.configure do |config|
|
26
|
-
config.mock_with :rspec
|
27
|
-
config.color_enabled = true
|
28
|
-
config.formatter = :documentation
|
29
|
-
config.include Shoulda::Matchers::ActiveModel
|
30
|
-
config.extend Shoulda::Matchers::ActiveModel
|
31
|
-
end
|
19
|
+
|
metadata
CHANGED
@@ -1,267 +1,278 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mavenlink
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
-
|
12
|
+
authors:
|
13
|
+
- Roger Neel
|
14
|
+
- Andrew Cantino
|
8
15
|
autorequire:
|
9
16
|
bindir: bin
|
10
17
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0.4
|
18
|
+
|
19
|
+
date: 2011-06-30 00:00:00 -07:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
prerelease: false
|
20
24
|
type: :runtime
|
25
|
+
name: httparty
|
26
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - "="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: 11
|
32
|
+
segments:
|
33
|
+
- 0
|
34
|
+
- 7
|
35
|
+
- 4
|
36
|
+
version: 0.7.4
|
37
|
+
requirement: *id001
|
38
|
+
- !ruby/object:Gem::Dependency
|
21
39
|
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 4.0.4
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: activemodel
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 4.0.4
|
34
40
|
type: :runtime
|
41
|
+
name: webmock
|
42
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
hash: 11
|
48
|
+
segments:
|
49
|
+
- 1
|
50
|
+
- 6
|
51
|
+
- 2
|
52
|
+
version: 1.6.2
|
53
|
+
requirement: *id002
|
54
|
+
- !ruby/object:Gem::Dependency
|
35
55
|
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 4.0.4
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: brainstem-adaptor
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.0.3
|
48
56
|
type: :runtime
|
57
|
+
name: rspec
|
58
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ~>
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
hash: 3
|
64
|
+
segments:
|
65
|
+
- 2
|
66
|
+
- 3
|
67
|
+
- 0
|
68
|
+
version: 2.3.0
|
69
|
+
requirement: *id003
|
70
|
+
- !ruby/object:Gem::Dependency
|
49
71
|
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0.3
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: faraday
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.9.0
|
62
72
|
type: :runtime
|
73
|
+
name: jeweler
|
74
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ~>
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
hash: 7
|
80
|
+
segments:
|
81
|
+
- 1
|
82
|
+
- 5
|
83
|
+
- 2
|
84
|
+
version: 1.5.2
|
85
|
+
requirement: *id004
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
prerelease: false
|
88
|
+
type: :runtime
|
89
|
+
name: rr
|
90
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ~>
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
hash: 19
|
96
|
+
segments:
|
97
|
+
- 1
|
98
|
+
- 0
|
99
|
+
- 2
|
100
|
+
version: 1.0.2
|
101
|
+
requirement: *id005
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
prerelease: false
|
104
|
+
type: :runtime
|
105
|
+
name: json
|
106
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ~>
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
hash: 1
|
112
|
+
segments:
|
113
|
+
- 1
|
114
|
+
- 5
|
115
|
+
- 1
|
116
|
+
version: 1.5.1
|
117
|
+
requirement: *id006
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
prerelease: false
|
120
|
+
type: :runtime
|
121
|
+
name: httparty
|
122
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - "="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
hash: 11
|
128
|
+
segments:
|
129
|
+
- 0
|
130
|
+
- 7
|
131
|
+
- 4
|
132
|
+
version: 0.7.4
|
133
|
+
requirement: *id007
|
134
|
+
- !ruby/object:Gem::Dependency
|
63
135
|
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.9.0
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 2.14.1
|
76
136
|
type: :development
|
137
|
+
name: webmock
|
138
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ~>
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
hash: 11
|
144
|
+
segments:
|
145
|
+
- 1
|
146
|
+
- 6
|
147
|
+
- 2
|
148
|
+
version: 1.6.2
|
149
|
+
requirement: *id008
|
150
|
+
- !ruby/object:Gem::Dependency
|
77
151
|
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 2.14.1
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: shoulda-matchers
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - '='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 2.5.0
|
90
152
|
type: :development
|
153
|
+
name: rspec
|
154
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
155
|
+
none: false
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
hash: 3
|
160
|
+
segments:
|
161
|
+
- 2
|
162
|
+
- 3
|
163
|
+
- 0
|
164
|
+
version: 2.3.0
|
165
|
+
requirement: *id009
|
166
|
+
- !ruby/object:Gem::Dependency
|
91
167
|
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - '='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 2.5.0
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: awesome_print
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
168
|
type: :development
|
169
|
+
name: jeweler
|
170
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
171
|
+
none: false
|
172
|
+
requirements:
|
173
|
+
- - ~>
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
hash: 7
|
176
|
+
segments:
|
177
|
+
- 1
|
178
|
+
- 5
|
179
|
+
- 2
|
180
|
+
version: 1.5.2
|
181
|
+
requirement: *id010
|
182
|
+
- !ruby/object:Gem::Dependency
|
105
183
|
prerelease: false
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
184
|
+
type: :development
|
185
|
+
name: rr
|
186
|
+
version_requirements: &id011 !ruby/object:Gem::Requirement
|
187
|
+
none: false
|
188
|
+
requirements:
|
189
|
+
- - ~>
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
hash: 19
|
192
|
+
segments:
|
193
|
+
- 1
|
194
|
+
- 0
|
195
|
+
- 2
|
196
|
+
version: 1.0.2
|
197
|
+
requirement: *id011
|
198
|
+
- !ruby/object:Gem::Dependency
|
199
|
+
prerelease: false
|
200
|
+
type: :development
|
201
|
+
name: json
|
202
|
+
version_requirements: &id012 !ruby/object:Gem::Requirement
|
203
|
+
none: false
|
204
|
+
requirements:
|
205
|
+
- - ~>
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
hash: 1
|
208
|
+
segments:
|
209
|
+
- 1
|
210
|
+
- 5
|
211
|
+
- 1
|
212
|
+
version: 1.5.1
|
213
|
+
requirement: *id012
|
214
|
+
description: This is a Ruby API client for Mavenlink. Mavenlink's project collaboration suite allows you to manage your business relationships, share files, and track project activity online from anywhere in the world. Within a project workspace in Mavenlink, you can agree on budget & schedule, track time, send invoices, get paid via PayPal, and complete work.
|
215
|
+
email: support@mavenlink.com
|
216
|
+
executables: []
|
217
|
+
|
115
218
|
extensions: []
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
|
219
|
+
|
220
|
+
extra_rdoc_files:
|
221
|
+
- LICENSE.txt
|
222
|
+
- README.rdoc
|
223
|
+
- TODO
|
224
|
+
files:
|
225
|
+
- .document
|
226
|
+
- .rspec
|
122
227
|
- Gemfile
|
123
|
-
-
|
228
|
+
- Gemfile.lock
|
229
|
+
- LICENSE.txt
|
230
|
+
- README.rdoc
|
124
231
|
- Rakefile
|
125
|
-
-
|
126
|
-
-
|
127
|
-
- lib/config/specification.yml
|
232
|
+
- TODO
|
233
|
+
- VERSION
|
128
234
|
- lib/mavenlink.rb
|
129
|
-
- lib/mavenlink/
|
130
|
-
- lib/mavenlink/account_membership.rb
|
131
|
-
- lib/mavenlink/additional_item.rb
|
132
|
-
- lib/mavenlink/assignment.rb
|
133
|
-
- lib/mavenlink/attachment.rb
|
134
|
-
- lib/mavenlink/backup_approver_association.rb
|
235
|
+
- lib/mavenlink/base.rb
|
135
236
|
- lib/mavenlink/client.rb
|
136
|
-
- lib/mavenlink/concerns/custom_fieldable.rb
|
137
|
-
- lib/mavenlink/concerns/indestructible.rb
|
138
|
-
- lib/mavenlink/concerns/locked_record.rb
|
139
|
-
- lib/mavenlink/cost_rate.rb
|
140
|
-
- lib/mavenlink/custom_field.rb
|
141
|
-
- lib/mavenlink/custom_field_choice.rb
|
142
|
-
- lib/mavenlink/custom_field_value.rb
|
143
|
-
- lib/mavenlink/errors.rb
|
144
|
-
- lib/mavenlink/expense.rb
|
145
|
-
- lib/mavenlink/expense_category.rb
|
146
|
-
- lib/mavenlink/expense_report_submission.rb
|
147
|
-
- lib/mavenlink/external_payment.rb
|
148
|
-
- lib/mavenlink/external_reference.rb
|
149
|
-
- lib/mavenlink/fixed_fee_item.rb
|
150
|
-
- lib/mavenlink/holiday.rb
|
151
|
-
- lib/mavenlink/holiday_calendar.rb
|
152
|
-
- lib/mavenlink/holiday_calendar_association.rb
|
153
|
-
- lib/mavenlink/holiday_calendar_membership.rb
|
154
|
-
- lib/mavenlink/invoice.rb
|
155
|
-
- lib/mavenlink/logger.rb
|
156
|
-
- lib/mavenlink/model.rb
|
157
|
-
- lib/mavenlink/organization.rb
|
158
|
-
- lib/mavenlink/organization_membership.rb
|
159
|
-
- lib/mavenlink/participation.rb
|
160
|
-
- lib/mavenlink/post.rb
|
161
|
-
- lib/mavenlink/project_template.rb
|
162
|
-
- lib/mavenlink/project_template_assignment.rb
|
163
|
-
- lib/mavenlink/railtie.rb
|
164
|
-
- lib/mavenlink/rate_card.rb
|
165
|
-
- lib/mavenlink/rate_card_role.rb
|
166
|
-
- lib/mavenlink/rate_card_set.rb
|
167
|
-
- lib/mavenlink/rate_card_set_version.rb
|
168
|
-
- lib/mavenlink/rate_card_version.rb
|
169
|
-
- lib/mavenlink/request.rb
|
170
|
-
- lib/mavenlink/resolution.rb
|
171
|
-
- lib/mavenlink/response.rb
|
172
|
-
- lib/mavenlink/role.rb
|
173
|
-
- lib/mavenlink/settings.rb
|
174
|
-
- lib/mavenlink/skill.rb
|
175
|
-
- lib/mavenlink/skill_category.rb
|
176
|
-
- lib/mavenlink/skill_membership.rb
|
177
|
-
- lib/mavenlink/specificators/association.rb
|
178
|
-
- lib/mavenlink/specificators/attribute.rb
|
179
|
-
- lib/mavenlink/specificators/base.rb
|
180
|
-
- lib/mavenlink/specificators/validation.rb
|
181
|
-
- lib/mavenlink/status_report.rb
|
182
|
-
- lib/mavenlink/story.rb
|
183
|
-
- lib/mavenlink/story_allocation_day.rb
|
184
|
-
- lib/mavenlink/story_dependency.rb
|
185
|
-
- lib/mavenlink/story_task.rb
|
186
|
-
- lib/mavenlink/tag.rb
|
187
|
-
- lib/mavenlink/time_adjustment.rb
|
188
|
-
- lib/mavenlink/time_entry.rb
|
189
|
-
- lib/mavenlink/time_off_entry.rb
|
190
|
-
- lib/mavenlink/timesheet_submission.rb
|
191
|
-
- lib/mavenlink/user.rb
|
192
|
-
- lib/mavenlink/vendor.rb
|
193
|
-
- lib/mavenlink/workspace.rb
|
194
|
-
- lib/mavenlink/workspace_group.rb
|
195
|
-
- lib/mavenlink/workspace_invoice_preference.rb
|
196
|
-
- lib/mavenlink/workweek.rb
|
197
|
-
- lib/mavenlink/workweek_membership.rb
|
198
237
|
- mavenlink.gemspec
|
199
|
-
- spec/
|
200
|
-
- spec/
|
201
|
-
- spec/lib/mavenlink/attachment_spec.rb
|
202
|
-
- spec/lib/mavenlink/backup_approver_association_spec.rb
|
203
|
-
- spec/lib/mavenlink/client_spec.rb
|
204
|
-
- spec/lib/mavenlink/concerns/indestructible_spec.rb
|
205
|
-
- spec/lib/mavenlink/concerns/locked_record_spec.rb
|
206
|
-
- spec/lib/mavenlink/cost_rate_spec.rb
|
207
|
-
- spec/lib/mavenlink/custom_field_value_spec.rb
|
208
|
-
- spec/lib/mavenlink/expense_report_submission_spec.rb
|
209
|
-
- spec/lib/mavenlink/expense_spec.rb
|
210
|
-
- spec/lib/mavenlink/external_references_spec.rb
|
211
|
-
- spec/lib/mavenlink/holiday_calendar_association_spec.rb
|
212
|
-
- spec/lib/mavenlink/holiday_calendar_membership_spec.rb
|
213
|
-
- spec/lib/mavenlink/holiday_spec.rb
|
214
|
-
- spec/lib/mavenlink/invalid_request_error_spec.rb
|
215
|
-
- spec/lib/mavenlink/invoice_spec.rb
|
216
|
-
- spec/lib/mavenlink/model_spec.rb
|
217
|
-
- spec/lib/mavenlink/post_spec.rb
|
218
|
-
- spec/lib/mavenlink/rate_card_set_version_spec.rb
|
219
|
-
- spec/lib/mavenlink/record_invalid_error_spec.rb
|
220
|
-
- spec/lib/mavenlink/record_not_found_error_spec.rb
|
221
|
-
- spec/lib/mavenlink/request_spec.rb
|
222
|
-
- spec/lib/mavenlink/response_spec.rb
|
223
|
-
- spec/lib/mavenlink/role_spec.rb
|
224
|
-
- spec/lib/mavenlink/settings_spec.rb
|
225
|
-
- spec/lib/mavenlink/skill_category_spec.rb
|
226
|
-
- spec/lib/mavenlink/skill_membership_spec.rb
|
227
|
-
- spec/lib/mavenlink/skill_spec.rb
|
228
|
-
- spec/lib/mavenlink/specificators/association_spec.rb
|
229
|
-
- spec/lib/mavenlink/specificators/attribute_spec.rb
|
230
|
-
- spec/lib/mavenlink/specificators/validation_spec.rb
|
231
|
-
- spec/lib/mavenlink/story_allocation_day_spec.rb
|
232
|
-
- spec/lib/mavenlink/story_dependency_spec.rb
|
233
|
-
- spec/lib/mavenlink/story_spec.rb
|
234
|
-
- spec/lib/mavenlink/time_adjustment_spec.rb
|
235
|
-
- spec/lib/mavenlink/time_entry_spec.rb
|
236
|
-
- spec/lib/mavenlink/time_off_entry_spec.rb
|
237
|
-
- spec/lib/mavenlink/user_spec.rb
|
238
|
-
- spec/lib/mavenlink/workspace_group_spec.rb
|
239
|
-
- spec/lib/mavenlink/workspace_spec.rb
|
240
|
-
- spec/lib/mavenlink_spec.rb
|
238
|
+
- spec/mavenlink/base_spec.rb
|
239
|
+
- spec/mavenlink/client_spec.rb
|
241
240
|
- spec/spec_helper.rb
|
242
|
-
|
243
|
-
homepage: http://github.com/mavenlink/
|
244
|
-
licenses:
|
241
|
+
has_rdoc: true
|
242
|
+
homepage: http://github.com/mavenlink/mavenlink_ruby_api
|
243
|
+
licenses:
|
245
244
|
- MIT
|
246
|
-
metadata: {}
|
247
245
|
post_install_message:
|
248
246
|
rdoc_options: []
|
249
|
-
|
247
|
+
|
248
|
+
require_paths:
|
250
249
|
- lib
|
251
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
252
|
-
|
250
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
251
|
+
none: false
|
252
|
+
requirements:
|
253
253
|
- - ">="
|
254
|
-
- !ruby/object:Gem::Version
|
255
|
-
|
256
|
-
|
257
|
-
|
254
|
+
- !ruby/object:Gem::Version
|
255
|
+
hash: 3
|
256
|
+
segments:
|
257
|
+
- 0
|
258
|
+
version: "0"
|
259
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
260
|
+
none: false
|
261
|
+
requirements:
|
258
262
|
- - ">="
|
259
|
-
- !ruby/object:Gem::Version
|
260
|
-
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
hash: 3
|
265
|
+
segments:
|
266
|
+
- 0
|
267
|
+
version: "0"
|
261
268
|
requirements: []
|
269
|
+
|
262
270
|
rubyforge_project:
|
263
|
-
rubygems_version:
|
271
|
+
rubygems_version: 1.3.7
|
264
272
|
signing_key:
|
265
|
-
specification_version:
|
266
|
-
summary: Mavenlink API
|
267
|
-
test_files:
|
273
|
+
specification_version: 3
|
274
|
+
summary: Ruby client for Mavenlink's API
|
275
|
+
test_files:
|
276
|
+
- spec/mavenlink/base_spec.rb
|
277
|
+
- spec/mavenlink/client_spec.rb
|
278
|
+
- spec/spec_helper.rb
|