stratify-twitter 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,118 +1,106 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stratify-twitter (0.1.2)
5
- actionpack (~> 3.1.0)
6
- railties (~> 3.1.0)
4
+ stratify-twitter (0.1.4)
5
+ actionpack (~> 3.2.0)
6
+ railties (~> 3.2.0)
7
7
  rinku (~> 1.0.0)
8
- stratify-base (~> 0.1.2)
9
- twitter (~> 1.5.0)
8
+ stratify-base (~> 0.1.4)
9
+ twitter (~> 2.1.0)
10
10
 
11
11
  GEM
12
12
  remote: http://rubygems.org/
13
13
  specs:
14
- actionpack (3.1.0)
15
- activemodel (= 3.1.0)
16
- activesupport (= 3.1.0)
14
+ actionpack (3.2.3)
15
+ activemodel (= 3.2.3)
16
+ activesupport (= 3.2.3)
17
17
  builder (~> 3.0.0)
18
18
  erubis (~> 2.7.0)
19
- i18n (~> 0.6)
20
- rack (~> 1.3.2)
21
- rack-cache (~> 1.0.3)
22
- rack-mount (~> 0.8.2)
19
+ journey (~> 1.0.1)
20
+ rack (~> 1.4.0)
21
+ rack-cache (~> 1.2)
23
22
  rack-test (~> 0.6.1)
24
- sprockets (~> 2.0.0)
25
- activemodel (3.1.0)
26
- activesupport (= 3.1.0)
27
- bcrypt-ruby (~> 3.0.0)
23
+ sprockets (~> 2.1.2)
24
+ activemodel (3.2.3)
25
+ activesupport (= 3.2.3)
28
26
  builder (~> 3.0.0)
27
+ activesupport (3.2.3)
29
28
  i18n (~> 0.6)
30
- activesupport (3.1.0)
31
29
  multi_json (~> 1.0)
32
- addressable (2.2.6)
33
- bcrypt-ruby (3.0.0)
34
- bson (1.3.1)
35
- bson_ext (1.3.1)
30
+ bson (1.6.2)
31
+ bson_ext (1.6.2)
32
+ bson (~> 1.6.2)
36
33
  builder (3.0.0)
37
- database_cleaner (0.6.7)
38
- diff-lcs (1.1.2)
34
+ database_cleaner (0.7.2)
35
+ diff-lcs (1.1.3)
39
36
  erubis (2.7.0)
40
37
  fakeweb (1.3.0)
41
- faraday (0.6.1)
42
- addressable (~> 2.2.4)
43
- multipart-post (~> 1.1.0)
44
- rack (< 2, >= 1.1.0)
45
- faraday_middleware (0.6.5)
46
- faraday (~> 0.6.0)
47
- hashie (1.0.0)
38
+ faraday (0.8.0)
39
+ multipart-post (~> 1.1)
48
40
  hike (1.2.1)
49
41
  i18n (0.6.0)
50
- mongo (1.3.1)
51
- bson (>= 1.3.1)
52
- mongoid (2.0.2)
53
- activemodel (~> 3.0)
42
+ journey (1.0.3)
43
+ json (1.7.0)
44
+ mongo (1.6.2)
45
+ bson (~> 1.6.2)
46
+ mongoid (2.4.9)
47
+ activemodel (~> 3.1)
54
48
  mongo (~> 1.3)
55
49
  tzinfo (~> 0.3.22)
56
- multi_json (1.0.3)
57
- multi_xml (0.2.2)
58
- multipart-post (1.1.3)
59
- rack (1.3.2)
60
- rack-cache (1.0.3)
50
+ multi_json (1.3.2)
51
+ multipart-post (1.1.5)
52
+ rack (1.4.1)
53
+ rack-cache (1.2)
61
54
  rack (>= 0.4)
62
- rack-mount (0.8.3)
63
- rack (>= 1.0.0)
64
55
  rack-ssl (1.3.2)
65
56
  rack
66
57
  rack-test (0.6.1)
67
58
  rack (>= 1.0)
68
- railties (3.1.0)
69
- actionpack (= 3.1.0)
70
- activesupport (= 3.1.0)
59
+ railties (3.2.3)
60
+ actionpack (= 3.2.3)
61
+ activesupport (= 3.2.3)
71
62
  rack-ssl (~> 1.3.2)
72
63
  rake (>= 0.8.7)
73
64
  rdoc (~> 3.4)
74
65
  thor (~> 0.14.6)
75
- rake (0.9.2)
76
- rash (0.3.0)
77
- hashie (~> 1.0.0)
78
- rdoc (3.9.4)
66
+ rake (0.9.2.2)
67
+ rdoc (3.12)
68
+ json (~> 1.4)
79
69
  rinku (1.0.0)
80
- rspec (2.6.0)
81
- rspec-core (~> 2.6.0)
82
- rspec-expectations (~> 2.6.0)
83
- rspec-mocks (~> 2.6.0)
84
- rspec-core (2.6.3)
85
- rspec-expectations (2.6.0)
86
- diff-lcs (~> 1.1.2)
87
- rspec-mocks (2.6.0)
88
- simple_oauth (0.1.5)
89
- sprockets (2.0.0)
70
+ rspec (2.9.0)
71
+ rspec-core (~> 2.9.0)
72
+ rspec-expectations (~> 2.9.0)
73
+ rspec-mocks (~> 2.9.0)
74
+ rspec-core (2.9.0)
75
+ rspec-expectations (2.9.1)
76
+ diff-lcs (~> 1.1.3)
77
+ rspec-mocks (2.9.0)
78
+ simple_oauth (0.1.7)
79
+ sprockets (2.1.3)
90
80
  hike (~> 1.2)
91
81
  rack (~> 1.0)
92
- tilt (!= 1.3.0, ~> 1.1)
93
- stratify-base (0.1.2)
94
- bson_ext (~> 1.3.1)
95
- mongoid (~> 2.0.2)
82
+ tilt (~> 1.1, != 1.3.0)
83
+ stratify-base (0.1.4)
84
+ bson_ext (~> 1.6.0)
85
+ mongoid (~> 2.4.0)
96
86
  tilt (~> 1.3.2)
97
87
  thor (0.14.6)
98
88
  tilt (1.3.3)
99
- twitter (1.5.0)
100
- faraday (~> 0.6.1)
101
- faraday_middleware (~> 0.6.3)
102
- hashie (~> 1.0.0)
103
- multi_json (~> 1.0.0)
104
- multi_xml (~> 0.2.0)
105
- rash (~> 0.3.0)
106
- simple_oauth (~> 0.1.5)
107
- tzinfo (0.3.29)
108
- vcr (1.10.0)
89
+ twitter (2.1.1)
90
+ activesupport (>= 2.3.9, < 4)
91
+ faraday (~> 0.7)
92
+ multi_json (~> 1.0)
93
+ simple_oauth (~> 0.1)
94
+ tzinfo (0.3.33)
95
+ vcr (1.10.3)
109
96
 
110
97
  PLATFORMS
111
98
  ruby
112
99
 
113
100
  DEPENDENCIES
114
- database_cleaner (~> 0.6.7)
101
+ database_cleaner (~> 0.7.2)
115
102
  fakeweb (~> 1.3.0)
116
- rspec (~> 2.6.0)
103
+ rake (~> 0.9.2)
104
+ rspec (~> 2.9.0)
117
105
  stratify-twitter!
118
106
  vcr (~> 1.10.0)
data/LICENSE CHANGED
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
17
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
18
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
19
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  Stratify is developed and tested with the following dependencies.
6
6
 
7
7
  * Ruby 1.9.2 (See `.rvmrc` for the specific version.)
8
- * MongoDB 1.8
8
+ * MongoDB 2.0
9
9
 
10
10
  ## Development
11
11
 
data/Rakefile CHANGED
@@ -7,4 +7,4 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
7
7
  spec.pattern = FileList['spec/**/*_spec.rb']
8
8
  end
9
9
 
10
- task :default => :spec
10
+ task :default => :spec
Binary file
Binary file
@@ -5,24 +5,24 @@ module Stratify
5
5
  module Twitter
6
6
  class Activity < Stratify::Activity
7
7
  extend Stratify::Twitter::Translation
8
-
8
+
9
9
  field :status_id, :type => Integer
10
10
  field :username
11
11
  field :text
12
12
  field :retweeted_status
13
13
 
14
14
  natural_key :status_id
15
-
15
+
16
16
  validates_presence_of :status_id, :username, :text
17
17
 
18
18
  def retweet?
19
19
  retweeted_status.present?
20
20
  end
21
-
21
+
22
22
  def permalink
23
23
  "http://twitter.com/#{username}/status/#{status_id}"
24
24
  end
25
-
25
+
26
26
  def to_html
27
27
  Stratify::Twitter::Presenter.new(self).to_html
28
28
  end
@@ -14,9 +14,9 @@ module Stratify
14
14
  end
15
15
 
16
16
  private
17
-
17
+
18
18
  def activities_from_api
19
- ::Twitter.user_timeline(username, :include_rts => true)
19
+ ::Twitter.user_timeline(username, :include_rts => true)
20
20
  end
21
21
  end
22
22
  end
@@ -5,7 +5,7 @@ module Stratify
5
5
  module Twitter
