sutch-anemone 0.7.2.1 → 0.7.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGEwMGMxZjNmMDdkNmUxNmU3ZGM2ZTNiNDAzMmRhZDlhNzQ1MmIyYg==
4
+ MmZiYWJiZTc0MzczZTk3YWViMjZiNjQ3OTFlMmFmOWIxMTgyNTg3OQ==
5
5
  data.tar.gz: !binary |-
6
- ZTcxMGJlZTgyNmEzY2U4OTA3MmUxYTY1MjQwYjRmYWViNzhmODhiMA==
6
+ YzBiMWI1NGJhNGVjNWVhOWYxM2M0NWFiNWM0YTg0ZjVhZjEzMjJjYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTFhOWRjMzk5NjE4MmU4Zjk5ODYyNmQzN2U2OWRiZGQ0OWI0YTE0NmNiMzhi
10
- MTQ5MmQwOWUyYWJjMDkxYTBmY2RiN2QwOTAwYmI3YzY1NjM2YWI0ZTU2ZDAy
11
- OGI2YjJmMjUwYmRhZjNlYWI3ZjYxMzAxNzdlOWQzYzQwNDZiZjA=
9
+ NzdjZGI5OGJhMTc2NTMzMzMyODUzNmM4ZmY4OTY4N2VhODg4YWMxNTUzZjQ2
10
+ YjY3ZmIxZTcwYTg3NGY4N2Q5MWU5ODFhNGYwZDY3NzBkMDIxMTRlMTZmMTUz
11
+ Y2Y0YjdlMDM3NWUyODBhZTIwMzBmZWI5YjZkYjhlZjljZTgxNmU=
12
12
  data.tar.gz: !binary |-
13
- M2ZkNzkyZmNmMTNkMDJkYjc2ODIwNWNlOGM3OTdlOWFkZjJmMjg1ZTJiYzkz
14
- YmVlYTYzZGNlZDA0M2I5MzA4MTk5NjVmYmI5ZDBhOTg0MGVlODE2ZjYyNmRm
15
- MDAyZTVhNDc0NWU2M2I0YzM1ZmRhZWFkOTMxNjZjNmNmZmQwOWU=
13
+ YmVhYjA1NjE2MDhkNjUzYTFmZmYzMzY4OGM4NTEyZjJkZmMwYjJmNzM0MDJj
14
+ OGY2MGZlYWIzZWVmODFmNWJhNmQwOTE1YTNmMWM0YWI3YjY1ODYwNmUxMjZl
15
+ NmQwNWI0MjY5ZjMxYzc5MGUyYjU5Yzk4ZDliZmRlYjAxOTY1NTc=
@@ -2,6 +2,7 @@
2
2
 
3
3
  == sutch's branch
4
4
 
5
+ * Improved removal of fragments from URLs (now handles other characters in fragment)
5
6
  * Changed SQLite3 timeout to allow for other clients to read from database
6
7
  * Changed for wmonk: allow restarting of spider by not checking starting URLs
7
8
  * Added Anemone::Resource to provide for spidering of resources other than HTML pages
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.7.2.2
@@ -154,7 +154,7 @@ module Anemone
154
154
  return nil if link.nil?
155
155
 
156
156
  # remove anchor
157
- link = URI.encode(URI.decode(link.to_s.gsub(/#[a-zA-Z0-9_-]*$/,'')))
157
+ link = URI.encode(URI.decode(link.to_s.sub(/##{URI(link).fragment}$/,'')))
158
158
 
159
159
  relative = URI(link)
160
160
  absolute = base ? base.merge(relative) : @url.merge(relative)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sutch-anemone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2.1
4
+ version: 0.7.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Kite (Dennis Sutch's fork)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-04 00:00:00.000000000 Z
11
+ date: 2013-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri