trac4r 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use 1.8.7@trac4r --create
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source :rubygems
2
+
3
+ gem "gli"
4
+ gem "rainbow"
5
+ gem "grancher"
6
+ gem "jeweler"
7
+ gem "sdoc"
@@ -0,0 +1,31 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ gash (0.1.3)
5
+ open4 (>= 0, = 0.9.6)
6
+ git (1.2.5)
7
+ gli (1.3.2)
8
+ grancher (0.1.5)
9
+ gash
10
+ jeweler (1.6.4)
11
+ bundler (~> 1.0)
12
+ git (>= 1.2.5)
13
+ rake
14
+ json (1.5.3)
15
+ open4 (0.9.6)
16
+ rainbow (1.1.1)
17
+ rake (0.9.2)
18
+ rdoc (2.4.3)
19
+ sdoc (0.2.20)
20
+ json (>= 1.1.3)
21
+ rdoc (= 2.4.3)
22
+
23
+ PLATFORMS
24
+ ruby
25
+
26
+ DEPENDENCIES
27
+ gli
28
+ grancher
29
+ jeweler
30
+ rainbow
31
+ sdoc
@@ -9,16 +9,11 @@ For more information on the Trac XML-RPC see the {plugin's page on trac-hacks.co
9
9
 
10
10
  Thanks to the original author, Niklas Cathor, who has done most of the work.
11
11
 
12
- <i>Note that I (David Copeland) will probably not be making more changes to this, as my main reason for picking this up was that I am using Trac where I work. We are moving away from Trac, so I have less need to do anything with this library. If someone is interested in claiming ownership, specifically owning the gem on Gemcutter, just let me know and I'll hand it over.</i>
12
+ <i>Note that I (David Copeland) will probably not be making more changes to this, as my main reason for picking this up was that I am using Trac where I work. We are moving away from Trac, so I have less need to do anything with this library. If someone is interested in claiming ownership, specifically owning the gem on RubyGems, just let me know and I'll hand it over.</i>
13
13
 
14
14
  == Install
15
15
 
16
- # Only if you haven't set up gemcutter yet
17
- sudo gem install gemcutter
18
- sudo gem tumble
19
-
20
- # Once Gemcutter is setup
21
- sudo gem install trac4r
16
+ gem install trac4r # use sudo if not using rvm
22
17
 
23
18
  == Overview
24
19
 
@@ -32,6 +27,23 @@ This wraps the Trac XML-RPC plugin.
32
27
  trac.tickets.list # get all tickets
33
28
  trac.tickets.get 2334 # Get ticket #2334
34
29
 
30
+ Receive one single ticket
31
+
32
+ ticket = trac.tickets.get 9
33
+ ticket.summary #=> 'foo'
34
+ ticket.description #=> 'bar'
35
+
36
+ Scope the ticket
37
+
38
+ trac.tickets.list :include_closed => false
39
+
40
+ Create a new ticket
41
+
42
+ trac.tickets.create "summary", "description", :type => 'defect', :version => '1.0', :milestone => 'bug free' #=> 10
43
+
44
+ summary and description are required, the rest is optional. It can be one of the following: :severity, :milestone, :status, :type, :priority, :version, :reporter, :owner, :cc, :keywords
45
+
46
+
35
47
  === Tickets
36
48
 
37
49
  Trac's backbone is tickets. The Tickets class contains many useful methods, but can also run arbitrary queries against Trac using
@@ -49,6 +61,10 @@ a more Rubyesque syntax:
49
61
 
50
62
  :include:trac.rdoc
51
63
 
64
+ == Contributions
65
+
66
+ Although I'm not actively working on this, I'm happy to merge changes or additions that people find useful and push them to RubyGems. Just send me a pull request or email me patch.
67
+
52
68
  == More Info
53
69
 
54
70
  * {RDoc}[http://davetron5000.github.com/trac4r]
data/Rakefile CHANGED
@@ -1,10 +1,12 @@
1
1
  require 'rake/clean'
2
- require 'rake/rdoctask'
2
+ require 'rdoc/task'
3
3
  require 'rubygems'
4
- require 'rake/gempackagetask'
4
+ require 'rubygems/package_task'
5
5
  require 'grancher'
6
6
  require 'sdoc'
7
7
 
8
+ include Rake::DSL
9
+
8
10
  begin
9
11
  require 'grancher/task'
10
12
  Grancher::Task.new do |g|
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.3
1
+ 1.2.4
@@ -6,6 +6,7 @@ module Trac
6
6
  attr_accessor(:id, # Integer
7
7
  :severity, # String
8
8
  :milestone, # String
9
+ :component, # String
9
10
  :status, # String
10
11
  :type, # String
11
12
  :priority, # String
@@ -0,0 +1,71 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{trac4r}
8
+ s.version = "1.2.4"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Niklas Cathro", "David Copeland"]
12
+ s.date = %q{2011-07-24}
13
+ s.default_executable = %q{trac}
14
+ s.description = %q{Basic ruby client library and command line interface for accessing Trac instances via its XML RPC API}
15
+ s.email = %q{davidcopeland@naildrivin5.com}
16
+ s.executables = ["trac"]
17
+ s.extra_rdoc_files = [
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".rvmrc",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENCE",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "bin/trac",
29
+ "lib/trac4r.rb",
30
+ "lib/trac4r/error.rb",
31
+ "lib/trac4r/query.rb",
32
+ "lib/trac4r/ticket.rb",
33
+ "lib/trac4r/tickets.rb",
34
+ "lib/trac4r/wiki.rb"
35
+ ]
36
+ s.rdoc_options = ["--title", "trac4r Trac Ruby Client", "--main", "README.rdoc", "-ri"]
37
+ s.require_paths = ["lib", "lib", "lib"]
38
+ s.rubygems_version = %q{1.6.2}
39
+ s.summary = %q{Ruby Client Library for Trac}
40
+
41
+ if s.respond_to? :specification_version then
42
+ s.specification_version = 3
43
+
44
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
+ s.add_runtime_dependency(%q<gli>, [">= 0"])
46
+ s.add_runtime_dependency(%q<rainbow>, [">= 0"])
47
+ s.add_runtime_dependency(%q<grancher>, [">= 0"])
48
+ s.add_runtime_dependency(%q<jeweler>, [">= 0"])
49
+ s.add_runtime_dependency(%q<sdoc>, [">= 0"])
50
+ s.add_runtime_dependency(%q<rainbow>, [">= 1.0.4"])
51
+ s.add_runtime_dependency(%q<gli>, [">= 1.1.0"])
52
+ else
53
+ s.add_dependency(%q<gli>, [">= 0"])
54
+ s.add_dependency(%q<rainbow>, [">= 0"])
55
+ s.add_dependency(%q<grancher>, [">= 0"])
56
+ s.add_dependency(%q<jeweler>, [">= 0"])
57
+ s.add_dependency(%q<sdoc>, [">= 0"])
58
+ s.add_dependency(%q<rainbow>, [">= 1.0.4"])
59
+ s.add_dependency(%q<gli>, [">= 1.1.0"])
60
+ end
61
+ else
62
+ s.add_dependency(%q<gli>, [">= 0"])
63
+ s.add_dependency(%q<rainbow>, [">= 0"])
64
+ s.add_dependency(%q<grancher>, [">= 0"])
65
+ s.add_dependency(%q<jeweler>, [">= 0"])
66
+ s.add_dependency(%q<sdoc>, [">= 0"])
67
+ s.add_dependency(%q<rainbow>, [">= 1.0.4"])
68
+ s.add_dependency(%q<gli>, [">= 1.1.0"])
69
+ end
70
+ end
71
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trac4r
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 3
10
- version: 1.2.3
9
+ - 4
10
+ version: 1.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Niklas Cathro
@@ -16,13 +16,83 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-07-23 00:00:00 -04:00
19
+ date: 2011-07-24 00:00:00 -04:00
20
20
  default_executable: trac
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
- name: rainbow
24
23
  prerelease: false
24
+ type: :runtime
25
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 3
31
+ segments:
32
+ - 0
33
+ version: "0"
34
+ name: gli
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ prerelease: false
38
+ type: :runtime
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ name: rainbow
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ prerelease: false
52
+ type: :runtime
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ name: grancher
63
+ version_requirements: *id003
64
+ - !ruby/object:Gem::Dependency
65
+ prerelease: false
66
+ type: :runtime
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
76
+ name: jeweler
77
+ version_requirements: *id004
78
+ - !ruby/object:Gem::Dependency
79
+ prerelease: false
80
+ type: :runtime
81
+ requirement: &id005 !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
89
+ version: "0"
90
+ name: sdoc
91
+ version_requirements: *id005
92
+ - !ruby/object:Gem::Dependency
93
+ prerelease: false
94
+ type: :runtime
95
+ requirement: &id006 !ruby/object:Gem::Requirement
26
96
  none: false
27
97
  requirements:
28
98
  - - ">="
@@ -33,12 +103,12 @@ dependencies:
33
103
  - 0
34
104
  - 4
35
105
  version: 1.0.4
36
- type: :runtime
37
- version_requirements: *id001
106
+ name: rainbow
107
+ version_requirements: *id006
38
108
  - !ruby/object:Gem::Dependency
39
- name: gli
40
109
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
110
+ type: :runtime
111
+ requirement: &id007 !ruby/object:Gem::Requirement
42
112
  none: false
43
113
  requirements:
44
114
  - - ">="
@@ -49,8 +119,8 @@ dependencies:
49
119
  - 1
50
120
  - 0
51
121
  version: 1.1.0
52
- type: :runtime
53
- version_requirements: *id002
122
+ name: gli
123
+ version_requirements: *id007
54
124
  description: Basic ruby client library and command line interface for accessing Trac instances via its XML RPC API
55
125
  email: davidcopeland@naildrivin5.com
56
126
  executables:
@@ -60,7 +130,9 @@ extensions: []
60
130
  extra_rdoc_files:
61
131
  - README.rdoc
62
132
  files:
63
- - .gitignore
133
+ - .rvmrc
134
+ - Gemfile
135
+ - Gemfile.lock
64
136
  - LICENCE
65
137
  - README.rdoc
66
138
  - Rakefile
@@ -72,13 +144,13 @@ files:
72
144
  - lib/trac4r/ticket.rb
73
145
  - lib/trac4r/tickets.rb
74
146
  - lib/trac4r/wiki.rb
147
+ - trac4r.gemspec
75
148
  has_rdoc: true
76
149
  homepage:
77
150
  licenses: []
78
151
 
79
152
  post_install_message:
80
153
  rdoc_options:
81
- - --charset=UTF-8
82
154
  - --title
83
155
  - trac4r Trac Ruby Client
84
156
  - --main
@@ -109,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
181
  requirements: []
110
182
 
111
183
  rubyforge_project:
112
- rubygems_version: 1.3.7
184
+ rubygems_version: 1.6.2
113
185
  signing_key:
114
186
  specification_version: 3
115
187
  summary: Ruby Client Library for Trac
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- *.sw?
2
- pkg
3
- coverage
4
- html
5
- api.yaml