radiant-twitter-extension 2.0.4 → 2.0.5

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.4'
2
+ VERSION = '2.0.5'
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"
@@ -277,7 +277,7 @@ module TwitterTags
277
277
  }
278
278
  tag 'tweet:avatar' do |tag|
279
279
  url = tag.locals.tweet.profile_image_url || tag.render('tweet:user:profile_image_url')
280
- %{<img src="#{url}" class="twitter_avatar" />}
280
+ %{<img src="#{url}" alt="twitter avatar" class="twitter_avatar" />}
281
281
  end
282
282
 
283
283
  desc %{
@@ -301,8 +301,10 @@ module TwitterTags
301
301
  }
302
302
  tag 'tweet:permalink' do |tag|
303
303
  cssclass = tag.attr['class'] || 'twitter_permalink'
304
- text = tag.double? ? tag.expand : I18n.l(DateTime.parse(tag.locals.tweet.created_at), :format => :twitter)
305
- %{<a class="#{cssclass}" href="http://twitter.com/#!/#{tag.locals.tweet.screen_name}/status/#{tag.locals.tweet.id_str}">#{text}</a>}
304
+ tweet = tag.locals.tweet
305
+ screen_name = tweet.from_user || tweet.user.screen_name # search returns a different data structure
306
+ text = tag.double? ? tag.expand : I18n.l(DateTime.parse(tweet.created_at), :format => :twitter)
307
+ %{<a class="#{cssclass}" href="http://twitter.com/#!/#{screen_name}/status/#{tweet.id_str}">#{text}</a>}
306
308
  end
307
309
 
308
310
  desc %{
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 4
10
- version: 2.0.4
9
+ - 5
10
+ version: 2.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Cribbs
@@ -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.5.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.4'\n "
94
+ post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-twitter-extension', :version => '~>2.0.5'\n "
94
95
  rdoc_options: []
95
96
 
96
97
  require_paths: