taskmapper-basecamp 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/provider/project.rb +5 -2
- data/lib/taskmapper-basecamp.rb +17 -0
- data/taskmapper-basecamp.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.3
|
data/lib/provider/project.rb
CHANGED
@@ -51,8 +51,11 @@ module TaskMapper::Provider
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.search(options = {}, limit = 1000)
|
54
|
-
|
55
|
-
|
54
|
+
search_by_attribute(self._basecamp_projects, options, limit)
|
55
|
+
end
|
56
|
+
|
57
|
+
def self._basecamp_projects
|
58
|
+
API.find(:all).collect { |project| self.new project }
|
56
59
|
end
|
57
60
|
|
58
61
|
# copy from this.copy(that) copies that into this
|
data/lib/taskmapper-basecamp.rb
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/basecamp/basecamp.rb'
|
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
|
15
|
+
type=\"array\">")
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
3
20
|
%w{ basecamp ticket project comment }.each do |f|
|
4
21
|
require File.dirname(__FILE__) + '/provider/' + f + '.rb';
|
5
22
|
end
|
data/taskmapper-basecamp.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "taskmapper-basecamp"
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.3"
|
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 = "
|
12
|
+
s.date = "2013-01-03"
|
13
13
|
s.description = "This gem provides an interface to basecamp through the taskmapper gem"
|
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-basecamp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
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:
|
12
|
+
date: 2013-01-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: taskmapper
|
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
177
|
version: '0'
|
178
178
|
segments:
|
179
179
|
- 0
|
180
|
-
hash: -
|
180
|
+
hash: -1661978632259261672
|
181
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|