jiraSOAP 0.10.3 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/Rakefile +2 -10
- data/lib/jiraSOAP/entities/custom_field_value.rb +9 -0
- data/lib/jiraSOAP/entities/worklog.rb +1 -1
- data/lib/jiraSOAP/version.rb +1 -1
- data/test/custom_field_values_test.rb +24 -0
- data/test/helper.rb +14 -12
- data/test/worklog_test.rb +14 -0
- metadata +25 -15
data/ChangeLog
CHANGED
data/Rakefile
CHANGED
@@ -5,17 +5,9 @@ task :default => :test
|
|
5
5
|
|
6
6
|
### MACRUBY BONUSES
|
7
7
|
|
8
|
-
if RUBY_ENGINE == 'macruby'
|
8
|
+
if RUBY_ENGINE == 'macruby'
|
9
9
|
require 'rake/compiletask'
|
10
|
-
Rake::CompileTask.new
|
11
|
-
t.files = FileList["lib/**/*.rb"]
|
12
|
-
t.verbose = true
|
13
|
-
end
|
14
|
-
|
15
|
-
desc 'Clean MacRuby binaries'
|
16
|
-
task :clean do
|
17
|
-
FileList["lib/**/*.rbo"].each { |bin| rm bin }
|
18
|
-
end
|
10
|
+
Rake::CompileTask.new
|
19
11
|
end
|
20
12
|
|
21
13
|
|
@@ -15,6 +15,15 @@ class JIRA::CustomFieldValue < JIRA::DynamicEntity
|
|
15
15
|
# @return [Array<String>]
|
16
16
|
add_attribute :values, 'values', :contents_of_children
|
17
17
|
|
18
|
+
##
|
19
|
+
# You can optionally initialize a custom field value with new
|
20
|
+
#
|
21
|
+
# @param [String] custom_field_id
|
22
|
+
def initialize custom_field_id = nil, *custom_values
|
23
|
+
@id = custom_field_id
|
24
|
+
@values = custom_values
|
25
|
+
end
|
26
|
+
|
18
27
|
##
|
19
28
|
# Generate a SOAP message fragment for the object.
|
20
29
|
#
|
@@ -12,7 +12,7 @@ class JIRA::Worklog < JIRA::DescribedEntity
|
|
12
12
|
# Needs to be a DateTime.
|
13
13
|
#
|
14
14
|
# @return [DateTime]
|
15
|
-
add_attribute :
|
15
|
+
add_attribute :start_date, 'startDate', :to_date
|
16
16
|
|
17
17
|
# @return [String]
|
18
18
|
add_attribute :time_spent, 'timeSpent', :content
|
data/lib/jiraSOAP/version.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
class TestCustomFieldValues < MiniTest::Unit::TestCase
|
2
|
+
|
3
|
+
def test_can_initialize_empty
|
4
|
+
cv = JIRA::CustomFieldValue.new
|
5
|
+
assert_nil cv.id
|
6
|
+
assert_empty cv.values
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_can_initailize_with_an_id
|
10
|
+
id = 'thingamajig'
|
11
|
+
cv = JIRA::CustomFieldValue.new id
|
12
|
+
assert_equal id, cv.id
|
13
|
+
assert_empty cv.values
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_can_initialize_with_everthing
|
17
|
+
id = 42
|
18
|
+
values = 45
|
19
|
+
cv = JIRA::CustomFieldValue.new id, values
|
20
|
+
assert_equal id, cv.id
|
21
|
+
assert_empty Array(values), cv.values
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
data/test/helper.rb
CHANGED
@@ -45,21 +45,23 @@ class MiniTest::Unit::TestCase
|
|
45
45
|
end
|
46
46
|
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
48
|
+
offline = ['worklog_test']
|
49
|
+
basic = ['login_test', 'logout_test', 'custom_field_values_test', 'worklog_test']
|
50
|
+
create = ['attachments_test']
|
51
|
+
read = basic + []
|
52
|
+
update = []
|
53
|
+
delete = []
|
54
|
+
all = basic + create + read + update + delete
|
54
55
|
|
55
56
|
# Look at environment variables to decide which tests to run
|
56
57
|
tests = case ENV['JIRASOAP']
|
57
|
-
when 'all'
|
58
|
-
when 'basic'
|
59
|
-
when 'create'
|
60
|
-
when 'read'
|
61
|
-
when 'update'
|
62
|
-
when 'delete'
|
58
|
+
when 'all' then all
|
59
|
+
when 'basic' then basic
|
60
|
+
when 'create' then create
|
61
|
+
when 'read' then read
|
62
|
+
when 'update' then update
|
63
|
+
when 'delete' then delete
|
64
|
+
when 'offline' then offline
|
63
65
|
else read # hmm, for safeties sake, but maybe it should be all...
|
64
66
|
end
|
65
67
|
tests.each do |test| require test end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jiraSOAP
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-12-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
16
|
-
requirement: &
|
16
|
+
requirement: &70116449026940 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.5.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70116449026940
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: handsoap
|
27
|
-
requirement: &
|
27
|
+
requirement: &70116449026300 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,21 +32,21 @@ dependencies:
|
|
32
32
|
version: 1.1.8
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70116449026300
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: yard
|
38
|
-
requirement: &
|
38
|
+
requirement: &70116449025600 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.7.
|
43
|
+
version: 0.7.4
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70116449025600
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: redcarpet
|
49
|
-
requirement: &
|
49
|
+
requirement: &70116449025000 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,18 +54,18 @@ dependencies:
|
|
54
54
|
version: '1.17'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70116449025000
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: minitest
|
60
|
-
requirement: &
|
60
|
+
requirement: &70116449024300 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.9'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70116449024300
|
69
69
|
description: Written to run fast and work on Ruby 1.9 as well as MacRuby
|
70
70
|
email:
|
71
71
|
- markrada26@gmail.com
|
@@ -140,10 +140,12 @@ files:
|
|
140
140
|
- .yardopts
|
141
141
|
- Rakefile
|
142
142
|
- test/attachments_test.rb
|
143
|
+
- test/custom_field_values_test.rb
|
143
144
|
- test/helper.rb
|
144
145
|
- test/login_test.rb
|
145
146
|
- test/logout_test.rb
|
146
147
|
- test/progress_workflow_action_test.rb
|
148
|
+
- test/worklog_test.rb
|
147
149
|
- README.markdown
|
148
150
|
- ChangeLog
|
149
151
|
- LICENSE.txt
|
@@ -162,21 +164,29 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
164
|
- - ! '>='
|
163
165
|
- !ruby/object:Gem::Version
|
164
166
|
version: '0'
|
167
|
+
segments:
|
168
|
+
- 0
|
169
|
+
hash: -29918642539086346
|
165
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
171
|
none: false
|
167
172
|
requirements:
|
168
173
|
- - ! '>='
|
169
174
|
- !ruby/object:Gem::Version
|
170
175
|
version: '0'
|
176
|
+
segments:
|
177
|
+
- 0
|
178
|
+
hash: -29918642539086346
|
171
179
|
requirements: []
|
172
180
|
rubyforge_project:
|
173
|
-
rubygems_version: 1.8.
|
181
|
+
rubygems_version: 1.8.10
|
174
182
|
signing_key:
|
175
183
|
specification_version: 3
|
176
184
|
summary: A Ruby client for the JIRA SOAP API
|
177
185
|
test_files:
|
178
186
|
- test/attachments_test.rb
|
187
|
+
- test/custom_field_values_test.rb
|
179
188
|
- test/helper.rb
|
180
189
|
- test/login_test.rb
|
181
190
|
- test/logout_test.rb
|
182
191
|
- test/progress_workflow_action_test.rb
|
192
|
+
- test/worklog_test.rb
|