jira-ruby-dmg 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +6 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +46 -0
- data/README.rdoc +309 -0
- data/Rakefile +28 -0
- data/example.rb +119 -0
- data/http-basic-example.rb +112 -0
- data/jira-ruby-dmg.gemspec +28 -0
- data/lib/jira/base.rb +497 -0
- data/lib/jira/base_factory.rb +49 -0
- data/lib/jira/client.rb +165 -0
- data/lib/jira/has_many_proxy.rb +43 -0
- data/lib/jira/http_client.rb +69 -0
- data/lib/jira/http_error.rb +16 -0
- data/lib/jira/oauth_client.rb +84 -0
- data/lib/jira/railtie.rb +10 -0
- data/lib/jira/request_client.rb +18 -0
- data/lib/jira/resource/attachment.rb +12 -0
- data/lib/jira/resource/comment.rb +14 -0
- data/lib/jira/resource/component.rb +10 -0
- data/lib/jira/resource/field.rb +10 -0
- data/lib/jira/resource/filter.rb +15 -0
- data/lib/jira/resource/issue.rb +76 -0
- data/lib/jira/resource/issuetype.rb +10 -0
- data/lib/jira/resource/priority.rb +10 -0
- data/lib/jira/resource/project.rb +31 -0
- data/lib/jira/resource/status.rb +10 -0
- data/lib/jira/resource/transition.rb +33 -0
- data/lib/jira/resource/user.rb +14 -0
- data/lib/jira/resource/version.rb +10 -0
- data/lib/jira/resource/worklog.rb +16 -0
- data/lib/jira/tasks.rb +0 -0
- data/lib/jira/version.rb +3 -0
- data/lib/jira.rb +33 -0
- data/lib/tasks/generate.rake +18 -0
- data/spec/integration/attachment_spec.rb +23 -0
- data/spec/integration/comment_spec.rb +55 -0
- data/spec/integration/component_spec.rb +42 -0
- data/spec/integration/field_spec.rb +35 -0
- data/spec/integration/issue_spec.rb +94 -0
- data/spec/integration/issuetype_spec.rb +26 -0
- data/spec/integration/priority_spec.rb +27 -0
- data/spec/integration/project_spec.rb +56 -0
- data/spec/integration/status_spec.rb +27 -0
- data/spec/integration/transition_spec.rb +52 -0
- data/spec/integration/user_spec.rb +25 -0
- data/spec/integration/version_spec.rb +43 -0
- data/spec/integration/worklog_spec.rb +55 -0
- data/spec/jira/base_factory_spec.rb +46 -0
- data/spec/jira/base_spec.rb +586 -0
- data/spec/jira/client_spec.rb +188 -0
- data/spec/jira/has_many_proxy_spec.rb +45 -0
- data/spec/jira/http_client_spec.rb +109 -0
- data/spec/jira/http_error_spec.rb +25 -0
- data/spec/jira/oauth_client_spec.rb +111 -0
- data/spec/jira/request_client_spec.rb +14 -0
- data/spec/jira/resource/attachment_spec.rb +20 -0
- data/spec/jira/resource/filter_spec.rb +97 -0
- data/spec/jira/resource/issue_spec.rb +107 -0
- data/spec/jira/resource/project_factory_spec.rb +13 -0
- data/spec/jira/resource/project_spec.rb +70 -0
- data/spec/jira/resource/worklog_spec.rb +24 -0
- data/spec/mock_responses/attachment/10000.json +20 -0
- data/spec/mock_responses/component/10000.invalid.put.json +5 -0
- data/spec/mock_responses/component/10000.json +39 -0
- data/spec/mock_responses/component/10000.put.json +39 -0
- data/spec/mock_responses/component.post.json +28 -0
- data/spec/mock_responses/field/1.json +15 -0
- data/spec/mock_responses/field.json +32 -0
- data/spec/mock_responses/issue/10002/comment/10000.json +29 -0
- data/spec/mock_responses/issue/10002/comment/10000.put.json +29 -0
- data/spec/mock_responses/issue/10002/comment.json +65 -0
- data/spec/mock_responses/issue/10002/comment.post.json +29 -0
- data/spec/mock_responses/issue/10002/transitions.json +49 -0
- data/spec/mock_responses/issue/10002/transitions.post.json +1 -0
- data/spec/mock_responses/issue/10002/worklog/10000.json +31 -0
- data/spec/mock_responses/issue/10002/worklog/10000.put.json +30 -0
- data/spec/mock_responses/issue/10002/worklog.json +98 -0
- data/spec/mock_responses/issue/10002/worklog.post.json +30 -0
- data/spec/mock_responses/issue/10002.invalid.put.json +6 -0
- data/spec/mock_responses/issue/10002.json +126 -0
- data/spec/mock_responses/issue/10002.put.missing_field_update.json +6 -0
- data/spec/mock_responses/issue.json +1108 -0
- data/spec/mock_responses/issue.post.json +5 -0
- data/spec/mock_responses/issuetype/5.json +8 -0
- data/spec/mock_responses/issuetype.json +42 -0
- data/spec/mock_responses/priority/1.json +8 -0
- data/spec/mock_responses/priority.json +42 -0
- data/spec/mock_responses/project/SAMPLEPROJECT.issues.json +1108 -0
- data/spec/mock_responses/project/SAMPLEPROJECT.json +84 -0
- data/spec/mock_responses/project.json +12 -0
- data/spec/mock_responses/status/1.json +7 -0
- data/spec/mock_responses/status.json +37 -0
- data/spec/mock_responses/user_username=admin.json +17 -0
- data/spec/mock_responses/version/10000.invalid.put.json +5 -0
- data/spec/mock_responses/version/10000.json +11 -0
- data/spec/mock_responses/version/10000.put.json +7 -0
- data/spec/mock_responses/version.post.json +7 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/support/clients_helper.rb +16 -0
- data/spec/support/matchers/have_attributes.rb +11 -0
- data/spec/support/matchers/have_many.rb +9 -0
- data/spec/support/matchers/have_one.rb +5 -0
- data/spec/support/shared_examples/integration.rb +190 -0
- metadata +301 -0
@@ -0,0 +1,42 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/5",
|
4
|
+
"id": "5",
|
5
|
+
"description": "The sub-task of the issue",
|
6
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/issue_subtask.gif",
|
7
|
+
"name": "Sub-task",
|
8
|
+
"subtask": true
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/4",
|
12
|
+
"id": "4",
|
13
|
+
"description": "An improvement or enhancement to an existing feature or task.",
|
14
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/improvement.gif",
|
15
|
+
"name": "Improvement",
|
16
|
+
"subtask": false
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/3",
|
20
|
+
"id": "3",
|
21
|
+
"description": "A task that needs to be done.",
|
22
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/task.gif",
|
23
|
+
"name": "Task",
|
24
|
+
"subtask": false
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/1",
|
28
|
+
"id": "1",
|
29
|
+
"description": "A problem which impairs or prevents the functions of the product.",
|
30
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/bug.gif",
|
31
|
+
"name": "Bug",
|
32
|
+
"subtask": false
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/2",
|
36
|
+
"id": "2",
|
37
|
+
"description": "A new feature of the product, which has yet to be developed.",
|
38
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/newfeature.gif",
|
39
|
+
"name": "New Feature",
|
40
|
+
"subtask": false
|
41
|
+
}
|
42
|
+
]
|
@@ -0,0 +1,8 @@
|
|
1
|
+
{
|
2
|
+
"self": "http://localhost:2990/jira/rest/api/2/priority/1",
|
3
|
+
"statusColor": "#cc0000",
|
4
|
+
"description": "Blocks development and/or testing work, production could not run.",
|
5
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/priority_blocker.gif",
|
6
|
+
"name": "Blocker",
|
7
|
+
"id": "1"
|
8
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"self": "http://localhost:2990/jira/rest/api/2/priority/1",
|
4
|
+
"statusColor": "#cc0000",
|
5
|
+
"description": "Blocks development and/or testing work, production could not run.",
|
6
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/priority_blocker.gif",
|
7
|
+
"name": "Blocker",
|
8
|
+
"id": "1"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"self": "http://localhost:2990/jira/rest/api/2/priority/2",
|
12
|
+
"statusColor": "#ff0000",
|
13
|
+
"description": "Crashes, loss of data, severe memory leak.",
|
14
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/priority_critical.gif",
|
15
|
+
"name": "Critical",
|
16
|
+
"id": "2"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"self": "http://localhost:2990/jira/rest/api/2/priority/3",
|
20
|
+
"statusColor": "#009900",
|
21
|
+
"description": "Major loss of function.",
|
22
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/priority_major.gif",
|
23
|
+
"name": "Major",
|
24
|
+
"id": "3"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"self": "http://localhost:2990/jira/rest/api/2/priority/4",
|
28
|
+
"statusColor": "#006600",
|
29
|
+
"description": "Minor loss of function, or other problem where easy workaround is present.",
|
30
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/priority_minor.gif",
|
31
|
+
"name": "Minor",
|
32
|
+
"id": "4"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"self": "http://localhost:2990/jira/rest/api/2/priority/5",
|
36
|
+
"statusColor": "#003300",
|
37
|
+
"description": "Cosmetic problem like misspelled words or misaligned text",
|
38
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/priority_trivial.gif",
|
39
|
+
"name": "Trivial",
|
40
|
+
"id": "5"
|
41
|
+
}
|
42
|
+
]
|