feed_us_grabber 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/README.rdoc +30 -30
  2. metadata +3 -3
data/README.rdoc CHANGED
@@ -2,24 +2,24 @@
2
2
 
3
3
  == ENVIRONEMNT
4
4
 
5
- To be used with Rails 3.x and Ruby 1.9x
5
+ To be used with Rails 3.x and Ruby 1.9x ....
6
6
 
7
7
  == INSTALLATION
8
-
9
- Follow these steps to download and install the feed_us_grabber gem
10
8
 
9
+ Follow these steps to download and install the feed_us_grabber gem
10
+
11
11
  1. In your rails application, edit your Gemfile to include:
12
12
  gem 'feed_us_grabber'
13
-
13
+
14
14
  2. Run bundle install from the command line (this will download the feed_us_grabber to your environment)
15
-
15
+
16
16
  3. Open config/routes.rb and add following line:
17
17
  match "rails_app/FeedUsGrabber" => "FeedUsGrabber#index"
18
18
  ** where rails_app is the root URL to your application. The match is case sensitive.
19
-
19
+
20
20
  4. Update environment.rb and include require 'net/http'
21
-
22
- 5. Your installation is complete
21
+
22
+ 5. Your installation is complete
23
23
 
24
24
  == USAGE
25
25
  1. Add following line to each controller (or app/controllers/application_controller.rb):
@@ -28,32 +28,32 @@ To be used with Rails 3.x and Ruby 1.9x
28
28
  2. Add following code inside your controllers actions:
29
29
  @grabber = feedUsGrabber(:FeedUsURL => '<FEED.US URL>',:FeedUsCacheInterval => FEED_INTERVAL, :FeedUsCacheIntervalLength => FEED_INTERVAL_LENGTH, :FeedUsCacheGroup => 'FEED CACHE GROUP NAME')
30
30
 
31
- If you want to use FeedUsGrabber inside action index under controller "test" add following code inside action index of "test" controller
31
+ If you want to use FeedUsGrabber inside action index under controller "test" add following code inside action index of "test" controller
32
32
 
33
- * Example 1
34
- def index
35
- @grabber = feedUsGrabber(:FeedUsURL => 'http://dev.render.feed.us/Feed.aspx?g=98397b1c-5494-de11-938c-00304891151d',:FeedUsCacheInterval => CI_DAYS, :FeedUsCacheIntervalLength => 2, :FeedUsCacheGroup => 'demo')
36
- end
33
+ * Example 1
34
+ def index
35
+ @grabber = feedUsGrabber(:FeedUsURL => 'http://dev.render.feed.us/Feed.aspx?g=98397b1c-5494-de11-938c-00304891151d',:FeedUsCacheInterval => CI_DAYS, :FeedUsCacheIntervalLength => 2, :FeedUsCacheGroup => 'demo')
36
+ end
37
37
 
38
- * Example 2 The most basic configuration is (Note you will replace the URL listed with the URL of your content from "Export" on Feed.Us):
38
+ * Example 2 The most basic configuration is (Note you will replace the URL listed with the URL of your content from "Export" on Feed.Us):
39
39
 
40
- def index
41
- @grabber = feedUsGrabber(:FeedUsURL => 'http://dev.render.feed.us/Feed.aspx?g=98397b1c-5494-de11-938c-00304891151d')
42
- end
43
-
44
- 3. Inside the view of the action add the following code to render your content
45
- <%= feedUsGrabberRender @grabber %>
40
+ def index
41
+ @grabber = feedUsGrabber(:FeedUsURL => 'http://dev.render.feed.us/Feed.aspx?g=98397b1c-5494-de11-938c-00304891151d')
42
+ end
46
43
 
47
- Example
48
- index.erb of "test" looks like
49
- <table>
50
- <tr>
51
- <td width='20%'>
52
- <%= feedUsGrabberRender @grabber %>
53
- </td>
54
- <td> Some text </td>
55
- </tr>
56
- </table>
44
+ 3. Inside the view of the action add the following code to render your content
45
+ <%= feedUsGrabberRender @grabber %>
46
+
47
+ Example
48
+ index.erb of "test" looks like
49
+ <table>
50
+ <tr>
51
+ <td width='20%'>
52
+ <%= feedUsGrabberRender @grabber %>
53
+ </td>
54
+ <td> Some text </td>
55
+ </tr>
56
+ </table>
57
57
 
58
58
  == CLEARING CACHE
59
59
  To clear cache goto following url
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feed_us_grabber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-19 00:00:00.000000000 Z
12
+ date: 2012-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
@@ -124,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  segments:
126
126
  - 0
127
- hash: -293201279
127
+ hash: -549994001
128
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements: