ticket_abstractor_client 0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
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' => 'Open'
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({ issuekey: 'IFS-46728', description: 'new description' })
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-46728' }, attachment)
61
+ client.jira.update_issue({ issuekey: 'IFS-123' }, attachment)
57
62
 
58
63
  ### Brouha
59
64
 
@@ -1,3 +1,3 @@
1
1
  module TicketAbstractorClient
2
- VERSION = '0.1'
2
+ VERSION = '1.0.0'
3
3
  end
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: '0.1'
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-11 00:00:00.000000000 Z
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: '0'
88
+ version: 1.9.2
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  none: false
91
91
  requirements: