radiant-twitter-extension 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module RadiantTwitterExtension
|
|
2
|
-
VERSION = '2.0.
|
|
2
|
+
VERSION = '2.0.2'
|
|
3
3
|
SUMMARY = %q{Twitter posting and radius tags for twitter feeds.}
|
|
4
4
|
DESCRIPTION = %q{Posts notification of pages to Twitter and provides radiius tags to display the results of twitter searches.}
|
|
5
5
|
URL = "http://github.com/radiant/radiant-twitter-extension"
|
data/lib/twitter_tags.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require 'twitter'
|
|
2
|
+
require 'time'
|
|
2
3
|
|
|
3
4
|
module TwitterTags
|
|
4
5
|
include ActionView::Helpers::DateHelper
|
|
@@ -222,7 +223,7 @@ module TwitterTags
|
|
|
222
223
|
|
|
223
224
|
[:date, :created_at].each do |method|
|
|
224
225
|
desc %{
|
|
225
|
-
renders the
|
|
226
|
+
renders the #{method} timestamp of the tweet
|
|
226
227
|
<pre><code><r:tweet:#{method.to_s} [format="%c"]/></code></pre>
|
|
227
228
|
}
|
|
228
229
|
tag "tweet:#{method.to_s}" do |tag|
|
|
@@ -300,7 +301,7 @@ module TwitterTags
|
|
|
300
301
|
}
|
|
301
302
|
tag 'tweet:permalink' do |tag|
|
|
302
303
|
cssclass = tag.attr['class'] || 'twitter_permalink'
|
|
303
|
-
text = tag.double? ? tag.expand : I18n.l(tag.locals.tweet.created_at, :twitter)
|
|
304
|
+
text = tag.double? ? tag.expand : I18n.l(DateTime.parse(tag.locals.tweet.created_at), :format => :twitter)
|
|
304
305
|
%{<a class="#{cssclass}" href="http://twitter.com/#!/#{screen_name}/status/#{tweet.id_str}">#{text}</a>}
|
|
305
306
|
end
|
|
306
307
|
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: radiant-twitter-extension
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 2
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 2.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 2.0.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Sean Cribbs
|
|
@@ -18,7 +18,7 @@ autorequire:
|
|
|
18
18
|
bindir: bin
|
|
19
19
|
cert_chain: []
|
|
20
20
|
|
|
21
|
-
date: 2011-
|
|
21
|
+
date: 2011-11-01 00:00:00 Z
|
|
22
22
|
dependencies:
|
|
23
23
|
- !ruby/object:Gem::Dependency
|
|
24
24
|
name: twitter
|
|
@@ -76,6 +76,7 @@ files:
|
|
|
76
76
|
- public/images/twitter/bird.png
|
|
77
77
|
- public/images/twitter/sprite.png
|
|
78
78
|
- public/stylesheets/sass/twitter.sass
|
|
79
|
+
- radiant-twitter-extension-2.0.1.gem
|
|
79
80
|
- radiant-twitter-extension.gemspec
|
|
80
81
|
- Rakefile
|
|
81
82
|
- README.md
|
|
@@ -90,7 +91,7 @@ files:
|
|
|
90
91
|
homepage: http://github.com/radiant/radiant-twitter-extension
|
|
91
92
|
licenses: []
|
|
92
93
|
|
|
93
|
-
post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-twitter-extension', :version => '~>2.0.
|
|
94
|
+
post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-twitter-extension', :version => '~>2.0.2'\n "
|
|
94
95
|
rdoc_options: []
|
|
95
96
|
|
|
96
97
|
require_paths:
|