doing_stream 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module DoingStream
8
8
 
9
9
  class Entry < Stream::Entry
10
10
  def published
11
- Time.new data['created_at']
11
+ Time.parse data['created_at']
12
12
  end
13
13
  end
14
14
  end
@@ -1,5 +1,11 @@
1
1
  module DoingStream
2
2
  class Streams::Twitter < Stream::JSONStream
3
3
  URI = 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=<%= user %>'
4
+
5
+ class Entry < Stream::Entry
6
+ def published
7
+ Time.parse data['created_at']
8
+ end
9
+ end
4
10
  end
5
11
  end
@@ -13,11 +13,9 @@ module DoingStream
13
13
  class Streams::Vimeo::Likes < Stream::JSONStream
14
14
  URI = 'http://vimeo.com/api/v2/<%= user %>/likes.json'
15
15
 
16
- def name; 'vimeo'; end
17
-
18
16
  class Entry < Stream::Entry
19
17
  def published
20
- Time.new data['liked_on']
18
+ Time.parse data['liked_on']
21
19
  end
22
20
  end
23
21
  end
@@ -25,11 +23,9 @@ module DoingStream
25
23
  class Streams::Vimeo::Videos < Stream::JSONStream
26
24
  URI = 'http://vimeo.com/api/v2/<%= user %>/videos.json'
27
25
 
28
- def name; 'vimeo'; end
29
-
30
26
  class Entry < Stream::Entry
31
27
  def published
32
- Time.new data['upload_date']
28
+ Time.parse data['upload_date']
33
29
  end
34
30
  end
35
31
  end
@@ -1,3 +1,3 @@
1
1
  module DoingStream
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doing_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: