tweetwall 0.0.5 → 0.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.
- data/README.md +4 -2
- data/lib/tweetwall.rb +5 -0
- data/lib/tweetwall/version.rb +1 -1
- data/tweetwall.gemspec +2 -1
- metadata +15 -4
data/README.md
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
# Tweetwall
|
2
2
|
|
3
3
|
This Gem makes it very wasy to add a Tweet Wall of Twitter feeds for a particular Twitter user
|
4
|
-
on your web application.
|
4
|
+
on your web application. This Gem takes care of making the hyperlinks, usernames, and hash tags
|
5
|
+
clickable.
|
5
6
|
|
6
7
|
## Installation
|
7
8
|
|
8
|
-
Add
|
9
|
+
Add these lines to your application's Gemfile:
|
9
10
|
|
11
|
+
gem "twitter"
|
10
12
|
gem 'tweetwall'
|
11
13
|
|
12
14
|
And then execute:
|
data/lib/tweetwall.rb
CHANGED
@@ -43,6 +43,11 @@ module Tweetwall
|
|
43
43
|
if word.start_with?("@")
|
44
44
|
tweet_html = tweet_html.gsub(word, '<a href="http://www.twitter.com/#!/' + word.gsub(/\W$/, "").gsub("@", "") + '" target="_blank">' + word + '</a>')
|
45
45
|
end
|
46
|
+
|
47
|
+
# make the hashtag clickable
|
48
|
+
if word.start_with?("#")
|
49
|
+
tweet_html = tweet_html.gsub(word, '<a href="https://twitter.com/#!/search/' + word.gsub("#", "%23") + '">' + word + '</a>')
|
50
|
+
end
|
46
51
|
end
|
47
52
|
|
48
53
|
tweet_content = tweet_content + '<div class="tweet_line">'
|
data/lib/tweetwall/version.rb
CHANGED
data/tweetwall.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["matthew@grigajtis.org"]
|
7
7
|
gem.description = %q{This Gem makes it very easy to add a wall of Tweets from a Twitter User in your web application.}
|
8
8
|
gem.summary = %q{Easily add a Tweet Wall.}
|
9
|
-
gem.homepage = ""
|
9
|
+
gem.homepage = "https://github.com/mgrigajtis/tweetwall"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -14,4 +14,5 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.name = "tweetwall"
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Tweetwall::VERSION
|
17
|
+
gem.add_development_dependency "twitter"
|
17
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tweetwall
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,19 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
13
|
-
dependencies:
|
12
|
+
date: 2012-06-17 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: twitter
|
16
|
+
requirement: &2158464520 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2158464520
|
14
25
|
description: This Gem makes it very easy to add a wall of Tweets from a Twitter User
|
15
26
|
in your web application.
|
16
27
|
email:
|
@@ -27,7 +38,7 @@ files:
|
|
27
38
|
- lib/tweetwall.rb
|
28
39
|
- lib/tweetwall/version.rb
|
29
40
|
- tweetwall.gemspec
|
30
|
-
homepage:
|
41
|
+
homepage: https://github.com/mgrigajtis/tweetwall
|
31
42
|
licenses: []
|
32
43
|
post_install_message:
|
33
44
|
rdoc_options: []
|