ticketmaster-redmine 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
@@ -3,10 +3,13 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
3
3
  describe "Ticketmaster::Provider::Redmine::Project" do
4
4
  before(:all) do
5
5
  headers = {'Authorization' => 'Basic Y29yZWQ6MTIzNDU2', 'Accept' => 'application/xml'}
6
+ headers_post_put = {'Authorization' => 'Basic Y29yZWQ6MTIzNDU2', 'Content-Type' => 'application/xml'}
6
7
  @project_id = 'test-repo12'
7
8
  ActiveResource::HttpMock.respond_to do |mock|
8
9
  mock.get '/projects.xml', headers, fixture_for('projects'), 200
9
10
  mock.get '/projects/test-repo12.xml', headers, fixture_for('projects/test-repo12'), 200
11
+ mock.put '/projects/1.xml', headers_post_put, '', 200
12
+ mock.post '/projects.xml', headers_post_put, '', 200
10
13
  end
11
14
  end
12
15
 
@@ -43,4 +46,13 @@ describe "Ticketmaster::Provider::Redmine::Project" do
43
46
  @ticketmaster.project(@project_id).should be_an_instance_of(@klass)
44
47
  @ticketmaster.project(@project_id).identifier.should == @project_id
45
48
  end
49
+
50
+ it "should be able to update and save a project" do
51
+ @project = @ticketmaster.project(@project_id)
52
+ @project.update!(:name => 'named').should == true
53
+ end
54
+
55
+ it "should be able to create a new project" do
56
+ @project = @ticketmaster.project!(:name => 'newtest', :identifier => 'dumb', :description => 'hithere').should be_an_instance_of(@klass)
57
+ end
46
58
  end
@@ -0,0 +1,79 @@
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{ticketmaster-redmine}
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Rafael George"]
12
+ s.date = %q{2010-12-28}
13
+ s.description = %q{Allows ticketmaster to interact with Your System.}
14
+ s.email = %q{george.rafael@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ "LICENSE",
21
+ "README.md",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "lib/provider/comment.rb",
25
+ "lib/provider/project.rb",
26
+ "lib/provider/redmine.rb",
27
+ "lib/provider/ticket.rb",
28
+ "lib/redmine/redmine-api.rb",
29
+ "lib/ticketmaster-redmine.rb",
30
+ "spec/comments_spec.rb",
31
+ "spec/fixtures/issues.xml",
32
+ "spec/fixtures/issues/1.xml",
33
+ "spec/fixtures/projects.xml",
34
+ "spec/fixtures/projects/test-repo12.xml",
35
+ "spec/projects_spec.rb",
36
+ "spec/spec.opts",
37
+ "spec/spec_helper.rb",
38
+ "spec/ticketmaster-redmine_spec.rb",
39
+ "spec/tickets_spec.rb",
40
+ "ticketmaster-redmine.gemspec"
41
+ ]
42
+ s.homepage = %q{http://bandw.tumblr.com}
43
+ s.require_paths = ["lib"]
44
+ s.rubygems_version = %q{1.3.7}
45
+ s.summary = %q{Ticketmaster Provider for Redmine}
46
+ s.test_files = [
47
+ "spec/comments_spec.rb",
48
+ "spec/projects_spec.rb",
49
+ "spec/spec_helper.rb",
50
+ "spec/ticketmaster-redmine_spec.rb",
51
+ "spec/tickets_spec.rb"
52
+ ]
53
+
54
+ if s.respond_to? :specification_version then
55
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
56
+ s.specification_version = 3
57
+
58
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
59
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
60
+ s.add_runtime_dependency(%q<ticketmaster>, [">= 0.1.0"])
61
+ s.add_runtime_dependency(%q<activesupport>, [">= 2.3.2"])
62
+ s.add_runtime_dependency(%q<activeresource>, [">= 2.3.2"])
63
+ s.add_runtime_dependency(%q<addressable>, [">= 2.1.2"])
64
+ else
65
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
66
+ s.add_dependency(%q<ticketmaster>, [">= 0.1.0"])
67
+ s.add_dependency(%q<activesupport>, [">= 2.3.2"])
68
+ s.add_dependency(%q<activeresource>, [">= 2.3.2"])
69
+ s.add_dependency(%q<addressable>, [">= 2.1.2"])
70
+ end
71
+ else
72
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
73
+ s.add_dependency(%q<ticketmaster>, [">= 0.1.0"])
74
+ s.add_dependency(%q<activesupport>, [">= 2.3.2"])
75
+ s.add_dependency(%q<activeresource>, [">= 2.3.2"])
76
+ s.add_dependency(%q<addressable>, [">= 2.1.2"])
77
+ end
78
+ end
79
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-redmine
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 0
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rafael George
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-23 00:00:00 -04:00
18
+ date: 2010-12-28 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -128,6 +128,7 @@ files:
128
128
  - spec/spec_helper.rb
129
129
  - spec/ticketmaster-redmine_spec.rb
130
130
  - spec/tickets_spec.rb
131
+ - ticketmaster-redmine.gemspec
131
132
  has_rdoc: true
132
133
  homepage: http://bandw.tumblr.com
133
134
  licenses: []