joplin 1.1.0 → 1.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 894bad22eddabf7759d835d3a2c2f94ef60bf0c0e7767bb902d8bfb107e70a19
4
- data.tar.gz: 1a29dc5fe553d92a7e84c5e9292d542247111de8b1098bf01b98a54270b05608
3
+ metadata.gz: 473edf7525029f8e4dc7a27448d9759f62666e27de6b9aef66cf472b3400b8c0
4
+ data.tar.gz: b4a6869f141a74bd6a3133a74aa7788c451500152ef84c31c418159faffb9d02
5
5
  SHA512:
6
- metadata.gz: 74047ff08fb61576bc9689dea85829cc58920436d410d3604a93e769c6314d2000adc244abfdbb6dea40ac38d0ad97ec0f82a8ccf5ae392aa12532dfe1c2b5f4
7
- data.tar.gz: e390de0be3ff25e34d59dde77a84068bb62f7179aecd192c8afe2e0f00ec2df9dd681e4e0d44d8ba1414419f8738998b4e4aecafd0f5a6d02344c24d9e416db4
6
+ metadata.gz: 37ac89db9443e9b413495b059b8eafaf30672e4254932d912fa86822eace0a24cb5b08bdc977922872c840d6e0959427d907d5005d7988959500121fd9380d8a
7
+ data.tar.gz: f7574b5afa1f55f7d06e565eb3145d9804c0c1ea9e3ca6e039f69688c72963ae2cf1389e31ebab846978f870a3e16833793774f7131a82794887522139db1391
data/Gemfile.lock CHANGED
@@ -1,37 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- joplin (1.0.1)
5
- http (~> 5.1.1)
6
- sqlite3 (~> 1.6.3)
7
- thor (~> 1.2.2)
4
+ joplin (1.2.0)
5
+ amazing_print
6
+ colorize (~> 1.1.0)
7
+ http (~> 6.0.3)
8
+ minitest (~> 6.0.0)
9
+ sqlite3 (~> 2.9.4)
10
+ thor (~> 1.5.0)
11
+ tty-markdown (~> 0.7.2)
8
12
 
9
13
  GEM
10
14
  remote: https://rubygems.org/
11
15
  specs:
12
- addressable (2.8.4)
13
- public_suffix (>= 2.0.2, < 6.0)
16
+ amazing_print (2.0.0)
17
+ colorize (1.1.0)
14
18
  diff-lcs (1.5.0)
15
19
  domain_name (0.5.20190701)
16
20
  unf (>= 0.0.5, < 1.0.0)
17
- ffi (1.15.5)
18
- ffi-compiler (1.0.1)
19
- ffi (>= 1.0.0)
20
- rake
21
- http (5.1.1)
22
- addressable (~> 2.8)
21
+ drb (2.2.3)
22
+ http (6.0.3)
23
23
  http-cookie (~> 1.0)
24
- http-form_data (~> 2.2)
25
- llhttp-ffi (~> 0.4.0)
24
+ llhttp (~> 0.6.1)
26
25
  http-cookie (1.0.5)
27
26
  domain_name (~> 0.5)
28
- http-form_data (2.3.0)
29
- llhttp-ffi (0.4.0)
30
- ffi-compiler (~> 1.0)
31
- rake (~> 13.0)
27
+ kramdown (2.5.2)
28
+ rexml (>= 3.4.4)
29
+ llhttp (0.6.1)
30
+ minitest (6.0.6)
31
+ drb (~> 2.0)
32
+ prism (~> 1.5)
32
33
  pandoc_binary (3.1.1)
33
- public_suffix (5.0.1)
34
+ pastel (0.8.0)
35
+ tty-color (~> 0.5)
36
+ prism (1.9.0)
34
37
  rake (13.0.6)
38
+ rexml (3.4.4)
39
+ rouge (4.7.0)
35
40
  rspec (3.12.0)
36
41
  rspec-core (~> 3.12.0)
37
42
  rspec-expectations (~> 3.12.0)
@@ -45,14 +50,31 @@ GEM
45
50
  diff-lcs (>= 1.2.0, < 2.0)
46
51
  rspec-support (~> 3.12.0)
47
52
  rspec-support (3.12.1)
48
- sqlite3 (1.6.3-arm64-darwin)
49
- thor (1.2.2)
53
+ sqlite3 (2.9.4-arm64-darwin)
54
+ strings (0.2.1)
55
+ strings-ansi (~> 0.2)
56
+ unicode-display_width (>= 1.5, < 3.0)
57
+ unicode_utils (~> 1.4)
58
+ strings-ansi (0.2.0)
59
+ thor (1.5.0)
60
+ tty-color (0.6.0)
61
+ tty-markdown (0.7.2)
62
+ kramdown (>= 1.16.2, < 3.0)
63
+ pastel (~> 0.8)
64
+ rouge (>= 3.14, < 5.0)
65
+ strings (~> 0.2.0)
66
+ tty-color (~> 0.5)
67
+ tty-screen (~> 0.8)
68
+ tty-screen (0.8.2)
50
69
  unf (0.1.4)
51
70
  unf_ext
52
71
  unf_ext (0.0.8.2)
72
+ unicode-display_width (2.6.0)
73
+ unicode_utils (1.4.0)
53
74
 
54
75
  PLATFORMS
55
76
  arm64-darwin-22
77
+ arm64-darwin-25
56
78
 
57
79
  DEPENDENCIES
58
80
  bundler (~> 2.0)
data/bin/joplin CHANGED
@@ -7,6 +7,7 @@ $:.unshift File.expand_path('../lib', __dir__)
7
7
  require 'joplin'
8
8
  require 'thor'
9
9
  require 'yaml'
10
+ require 'amazing_print'
10
11
 
11
12
  DIVIDER = %(
12
13
 
@@ -51,6 +52,20 @@ class MyCLI < Thor
51
52
  note.write
52
53
  end
53
54
 
55
+ desc :resource, 'get resource for note'
56
+ long_desc 'get all the resources for note with id'
57
+ option :token
58
+ def resource(id)
59
+ begin
60
+ note = Joplin::Note.new(id:)
61
+ note.resources.each do |resource|
62
+ ap resource.parsed
63
+ end
64
+ rescue Joplin::Note::NotFound => e
65
+ puts e.message
66
+ end
67
+ end
68
+
54
69
  desc :stats, 'statistics on joplin data'
55
70
  long_desc 'Get some statistics on the joplin instance, the number of notebooks, notes'
56
71
  option :token