feedbag 0.10.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/COPYING +1 -1
  3. data/README.markdown +0 -4
  4. data/lib/feedbag.rb +2 -22
  5. metadata +31 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90acb0f6598522043d717b5fbba5f9675408b4f06c45659416a02581d64adecb
4
- data.tar.gz: 71077f0a64463a4cae1bb8bd6d3af48bdf2efd9afdfecc1b5041161c97e1c638
3
+ metadata.gz: 43f044f914e64cb4abe7875271264f04d32c31730794340d41c116eb7e558b47
4
+ data.tar.gz: 61573a0de3b81e8bed311bd4049519034f8d8345b6612f8d82a8599f665698e1
5
5
  SHA512:
6
- metadata.gz: faa0ef3f90c3fb9d73f6f64253f6a3e7a3ecc4be7220017277a2c8d598b82ec09209b85cfcc39077925fd801e8034e98835a4514d1a8cc899d63a65c2a8c254c
7
- data.tar.gz: 31ec8d217ac7b30f6180ac3c9447ef3f79cdb8a2baea2aee9d1e96dc203d7366af2ae494287fb4cc8291c57a7aa0537bcb677c5db2ae639d8da62990985e1cd0
6
+ metadata.gz: 375f6073c54ca181cca5277742a1b0353349d7aa6bf1a1491639cc5dc647903af8043aaedc28c0d16cf3ea263cf1bf1844928e7eb2b740da7f2618834780452f
7
+ data.tar.gz: 391142db8443a2601a7696868824027f791feaf13c7a585adc319722f1ae2ddaad4d36b23f8478e5d86fd20400ce721092d7c579f933916245cfe836c4d19a58
data/COPYING CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2008-2021 David Moreno <damog@damog.net>
1
+ Copyright (C) 2008-2022 David Moreno <damog@damog.net> et al.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.markdown CHANGED
@@ -62,10 +62,6 @@ You can find the other options to OpenURI [here](https://rubyapi.org/o/openuri/o
62
62
  - Because it's a single file you can embed easily in your application.
63
63
  - Because it's faster than anything else.
64
64
 
65
- ### Web Service
66
-
67
- 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).
68
-
69
65
  ### Author
70
66
 
71
67
  [David Moreno](http://damog.net/) <[damog@damog.net](mailto:damog@damog.net)>.
data/lib/feedbag.rb CHANGED
@@ -1,25 +1,6 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
- # Copyright (c) 2008-2019 David Moreno <damog@damog.net>
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining
6
- # a copy of this software and associated documentation files (the
7
- # "Software"), to deal in the Software without restriction, including
8
- # without limitation the rights to use, copy, modify, merge, publish,
9
- # distribute, sublicense, and/or sell copies of the Software, and to
10
- # permit persons to whom the Software is furnished to do so, subject to
11
- # the following conditions:
12
- #
13
- # The above copyright notice and this permission notice shall be
14
- # included in all copies or substantial portions of the Software.
15
- #
16
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3
+ # See COPYING before using this software.
23
4
 
24
5
  require "rubygems"
25
6
  require "nokogiri"
@@ -27,7 +8,7 @@ require "open-uri"
27
8
  require "net/http"
28
9
 
29
10
  class Feedbag
30
- VERSION = '0.10.2'
11
+ VERSION = '1.0.0'
31
12
  CONTENT_TYPES = [
32
13
  'application/x.atom+xml',
33
14
  'application/atom+xml',
@@ -168,7 +149,6 @@ class Feedbag
168
149
  end
169
150
 
170
151
  def looks_like_feed?(url)
171
- puts url
172
152
  if url =~ /(\.(rdf|xml|rss)(\?([\w'\-%]?(=[\w'\-%.]*)?(&|#|\+|\;)?)+)?(:[\w'\-%]+)?$|feed=(rss|atom)|(atom|feed)\/?$)/i
173
153
  true
174
154
  else
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: 0.10.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Moreno
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-28 00:00:00.000000000 Z
11
+ date: 2022-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -92,6 +92,34 @@ dependencies:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
94
  version: '11'
95
+ - !ruby/object:Gem::Dependency
96
+ name: rake
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '12'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '12'
109
+ - !ruby/object:Gem::Dependency
110
+ name: test-unit
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '3'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '3'
95
123
  description: Ruby's favorite feed auto-discovery tool
96
124
  email: damog@damog.net
97
125
  executables:
@@ -127,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
155
  - !ruby/object:Gem::Version
128
156
  version: '0'
129
157
  requirements: []
130
- rubygems_version: 3.1.4
158
+ rubygems_version: 3.3.7
131
159
  signing_key:
132
160
  specification_version: 4
133
161
  summary: RSS/Atom feed auto-discovery tool