topsy 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/topsy/tweet.rb CHANGED
@@ -11,14 +11,7 @@
11
11
  #
12
12
  module Topsy
13
13
 
14
- class Tweet < Hashie::Dash
15
- property :permalink_url
16
- property :date
17
- property :content
18
- property :type
19
- property :author
20
- property :date_alpha
21
- property :target
14
+ class Tweet < Hashie::Mash
22
15
 
23
16
  def to_s
24
17
  "Topsy Tweet: #{permalink_url}, #{content}"
@@ -0,0 +1,3 @@
1
+ module Topsy
2
+ VERSION = '0.3.2'
3
+ end
data/test/test_topsy.rb CHANGED
@@ -182,13 +182,11 @@ class TestTopsy < Test::Unit::TestCase
182
182
  results = Topsy.trackbacks("http://orrka.com")
183
183
  results.class.should == Topsy::Page
184
184
  results.total.should == 3
185
- results.list.first.class.should == Topsy::Tweet
186
185
  results.list.first.date.year.should == 2009
187
186
  results.list.first.permalink_url.should == "http://twitter.com/orrka/status/6435248067"
188
187
  results.list.first.date.should == Time.at(1260204073)
189
188
  results.list.first.content.should == "Just added some portfolio entries to http://orrka.com/"
190
- results.list.first.type.should == "tweet"
191
- results.list.first.author.class.should == Topsy::Author
189
+ results.list.first['type'].should == "tweet"
192
190
  results.list.first.date_alpha.should == "25 days ago"
193
191
  end
194
192
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Wynn Netherland
@@ -15,11 +15,13 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-27 00:00:00 -05:00
18
+ date: 2010-09-28 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ name: hashie
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
23
25
  requirements:
24
26
  - - ">="
25
27
  - !ruby/object:Gem::Version
@@ -28,12 +30,12 @@ dependencies:
28
30
  - 1
29
31
  - 3
30
32
  version: 0.1.3
31
- name: hashie
32
- prerelease: false
33
- requirement: *id001
34
33
  type: :runtime
34
+ version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
- version_requirements: &id002 !ruby/object:Gem::Requirement
36
+ name: httparty
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
37
39
  requirements:
38
40
  - - ">="
39
41
  - !ruby/object:Gem::Version
@@ -42,76 +44,36 @@ dependencies:
42
44
  - 4
43
45
  - 5
44
46
  version: 0.4.5
45
- name: httparty
46
- prerelease: false
47
- requirement: *id002
48
47
  type: :runtime
48
+ version_requirements: *id002
49
49
  - !ruby/object:Gem::Dependency
50
- version_requirements: &id003 !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- segments:
55
- - 2
56
- - 10
57
- - 1
58
- version: 2.10.1
59
50
  name: shoulda
60
51
  prerelease: false
61
- requirement: *id003
62
- type: :development
63
- - !ruby/object:Gem::Dependency
64
- version_requirements: &id004 !ruby/object:Gem::Requirement
52
+ requirement: &id003 !ruby/object:Gem::Requirement
65
53
  requirements:
66
- - - "="
54
+ - - ~>
67
55
  - !ruby/object:Gem::Version
68
56
  segments:
57
+ - 2
58
+ - 10
69
59
  - 0
70
- - 4
71
- - 0
72
- version: 0.4.0
73
- name: jnunemaker-matchy
74
- prerelease: false
75
- requirement: *id004
60
+ version: 2.10.0
76
61
  type: :development
62
+ version_requirements: *id003
77
63
  - !ruby/object:Gem::Dependency
78
- version_requirements: &id005 !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- segments:
83
- - 1
84
- - 2
85
- - 5
86
- version: 1.2.5
87
- name: fakeweb
64
+ name: jnunemaker-matchy
88
65
  prerelease: false
89
- requirement: *id005
90
- type: :development
91
- - !ruby/object:Gem::Dependency
92
- version_requirements: &id006 !ruby/object:Gem::Requirement
66
+ requirement: &id004 !ruby/object:Gem::Requirement
93
67
  requirements:
94
- - - ">="
68
+ - - ~>
95
69
  - !ruby/object:Gem::Version
96
70
  segments:
97
71
  - 0
98
- version: "0"
99
- name: yard
100
- prerelease: false
101
- requirement: *id006
102
- type: :development
103
- - !ruby/object:Gem::Dependency
104
- version_requirements: &id007 !ruby/object:Gem::Requirement
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- segments:
72
+ - 4
109
73
  - 0
110
- version: "0"
111
- name: redgreen
112
- prerelease: false
113
- requirement: *id007
74
+ version: 0.4.0
114
75
  type: :development
76
+ version_requirements: *id004
115
77
  description: Wrapper for the Topsy API
116
78
  email: wynn.netherland@gmail.com
117
79
  executables: []
@@ -135,6 +97,7 @@ files:
135
97
  - lib/topsy/trend.rb
136
98
  - lib/topsy/tweet.rb
137
99
  - lib/topsy/url_info.rb
100
+ - lib/topsy/version.rb
138
101
  - lib/topsy.rb
139
102
  has_rdoc: true
140
103
  homepage: http://wynnnetherland.com/projects/topsy/