taskmapper-github 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -51,7 +51,7 @@ GEM
51
51
  rspec-core (2.12.2)
52
52
  rspec-expectations (2.12.1)
53
53
  diff-lcs (~> 1.1.3)
54
- rspec-mocks (2.12.1)
54
+ rspec-mocks (2.12.2)
55
55
  simplecov (0.7.1)
56
56
  multi_json (~> 1.0)
57
57
  simplecov-html (~> 0.7.1)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.0
1
+ 0.11.1
@@ -44,9 +44,12 @@ module TaskMapper::Provider
44
44
  search_by_attribute(self.find_all(project_id, ticket_id), attributes)
45
45
  end
46
46
 
47
+ def self.last_modified
48
+ TaskMapper::Provider::Github.api.last_modified || Time.now.httpdate
49
+ end
50
+
47
51
  def self.find_all(project_id, ticket_id)
48
- current_time = Time.now.httpdate
49
- Array(TaskMapper::Provider::Github.api.issue_comments(project_id, ticket_id, :since => current_time)).collect do |comment|
52
+ Array(TaskMapper::Provider::Github.api.issue_comments(project_id, ticket_id, :since => last_modified)).collect do |comment|
50
53
  comment.merge!(:project_id => project_id, :ticket_id => ticket_id)
51
54
  clean_body! comment
52
55
  self.new comment
@@ -61,10 +61,13 @@ module TaskMapper::Provider
61
61
  search_by_attribute(issues, attributes)
62
62
  end
63
63
 
64
+ def self.last_modified
65
+ TaskMapper::Provider::Github.api.last_modified || Time.now.httpdate
66
+ end
67
+
64
68
  def self.find_all(project_id)
65
- current_time = Time.now.httpdate
66
69
  issues = []
67
- issues = Array(TaskMapper::Provider::Github.api.issues(project_id, :since => current_time))
70
+ issues = Array(TaskMapper::Provider::Github.api.issues(project_id, :since => last_modified))
68
71
  issues += TaskMapper::Provider::Github.api.issues(project_id, {:state => "closed"}) unless issues.empty?
69
72
  issues.collect do |issue|
70
73
  issue.merge!(:project_id => project_id)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "taskmapper-github"
8
- s.version = "0.11.0"
8
+ s.version = "0.11.1"
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 = "2013-01-23"
12
+ s.date = "2013-02-05"
13
13
  s.description = "This provides an interface with github 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-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
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: 2013-01-23 00:00:00.000000000 Z
12
+ date: 2013-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: taskmapper
@@ -181,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  segments:
183
183
  - 0
184
- hash: 4124351922753570818
184
+ hash: 561958626606546041
185
185
  required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  none: false
187
187
  requirements: