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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +38 -0
  3. data/lib/tsumanne/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 364315dfc400885784277475e8cfe19af407d5b1d27daee8adeb9bfc942d18cd
4
- data.tar.gz: 4e4aba0c9982cb4b8c93979abba3a144c7a8eed87a7852d0d07050596200e0ca
3
+ metadata.gz: 7d25bbfc2042888825642c67715dee6e0b5a737cf7715d76ef29b4c5abf0a62b
4
+ data.tar.gz: a3dbae3b152ebc8ea2864b67c42fe07c03aa76defbfba80ab17793a96d961862
5
5
  SHA512:
6
- metadata.gz: d3fd6ad688af2126ed9f44cce4a03dd21c0448266326ce338117794bf285967d2d0f8fd671e6e26d2bb8d8d33cd86ff2cb80360d89bcff3873c8881d51a6c554
7
- data.tar.gz: 9fb34ceda1df2f7f3af6d28b96811ff1326cba98c0d4de947d8221d58e66948237ee9dc76d6968d007c4f69f1958e27273fbcf67fe297f8fa9577f4ad5f34cd1
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
@@ -3,5 +3,5 @@
3
3
  # frozen_string_literal: true
4
4
 
5
5
  module Tsumanne
6
- VERSION = "0.0.4"
6
+ VERSION = "0.0.5"
7
7
  end
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
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.8'
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.8'
95
+ version: '1.0'
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: simplecov_json_formatter
98
98
  requirement: !ruby/object:Gem::Requirement