6
6
  class Presenter
7
7
  include ActionView::Helpers::UrlHelper
8
-
8
+
9
9
  def initialize(activity)
10
10
  @activity = activity
11
11
  end
@@ -14,7 +14,7 @@ module Stratify
14
14
  return @activity.text unless @activity.retweet?
15
15
  "RT @#{@activity.retweeted_status['username']} #{@activity.retweeted_status['text']}"
16
16
  end
17
-
17
+
18
18
  def to_html
19
19
  linkify_usernames(linkify_urls(text))
20
20
  end
@@ -1,5 +1,5 @@
1
1
  module Stratify
2
2
  module Twitter
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -15,7 +15,7 @@ describe "stratify-twitter" do
15
15
  :retweeted_status => nil
16
16
  ).should exist
17
17
  end
18
-
18
+
19
19
  it "collects and stores retweets from Twitter", :database => true do
20
20
  collector = Stratify::Twitter::Collector.create!(:username => "jasonrudolph")
21
21
  collector.run
@@ -19,14 +19,15 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_runtime_dependency "actionpack", "~> 3.1.0"
23
- s.add_runtime_dependency "railties", "~> 3.1.0"
22
+ s.add_runtime_dependency "actionpack", "~> 3.2.0"
23
+ s.add_runtime_dependency "railties", "~> 3.2.0"
24
24
  s.add_runtime_dependency "rinku", "~> 1.0.0"
25
- s.add_runtime_dependency "stratify-base", "~> 0.1.3"
26
- s.add_runtime_dependency "twitter", "~> 1.5.0"
25
+ s.add_runtime_dependency "stratify-base", "~> 0.1.4"
26
+ s.add_runtime_dependency "twitter", "~> 2.1.0"
27
27
 
28
- s.add_development_dependency "database_cleaner", "~> 0.6.7"
28
+ s.add_development_dependency "database_cleaner", "~> 0.7.2"
29
29
  s.add_development_dependency "fakeweb", "~> 1.3.0"
30
- s.add_development_dependency "rspec", "~> 2.6.0"
30
+ s.add_development_dependency "rake", "~> 0.9.2"
31
+ s.add_development_dependency "rspec", "~> 2.9.0"
31
32
  s.add_development_dependency "vcr", "~> 1.10.0"
32
33
  end
@@ -1,68 +1,68 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :get
5
5
  uri: https://api.twitter.com:443/1/statuses/user_timeline.json?include_rts=true&screen_name=jasonrudolph
6
- body:
7
- headers:
8
- accept:
6
+ body:
7
+ headers:
8
+ accept:
9
9
  - application/json
10
- user-agent:
10
+ user-agent:
11
11
  - Twitter Ruby Gem 1.5.0
12
- accept-encoding:
12
+ accept-encoding:
13
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
14
+ response: !ruby/struct:VCR::Response
15
+ status: !ruby/struct:VCR::ResponseStatus
16
16
  code: 200
17
17
  message: OK
18
- headers:
19
- date:
18
+ headers:
19
+ date:
20
20
  - Sat, 02 Jul 2011 23:57:26 GMT
21
- server:
21
+ server:
22
22
  - hi
23
- status:
23
+ status:
24
24
  - 200 OK
25
- x-transaction:
25
+ x-transaction:
26
26
  - 1309651046-78606-29628
27
- x-ratelimit-limit:
27
+ x-ratelimit-limit:
28
28
  - "150"
29
- etag:
29
+ etag:
30
30
  - "\"2ed2bd074a816eb72eb0b8e1bb802272\"-gzip"
31
- x-frame-options:
31
+ x-frame-options:
32
32
  - SAMEORIGIN
33
- last-modified:
33
+ last-modified:
34
34
  - Sat, 02 Jul 2011 23:57:26 GMT
35
- x-ratelimit-remaining:
35
+ x-ratelimit-remaining:
36
36
  - "143"
37
- x-runtime:
37
+ x-runtime:
38
38
  - "0.05163"
39
- x-transaction-mask:
39
+ x-transaction-mask:
40
40
  - a6183ffa5f8ca943ff1b53b5644ef1144d1160fd
41
- content-type:
41
+ content-type:
42
42
  - application/json; charset=utf-8
43
- pragma:
43
+ pragma:
44
44
  - no-cache
45
- x-ratelimit-class:
45
+ x-ratelimit-class:
46
46
  - api
47
- x-revision:
47
+ x-revision:
48
48
  - DEV
49
- expires:
49
+ expires:
50
50
  - Tue, 31 Mar 1981 05:00:00 GMT
51
- cache-control:
51
+ cache-control:
52
52
  - no-cache, no-store, must-revalidate, pre-check=0, post-check=0
