radiant-twitter-extension 2.0.5 → 2.0.6

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.
@@ -4,5 +4,6 @@ Radiant.config do |config|
4
4
  twit.define 'password', :default => '', :allow_blank => true
5
5
  twit.define 'token', :default => '', :allow_blank => true
6
6
  twit.define 'secret', :default => '', :allow_blank => true
7
+ twit.define 'include_rts?', :default => true
7
8
  end
8
9
  end
@@ -1,5 +1,5 @@
1
1
  module RadiantTwitterExtension
2
- VERSION = '2.0.5'
2
+ VERSION = '2.0.6'
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
@@ -351,11 +351,13 @@ private
351
351
  # other options are passed through (to non-search calls) unchanged.
352
352
  #
353
353
  def fetch_and_cache_tweets(options = {})
354
- max = options.delete(:max) || 10
354
+ options.reverse_merge! :include_rts => Radiant.config['twitter.include_rts?']
355
355
  user = options.delete(:username) || Radiant.config['twitter.username']
356
356
  list = options.delete(:list) || Radiant.config['twitter.listname']
357
357
  search = options.delete(:search)
358
+ max = options.delete(:max) || 10
358
359
  options[:count] ||= max
360
+
359
361
  cache_key = ['twitter', list, user, max, search].compact.join('_')
360
362
  begin
361
363
  tweets = Rails.cache.fetch(cache_key,:expires_in => twitter_cache_duration) do
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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 5
10
- version: 2.0.5
9
+ - 6
10
+ version: 2.0.6
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-11-02 00:00:00 Z
21
+ date: 2011-11-08 00:00:00 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: twitter
@@ -76,7 +76,6 @@ 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
80
79
  - radiant-twitter-extension.gemspec
81
80
  - Rakefile
82
81
  - README.md
@@ -91,7 +90,7 @@ files:
91
90
  homepage: http://github.com/radiant/radiant-twitter-extension
92
91
  licenses: []
93
92
 
94
- post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-twitter-extension', :version => '~>2.0.5'\n "
93
+ post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-twitter-extension', :version => '~>2.0.6'\n "
95
94
  rdoc_options: []
96
95
 
97
96
  require_paths: