webarchive 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +47 -0
- data/lib/webarchive.rb +1 -1
- data/lib/webarchive/version.rb +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ea626a8537199a8b4f730e4ab84eee077ca1e25f313e9d462ecee76a4092f56
|
4
|
+
data.tar.gz: 60947d9c28e327f0d13dffbc3bfab081c9abe6f6159a6ede5862a2b018ae6435
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c562804e40aa5974ba89431bdccc6d539e9b29779bf5eb081f62e9a8c852c0ba189a5e2f8d4bd85d085b3ff125a851f939426bfe86fe6317badee455e979290
|
7
|
+
data.tar.gz: 30f27ce0947b62e359f91f9c0507742a3e829fdb90cd5a2cfbd585f8f0d0740e085b23342b97a9fb3c30341f1895552b1de61b5593dfc94da61496b945ac60ec
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
Copyright © 2019 Yusuke Matsubara <whym@whym.org>
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the “Software”), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in
|
12
|
+
all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
20
|
+
THE SOFTWARE.
|
21
|
+
|
data/README.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# Webarchive
|
2
|
+
|
3
|
+
This is a CUI tool for sending URIs to public web archiving tools such as web.archive.org and archive.today.
|
4
|
+
|
5
|
+
Requests are throttled.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Use this line to install it:
|
10
|
+
|
11
|
+
$ gem install webarchive
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
Launch it with
|
16
|
+
|
17
|
+
$ webarchive
|
18
|
+
|
19
|
+
and enter URIs from the standard input.
|
20
|
+
|
21
|
+
If you have a list of URIs in a file, use pipe.
|
22
|
+
|
23
|
+
$ cat list.txt | webarchive
|
24
|
+
|
25
|
+
It has optional command-line parameters:
|
26
|
+
|
27
|
+
$ webarchive -h
|
28
|
+
|
29
|
+
Usage: webarchive [options]
|
30
|
+
-w, --wait=SECS wait for SECS before sending a request
|
31
|
+
-d, --debug add debug output, implies verbose
|
32
|
+
--verbose
|
33
|
+
--version
|
34
|
+
|
35
|
+
## Development
|
36
|
+
|
37
|
+
After checking out the repo, run `bundle install` to install dependencies. Then, run `rake spec` to run the tests.
|
38
|
+
|
39
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
40
|
+
|
41
|
+
## Contributing
|
42
|
+
|
43
|
+
Bug reports and pull requests are welcome at https://gitlab.com/yusuke.matsubara/webarchive.
|
44
|
+
|
45
|
+
## License
|
46
|
+
|
47
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/webarchive.rb
CHANGED
@@ -138,7 +138,7 @@ module WebArchive
|
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
141
|
-
HISTORY_FILE = '~/.
|
141
|
+
HISTORY_FILE = '~/.webarchive_history'
|
142
142
|
|
143
143
|
def self.launch(wait_secs: 1, debug: false, verbose: false, redirect: false, canonical_uri: true)
|
144
144
|
verbose = true if debug
|
data/lib/webarchive/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webarchive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yusuke Matsubara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -129,14 +129,16 @@ executables:
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- LICENSE
|
133
|
+
- README.md
|
132
134
|
- bin/webarchive
|
133
135
|
- lib/webarchive.rb
|
134
136
|
- lib/webarchive/version.rb
|
135
|
-
homepage: https://rubygems.org/gems/
|
137
|
+
homepage: https://rubygems.org/gems/webarchive
|
136
138
|
licenses:
|
137
139
|
- MIT
|
138
140
|
metadata:
|
139
|
-
homepage_uri: https://rubygems.org/gems/
|
141
|
+
homepage_uri: https://rubygems.org/gems/webarchive
|
140
142
|
source_code_uri: https://gitlab.com/yusuke.matsubara/webarchive
|
141
143
|
post_install_message:
|
142
144
|
rdoc_options: []
|
@@ -144,9 +146,9 @@ require_paths:
|
|
144
146
|
- lib
|
145
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
146
148
|
requirements:
|
147
|
-
- - "
|
149
|
+
- - "~>"
|
148
150
|
- !ruby/object:Gem::Version
|
149
|
-
version: '0'
|
151
|
+
version: '2.0'
|
150
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
153
|
requirements:
|
152
154
|
- - ">="
|