53
- x-mid:
53
+ x-mid:
54
54
  - 664f93b9dd0e62b436dea81ad854e7310d6f4c9c
55
- x-ratelimit-reset:
55
+ x-ratelimit-reset:
56
56
  - "1309651839"
57
- set-cookie:
57
+ set-cookie:
58
58
  - k=24.136.206.3.1309651046043740; path=/; expires=Sat, 09-Jul-11 23:57:26 GMT; domain=.twitter.com
59
59
  - guest_id=v1%3A130965104604816168; domain=.twitter.com; path=/; expires=Tue, 02 Jul 2013 11:57:26 GMT
60
60
  - _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCKIOSe0wAToHaWQiJTRhNTE1OWU3NjRkZDgz%250AYzEyODk2Zjk5ZTJiZDc1NzMzIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--a0082ed72f3eb78dd6573a5f7d9aae68a6287f10; domain=.twitter.com; path=/; HttpOnly
61
- vary:
61
+ vary:
62
62
  - Accept-Encoding
63
- content-encoding:
63
+ content-encoding:
64
64
  - gzip
65
- content-length:
65
+ content-length:
66
66
  - "6051"
67
67
  body: !binary |
68
68
  H4sIAAAAAAAAA+1dC3PbNrb+K4g6s72dtWUABF+6s5M4dpImjZs0dm9u9+qO
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stratify-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,33 +9,33 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-05 00:00:00.000000000Z
12
+ date: 2012-04-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
16
- requirement: &70353741500320 !ruby/object:Gem::Requirement
16
+ requirement: &70171477765860 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.1.0
21
+ version: 3.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70353741500320
24
+ version_requirements: *70171477765860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: railties
27
- requirement: &70353745649160 !ruby/object:Gem::Requirement
27
+ requirement: &70171477749720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 3.1.0
32
+ version: 3.2.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70353745649160
35
+ version_requirements: *70171477749720
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rinku
38
- requirement: &70353754042740 !ruby/object:Gem::Requirement
38
+ requirement: &70171477743640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,43 +43,43 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70353754042740
46
+ version_requirements: *70171477743640
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: stratify-base
49
- requirement: &70353754155840 !ruby/object:Gem::Requirement
49
+ requirement: &70171477738140 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 0.1.3
54
+ version: 0.1.4
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70353754155840
57
+ version_requirements: *70171477738140
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: twitter
60
- requirement: &70353754405040 !ruby/object:Gem::Requirement
60
+ requirement: &70171477732460 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
64
64
  - !ruby/object:Gem::Version
65
- version: 1.5.0
65
+ version: 2.1.0
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70353754405040
68
+ version_requirements: *70171477732460
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: database_cleaner
71
- requirement: &70353754628480 !ruby/object:Gem::Requirement
71
+ requirement: &70171477858280 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
75
75
  - !ruby/object:Gem::Version
76
- version: 0.6.7
76
+ version: 0.7.2
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70353754628480
79
+ version_requirements: *70171477858280
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: fakeweb
82
- requirement: &70353754628000 !ruby/object:Gem::Requirement
82
+ requirement: &70171477962860 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,21 +87,32 @@ dependencies:
87
87
  version: 1.3.0
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70353754628000
90
+ version_requirements: *70171477962860
91
+ - !ruby/object:Gem::Dependency
92
+ name: rake
93
+ requirement: &70171477968780 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ~>
97
+ - !ruby/object:Gem::Version
98
+ version: 0.9.2
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *70171477968780
91
102
  - !ruby/object:Gem::Dependency
92
103
  name: rspec
93
- requirement: &70353754627540 !ruby/object:Gem::Requirement
104
+ requirement: &70171477971660 !ruby/object:Gem::Requirement
94
105
  none: false
95
106
  requirements:
96
107
  - - ~>
97
108
  - !ruby/object:Gem::Version
98
- version: 2.6.0
109
+ version: 2.9.0
99
110
  type: :development
100
111
  prerelease: false
101
- version_requirements: *70353754627540
112
+ version_requirements: *70171477971660
102
113
  - !ruby/object:Gem::Dependency
103
114
  name: vcr
104
- requirement: &70353754627000 !ruby/object:Gem::Requirement
115
+ requirement: &70171477975100 !ruby/object:Gem::Requirement
105
116
  none: false
106
117
  requirements:
107
118
  - - ~>
@@ -109,7 +120,7 @@ dependencies:
109
120
  version: 1.10.0
110
121
  type: :development
111
122
  prerelease: false
112
- version_requirements: *70353754627000
123
+ version_requirements: *70171477975100
113
124
  description: Twitter plugin for Stratify
114
125
  email:
115
126
  - jason@jasonrudolph.com