myflickr 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,4 +1,8 @@
1
- == 0.0.2 2007-12-19
1
+ == 0.0.4 2007-12-19
2
+
3
+ * Changed the tags method on the set class to return a textual list
4
+
5
+ == 0.0.3 2007-12-19
2
6
 
3
7
  * Added tags collection for sets (Collects unique tags from the images inside the set)
4
8
 
data/lib/myflickr/set.rb CHANGED
@@ -25,10 +25,10 @@ module Myflickr
25
25
  tags = []
26
26
  photos.each do |photo|
27
27
  photo.tags.each do |tag|
28
- tags << tag
28
+ tags << tag[:value]
29
29
  end
30
30
  end
31
- tags
31
+ tags.uniq
32
32
  end
33
33
 
34
34
  private
@@ -2,7 +2,7 @@ module Myflickr
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/spec/set_spec.rb CHANGED
@@ -42,7 +42,7 @@ describe Set, "class" do
42
42
  myset = Set.find "72157603414539843"
43
43
  tags = myset.tags
44
44
  tags.should be_an_instance_of(Array)
45
- tags.first.should be_an_instance_of(Tag)
45
+ tags.first.should be_an_instance_of(String)
46
46
  end
47
47
 
48
48
  it "should collect unique tags" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myflickr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ""
6
6
  authors:
7
7
  - Ben Schwarz