jira4r-straightjacket 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +13 -74
- data/jira4r.gemspec +6 -2
- data/lib/jira4r/v2/jira_soap_service_driver.rb +11 -0
- data/wsdl/jirasoapservice-v2.wsdl +17 -1
- metadata +13 -13
data/Rakefile
CHANGED
@@ -1,22 +1,18 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
|
+
require 'net/http'
|
4
|
+
require 'fileutils'
|
5
|
+
require 'rake/clean'
|
6
|
+
require 'rake/gempackagetask'
|
3
7
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
gem.authors = ["James Stuart"]
|
13
|
-
gem.add_dependency "soap4r-straightjacket"
|
14
|
-
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
15
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
|
-
end
|
17
|
-
rescue LoadError
|
18
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
19
|
-
end
|
8
|
+
require 'logger'
|
9
|
+
|
10
|
+
gem 'soap4r-straightjacket', '~> 1.5.8'
|
11
|
+
|
12
|
+
require 'wsdl/soap/wsdl2ruby'
|
13
|
+
|
14
|
+
logger = Logger.new(STDERR)
|
15
|
+
logger.level = Logger::INFO
|
20
16
|
|
21
17
|
require 'rake/testtask'
|
22
18
|
Rake::TestTask.new(:test) do |test|
|
@@ -25,42 +21,6 @@ Rake::TestTask.new(:test) do |test|
|
|
25
21
|
test.verbose = true
|
26
22
|
end
|
27
23
|
|
28
|
-
begin
|
29
|
-
require 'rcov/rcovtask'
|
30
|
-
Rcov::RcovTask.new do |test|
|
31
|
-
test.libs << 'test'
|
32
|
-
test.pattern = 'test/**/test_*.rb'
|
33
|
-
test.verbose = true
|
34
|
-
end
|
35
|
-
rescue LoadError
|
36
|
-
task :rcov do
|
37
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
task :test => :check_dependencies
|
42
|
-
|
43
|
-
task :default => :test
|
44
|
-
|
45
|
-
require 'rake/rdoctask'
|
46
|
-
Rake::RDocTask.new do |rdoc|
|
47
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
48
|
-
|
49
|
-
rdoc.rdoc_dir = 'rdoc'
|
50
|
-
rdoc.title = "jira4r #{version}"
|
51
|
-
rdoc.rdoc_files.include('README*')
|
52
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
|
-
end
|
54
|
-
|
55
|
-
require 'net/http'
|
56
|
-
require 'fileutils'
|
57
|
-
require 'rake/clean'
|
58
|
-
require 'rake/gempackagetask'
|
59
|
-
|
60
|
-
gem 'soap4r-straightjacket'
|
61
|
-
|
62
|
-
require 'wsdl/soap/wsdl2ruby'
|
63
|
-
|
64
24
|
desc "gets the wsdl files for JIRA services"
|
65
25
|
task :getwsdl do
|
66
26
|
versions().each { |version|
|
@@ -68,10 +28,6 @@ task :getwsdl do
|
|
68
28
|
}
|
69
29
|
end
|
70
30
|
|
71
|
-
task :build_gem do
|
72
|
-
system("gem build jira4r.gemspec")
|
73
|
-
end
|
74
|
-
|
75
31
|
task :clean do
|
76
32
|
def unl(file)
|
77
33
|
File.unlink(file) if File.exist?(file)
|
@@ -82,14 +38,6 @@ task :clean do
|
|
82
38
|
unl("lib/jira4r/v2/jiraServiceMappingRegistry.rb")
|
83
39
|
end
|
84
40
|
|
85
|
-
task :install_gem do
|
86
|
-
system("gem install *.gem")
|
87
|
-
end
|
88
|
-
|
89
|
-
task :deploy_gem do
|
90
|
-
system("scp *.gem codehaus03:/home/projects/jira4r/snapshots.dist/distributions/")
|
91
|
-
end
|
92
|
-
|
93
41
|
desc "generate the wsdl"
|
94
42
|
task :generate do
|
95
43
|
versions().each { |version|
|
@@ -104,7 +52,7 @@ task :generate do
|
|
104
52
|
|
105
53
|
# Create the server
|
106
54
|
worker = WSDL::SOAP::WSDL2Ruby.new
|
107
|
-
|
55
|
+
worker.logger = logger
|
108
56
|
worker.location = wsdl_url
|
109
57
|
worker.basedir = basedir
|
110
58
|
worker.opt['force'] = true
|
@@ -112,15 +60,6 @@ task :generate do
|
|
112
60
|
worker.opt['module_path'] ="Jira4R::V#{version}"
|
113
61
|
|
114
62
|
worker.opt['mapping_registry'] = true
|
115
|
-
#worker.run
|
116
|
-
|
117
|
-
#Create the driver
|
118
|
-
#worker = WSDL::SOAP::WSDL2Ruby.new
|
119
|
-
#worker.logger = logger
|
120
|
-
#worker.location = wsdl_url
|
121
|
-
#worker.basedir = basedir
|
122
|
-
#worker.opt['force'] = true
|
123
|
-
#worker.opt['module_path'] = "Jira4R::V#{version}"
|
124
63
|
|
125
64
|
worker.opt['driver'] = "JiraSoapService"
|
126
65
|
worker.run
|
data/jira4r.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{jira4r-straightjacket}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["James Stuart"]
|
@@ -16,7 +16,8 @@ Gem::Specification.new do |s|
|
|
16
16
|
"LICENSE",
|
17
17
|
"README.rdoc"
|
18
18
|
]
|
19
|
-
s.files =
|
19
|
+
s.files = Dir.glob("lib/**/*")
|
20
|
+
s.files << [
|
20
21
|
".document",
|
21
22
|
".gitignore",
|
22
23
|
"LICENSE",
|
@@ -34,6 +35,7 @@ Gem::Specification.new do |s|
|
|
34
35
|
"test/test_jira4r.rb",
|
35
36
|
"wsdl/jirasoapservice-v2.wsdl"
|
36
37
|
]
|
38
|
+
s.files.flatten!
|
37
39
|
s.homepage = %q{http://github.com/tastyhat/jira4r}
|
38
40
|
s.rdoc_options = ["--charset=UTF-8"]
|
39
41
|
s.require_paths = ["lib"]
|
@@ -44,6 +46,8 @@ Gem::Specification.new do |s|
|
|
44
46
|
"test/test_jira4r.rb"
|
45
47
|
]
|
46
48
|
|
49
|
+
soap4r = 'soap4r-straightjacket'
|
50
|
+
|
47
51
|
if s.respond_to? :specification_version then
|
48
52
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
49
53
|
s.specification_version = 3
|
@@ -859,6 +859,17 @@ module Jira4R
|
|
859
859
|
:response_style => :rpc, :response_use => :encoded,
|
860
860
|
:faults => {"Jira4R::V2::RemoteException_"=>{:use=>"encoded", :name=>"RemoteException", :ns=>"http://jira.atlassian.com/rpc/soap/jirasoapservice-v2", :namespace=>"http://jira.atlassian.com/rpc/soap/jirasoapservice-v2", :encodingstyle=>"http://schemas.xmlsoap.org/soap/encoding/"}} }
|
861
861
|
],
|
862
|
+
[ XSD::QName.new(NsSoapRpcJiraAtlassianCom, "getIssuesFromJqlSearch"),
|
863
|
+
"",
|
864
|
+
"getIssuesFromJqlSearch",
|
865
|
+
[ [:in, "in0", ["::SOAP::SOAPString"]],
|
866
|
+
[:in, "in1", ["::SOAP::SOAPString"]],
|
867
|
+
[:in, "in2", ["::SOAP::SOAPInt"]],
|
868
|
+
[:retval, "getIssuesFromJqlSearchReturn", ["Jira4R::V2::ArrayOf_tns1_RemoteIssue", "http://jira.codehaus.org/rpc/soap/jirasoapservice-v2", "ArrayOf_tns1_RemoteIssue"]] ],
|
869
|
+
{ :request_style => :rpc, :request_use => :encoded,
|
870
|
+
:response_style => :rpc, :response_use => :encoded,
|
871
|
+
:faults => {"Jira4R::V2::RemoteException_"=>{:namespace=>"http://jira.codehaus.org/rpc/soap/jirasoapservice-v2", :ns=>"http://jira.codehaus.org/rpc/soap/jirasoapservice-v2", :encodingstyle=>"http://schemas.xmlsoap.org/soap/encoding/", :use=>"encoded", :name=>"RemoteException"}} }
|
872
|
+
],
|
862
873
|
[ XSD::QName.new(NsSoapRpcJiraAtlassianCom, "deleteUser"),
|
863
874
|
"",
|
864
875
|
"deleteUser",
|
@@ -1,9 +1,10 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<wsdl:definitions targetNamespace="http://jira.codehaus.org/rpc/soap/jirasoapservice-v2" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://jira.codehaus.org/rpc/soap/jirasoapservice-v2" xmlns:intf="http://jira.codehaus.org/rpc/soap/jirasoapservice-v2" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://beans.soap.rpc.jira.atlassian.com" xmlns:tns2="http://exception.rpc.jira.atlassian.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
2
|
+
<wsdl:definitions targetNamespace="http://jira.codehaus.org/rpc/soap/jirasoapservice-v2" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://jira.codehaus.org/rpc/soap/jirasoapservice-v2" xmlns:intf="http://jira.codehaus.org/rpc/soap/jirasoapservice-v2" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://beans.soap.rpc.jira.atlassian.com" xmlns:tns2="http://exception.rpc.jira.atlassian.com" xmlns:tns3="http://service.soap.rpc.jira.atlassian.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
3
3
|
<!--WSDL created by Apache Axis version: 1.3-atlassian-1
|
4
4
|
Built on Sep 13, 2010 (04:22:38 GMT+10:00)-->
|
5
5
|
<wsdl:types>
|
6
6
|
<schema targetNamespace="http://beans.soap.rpc.jira.atlassian.com" xmlns="http://www.w3.org/2001/XMLSchema">
|
7
|
+
<import namespace="http://service.soap.rpc.jira.atlassian.com"/>
|
7
8
|
<import namespace="http://jira.codehaus.org/rpc/soap/jirasoapservice-v2"/>
|
8
9
|
<import namespace="http://exception.rpc.jira.atlassian.com"/>
|
9
10
|
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
|
@@ -341,6 +342,7 @@ Built on Sep 13, 2010 (04:22:38 GMT+10:00)-->
|
|
341
342
|
</complexType>
|
342
343
|
</schema>
|
343
344
|
<schema targetNamespace="http://exception.rpc.jira.atlassian.com" xmlns="http://www.w3.org/2001/XMLSchema">
|
345
|
+
<import namespace="http://service.soap.rpc.jira.atlassian.com"/>
|
344
346
|
<import namespace="http://beans.soap.rpc.jira.atlassian.com"/>
|
345
347
|
<import namespace="http://jira.codehaus.org/rpc/soap/jirasoapservice-v2"/>
|
346
348
|
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
|
@@ -370,6 +372,7 @@ Built on Sep 13, 2010 (04:22:38 GMT+10:00)-->
|
|
370
372
|
</complexType>
|
371
373
|
</schema>
|
372
374
|
<schema targetNamespace="http://jira.codehaus.org/rpc/soap/jirasoapservice-v2" xmlns="http://www.w3.org/2001/XMLSchema">
|
375
|
+
<import namespace="http://service.soap.rpc.jira.atlassian.com"/>
|
373
376
|
<import namespace="http://beans.soap.rpc.jira.atlassian.com"/>
|
374
377
|
<import namespace="http://exception.rpc.jira.atlassian.com"/>
|
375
378
|
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
|
@@ -570,6 +573,19 @@ Built on Sep 13, 2010 (04:22:38 GMT+10:00)-->
|
|
570
573
|
</complexContent>
|
571
574
|
</complexType>
|
572
575
|
</schema>
|
576
|
+
<schema targetNamespace="http://service.soap.rpc.jira.atlassian.com" xmlns="http://www.w3.org/2001/XMLSchema">
|
577
|
+
<import namespace="http://beans.soap.rpc.jira.atlassian.com"/>
|
578
|
+
<import namespace="http://jira.codehaus.org/rpc/soap/jirasoapservice-v2"/>
|
579
|
+
<import namespace="http://exception.rpc.jira.atlassian.com"/>
|
580
|
+
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
|
581
|
+
<complexType name="RemoteWorklogImpl">
|
582
|
+
<complexContent>
|
583
|
+
<extension base="tns1:RemoteWorklog">
|
584
|
+
<sequence/>
|
585
|
+
</extension>
|
586
|
+
</complexContent>
|
587
|
+
</complexType>
|
588
|
+
</schema>
|
573
589
|
</wsdl:types>
|
574
590
|
|
575
591
|
<wsdl:message name="createProjectResponse">
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jira4r-straightjacket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2009-11-23 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: soap4r-straightjacket
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156570020 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156570020
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thoughtbot-shoulda
|
27
|
-
requirement: &
|
27
|
+
requirement: &2156569540 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156569540
|
36
36
|
description: JIRA Soap Interface Gem
|
37
37
|
email: tastyhat@jamesstuart.org
|
38
38
|
executables: []
|
@@ -41,19 +41,19 @@ extra_rdoc_files:
|
|
41
41
|
- LICENSE
|
42
42
|
- README.rdoc
|
43
43
|
files:
|
44
|
-
- .document
|
45
|
-
- .gitignore
|
46
|
-
- LICENSE
|
47
|
-
- README.rdoc
|
48
|
-
- Rakefile
|
49
|
-
- VERSION
|
50
|
-
- jira4r.gemspec
|
51
|
-
- lib/jira4r.rb
|
52
44
|
- lib/jira4r/jira_tool.rb
|
53
45
|
- lib/jira4r/server.rb
|
54
46
|
- lib/jira4r/v2/jira_service.rb
|
55
47
|
- lib/jira4r/v2/jira_service_mapping_registry.rb
|
56
48
|
- lib/jira4r/v2/jira_soap_service_driver.rb
|
49
|
+
- lib/jira4r.rb
|
50
|
+
- LICENSE
|
51
|
+
- README.rdoc
|
52
|
+
- .document
|
53
|
+
- .gitignore
|
54
|
+
- Rakefile
|
55
|
+
- VERSION
|
56
|
+
- jira4r.gemspec
|
57
57
|
- test/helper.rb
|
58
58
|
- test/test_jira4r.rb
|
59
59
|
- wsdl/jirasoapservice-v2.wsdl
|