ticketmaster-redmine 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +60 -0
- data/VERSION +1 -1
- data/lib/provider/ticket.rb +15 -0
- data/ticketmaster-redmine.gemspec +2 -2
- metadata +4 -4
data/README.md
CHANGED
@@ -2,3 +2,63 @@
|
|
2
2
|
|
3
3
|
This is a provider for [ticketmaster](http://ticketrb.com). It provides interoperability with [Redmine](http://www.redmine.org) and it's issue tracking system through the ticketmaster gem.
|
4
4
|
|
5
|
+
# Usage and Examples
|
6
|
+
|
7
|
+
First we have to instantiate a new ticketmaster instance, your redmine installation should have api access enable:
|
8
|
+
redmine = TicketMaster.new(:redmine, {:server => 'http://redmine-server', :username => "foo", :password => "bar"})
|
9
|
+
|
10
|
+
If you do not pass in the server, username and password, you won't get any information.
|
11
|
+
|
12
|
+
== Finding Projects(Repositories)
|
13
|
+
|
14
|
+
You can find your own projects by doing:
|
15
|
+
|
16
|
+
projects = redmine.projects # Will return all your repositories
|
17
|
+
projects = redmine.projects(['your_repo1', 'your_repo2']) # You must use your projects identifier
|
18
|
+
project = redmine.project('your_repo') # Also use project identifier in here
|
19
|
+
|
20
|
+
== Finding Tickets(Issues)
|
21
|
+
|
22
|
+
tickets = project.tickets # All open issues
|
23
|
+
ticket = project.ticket(<issue_number>)
|
24
|
+
|
25
|
+
== Open Tickets
|
26
|
+
|
27
|
+
ticket = project.ticket!({:subject=> "New ticket", :description=> "Body for the very new ticket"})
|
28
|
+
|
29
|
+
= Update a ticket
|
30
|
+
|
31
|
+
ticket.subject = "New title"
|
32
|
+
ticket.description = "New Description"
|
33
|
+
ticket.save
|
34
|
+
|
35
|
+
## Requirements
|
36
|
+
|
37
|
+
* rubygems (obviously)
|
38
|
+
* ticketmaster gem (latest version preferred)
|
39
|
+
* jeweler gem (only if you want to repackage and develop)
|
40
|
+
|
41
|
+
The ticketmaster gem should automatically be installed during the installation of this gem if it is not already installed.
|
42
|
+
|
43
|
+
## Other Notes
|
44
|
+
|
45
|
+
Since this and the ticketmaster gem is still primarily a work-in-progress, minor changes may be incompatible with previous versions. Please be careful about using and updating this gem in production.
|
46
|
+
|
47
|
+
If you see or find any issues, feel free to open up an issue report.
|
48
|
+
|
49
|
+
|
50
|
+
## Note on Patches/Pull Requests
|
51
|
+
|
52
|
+
* Fork the project.
|
53
|
+
* Make your feature addition or bug fix.
|
54
|
+
* Add tests for it. This is important so we don't break it in a
|
55
|
+
future version unintentionally.
|
56
|
+
* Commit, do not mess with rakefile, version, or history.
|
57
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself so we can ignore when I pull)
|
58
|
+
* Send us a pull request. Bonus points for topic branches.
|
59
|
+
|
60
|
+
## Copyright
|
61
|
+
|
62
|
+
Copyright (c) 2010 The Hybrid Group. See LICENSE for details.
|
63
|
+
|
64
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/provider/ticket.rb
CHANGED
@@ -47,6 +47,21 @@ module TicketMaster::Provider
|
|
47
47
|
ticket
|
48
48
|
end
|
49
49
|
|
50
|
+
def comments
|
51
|
+
warn "Redmine doesn't support comments"
|
52
|
+
[]
|
53
|
+
end
|
54
|
+
|
55
|
+
def comment
|
56
|
+
warn "Redmine doesn't support comments"
|
57
|
+
nil
|
58
|
+
end
|
59
|
+
|
60
|
+
def comment!
|
61
|
+
warn "Redmine doesn't support comments"
|
62
|
+
[]
|
63
|
+
end
|
64
|
+
|
50
65
|
end
|
51
66
|
end
|
52
67
|
end
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ticketmaster-redmine}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Rafael George"]
|
12
|
-
s.date = %q{2010-12-
|
12
|
+
s.date = %q{2010-12-29}
|
13
13
|
s.description = %q{Allows ticketmaster to interact with Your System.}
|
14
14
|
s.email = %q{george.rafael@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticketmaster-redmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rafael George
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-29 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|