jsl-feedtosis 0.0.3.5 → 0.0.3.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.rdoc +5 -12
- data/feedtosis.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -49,7 +49,11 @@ have received a full XML response from the server suitable for being parsed
|
|
49
49
|
into entries. In this case, methods such as +entries+ on the Feedtosis::Result
|
50
50
|
will return +nil+. Depending on your application logic, you may want to inspect
|
51
51
|
the methods that are delegated to the Curl::Easy object, such as +response_code+,
|
52
|
-
for more information on what happened in these cases.
|
52
|
+
for more information on what happened in these cases.
|
53
|
+
|
54
|
+
Remember that a response code of 304 means "Not Modified". In this case, you should
|
55
|
+
expect "entries" and "new_entries" to be nil, since the resource wasn't downloaded
|
56
|
+
according to the logic of HTTP conditional GET.
|
53
57
|
|
54
58
|
On subsequent requests of a particular resource, Feedtosis will update
|
55
59
|
+new_entries+ to contain the feed entries that we haven't seen yet. In most
|
@@ -82,17 +86,6 @@ Generally, Feedtosis supports all systems supported by Moneta, and any one
|
|
82
86
|
of the supported systems can be given to the +moneta_klass+ parameter. Other
|
83
87
|
options following +backend+ are passed directly to Moneta for configuration.
|
84
88
|
|
85
|
-
== Feedtosis Fetch Results
|
86
|
-
|
87
|
-
The results of the Feedtosis Fetch will be a Feedtosis::Result object. You can call
|
88
|
-
"entries" and "new_entries" on this object. It also delegates methods to the curb object
|
89
|
-
so that you can inspect the HTTP response if necessary.
|
90
|
-
|
91
|
-
Note that if you find entries and new_entries to be nil it isn't necessarily indicative of an
|
92
|
-
error condition - it may just be that the resource wasn't downloaded since it wasn't modified
|
93
|
-
from the previous fetch! To determine if this was the case, call the method "response_code"
|
94
|
-
on the Results object. If the code is 304 (Not Modified), it means that it used HTTP conditional
|
95
|
-
GET to determine that the resource wasn't worth downloading as it contained no new information.
|
96
89
|
|
97
90
|
== Implementation
|
98
91
|
|
data/feedtosis.gemspec
CHANGED