feedbag 0.10 → 0.10.1
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.
- checksums.yaml +5 -5
- data/COPYING +1 -1
- data/README.markdown +4 -0
- data/lib/feedbag.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 221831541154a34ade903d403c0c546cd01d7a683c69d27dee92eadd9c6bd2be
|
|
4
|
+
data.tar.gz: a633436162c4eb75fcb7222267d533a4bc05fa08506e55bd66865eb2b6bf29a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d18f37165eb5b0d8ee2095bc6f0d0e7356b8b4247722cb02d115899664fbb97898b4d216ff52f0691c63d5c828e0ddd6c4cdc1bf61e9ae37963e19b3ee641c75
|
|
7
|
+
data.tar.gz: 77c58a1de3a75ec6d0075d2ac98893d47a8711250fdb48259fab329e846424532ebb3858bef3f5923f18a2b75a029da52e7eb5cb144d26b4964bf6f0f09d843a
|
data/COPYING
CHANGED
data/README.markdown
CHANGED
|
@@ -37,6 +37,10 @@ You can also use the command line tool for quick queries, if you install the gem
|
|
|
37
37
|
- Because it's a single file you can embed easily in your application.
|
|
38
38
|
- Because it's faster than anything else.
|
|
39
39
|
|
|
40
|
+
### Web Service
|
|
41
|
+
|
|
42
|
+
Now you can also POST directly into an AWS Lambda function webservice that runs `Feedbag.find()`. Don't overuse it. It's [here](https://github.com/damog/aws-lambda-feedbag).
|
|
43
|
+
|
|
40
44
|
### Author
|
|
41
45
|
|
|
42
46
|
[David Moreno](http://damog.net/) <[damog@damog.net](mailto:damog@damog.net)>.
|
data/lib/feedbag.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/ruby
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2008-2019 David Moreno <
|
|
3
|
+
# Copyright (c) 2008-2019 David Moreno <damog@damog.net>
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
# a copy of this software and associated documentation files (the
|
|
@@ -97,7 +97,7 @@ class Feedbag
|
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
begin
|
|
100
|
-
html = open(url, :allow_redirections => :all) do |f|
|
|
100
|
+
html = URI.open(url, :allow_redirections => :all) do |f|
|
|
101
101
|
content_type = f.content_type.downcase
|
|
102
102
|
if content_type == "application/octet-stream" # open failed
|
|
103
103
|
content_type = f.meta["content-type"].gsub(/;.*$/, '')
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: feedbag
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 0.10.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Moreno
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -127,8 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
127
127
|
- !ruby/object:Gem::Version
|
|
128
128
|
version: '0'
|
|
129
129
|
requirements: []
|
|
130
|
-
|
|
131
|
-
rubygems_version: 2.6.11
|
|
130
|
+
rubygems_version: 3.1.4
|
|
132
131
|
signing_key:
|
|
133
132
|
specification_version: 4
|
|
134
133
|
summary: RSS/Atom feed auto-discovery tool
|