Skip to content

Commit b87e2f7

Browse files
committed
Add custom_field
1 parent dddca58 commit b87e2f7

5 files changed

Lines changed: 16 additions & 4 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ coverage.data
55
# rdoc generated
66
rdoc
77

8+
# Gem Relics
9+
*.gem
10+
811
# yard generated
912
doc
1013
.yardoc

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.1
1+
0.2.2

lib/redmine-ruby.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
require 'redmine-ruby/time_entry.rb'
1212

1313
module Redmine
14+
15+
autoload :CustomField, 'redmine-ruby/customer_field'
16+
autoload :Upload, 'redmine-ruby/upload'
17+
1418
class Client
1519
attr_accessor :url, :token, :api
1620

@@ -43,6 +47,10 @@ def projects
4347
resource(:project)
4448
end
4549

50+
def custom_fields
51+
resource(:custom_fields)
52+
end
53+
4654
def issues
4755
resource(:issue)
4856
end

lib/redmine-ruby/custom_field.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Redmine
22
class CustomField < Base
3-
#collection_path "projects/:project_id/issues.xml"
4-
#resource_path "projects/:project_id/issues/:id.xml"
3+
collection_path "custom_fields.xml"
4+
resource_path ""
55
end
66
end

redmine-ruby.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55

66
Gem::Specification.new do |s|
77
s.name = "redmine-ruby"
8-
s.version = "0.2.1"
8+
s.version = File.read('./VERSION')
99

1010
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
1111
s.authors = ["Jan Schwenzien"]
1212
s.date = "2013-08-15"
1313
s.description = "Ruby Redmine Client using Her"
14+
s.description = "Ruby Redmine API Client that uses Her"
1415
s.email = "jan@general-scripting.com"
1516
s.extra_rdoc_files = [
1617
"LICENSE.txt",

0 commit comments

Comments
 (0)