ticketmaster-fogbugz 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.rbenv-gemsets +1 -0
- data/.rbenv-version +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +8 -8
- data/Gemfile.lock +45 -38
- data/Rakefile +27 -39
- data/VERSION +1 -1
- data/lib/provider/project.rb +1 -3
- data/spec/fixtures/vcr_cassettes/all-fogbugz-projects.yml +36 -0
- data/spec/fixtures/vcr_cassettes/fogbugz-projects.yml +36 -0
- data/spec/fixtures/vcr_cassettes/fogbugz-single-ticket.yml +36 -0
- data/spec/fixtures/vcr_cassettes/fogbugz-tickets-by-attributes.yml +36 -0
- data/spec/fixtures/vcr_cassettes/fogbugz-tickets-by-ids.yml +36 -0
- data/spec/fixtures/vcr_cassettes/fogbugz-tickets.yml +36 -0
- data/spec/fixtures/vcr_cassettes/fogbugz.yml +40 -0
- data/spec/fixtures/vcr_cassettes/load-project-by-id.yml +36 -0
- data/spec/fixtures/vcr_cassettes/load-projects-attributes.yml +36 -0
- data/spec/fixtures/vcr_cassettes/load-projects-by-ids.yml +36 -0
- data/spec/projects_spec.rb +38 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/tickets_spec.rb +40 -0
- data/spec/vcr_setup.rb +7 -0
- data/test/helper.rb +2 -6
- data/test/test_project.rb +1 -1
- data/ticketmaster-fogbugz.gemspec +55 -35
- metadata +109 -47
data/.rbenv-gemsets
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ticketmaster-fogbugz
|
data/.rbenv-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.2-p290
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
@@ -5,13 +5,13 @@ source "http://rubygems.org"
|
|
5
5
|
|
6
6
|
# Add dependencies to develop your gem here.
|
7
7
|
# Include everything needed to run rake, tests, features, etc.
|
8
|
-
gem 'ticketmaster'
|
9
|
-
gem "ruby-fogbugz"
|
8
|
+
gem 'ticketmaster', '0.6.10'
|
9
|
+
gem "ruby-fogbugz", '~> 0.1'
|
10
10
|
group :development do
|
11
|
-
gem "
|
12
|
-
gem "
|
13
|
-
gem "
|
14
|
-
gem "jeweler", "~> 1.5
|
15
|
-
gem "
|
16
|
-
gem "
|
11
|
+
gem "rspec", "~> 2.0"
|
12
|
+
gem "fakeweb", "~> 1.3"
|
13
|
+
gem "vcr", "~> 1.11"
|
14
|
+
gem "jeweler", "~> 1.5"
|
15
|
+
gem "simplecov", "~> 0.5", :platforms => :ruby_19
|
16
|
+
gem "rcov", "~> 1.0", :platforms => :ruby_18
|
17
17
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,53 +1,60 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activemodel (3.
|
5
|
-
activesupport (= 3.
|
6
|
-
builder (~>
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
4
|
+
activemodel (3.2.2)
|
5
|
+
activesupport (= 3.2.2)
|
6
|
+
builder (~> 3.0.0)
|
7
|
+
activeresource (3.2.2)
|
8
|
+
activemodel (= 3.2.2)
|
9
|
+
activesupport (= 3.2.2)
|
10
|
+
activesupport (3.2.2)
|
11
|
+
i18n (~> 0.6)
|
12
|
+
multi_json (~> 1.0)
|
13
|
+
builder (3.0.0)
|
14
|
+
crack (0.3.1)
|
15
|
+
diff-lcs (1.1.3)
|
16
|
+
fakeweb (1.3.0)
|
14
17
|
git (1.2.5)
|
15
|
-
hashie (1.
|
16
|
-
i18n (0.
|
18
|
+
hashie (1.2.0)
|
19
|
+
i18n (0.6.0)
|
17
20
|
jeweler (1.5.2)
|
18
21
|
bundler (~> 1.0.0)
|
19
22
|
git (>= 1.2.5)
|
20
23
|
rake
|
21
|
-
|
22
|
-
mocha (0.9.12)
|
24
|
+
multi_json (1.0.4)
|
23
25
|
rake (0.9.2)
|
24
|
-
rcov (0.
|
25
|
-
|
26
|
+
rcov (1.0.0)
|
27
|
+
rspec (2.0.1)
|
28
|
+
rspec-core (~> 2.0.1)
|
29
|
+
rspec-expectations (~> 2.0.1)
|
30
|
+
rspec-mocks (~> 2.0.1)
|
31
|
+
rspec-core (2.0.1)
|
32
|
+
rspec-expectations (2.0.1)
|
33
|
+
diff-lcs (>= 1.1.2)
|
34
|
+
rspec-mocks (2.0.1)
|
35
|
+
rspec-core (~> 2.0.1)
|
36
|
+
rspec-expectations (~> 2.0.1)
|
37
|
+
ruby-fogbugz (0.1.1)
|
26
38
|
crack
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
activeresource (
|
33
|
-
activesupport
|
34
|
-
|
35
|
-
|
36
|
-
hashie
|
37
|
-
jeweler
|
38
|
-
typhoeus (0.2.4)
|
39
|
-
mime-types
|
40
|
-
mime-types
|
39
|
+
simplecov (0.5.4)
|
40
|
+
multi_json (~> 1.0.3)
|
41
|
+
simplecov-html (~> 0.5.3)
|
42
|
+
simplecov-html (0.5.3)
|
43
|
+
ticketmaster (0.6.10)
|
44
|
+
activeresource (~> 3.0)
|
45
|
+
activesupport (~> 3.0)
|
46
|
+
hashie (~> 1.2)
|
47
|
+
vcr (1.11.3)
|
41
48
|
|
42
49
|
PLATFORMS
|
43
50
|
ruby
|
44
51
|
|
45
52
|
DEPENDENCIES
|
46
|
-
|
47
|
-
jeweler (~> 1.5
|
48
|
-
|
49
|
-
|
50
|
-
ruby-fogbugz
|
51
|
-
|
52
|
-
|
53
|
-
|
53
|
+
fakeweb (~> 1.3)
|
54
|
+
jeweler (~> 1.5)
|
55
|
+
rcov (~> 1.0)
|
56
|
+
rspec (~> 2.0)
|
57
|
+
ruby-fogbugz (~> 0.1)
|
58
|
+
simplecov (~> 0.5)
|
59
|
+
ticketmaster (= 0.6.10)
|
60
|
+
vcr (~> 1.11)
|
data/Rakefile
CHANGED
@@ -1,53 +1,41 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'bundler'
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
$stderr.puts e.message
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
10
2
|
require 'rake'
|
11
3
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "ticketmaster-fogbugz"
|
8
|
+
gem.summary = %Q{Ticketmaster Provider for Fogbugz}
|
9
|
+
gem.description = %Q{Allows ticketmaster to interact with Fogbugz.}
|
10
|
+
gem.email = "rafael@hybridgroup.com"
|
11
|
+
gem.homepage = "http://github.com/hybridgroup/ticketmaster-fogbugz"
|
12
|
+
gem.authors = ["Rafael George"]
|
13
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
14
|
+
end
|
15
|
+
Jeweler::GemcutterTasks.new
|
16
|
+
rescue LoadError
|
17
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
26
18
|
end
|
27
|
-
Jeweler::RubygemsDotOrgTasks.new
|
28
19
|
|
29
|
-
require '
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
test.verbose = true
|
20
|
+
require 'rspec/core'
|
21
|
+
require 'rspec/core/rake_task'
|
22
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
23
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
34
24
|
end
|
35
25
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
test.pattern = 'test/**/test_*.rb'
|
40
|
-
test.verbose = true
|
26
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
27
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
28
|
+
spec.rcov = true
|
41
29
|
end
|
42
30
|
|
43
|
-
task :default => :
|
31
|
+
task :default => :spec
|
44
32
|
|
45
33
|
require 'rake/rdoctask'
|
46
34
|
Rake::RDocTask.new do |rdoc|
|
47
|
-
|
35
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
48
36
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
37
|
+
rdoc.rdoc_dir = 'rdoc'
|
38
|
+
rdoc.title = "ticketmaster-kanbanpad#{version}"
|
39
|
+
rdoc.rdoc_files.include('README*')
|
40
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
41
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/lib/provider/project.rb
CHANGED
@@ -61,9 +61,7 @@ module TicketMaster::Provider
|
|
61
61
|
|
62
62
|
def self.find(*options)
|
63
63
|
if options[0].first.is_a? Array
|
64
|
-
|
65
|
-
options[0].first.any? { |id| project.id == id }
|
66
|
-
end
|
64
|
+
options[0].first.collect { |project_id| self.find_by_id(project_id) }
|
67
65
|
elsif options[0].first.is_a? Hash
|
68
66
|
self.find_by_attributes(options[0].first)
|
69
67
|
else
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://ticketrb.fogbugz.com:443/api.asp?cmd=listProjects&token=26jgegikmofn27rcd6ql676fso9r22
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
etag:
|
16
|
+
- ""
|
17
|
+
x-aspnet-version:
|
18
|
+
- 2.0.50727
|
19
|
+
transfer-encoding:
|
20
|
+
- chunked
|
21
|
+
cache-control:
|
22
|
+
- private
|
23
|
+
content-type:
|
24
|
+
- text/xml;charset=utf-8
|
25
|
+
x-powered-by:
|
26
|
+
- ASP.NET
|
27
|
+
expires:
|
28
|
+
- Tue, 05 Sep 2000 09:00:00 GMT
|
29
|
+
date:
|
30
|
+
- Wed, 21 Mar 2012 22:02:32 GMT
|
31
|
+
set-cookie:
|
32
|
+
- sUniqueID=20120321220232-201.229.129.45-cnor0d19mp; expires=Tue, 22-Mar-2022 02:02:32 GMT; path=/; secure; HttpOnly
|
33
|
+
server:
|
34
|
+
- Microsoft-IIS/6.0
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8"?><response><projects><project><ixProject>2</ixProject><sProject><![CDATA[Inbox]]></sProject><ixPersonOwner>2</ixPersonOwner><sPersonOwner><![CDATA[Ramon Martinez]]></sPersonOwner><sEmail><![CDATA[rafael@hybridgroup.com]]></sEmail><sPhone></sPhone><fInbox>true</fInbox><ixWorkflow>1</ixWorkflow><fDeleted>false</fDeleted></project><project><ixProject>1</ixProject><sProject><![CDATA[Sample Project]]></sProject><ixPersonOwner>2</ixPersonOwner><sPersonOwner><![CDATA[Ramon Martinez]]></sPersonOwner><sEmail><![CDATA[rafael@hybridgroup.com]]></sEmail><sPhone></sPhone><fInbox>false</fInbox><ixWorkflow>1</ixWorkflow><fDeleted>false</fDeleted></project></projects></response>
|
36
|
+
http_version: "1.1"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://ticketrb.fogbugz.com:443/api.asp?cmd=listProjects&token=26jgegikmofn27rcd6ql676fso9r22
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
expires:
|
16
|
+
- Tue, 05 Sep 2000 09:00:00 GMT
|
17
|
+
etag:
|
18
|
+
- ""
|
19
|
+
cache-control:
|
20
|
+
- private
|
21
|
+
date:
|
22
|
+
- Wed, 21 Mar 2012 22:04:39 GMT
|
23
|
+
server:
|
24
|
+
- Microsoft-IIS/6.0
|
25
|
+
set-cookie:
|
26
|
+
- sUniqueID=20120321220439-201.229.129.45-v1kcn2ti8b; expires=Tue, 22-Mar-2022 02:04:39 GMT; path=/; secure; HttpOnly
|
27
|
+
transfer-encoding:
|
28
|
+
- chunked
|
29
|
+
content-type:
|
30
|
+
- text/xml;charset=utf-8
|
31
|
+
x-aspnet-version:
|
32
|
+
- 2.0.50727
|
33
|
+
x-powered-by:
|
34
|
+
- ASP.NET
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8"?><response><projects><project><ixProject>2</ixProject><sProject><![CDATA[Inbox]]></sProject><ixPersonOwner>2</ixPersonOwner><sPersonOwner><![CDATA[Ramon Martinez]]></sPersonOwner><sEmail><![CDATA[rafael@hybridgroup.com]]></sEmail><sPhone></sPhone><fInbox>true</fInbox><ixWorkflow>1</ixWorkflow><fDeleted>false</fDeleted></project><project><ixProject>1</ixProject><sProject><![CDATA[Sample Project]]></sProject><ixPersonOwner>2</ixPersonOwner><sPersonOwner><![CDATA[Ramon Martinez]]></sPersonOwner><sEmail><![CDATA[rafael@hybridgroup.com]]></sEmail><sPhone></sPhone><fInbox>false</fInbox><ixWorkflow>1</ixWorkflow><fDeleted>false</fDeleted></project></projects></response>
|
36
|
+
http_version: "1.1"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://ticketrb.fogbugz.com:443/api.asp?cmd=search&cols=dtLastUpdated%2CixBug%2CsStatus%2CsTitle%2CsLatestTextSummary%2CixProject%2CsProject%2CsPersonAssignedTo%2CsPriority&token=26jgegikmofn27rcd6ql676fso9r22&q=project%3A%3D2
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
expires:
|
16
|
+
- Tue, 05 Sep 2000 09:00:00 GMT
|
17
|
+
etag:
|
18
|
+
- ""
|
19
|
+
content-type:
|
20
|
+
- text/xml;charset=utf-8
|
21
|
+
cache-control:
|
22
|
+
- private
|
23
|
+
x-powered-by:
|
24
|
+
- ASP.NET
|
25
|
+
date:
|
26
|
+
- Wed, 21 Mar 2012 22:26:48 GMT
|
27
|
+
transfer-encoding:
|
28
|
+
- chunked
|
29
|
+
x-aspnet-version:
|
30
|
+
- 2.0.50727
|
31
|
+
server:
|
32
|
+
- Microsoft-IIS/6.0
|
33
|
+
set-cookie:
|
34
|
+
- sUniqueID=20120321222648-201.229.129.45-p2obga736n; expires=Tue, 22-Mar-2022 02:26:48 GMT; path=/; secure; HttpOnly
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8"?><response><cases count="1"><case ixBug="1" operations="edit,assign,resolve,email,remind"><ixBug>1</ixBug><sStatus><![CDATA[Active]]></sStatus><sTitle><![CDATA["Welcome to FogBugz" Sample Case]]></sTitle><sLatestTextSummary></sLatestTextSummary><ixProject>2</ixProject><sProject><![CDATA[Inbox]]></sProject><sPersonAssignedTo><![CDATA[Ramon Martinez]]></sPersonAssignedTo><sPriority><![CDATA[Must Fix]]></sPriority><dtLastUpdated>2012-03-21T21:27:33Z</dtLastUpdated></case></cases></response>
|
36
|
+
http_version: "1.1"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://ticketrb.fogbugz.com:443/api.asp?cmd=search&cols=dtLastUpdated%2CixBug%2CsStatus%2CsTitle%2CsLatestTextSummary%2CixProject%2CsProject%2CsPersonAssignedTo%2CsPriority&token=26jgegikmofn27rcd6ql676fso9r22&q=project%3A%3D2
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
expires:
|
16
|
+
- Tue, 05 Sep 2000 09:00:00 GMT
|
17
|
+
etag:
|
18
|
+
- ""
|
19
|
+
content-type:
|
20
|
+
- text/xml;charset=utf-8
|
21
|
+
cache-control:
|
22
|
+
- private
|
23
|
+
x-powered-by:
|
24
|
+
- ASP.NET
|
25
|
+
date:
|
26
|
+
- Wed, 21 Mar 2012 22:26:16 GMT
|
27
|
+
transfer-encoding:
|
28
|
+
- chunked
|
29
|
+
x-aspnet-version:
|
30
|
+
- 2.0.50727
|
31
|
+
server:
|
32
|
+
- Microsoft-IIS/6.0
|
33
|
+
set-cookie:
|
34
|
+
- sUniqueID=20120321222616-201.229.129.45-bfc6m9f1qb; expires=Tue, 22-Mar-2022 02:26:16 GMT; path=/; secure; HttpOnly
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8"?><response><cases count="1"><case ixBug="1" operations="edit,assign,resolve,email,remind"><ixBug>1</ixBug><sStatus><![CDATA[Active]]></sStatus><sTitle><![CDATA["Welcome to FogBugz" Sample Case]]></sTitle><sLatestTextSummary></sLatestTextSummary><ixProject>2</ixProject><sProject><![CDATA[Inbox]]></sProject><sPersonAssignedTo><![CDATA[Ramon Martinez]]></sPersonAssignedTo><sPriority><![CDATA[Must Fix]]></sPriority><dtLastUpdated>2012-03-21T21:27:33Z</dtLastUpdated></case></cases></response>
|
36
|
+
http_version: "1.1"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://ticketrb.fogbugz.com:443/api.asp?cmd=search&cols=dtLastUpdated%2CixBug%2CsStatus%2CsTitle%2CsLatestTextSummary%2CixProject%2CsProject%2CsPersonAssignedTo%2CsPriority&token=26jgegikmofn27rcd6ql676fso9r22&q=project%3A%3D2
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
expires:
|
16
|
+
- Tue, 05 Sep 2000 09:00:00 GMT
|
17
|
+
etag:
|
18
|
+
- ""
|
19
|
+
content-type:
|
20
|
+
- text/xml;charset=utf-8
|
21
|
+
cache-control:
|
22
|
+
- private
|
23
|
+
x-powered-by:
|
24
|
+
- ASP.NET
|
25
|
+
date:
|
26
|
+
- Wed, 21 Mar 2012 22:25:46 GMT
|
27
|
+
transfer-encoding:
|
28
|
+
- chunked
|
29
|
+
x-aspnet-version:
|
30
|
+
- 2.0.50727
|
31
|
+
server:
|
32
|
+
- Microsoft-IIS/6.0
|
33
|
+
set-cookie:
|
34
|
+
- sUniqueID=20120321222546-201.229.129.45-dh6dnqjemp; expires=Tue, 22-Mar-2022 02:25:46 GMT; path=/; secure; HttpOnly
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8"?><response><cases count="1"><case ixBug="1" operations="edit,assign,resolve,email,remind"><ixBug>1</ixBug><sStatus><![CDATA[Active]]></sStatus><sTitle><![CDATA["Welcome to FogBugz" Sample Case]]></sTitle><sLatestTextSummary></sLatestTextSummary><ixProject>2</ixProject><sProject><![CDATA[Inbox]]></sProject><sPersonAssignedTo><![CDATA[Ramon Martinez]]></sPersonAssignedTo><sPriority><![CDATA[Must Fix]]></sPriority><dtLastUpdated>2012-03-21T21:27:33Z</dtLastUpdated></case></cases></response>
|
36
|
+
http_version: "1.1"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://ticketrb.fogbugz.com:443/api.asp?cmd=search&cols=dtLastUpdated%2CixBug%2CsStatus%2CsTitle%2CsLatestTextSummary%2CixProject%2CsProject%2CsPersonAssignedTo%2CsPriority&token=26jgegikmofn27rcd6ql676fso9r22&q=project%3A%3D2
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
transfer-encoding:
|
16
|
+
- chunked
|
17
|
+
x-powered-by:
|
18
|
+
- ASP.NET
|
19
|
+
expires:
|
20
|
+
- Tue, 05 Sep 2000 09:00:00 GMT
|
21
|
+
x-aspnet-version:
|
22
|
+
- 2.0.50727
|
23
|
+
content-type:
|
24
|
+
- text/xml;charset=utf-8
|
25
|
+
etag:
|
26
|
+
- ""
|
27
|
+
server:
|
28
|
+
- Microsoft-IIS/6.0
|
29
|
+
set-cookie:
|
30
|
+
- sUniqueID=20120321222959-201.229.129.45-pmf49gkh0j; expires=Tue, 22-Mar-2022 02:29:59 GMT; path=/; secure; HttpOnly
|
31
|
+
cache-control:
|
32
|
+
- private
|
33
|
+
date:
|
34
|
+
- Wed, 21 Mar 2012 22:29:59 GMT
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8"?><response><cases count="1"><case ixBug="1" operations="edit,assign,resolve,email,remind"><ixBug>1</ixBug><sStatus><![CDATA[Active]]></sStatus><sTitle><![CDATA["Welcome to FogBugz" Sample Case]]></sTitle><sLatestTextSummary></sLatestTextSummary><ixProject>2</ixProject><sProject><![CDATA[Inbox]]></sProject><sPersonAssignedTo><![CDATA[Ramon Martinez]]></sPersonAssignedTo><sPriority><![CDATA[Must Fix]]></sPriority><dtLastUpdated>2012-03-21T21:27:33Z</dtLastUpdated></case></cases></response>
|
36
|
+
http_version: "1.1"
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://ticketrb.fogbugz.com:443/api.asp?cmd=logon&password=1234567&email=rafael%40hybridgroup.com
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
etag:
|
16
|
+
- ""
|
17
|
+
x-aspnet-version:
|
18
|
+
- 2.0.50727
|
19
|
+
transfer-encoding:
|
20
|
+
- chunked
|
21
|
+
cache-control:
|
22
|
+
- private
|
23
|
+
content-type:
|
24
|
+
- text/xml;charset=utf-8
|
25
|
+
x-powered-by:
|
26
|
+
- ASP.NET
|
27
|
+
expires:
|
28
|
+
- Tue, 05 Sep 2000 09:00:00 GMT
|
29
|
+
date:
|
30
|
+
- Wed, 21 Mar 2012 22:02:31 GMT
|
31
|
+
set-cookie:
|
32
|
+
- sUniqueID=20120321220231-201.229.129.45-en0597j86h; expires=Tue, 22-Mar-2022 02:02:31 GMT; path=/; secure; HttpOnly
|
33
|
+
- ixPerson=; expires=Tue, 20-Mar-2012 22:02:31 GMT; path=/; secure; HttpOnly
|
34
|
+
- DBID=; expires=Tue, 20-Mar-2012 22:02:31 GMT; path=/; secure; HttpOnly
|
35
|
+
- 0xbeef=; expires=Tue, 20-Mar-2012 22:02:31 GMT; path=/; secure; HttpOnly
|
36
|
+
- fbToken=; expires=Tue, 20-Mar-2012 22:02:31 GMT; path=/; secure; HttpOnly
|
37
|
+
server:
|
38
|
+
- Microsoft-IIS/6.0
|
39
|
+
body: <?xml version="1.0" encoding="UTF-8"?><response><token><![CDATA[26jgegikmofn27rcd6ql676fso9r22]]></token></response>
|
40
|
+
http_version: "1.1"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://ticketrb.fogbugz.com:443/api.asp?cmd=listProjects&token=26jgegikmofn27rcd6ql676fso9r22
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
etag:
|
16
|
+
- ""
|
17
|
+
x-aspnet-version:
|
18
|
+
- 2.0.50727
|
19
|
+
transfer-encoding:
|
20
|
+
- chunked
|
21
|
+
cache-control:
|
22
|
+
- private
|
23
|
+
content-type:
|
24
|
+
- text/xml;charset=utf-8
|
25
|
+
x-powered-by:
|
26
|
+
- ASP.NET
|
27
|
+
expires:
|
28
|
+
- Tue, 05 Sep 2000 09:00:00 GMT
|
29
|
+
date:
|
30
|
+
- Wed, 21 Mar 2012 22:02:35 GMT
|
31
|
+
set-cookie:
|
32
|
+
- sUniqueID=20120321220235-201.229.129.45-mfpv2250vb; expires=Tue, 22-Mar-2022 02:02:35 GMT; path=/; secure; HttpOnly
|
33
|
+
server:
|
34
|
+
- Microsoft-IIS/6.0
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8"?><response><projects><project><ixProject>2</ixProject><sProject><![CDATA[Inbox]]></sProject><ixPersonOwner>2</ixPersonOwner><sPersonOwner><![CDATA[Ramon Martinez]]></sPersonOwner><sEmail><![CDATA[rafael@hybridgroup.com]]></sEmail><sPhone></sPhone><fInbox>true</fInbox><ixWorkflow>1</ixWorkflow><fDeleted>false</fDeleted></project><project><ixProject>1</ixProject><sProject><![CDATA[Sample Project]]></sProject><ixPersonOwner>2</ixPersonOwner><sPersonOwner><![CDATA[Ramon Martinez]]></sPersonOwner><sEmail><![CDATA[rafael@hybridgroup.com]]></sEmail><sPhone></sPhone><fInbox>false</fInbox><ixWorkflow>1</ixWorkflow><fDeleted>false</fDeleted></project></projects></response>
|
36
|
+
http_version: "1.1"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://ticketrb.fogbugz.com:443/api.asp?cmd=listProjects&token=26jgegikmofn27rcd6ql676fso9r22
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
etag:
|
16
|
+
- ""
|
17
|
+
x-aspnet-version:
|
18
|
+
- 2.0.50727
|
19
|
+
transfer-encoding:
|
20
|
+
- chunked
|
21
|
+
cache-control:
|
22
|
+
- private
|
23
|
+
content-type:
|
24
|
+
- text/xml;charset=utf-8
|
25
|
+
x-powered-by:
|
26
|
+
- ASP.NET
|
27
|
+
expires:
|
28
|
+
- Tue, 05 Sep 2000 09:00:00 GMT
|
29
|
+
date:
|
30
|
+
- Wed, 21 Mar 2012 22:02:34 GMT
|
31
|
+
set-cookie:
|
32
|
+
- sUniqueID=20120321220234-201.229.129.45-hob3dtbrcd; expires=Tue, 22-Mar-2022 02:02:34 GMT; path=/; secure; HttpOnly
|
33
|
+
server:
|
34
|
+
- Microsoft-IIS/6.0
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8"?><response><projects><project><ixProject>2</ixProject><sProject><![CDATA[Inbox]]></sProject><ixPersonOwner>2</ixPersonOwner><sPersonOwner><![CDATA[Ramon Martinez]]></sPersonOwner><sEmail><![CDATA[rafael@hybridgroup.com]]></sEmail><sPhone></sPhone><fInbox>true</fInbox><ixWorkflow>1</ixWorkflow><fDeleted>false</fDeleted></project><project><ixProject>1</ixProject><sProject><![CDATA[Sample Project]]></sProject><ixPersonOwner>2</ixPersonOwner><sPersonOwner><![CDATA[Ramon Martinez]]></sPersonOwner><sEmail><![CDATA[rafael@hybridgroup.com]]></sEmail><sPhone></sPhone><fInbox>false</fInbox><ixWorkflow>1</ixWorkflow><fDeleted>false</fDeleted></project></projects></response>
|
36
|
+
http_version: "1.1"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://ticketrb.fogbugz.com:443/api.asp?cmd=listProjects&token=26jgegikmofn27rcd6ql676fso9r22
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
content-type:
|
9
|
+
- text/xml
|
10
|
+
response: !ruby/struct:VCR::Response
|
11
|
+
status: !ruby/struct:VCR::ResponseStatus
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
etag:
|
16
|
+
- ""
|
17
|
+
x-aspnet-version:
|
18
|
+
- 2.0.50727
|
19
|
+
transfer-encoding:
|
20
|
+
- chunked
|
21
|
+
cache-control:
|
22
|
+
- private
|
23
|
+
content-type:
|
24
|
+
- text/xml;charset=utf-8
|
25
|
+
x-powered-by:
|
26
|
+
- ASP.NET
|
27
|
+
expires:
|
28
|
+
- Tue, 05 Sep 2000 09:00:00 GMT
|
29
|
+
date:
|
30
|
+
- Wed, 21 Mar 2012 22:02:33 GMT
|
31
|
+
set-cookie:
|
32
|
+
- sUniqueID=20120321220233-201.229.129.45-i8uhndb41c; expires=Tue, 22-Mar-2022 02:02:33 GMT; path=/; secure; HttpOnly
|
33
|
+
server:
|
34
|
+
- Microsoft-IIS/6.0
|
35
|
+
body: <?xml version="1.0" encoding="UTF-8"?><response><projects><project><ixProject>2</ixProject><sProject><![CDATA[Inbox]]></sProject><ixPersonOwner>2</ixPersonOwner><sPersonOwner><![CDATA[Ramon Martinez]]></sPersonOwner><sEmail><![CDATA[rafael@hybridgroup.com]]></sEmail><sPhone></sPhone><fInbox>true</fInbox><ixWorkflow>1</ixWorkflow><fDeleted>false</fDeleted></project><project><ixProject>1</ixProject><sProject><![CDATA[Sample Project]]></sProject><ixPersonOwner>2</ixPersonOwner><sPersonOwner><![CDATA[Ramon Martinez]]></sPersonOwner><sEmail><![CDATA[rafael@hybridgroup.com]]></sEmail><sPhone></sPhone><fInbox>false</fInbox><ixWorkflow>1</ixWorkflow><fDeleted>false</fDeleted></project></projects></response>
|
36
|
+
http_version: "1.1"
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe TicketMaster::Provider::Fogbugz::Project do
|
4
|
+
before(:each) do
|
5
|
+
VCR.use_cassette('fogbugz') do
|
6
|
+
@ticketmaster = TicketMaster.new(:fogbugz, :email => 'rafael@hybridgroup.com', :password => '1234567', :uri => 'https://ticketrb.fogbugz.com')
|
7
|
+
end
|
8
|
+
@klass = TicketMaster::Provider::Fogbugz::Project
|
9
|
+
@project_id = 2
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should be able to load all projects" do
|
13
|
+
VCR.use_cassette('all-fogbugz-projects') { @projects = @ticketmaster.projects }
|
14
|
+
@projects.should be_an_instance_of(Array)
|
15
|
+
@projects.first.should be_an_instance_of(@klass)
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should be able to load projects from an array of ids" do
|
19
|
+
VCR.use_cassette('load-projects-by-ids') { @projects = @ticketmaster.projects([@project_id]) }
|
20
|
+
@projects.should be_an_instance_of(Array)
|
21
|
+
@projects.first.should be_an_instance_of(@klass)
|
22
|
+
@projects.first.id.should == @project_id
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should be able to load all projects from attributes" do
|
26
|
+
VCR.use_cassette('load-projects-attributes') { @projects = @ticketmaster.projects(:id => @project_id) }
|
27
|
+
@projects.should be_an_instance_of(Array)
|
28
|
+
@projects.first.should be_an_instance_of(@klass)
|
29
|
+
@projects.first.id.should == @project_id
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should be able to find a project by id" do
|
33
|
+
VCR.use_cassette('load-project-by-id') { @project = @ticketmaster.project(@project_id) }
|
34
|
+
@project.should be_an_instance_of(@klass)
|
35
|
+
@project.id.should == @project_id
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
require 'rubygems'
|
4
|
+
require 'ticketmaster'
|
5
|
+
require 'ticketmaster-fogbugz'
|
6
|
+
require 'rspec'
|
7
|
+
require 'vcr'
|
8
|
+
require 'vcr_setup'
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.color_enabled = true
|
12
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe TicketMaster::Provider::Fogbugz::Ticket do
|
4
|
+
before(:each) do
|
5
|
+
VCR.use_cassette('fogbugz') do
|
6
|
+
@ticketmaster = TicketMaster.new(:fogbugz, :email => 'rafael@hybridgroup.com', :password => '1234567', :uri => 'https://ticketrb.fogbugz.com')
|
7
|
+
end
|
8
|
+
VCR.use_cassette('fogbugz-projects') { @project = @ticketmaster.project(2) }
|
9
|
+
@ticket_id = 1
|
10
|
+
@klass = TicketMaster::Provider::Fogbugz::Ticket
|
11
|
+
@comment_klass = TicketMaster::Provider::Fogbugz::Comment
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should be able to load all tickets" do
|
15
|
+
VCR.use_cassette('fogbugz-tickets') { @tickets = @project.tickets }
|
16
|
+
@tickets.should be_an_instance_of(Array)
|
17
|
+
@tickets.first.should be_an_instance_of(@klass)
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should be able to load all tickets based on an array of ids" do
|
21
|
+
VCR.use_cassette('fogbugz-tickets-by-ids') { @tickets = @project.tickets([@ticket_id]) }
|
22
|
+
@tickets.should be_an_instance_of(Array)
|
23
|
+
@tickets.first.should be_an_instance_of(@klass)
|
24
|
+
@tickets.first.id.should == @ticket_id
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should be able to load all tickets based on attributes" do
|
28
|
+
VCR.use_cassette('fogbugz-tickets-by-attributes') { @tickets = @project.tickets(:id => @ticket_id) }
|
29
|
+
@tickets.should be_an_instance_of(Array)
|
30
|
+
@tickets.first.should be_an_instance_of(@klass)
|
31
|
+
@tickets.first.id.should == @ticket_id
|
32
|
+
end
|
33
|
+
|
34
|
+
it "should be able to load a single ticket" do
|
35
|
+
VCR.use_cassette('fogbugz-single-ticket') { @ticket = @project.ticket(@ticket_id) }
|
36
|
+
@ticket.should be_an_instance_of(@klass)
|
37
|
+
@ticket.id.should == @ticket_id
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
data/spec/vcr_setup.rb
ADDED
data/test/helper.rb
CHANGED
@@ -7,13 +7,9 @@ rescue Bundler::BundlerError => e
|
|
7
7
|
$stderr.puts "Run `bundle install` to install missing gems"
|
8
8
|
exit e.status_code
|
9
9
|
end
|
10
|
-
require '
|
11
|
-
require '
|
12
|
-
require 'mocha'
|
10
|
+
require 'minitest/spec'
|
11
|
+
require 'minitest/autorun'
|
13
12
|
|
14
13
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
15
14
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
16
15
|
require 'ticketmaster-fogbugz'
|
17
|
-
|
18
|
-
class Test::Unit::TestCase
|
19
|
-
end
|
data/test/test_project.rb
CHANGED
@@ -4,21 +4,24 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.2.
|
7
|
+
s.name = "ticketmaster-fogbugz"
|
8
|
+
s.version = "0.2.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
11
|
+
s.authors = ["Rafael George"]
|
12
|
+
s.date = "2012-03-21"
|
13
|
+
s.description = "Allows ticketmaster to interact with Fogbugz."
|
14
|
+
s.email = "rafael@hybridgroup.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
+
".rbenv-gemsets",
|
22
|
+
".rbenv-version",
|
21
23
|
".rvmrc",
|
24
|
+
".travis.yml",
|
22
25
|
"Gemfile",
|
23
26
|
"Gemfile.lock",
|
24
27
|
"LICENSE.txt",
|
@@ -30,17 +33,34 @@ Gem::Specification.new do |s|
|
|
30
33
|
"lib/provider/project.rb",
|
31
34
|
"lib/provider/ticket.rb",
|
32
35
|
"lib/ticketmaster-fogbugz.rb",
|
36
|
+
"spec/fixtures/vcr_cassettes/all-fogbugz-projects.yml",
|
37
|
+
"spec/fixtures/vcr_cassettes/fogbugz-projects.yml",
|
38
|
+
"spec/fixtures/vcr_cassettes/fogbugz-single-ticket.yml",
|
39
|
+
"spec/fixtures/vcr_cassettes/fogbugz-tickets-by-attributes.yml",
|
40
|
+
"spec/fixtures/vcr_cassettes/fogbugz-tickets-by-ids.yml",
|
41
|
+
"spec/fixtures/vcr_cassettes/fogbugz-tickets.yml",
|
42
|
+
"spec/fixtures/vcr_cassettes/fogbugz.yml",
|
43
|
+
"spec/fixtures/vcr_cassettes/load-project-by-id.yml",
|
44
|
+
"spec/fixtures/vcr_cassettes/load-projects-attributes.yml",
|
45
|
+
"spec/fixtures/vcr_cassettes/load-projects-by-ids.yml",
|
46
|
+
"spec/projects_spec.rb",
|
47
|
+
"spec/spec_helper.rb",
|
48
|
+
"spec/tickets_spec.rb",
|
49
|
+
"spec/vcr_setup.rb",
|
33
50
|
"test/helper.rb",
|
34
51
|
"test/test_project.rb",
|
35
52
|
"test/test_ticketmaster-fogbugz.rb",
|
36
53
|
"ticketmaster-fogbugz.gemspec"
|
37
54
|
]
|
38
|
-
s.homepage =
|
39
|
-
s.
|
40
|
-
s.
|
41
|
-
s.
|
42
|
-
s.summary = %q{Ticketmaster provider for Fogbugz}
|
55
|
+
s.homepage = "http://github.com/hybridgroup/ticketmaster-fogbugz"
|
56
|
+
s.require_paths = ["lib"]
|
57
|
+
s.rubygems_version = "1.8.15"
|
58
|
+
s.summary = "Ticketmaster Provider for Fogbugz"
|
43
59
|
s.test_files = [
|
60
|
+
"spec/projects_spec.rb",
|
61
|
+
"spec/spec_helper.rb",
|
62
|
+
"spec/tickets_spec.rb",
|
63
|
+
"spec/vcr_setup.rb",
|
44
64
|
"test/helper.rb",
|
45
65
|
"test/test_project.rb",
|
46
66
|
"test/test_ticketmaster-fogbugz.rb"
|
@@ -50,33 +70,33 @@ Gem::Specification.new do |s|
|
|
50
70
|
s.specification_version = 3
|
51
71
|
|
52
72
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
53
|
-
s.add_runtime_dependency(%q<ticketmaster>, ["
|
54
|
-
s.add_runtime_dependency(%q<ruby-fogbugz>, ["
|
55
|
-
s.add_development_dependency(%q<
|
56
|
-
s.add_development_dependency(%q<
|
57
|
-
s.add_development_dependency(%q<
|
58
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.5
|
59
|
-
s.add_development_dependency(%q<
|
60
|
-
s.add_development_dependency(%q<
|
73
|
+
s.add_runtime_dependency(%q<ticketmaster>, ["= 0.6.10"])
|
74
|
+
s.add_runtime_dependency(%q<ruby-fogbugz>, ["~> 0.1"])
|
75
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.0"])
|
76
|
+
s.add_development_dependency(%q<fakeweb>, ["~> 1.3"])
|
77
|
+
s.add_development_dependency(%q<vcr>, ["~> 1.11"])
|
78
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5"])
|
79
|
+
s.add_development_dependency(%q<simplecov>, ["~> 0.5"])
|
80
|
+
s.add_development_dependency(%q<rcov>, ["~> 1.0"])
|
61
81
|
else
|
62
|
-
s.add_dependency(%q<ticketmaster>, ["
|
63
|
-
s.add_dependency(%q<ruby-fogbugz>, ["
|
64
|
-
s.add_dependency(%q<
|
65
|
-
s.add_dependency(%q<
|
66
|
-
s.add_dependency(%q<
|
67
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5
|
68
|
-
s.add_dependency(%q<
|
69
|
-
s.add_dependency(%q<
|
82
|
+
s.add_dependency(%q<ticketmaster>, ["= 0.6.10"])
|
83
|
+
s.add_dependency(%q<ruby-fogbugz>, ["~> 0.1"])
|
84
|
+
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
85
|
+
s.add_dependency(%q<fakeweb>, ["~> 1.3"])
|
86
|
+
s.add_dependency(%q<vcr>, ["~> 1.11"])
|
87
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5"])
|
88
|
+
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
89
|
+
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
70
90
|
end
|
71
91
|
else
|
72
|
-
s.add_dependency(%q<ticketmaster>, ["
|
73
|
-
s.add_dependency(%q<ruby-fogbugz>, ["
|
74
|
-
s.add_dependency(%q<
|
75
|
-
s.add_dependency(%q<
|
76
|
-
s.add_dependency(%q<
|
77
|
-
s.add_dependency(%q<jeweler>, ["~> 1.5
|
78
|
-
s.add_dependency(%q<
|
79
|
-
s.add_dependency(%q<
|
92
|
+
s.add_dependency(%q<ticketmaster>, ["= 0.6.10"])
|
93
|
+
s.add_dependency(%q<ruby-fogbugz>, ["~> 0.1"])
|
94
|
+
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
95
|
+
s.add_dependency(%q<fakeweb>, ["~> 1.3"])
|
96
|
+
s.add_dependency(%q<vcr>, ["~> 1.11"])
|
97
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5"])
|
98
|
+
s.add_dependency(%q<simplecov>, ["~> 0.5"])
|
99
|
+
s.add_dependency(%q<rcov>, ["~> 1.0"])
|
80
100
|
end
|
81
101
|
end
|
82
102
|
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticketmaster-fogbugz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Rafael George
|
@@ -10,97 +15,130 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date:
|
18
|
+
date: 2012-03-21 00:00:00 Z
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
|
-
name: ticketmaster
|
17
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|
18
22
|
none: false
|
19
23
|
requirements:
|
20
|
-
- - "
|
24
|
+
- - "="
|
21
25
|
- !ruby/object:Gem::Version
|
22
|
-
|
23
|
-
|
24
|
-
|
26
|
+
hash: 19
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 6
|
30
|
+
- 10
|
31
|
+
version: 0.6.10
|
25
32
|
version_requirements: *id001
|
33
|
+
name: ticketmaster
|
34
|
+
prerelease: false
|
35
|
+
type: :runtime
|
26
36
|
- !ruby/object:Gem::Dependency
|
27
|
-
name: ruby-fogbugz
|
28
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
29
38
|
none: false
|
30
39
|
requirements:
|
31
|
-
- -
|
40
|
+
- - ~>
|
32
41
|
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
|
35
|
-
|
42
|
+
hash: 9
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
- 1
|
46
|
+
version: "0.1"
|
36
47
|
version_requirements: *id002
|
48
|
+
name: ruby-fogbugz
|
49
|
+
prerelease: false
|
50
|
+
type: :runtime
|
37
51
|
- !ruby/object:Gem::Dependency
|
38
|
-
name: shoulda
|
39
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
40
53
|
none: false
|
41
54
|
requirements:
|
42
|
-
- -
|
55
|
+
- - ~>
|
43
56
|
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
46
|
-
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 2
|
60
|
+
- 0
|
61
|
+
version: "2.0"
|
47
62
|
version_requirements: *id003
|
63
|
+
name: rspec
|
64
|
+
prerelease: false
|
65
|
+
type: :development
|
48
66
|
- !ruby/object:Gem::Dependency
|
49
|
-
name: shoulda-context
|
50
67
|
requirement: &id004 !ruby/object:Gem::Requirement
|
51
68
|
none: false
|
52
69
|
requirements:
|
53
|
-
- -
|
70
|
+
- - ~>
|
54
71
|
- !ruby/object:Gem::Version
|
55
|
-
|
56
|
-
|
57
|
-
|
72
|
+
hash: 9
|
73
|
+
segments:
|
74
|
+
- 1
|
75
|
+
- 3
|
76
|
+
version: "1.3"
|
58
77
|
version_requirements: *id004
|
78
|
+
name: fakeweb
|
79
|
+
prerelease: false
|
80
|
+
type: :development
|
59
81
|
- !ruby/object:Gem::Dependency
|
60
|
-
name: bundler
|
61
82
|
requirement: &id005 !ruby/object:Gem::Requirement
|
62
83
|
none: false
|
63
84
|
requirements:
|
64
85
|
- - ~>
|
65
86
|
- !ruby/object:Gem::Version
|
66
|
-
|
67
|
-
|
68
|
-
|
87
|
+
hash: 25
|
88
|
+
segments:
|
89
|
+
- 1
|
90
|
+
- 11
|
91
|
+
version: "1.11"
|
69
92
|
version_requirements: *id005
|
93
|
+
name: vcr
|
94
|
+
prerelease: false
|
95
|
+
type: :development
|
70
96
|
- !ruby/object:Gem::Dependency
|
71
|
-
name: jeweler
|
72
97
|
requirement: &id006 !ruby/object:Gem::Requirement
|
73
98
|
none: false
|
74
99
|
requirements:
|
75
100
|
- - ~>
|
76
101
|
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
|
79
|
-
|
102
|
+
hash: 5
|
103
|
+
segments:
|
104
|
+
- 1
|
105
|
+
- 5
|
106
|
+
version: "1.5"
|
80
107
|
version_requirements: *id006
|
108
|
+
name: jeweler
|
109
|
+
prerelease: false
|
110
|
+
type: :development
|
81
111
|
- !ruby/object:Gem::Dependency
|
82
|
-
name: rcov
|
83
112
|
requirement: &id007 !ruby/object:Gem::Requirement
|
84
113
|
none: false
|
85
114
|
requirements:
|
86
|
-
- -
|
115
|
+
- - ~>
|
87
116
|
- !ruby/object:Gem::Version
|
88
|
-
|
89
|
-
|
90
|
-
|
117
|
+
hash: 1
|
118
|
+
segments:
|
119
|
+
- 0
|
120
|
+
- 5
|
121
|
+
version: "0.5"
|
91
122
|
version_requirements: *id007
|
123
|
+
name: simplecov
|
124
|
+
prerelease: false
|
125
|
+
type: :development
|
92
126
|
- !ruby/object:Gem::Dependency
|
93
|
-
name: mocha
|
94
127
|
requirement: &id008 !ruby/object:Gem::Requirement
|
95
128
|
none: false
|
96
129
|
requirements:
|
97
|
-
- -
|
130
|
+
- - ~>
|
98
131
|
- !ruby/object:Gem::Version
|
99
|
-
|
100
|
-
|
101
|
-
|
132
|
+
hash: 15
|
133
|
+
segments:
|
134
|
+
- 1
|
135
|
+
- 0
|
136
|
+
version: "1.0"
|
102
137
|
version_requirements: *id008
|
103
|
-
|
138
|
+
name: rcov
|
139
|
+
prerelease: false
|
140
|
+
type: :development
|
141
|
+
description: Allows ticketmaster to interact with Fogbugz.
|
104
142
|
email: rafael@hybridgroup.com
|
105
143
|
executables: []
|
106
144
|
|
@@ -111,7 +149,10 @@ extra_rdoc_files:
|
|
111
149
|
- README.rdoc
|
112
150
|
files:
|
113
151
|
- .document
|
152
|
+
- .rbenv-gemsets
|
153
|
+
- .rbenv-version
|
114
154
|
- .rvmrc
|
155
|
+
- .travis.yml
|
115
156
|
- Gemfile
|
116
157
|
- Gemfile.lock
|
117
158
|
- LICENSE.txt
|
@@ -123,13 +164,27 @@ files:
|
|
123
164
|
- lib/provider/project.rb
|
124
165
|
- lib/provider/ticket.rb
|
125
166
|
- lib/ticketmaster-fogbugz.rb
|
167
|
+
- spec/fixtures/vcr_cassettes/all-fogbugz-projects.yml
|
168
|
+
- spec/fixtures/vcr_cassettes/fogbugz-projects.yml
|
169
|
+
- spec/fixtures/vcr_cassettes/fogbugz-single-ticket.yml
|
170
|
+
- spec/fixtures/vcr_cassettes/fogbugz-tickets-by-attributes.yml
|
171
|
+
- spec/fixtures/vcr_cassettes/fogbugz-tickets-by-ids.yml
|
172
|
+
- spec/fixtures/vcr_cassettes/fogbugz-tickets.yml
|
173
|
+
- spec/fixtures/vcr_cassettes/fogbugz.yml
|
174
|
+
- spec/fixtures/vcr_cassettes/load-project-by-id.yml
|
175
|
+
- spec/fixtures/vcr_cassettes/load-projects-attributes.yml
|
176
|
+
- spec/fixtures/vcr_cassettes/load-projects-by-ids.yml
|
177
|
+
- spec/projects_spec.rb
|
178
|
+
- spec/spec_helper.rb
|
179
|
+
- spec/tickets_spec.rb
|
180
|
+
- spec/vcr_setup.rb
|
126
181
|
- test/helper.rb
|
127
182
|
- test/test_project.rb
|
128
183
|
- test/test_ticketmaster-fogbugz.rb
|
129
184
|
- ticketmaster-fogbugz.gemspec
|
130
|
-
homepage: http://github.com/
|
131
|
-
licenses:
|
132
|
-
|
185
|
+
homepage: http://github.com/hybridgroup/ticketmaster-fogbugz
|
186
|
+
licenses: []
|
187
|
+
|
133
188
|
post_install_message:
|
134
189
|
rdoc_options: []
|
135
190
|
|
@@ -140,7 +195,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
195
|
requirements:
|
141
196
|
- - ">="
|
142
197
|
- !ruby/object:Gem::Version
|
143
|
-
hash:
|
198
|
+
hash: 3
|
144
199
|
segments:
|
145
200
|
- 0
|
146
201
|
version: "0"
|
@@ -149,15 +204,22 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
204
|
requirements:
|
150
205
|
- - ">="
|
151
206
|
- !ruby/object:Gem::Version
|
207
|
+
hash: 3
|
208
|
+
segments:
|
209
|
+
- 0
|
152
210
|
version: "0"
|
153
211
|
requirements: []
|
154
212
|
|
155
213
|
rubyforge_project:
|
156
|
-
rubygems_version: 1.8.
|
214
|
+
rubygems_version: 1.8.15
|
157
215
|
signing_key:
|
158
216
|
specification_version: 3
|
159
|
-
summary: Ticketmaster
|
217
|
+
summary: Ticketmaster Provider for Fogbugz
|
160
218
|
test_files:
|
219
|
+
- spec/projects_spec.rb
|
220
|
+
- spec/spec_helper.rb
|
221
|
+
- spec/tickets_spec.rb
|
222
|
+
- spec/vcr_setup.rb
|
161
223
|
- test/helper.rb
|
162
224
|
- test/test_project.rb
|
163
225
|
- test/test_ticketmaster-fogbugz.rb
|