twitterfeed 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -15,9 +15,9 @@ Add this line to your application's Gemfile:
15
15
 
16
16
  Just install and go!
17
17
 
18
- ### Rails pre-3.1 or no asset piplie
18
+ ### Rails pre-3.1 or no asset pipeline
19
19
 
20
- rails generate twitterfeed
20
+ rails generate twitterfeed
21
21
 
22
22
  ### In your view
23
23
 
Binary file
@@ -37,12 +37,18 @@
37
37
 
38
38
  #twitterfeed_handle {
39
39
  margin-bottom: 5px;
40
+ color: black;
40
41
  }
41
42
 
42
43
  #twitterfeed_handle a{
43
44
  font-weight: bold;
44
- color: blue;
45
+ color: black;
45
46
  }
47
+
48
+ #twitterfeed_handle a:hover{
49
+ color: #1ba09f;
50
+ font-style: underline;
51
+ }
46
52
 
47
53
  .twitterfeed_time{
48
54
  float: right;
data/lib/twitterfeed.rb CHANGED
@@ -28,7 +28,7 @@ module Twitterfeed
28
28
  "pic_url" => tweet.user.nil? ? tweet.profile_image_url_https : tweet.user.profile_image_url_https
29
29
  }
30
30
  end
31
- File.open('tmp/twitterfeed.yml', 'w') {|f| f.write(tweet_array.to_yaml) }
31
+ File.open('twitterfeed.yml', 'w') {|f| f.write(tweet_array.to_yaml) }
32
32
  end
33
33
 
34
34
  end
@@ -1,3 +1,3 @@
1
1
  module Twitterfeed
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -4,7 +4,7 @@ module Twitterfeed
4
4
  module ViewHelpers
5
5
  def twitterfeed(name_array)
6
6
 
7
- twitterfeed_data = YAML.load(File.open("tmp/twitterfeed.yml", 'w+'))
7
+ twitterfeed_data = YAML.load(File.open("twitterfeed.yml", 'w+'))
8
8
 
9
9
  #initializing cron type system. This will determine how often data is retrieved from twitter to not go over
10
10
  #Twitter API's 150 request per hour limit. The frequency is determined from how many twitter handles are being
@@ -14,7 +14,7 @@ module Twitterfeed
14
14
  Twitterfeed.update_twitterfeed(twitterfeed_data, name_array)
15
15
  end
16
16
 
17
- twitterfeed_data = YAML.load(File.open("tmp/twitterfeed.yml"))
17
+ twitterfeed_data = YAML.load(File.open("twitterfeed.yml"))
18
18
  #removing update time from array
19
19
  twitterfeed_data.slice!(0)
20
20
  render :partial => "twitterfeed/twitterfeed_box", :locals => { :tweet_array => twitterfeed_data}
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: twitterfeed
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.4
5
+ version: 0.1.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mark Capodagli
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-06-04 00:00:00 Z
13
+ date: 2012-06-19 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: twitter