statement 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/statement/tweets.rb +1 -1
- data/lib/statement/version.rb +1 -1
- data/statement.gemspec +6 -1
- metadata +30 -19
data/README.md
CHANGED
@@ -91,7 +91,7 @@ t.timeline('Robert_Aderholt')
|
|
91
91
|
```
|
92
92
|
Note that the `created_time` attribute is a Ruby Time object, as returned by the `twitter` gem.
|
93
93
|
|
94
|
-
To retrieve a list's timeline, pass in the owner (defaults to nil)
|
94
|
+
To retrieve a list's timeline, pass in the list slug and the owner (defaults to nil):
|
95
95
|
|
96
96
|
```ruby
|
97
97
|
t = Statement::Tweets.new
|
data/lib/statement/tweets.rb
CHANGED
@@ -22,7 +22,7 @@ module Statement
|
|
22
22
|
end
|
23
23
|
|
24
24
|
# fetches latest 100 tweets from a list (derekwillis twitter acct has a public congress list)
|
25
|
-
def bulk_timeline(list_owner=nil
|
25
|
+
def bulk_timeline(list_id, list_owner=nil)
|
26
26
|
process_results(client.list_timeline(list_owner, list_id, {:count => 100}))
|
27
27
|
end
|
28
28
|
|
data/lib/statement/version.rb
CHANGED
data/statement.gemspec
CHANGED
@@ -21,8 +21,13 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency 'webmock'
|
24
|
+
spec.add_development_dependency 'minitest'
|
24
25
|
spec.add_dependency "american_date"
|
25
|
-
|
26
|
+
if RUBY_VERSION > "1.8.7"
|
27
|
+
spec.add_dependency "nokogiri"
|
28
|
+
else
|
29
|
+
spec.add_dependency "nokogiri", '~> 1.5.10'
|
30
|
+
end
|
26
31
|
spec.add_dependency "koala"
|
27
32
|
spec.add_dependency "oj"
|
28
33
|
spec.add_dependency "twitter"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statement
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2013-06-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156333660 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.3'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156333660
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &2156333060 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156333060
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: webmock
|
38
|
-
requirement: &
|
38
|
+
requirement: &2156332240 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,21 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2156332240
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: minitest
|
49
|
+
requirement: &2156331080 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2156331080
|
47
58
|
- !ruby/object:Gem::Dependency
|
48
59
|
name: american_date
|
49
|
-
requirement: &
|
60
|
+
requirement: &2156330340 !ruby/object:Gem::Requirement
|
50
61
|
none: false
|
51
62
|
requirements:
|
52
63
|
- - ! '>='
|
@@ -54,10 +65,10 @@ dependencies:
|
|
54
65
|
version: '0'
|
55
66
|
type: :runtime
|
56
67
|
prerelease: false
|
57
|
-
version_requirements: *
|
68
|
+
version_requirements: *2156330340
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: nokogiri
|
60
|
-
requirement: &
|
71
|
+
requirement: &2156329800 !ruby/object:Gem::Requirement
|
61
72
|
none: false
|
62
73
|
requirements:
|
63
74
|
- - ! '>='
|
@@ -65,10 +76,10 @@ dependencies:
|
|
65
76
|
version: '0'
|
66
77
|
type: :runtime
|
67
78
|
prerelease: false
|
68
|
-
version_requirements: *
|
79
|
+
version_requirements: *2156329800
|
69
80
|
- !ruby/object:Gem::Dependency
|
70
81
|
name: koala
|
71
|
-
requirement: &
|
82
|
+
requirement: &2156329180 !ruby/object:Gem::Requirement
|
72
83
|
none: false
|
73
84
|
requirements:
|
74
85
|
- - ! '>='
|
@@ -76,10 +87,10 @@ dependencies:
|
|
76
87
|
version: '0'
|
77
88
|
type: :runtime
|
78
89
|
prerelease: false
|
79
|
-
version_requirements: *
|
90
|
+
version_requirements: *2156329180
|
80
91
|
- !ruby/object:Gem::Dependency
|
81
92
|
name: oj
|
82
|
-
requirement: &
|
93
|
+
requirement: &2156328380 !ruby/object:Gem::Requirement
|
83
94
|
none: false
|
84
95
|
requirements:
|
85
96
|
- - ! '>='
|
@@ -87,10 +98,10 @@ dependencies:
|
|
87
98
|
version: '0'
|
88
99
|
type: :runtime
|
89
100
|
prerelease: false
|
90
|
-
version_requirements: *
|
101
|
+
version_requirements: *2156328380
|
91
102
|
- !ruby/object:Gem::Dependency
|
92
103
|
name: twitter
|
93
|
-
requirement: &
|
104
|
+
requirement: &2156344140 !ruby/object:Gem::Requirement
|
94
105
|
none: false
|
95
106
|
requirements:
|
96
107
|
- - ! '>='
|
@@ -98,10 +109,10 @@ dependencies:
|
|
98
109
|
version: '0'
|
99
110
|
type: :runtime
|
100
111
|
prerelease: false
|
101
|
-
version_requirements: *
|
112
|
+
version_requirements: *2156344140
|
102
113
|
- !ruby/object:Gem::Dependency
|
103
114
|
name: typhoeus
|
104
|
-
requirement: &
|
115
|
+
requirement: &2156343620 !ruby/object:Gem::Requirement
|
105
116
|
none: false
|
106
117
|
requirements:
|
107
118
|
- - ! '>='
|
@@ -109,7 +120,7 @@ dependencies:
|
|
109
120
|
version: '0'
|
110
121
|
type: :runtime
|
111
122
|
prerelease: false
|
112
|
-
version_requirements: *
|
123
|
+
version_requirements: *2156343620
|
113
124
|
description: Crawls congressional websites for press releases.
|
114
125
|
email:
|
115
126
|
- dwillis@gmail.com
|