pivotal_sync 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ module PivotalSync
5
5
  class << self
6
6
 
7
7
  def all(project_id)
8
- @all ||= parse(Client.connection["projects/#{project_id}/iterations"].get)
8
+ parse(Client.connection["projects/#{project_id}/iterations"].get)
9
9
  end
10
10
 
11
11
  end
@@ -5,15 +5,11 @@ module PivotalSync
5
5
  class << self
6
6
 
7
7
  def all
8
- @all ||= parse(Client.connection["projects"].get)
8
+ parse(Client.connection["projects"].get)
9
9
  end
10
10
 
11
11
  def find(id)
12
- if @all
13
- @all.detect { |project| project.id == id}
14
- else
15
- parse(Client.connection["projects/#{id}"].get)
16
- end
12
+ parse(Client.connection["projects/#{id}"].get)
17
13
  end
18
14
 
19
15
  end
@@ -5,16 +5,11 @@ module PivotalSync
5
5
  class << self
6
6
 
7
7
  def all(project_id)
8
- @all ||= {}
9
- @all[project_id] ||= parse(Client.connection["projects/#{project_id}/stories"].get)
8
+ parse(Client.connection["projects/#{project_id}/stories"].get)
10
9
  end
11
10
 
12
11
  def find(id)
13
- if @all
14
- @all.detect { |story| story.id == id}
15
- else
16
- parse(Client.connection["stories/#{id}"].get)
17
- end
12
+ parse(Client.connection["stories/#{id}"].get)
18
13
  end
19
14
 
20
15
  end
@@ -1,3 +1,3 @@
1
1
  module PivotalSync
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: