tsumanne 0.0.4 → 0.0.5
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 +4 -4
- data/README.md +38 -0
- data/lib/tsumanne/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d25bbfc2042888825642c67715dee6e0b5a737cf7715d76ef29b4c5abf0a62b
|
|
4
|
+
data.tar.gz: a3dbae3b152ebc8ea2864b67c42fe07c03aa76defbfba80ab17793a96d961862
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 698eb403829baa6c99cd43d90eb2b1fc989ba438b1038fc14afc0b522d086bf4d3db06ab2a286344a2b702aa3989dd555660da8f77eeaa9f010923264fc09019
|
|
7
|
+
data.tar.gz: 3dcf8753bc13deaff3db02af1b6376ff4e8586aec4c83a438f2de451148ff2c9ed68b3b9dce90ee34adc032f468d3f8279ef2effe1f50befcaca91c6c6a48846
|
data/README.md
CHANGED
|
@@ -13,6 +13,10 @@ API Wrapper for tsumanne.net
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
+
# mise
|
|
17
|
+
mise use github:eggplants/tsumanne
|
|
18
|
+
|
|
19
|
+
# gem
|
|
16
20
|
gem install tsumanne
|
|
17
21
|
```
|
|
18
22
|
|
|
@@ -20,6 +24,40 @@ gem install tsumanne
|
|
|
20
24
|
|
|
21
25
|
See: [`spec/tsumanne_spec.rb`](spec/tsumanne_spec.rb)
|
|
22
26
|
|
|
27
|
+
## CLI
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
tsumanne [global options] <command> [options] [arguments]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The board to talk to is a global option, so it comes before the command:
|
|
34
|
+
`-b`/`--board` takes one of `img` (default), `may`, `jun`, `dat`, `special`.
|
|
35
|
+
|
|
36
|
+
| Command | Description |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| `threads` | List the archived threads of a board (`--index`, `--page`) |
|
|
39
|
+
| `thread` | Print an archived thread, by id or by `YYYY/MM/DD/<thread id>` archive path |
|
|
40
|
+
| `search` | Find the archived thread of a 2chan.net thread URI |
|
|
41
|
+
| `indexes` | List the indexes, or search them by keyword (`--keyword`, `--order`, `--page`) |
|
|
42
|
+
| `register` | Ask the site to archive a 2chan.net thread (`--index`, repeatable) |
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# list the second page of the `may` board
|
|
46
|
+
tsumanne --board may threads --page 2
|
|
47
|
+
|
|
48
|
+
# save an archived thread
|
|
49
|
+
tsumanne thread 1234567890 > thread.mht
|
|
50
|
+
|
|
51
|
+
# look up which archive a thread ended up in
|
|
52
|
+
tsumanne search https://may.2chan.net/b/res/1234567890.htm
|
|
53
|
+
|
|
54
|
+
# search the indexes, ordered by name instead of by newest
|
|
55
|
+
tsumanne indexes --keyword ねこ --order hira
|
|
56
|
+
|
|
57
|
+
# request to archive a thread
|
|
58
|
+
tsumanne register https://may.2chan.net/b/res/1234567890.htm
|
|
59
|
+
```
|
|
60
|
+
|
|
23
61
|
## Development
|
|
24
62
|
|
|
25
63
|
```bash
|
data/lib/tsumanne/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tsumanne
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- eggplants
|
|
@@ -85,14 +85,14 @@ dependencies:
|
|
|
85
85
|
requirements:
|
|
86
86
|
- - "~>"
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: '0
|
|
88
|
+
version: '1.0'
|
|
89
89
|
type: :development
|
|
90
90
|
prerelease: false
|
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
|
93
93
|
- - "~>"
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: '0
|
|
95
|
+
version: '1.0'
|
|
96
96
|
- !ruby/object:Gem::Dependency
|
|
97
97
|
name: simplecov_json_formatter
|
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|