ticket_abstractor_client 0.1 → 1.0.0
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.
- data/README.md +9 -4
- data/lib/ticket_abstractor_client/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -15,11 +15,16 @@ And then execute:
|
|
15
15
|
Or install it yourself as:
|
16
16
|
|
17
17
|
$ gem install ticket_abstractor_client
|
18
|
+
|
19
|
+
## API
|
20
|
+
|
21
|
+
[API Documentation](http://rubydoc.info/gems/ticket_abstractor_client/frames)
|
18
22
|
|
19
23
|
## Usage
|
20
24
|
|
21
25
|
Initialize:
|
22
26
|
|
27
|
+
require 'ticket_abstractor_client'
|
23
28
|
client = TicketAbstractorClient.initialize_client('http://ticket.abstractor.url')
|
24
29
|
|
25
30
|
Access clients:
|
@@ -33,9 +38,9 @@ Access clients:
|
|
33
38
|
Grab issue:
|
34
39
|
|
35
40
|
client.jira.get_issue 'IFS-123'
|
36
|
-
client.jira.get_issue_status 'IFS-123'
|
41
|
+
client.jira.get_issue_status 'IFS-123'
|
37
42
|
|
38
|
-
Create issue (summary, description and issuetype fields are required):
|
43
|
+
Create issue (project, summary, description and issuetype fields are required):
|
39
44
|
|
40
45
|
options = { project: "IFS", summary: "Summary", description: "Desc", issuetype: "Bug"}
|
41
46
|
client.jira.create_issue options
|
@@ -48,12 +53,12 @@ Create issue with an attachment:
|
|
48
53
|
|
49
54
|
Update issue (issuekey field is required):
|
50
55
|
|
51
|
-
client.jira.update_issue(
|
56
|
+
client.jira.update_issue(issuekey: 'IFS-123', description: 'new description')
|
52
57
|
|
53
58
|
Attach the file to issue:
|
54
59
|
|
55
60
|
attachment = File.new('file.png', 'rb')
|
56
|
-
client.jira.update_issue({ issuekey: 'IFS-
|
61
|
+
client.jira.update_issue({ issuekey: 'IFS-123' }, attachment)
|
57
62
|
|
58
63
|
### Brouha
|
59
64
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticket_abstractor_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
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-
|
12
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -85,7 +85,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
86
86
|
- - ! '>='
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: 1.9.2
|
89
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
90
|
none: false
|
91
91
|
requirements:
|