argh_ss 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/argh_ss/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 339e0a8a2d4d2a35a25e72756643f7c80b33ef34
|
4
|
+
data.tar.gz: e126aad22a9a5b20b20038e69c6c14ebda892fb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb5482a6b5c943d51994bed6a6c3ba2143d6e9ceaabad48a1b0f28f42c32ed62e9eb9ee1053fdd929e7063fefa6a7ac124417f3d4e69f74088d99871e606450d
|
7
|
+
data.tar.gz: 48d8a6847a7e6cffda8954a461f99fc93b636cae6d6639b95fff7b49448b88b293752343e731827d1cfc0bf7a4b4bf91d589a965b341831b8259916b24f0f6ae
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ Or install it yourself as:
|
|
21
21
|
|
22
22
|
## RSS Feeds
|
23
23
|
|
24
|
-
2 options for RSS feeds, RSSFeed.feed and RSSFeed.
|
24
|
+
2 options for RSS feeds, RSSFeed.feed and RSSFeed.options_feed
|
25
25
|
|
26
26
|
To output a simple hash with the feed title and feed url:
|
27
27
|
|
@@ -50,7 +50,7 @@ To give you more options you can output an array with a hash of your options:
|
|
50
50
|
|
51
51
|
```ruby
|
52
52
|
url = "https://www.theguardian.com/world/rss"
|
53
|
-
RSSFeed.
|
53
|
+
RSSFeed.options_feed(url)
|
54
54
|
```
|
55
55
|
|
56
56
|
By default, the options will give you: :title, :link, :content, :published.
|
@@ -58,7 +58,7 @@ But, you can choose your options. For example, if you only wanted the title, lin
|
|
58
58
|
|
59
59
|
```ruby
|
60
60
|
url = "https://www.theguardian.com/world/rss"
|
61
|
-
RSSFeed.
|
61
|
+
RSSFeed.options_feed(url, :title, :link, :content)
|
62
62
|
```
|
63
63
|
|
64
64
|
|
@@ -71,7 +71,8 @@ file = "./my_important.opml"
|
|
71
71
|
OPMLImport.new(file).to_hash
|
72
72
|
```
|
73
73
|
|
74
|
-
Note, opml import will be in perpetual alpha due to low use
|
74
|
+
*Note, opml import will be in perpetual alpha due to low use.*
|
75
|
+
|
75
76
|
The gem is designed to skip over errors, so if you have an RSS feed url that isn't standard, or an OPML file that doesn't proprly parse with nokogiri, it will fail quietly and move on.
|
76
77
|
|
77
78
|
## License
|
data/lib/argh_ss/version.rb
CHANGED