twitterfeed 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/twitterfeed.rb CHANGED
@@ -1,5 +1,12 @@
1
- require "twitterfeed/version"
2
1
 
3
2
  module Twitterfeed
4
- # Your code goes here...
3
+
4
+ require 'twitterfeed/railtie' if defined?(Rails)
5
+
6
+
7
+
8
+ def self.ung(string)
9
+ "hello hi #{string}"
10
+ end
11
+
5
12
  end
@@ -0,0 +1 @@
1
+ = "hello gents"
@@ -0,0 +1,14 @@
1
+ require 'twitterfeed/view_helpers'
2
+
3
+ module Twitterfeed
4
+ class Railtie < Rails::Railtie
5
+ initializer "application_controller.initialize_twitterfeed" do
6
+ ActiveSupport.on_load(:action_controller) do
7
+ include Twitterfeed
8
+ end
9
+
10
+ ActionView::Base.send :include, ViewHelpers
11
+ end
12
+
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Twitterfeed
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,9 @@
1
+ module Twitterfeed
2
+ module ViewHelpers
3
+ def twitterfeed(user)
4
+ Twitter.user_timeline(user).each do |tweet|
5
+ content_tag :pre, tweet.text
6
+ end
7
+ end
8
+ end
9
+ end
data/twitterfeed.gemspec CHANGED
@@ -14,4 +14,6 @@ Gem::Specification.new do |gem|
14
14
  gem.name = "twitterfeed"
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Twitterfeed::VERSION
17
+ gem.add_dependency 'twitter', '> 2.2.0'
18
+
17
19
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitterfeed
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mark Capodagli
@@ -15,9 +15,24 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-02 00:00:00 Z
19
- dependencies: []
20
-
18
+ date: 2012-05-03 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: twitter
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">"
27
+ - !ruby/object:Gem::Version
28
+ hash: 7
29
+ segments:
30
+ - 2
31
+ - 2
32
+ - 0
33
+ version: 2.2.0
34
+ type: :runtime
35
+ version_requirements: *id001
21
36
  description: Create a nice twitter feed of any specified set of members
22
37
  email:
23
38
  - pimea.mark@gmail.com
@@ -34,7 +49,10 @@ files:
34
49
  - README.md
35
50
  - Rakefile
36
51
  - lib/twitterfeed.rb
52
+ - lib/twitterfeed/_lolz.html.haml
53
+ - lib/twitterfeed/railtie.rb
37
54
  - lib/twitterfeed/version.rb
55
+ - lib/twitterfeed/view_helpers.rb
38
56
  - twitterfeed.gemspec
39
57
  homepage: ""
40
58
  licenses: []