taskmapper-pivotal 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,39 +1,43 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (3.2.3)
5
- activesupport (= 3.2.3)
4
+ activemodel (3.2.9)
5
+ activesupport (= 3.2.9)
6
6
  builder (~> 3.0.0)
7
- activeresource (3.2.3)
8
- activemodel (= 3.2.3)
9
- activesupport (= 3.2.3)
10
- activesupport (3.2.3)
7
+ activeresource (3.2.9)
8
+ activemodel (= 3.2.9)
9
+ activesupport (= 3.2.9)
10
+ activesupport (3.2.9)
11
11
  i18n (~> 0.6)
12
12
  multi_json (~> 1.0)
13
- builder (3.0.0)
13
+ builder (3.0.4)
14
14
  diff-lcs (1.1.3)
15
15
  git (1.2.5)
16
16
  hashie (1.2.0)
17
- i18n (0.6.0)
18
- jeweler (1.6.4)
17
+ i18n (0.6.1)
18
+ jeweler (1.8.4)
19
19
  bundler (~> 1.0)
20
20
  git (>= 1.2.5)
21
21
  rake
22
- multi_json (1.0.4)
23
- rake (0.9.2.2)
22
+ rdoc
23
+ json (1.7.5)
24
+ multi_json (1.5.0)
25
+ rake (10.0.3)
24
26
  rcov (1.0.0)
25
- rspec (2.8.0)
26
- rspec-core (~> 2.8.0)
27
- rspec-expectations (~> 2.8.0)
28
- rspec-mocks (~> 2.8.0)
29
- rspec-core (2.8.0)
30
- rspec-expectations (2.8.0)
31
- diff-lcs (~> 1.1.2)
32
- rspec-mocks (2.8.0)
33
- simplecov (0.5.4)
34
- multi_json (~> 1.0.3)
35
- simplecov-html (~> 0.5.3)
36
- simplecov-html (0.5.3)
27
+ rdoc (3.12)
28
+ json (~> 1.4)
29
+ rspec (2.12.0)
30
+ rspec-core (~> 2.12.0)
31
+ rspec-expectations (~> 2.12.0)
32
+ rspec-mocks (~> 2.12.0)
33
+ rspec-core (2.12.2)
34
+ rspec-expectations (2.12.1)
35
+ diff-lcs (~> 1.1.3)
36
+ rspec-mocks (2.12.0)
37
+ simplecov (0.7.1)
38
+ multi_json (~> 1.0)
39
+ simplecov-html (~> 0.7.1)
40
+ simplecov-html (0.7.1)
37
41
  taskmapper (0.8.0)
38
42
  activeresource (~> 3.0)
39
43
  activesupport (~> 3.0)
data/Rakefile CHANGED
@@ -30,7 +30,7 @@ end
30
30
 
31
31
  task :default => :spec
32
32
 
33
- require 'rake/rdoctask'
33
+ require 'rdoc/task'
34
34
  Rake::RDocTask.new do |rdoc|
35
35
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
36
36
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.1
1
+ 0.8.2
@@ -4,12 +4,12 @@ module TaskMapper::Provider
4
4
  include TaskMapper::Provider::Base
5
5
  TICKET_API = PivotalAPI::Story
6
6
  PROJECT_API = PivotalAPI::Project
7
-
7
+
8
8
  # This is for cases when you want to instantiate using TaskMapper::Provider::Lighthouse.new(auth)
9
9
  def self.new(auth = {})
10
10
  TaskMapper.new(:pivotal, auth)
11
11
  end
12
-
12
+
13
13
  # The authorize and initializer for this provider
14
14
  def authorize(auth = {})
15
15
  @authentication ||= TaskMapper::Authenticator.new(auth)
@@ -25,13 +25,10 @@ module TaskMapper::Provider
25
25
  end
26
26
 
27
27
  def valid?
28
- begin
29
- PROJECT_API.find(:first)
30
- true
31
- rescue
32
- false
33
- end
28
+ !PROJECT_API.find(:first).nil?
29
+ rescue ActiveResource::UnauthorizedAccess
30
+ false
34
31
  end
35
-
32
+
36
33
  end
37
34
  end
@@ -1,5 +1,21 @@
1
1
  require File.dirname(__FILE__) + '/pivotal/pivotal-api'
2
2
 
3
+ # Monkey patch for backward compatibility issue with type cast on xml response
4
+ class Hash
5
+ class << self
6
+ alias_method :from_xml_original, :from_xml
7
+
8
+ def from_xml(xml)
9
+ scrubbed = scrub_attributes(xml)
10
+ from_xml_original(scrubbed)
11
+ end
12
+
13
+ def scrub_attributes(xml)
14
+ xml.gsub(/<stories.*>/, "<stories type=\"array\">")
15
+ end
16
+ end
17
+ end
18
+
3
19
  %w{ pivotal ticket project comment }.each do |f|
4
20
  require File.dirname(__FILE__) + '/provider/' + f + '.rb';
5
21
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "taskmapper-pivotal"
8
- s.version = "0.8.1"
8
+ s.version = "0.8.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["HybridGroup"]
12
- s.date = "2012-08-21"
12
+ s.date = "2012-12-18"
13
13
  s.description = "This is a taskmapper provider for interacting with Pivotal Tracker ."
14
14
  s.email = "hong.quach@abigfisch.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taskmapper-pivotal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-21 00:00:00.000000000 Z
12
+ date: 2012-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: taskmapper
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  segments:
144
144
  - 0
145
- hash: 513053649
145
+ hash: 650080253
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  none: false
148
148
  requirements: