luo 0.1.1 → 0.1.2
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/.idea/luo.iml +11 -0
- data/Gemfile.lock +24 -1
- data/lib/luo/helpers.rb +18 -0
- data/lib/luo/version.rb +1 -1
- data/lib/luo.rb +2 -0
- data/luo.gemspec +1 -0
- data/sig/luo/helpers.rbs +7 -0
- metadata +17 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 168fa20c108843fd5b48bc0c3dd2771e3293712b3783069f93c41b60dd094cbe
|
|
4
|
+
data.tar.gz: 374e6355534cb49ece0bd5a1fd521b9dea292fc9e461e29e9c8a15301e012892
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dcbca395fbc33a663ae6e4349b7280ac7169473f0d4bd64bca1b43c72ccb871c080a3a2f6e105dbc39f7571e8b1749abae40da585e8a0aa93d59c91106828efd
|
|
7
|
+
data.tar.gz: 9ed6651fec55cf76bab4901cfa50442cb63250c78b7efd4ab584191006870d6845f70a45f2ad674393b361a7ef94c6f4096307dceec573863f6dca47e31e1b11
|
data/.idea/luo.iml
CHANGED
|
@@ -26,12 +26,23 @@
|
|
|
26
26
|
<orderEntry type="library" scope="PROVIDED" name="faraday (v2.7.4, ruby-3.2.1-p31) [gem]" level="application" />
|
|
27
27
|
<orderEntry type="library" scope="PROVIDED" name="faraday-net_http (v3.0.2, ruby-3.2.1-p31) [gem]" level="application" />
|
|
28
28
|
<orderEntry type="library" scope="PROVIDED" name="faraday-retry (v2.1.0, ruby-3.2.1-p31) [gem]" level="application" />
|
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="kramdown (v2.4.0, ruby-3.2.1-p31) [gem]" level="application" />
|
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="pastel (v0.8.0, ruby-3.2.1-p31) [gem]" level="application" />
|
|
29
31
|
<orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, ruby-3.2.1-p31) [gem]" level="application" />
|
|
32
|
+
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, ruby-3.2.1-p31) [gem]" level="application" />
|
|
33
|
+
<orderEntry type="library" scope="PROVIDED" name="rouge (v4.1.0, ruby-3.2.1-p31) [gem]" level="application" />
|
|
30
34
|
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.12.0, ruby-3.2.1-p31) [gem]" level="application" />
|
|
31
35
|
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.12.2, ruby-3.2.1-p31) [gem]" level="application" />
|
|
32
36
|
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.12.3, ruby-3.2.1-p31) [gem]" level="application" />
|
|
33
37
|
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.12.5, ruby-3.2.1-p31) [gem]" level="application" />
|
|
34
38
|
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.12.0, ruby-3.2.1-p31) [gem]" level="application" />
|
|
39
|
+
<orderEntry type="library" scope="PROVIDED" name="strings (v0.2.1, ruby-3.2.1-p31) [gem]" level="application" />
|
|
40
|
+
<orderEntry type="library" scope="PROVIDED" name="strings-ansi (v0.2.0, ruby-3.2.1-p31) [gem]" level="application" />
|
|
41
|
+
<orderEntry type="library" scope="PROVIDED" name="tty-color (v0.6.0, ruby-3.2.1-p31) [gem]" level="application" />
|
|
42
|
+
<orderEntry type="library" scope="PROVIDED" name="tty-markdown (v0.7.2, ruby-3.2.1-p31) [gem]" level="application" />
|
|
43
|
+
<orderEntry type="library" scope="PROVIDED" name="tty-screen (v0.8.1, ruby-3.2.1-p31) [gem]" level="application" />
|
|
44
|
+
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.4.2, ruby-3.2.1-p31) [gem]" level="application" />
|
|
45
|
+
<orderEntry type="library" scope="PROVIDED" name="unicode_utils (v1.4.0, ruby-3.2.1-p31) [gem]" level="application" />
|
|
35
46
|
<orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.6.8, ruby-3.2.1-p31) [gem]" level="application" />
|
|
36
47
|
</component>
|
|
37
48
|
<component name="RakeTasksCache">
|
data/Gemfile.lock
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
luo (0.1.
|
|
4
|
+
luo (0.1.2)
|
|
5
5
|
dotenv (~> 2.8, >= 2.8.1)
|
|
6
6
|
dry-cli (~> 1.0)
|
|
7
7
|
dry-configurable (~> 1.0, >= 1.0.1)
|
|
8
8
|
dry-schema (~> 1.13, >= 1.13.1)
|
|
9
9
|
faraday (~> 2.7, >= 2.7.4)
|
|
10
10
|
faraday-retry (~> 2.1)
|
|
11
|
+
tty-markdown (~> 0.7.2)
|
|
11
12
|
zeitwerk (~> 2.6, >= 2.6.8)
|
|
12
13
|
|
|
13
14
|
GEM
|
|
@@ -49,7 +50,13 @@ GEM
|
|
|
49
50
|
faraday-net_http (3.0.2)
|
|
50
51
|
faraday-retry (2.1.0)
|
|
51
52
|
faraday (~> 2.0)
|
|
53
|
+
kramdown (2.4.0)
|
|
54
|
+
rexml
|
|
55
|
+
pastel (0.8.0)
|
|
56
|
+
tty-color (~> 0.5)
|
|
52
57
|
rake (13.0.6)
|
|
58
|
+
rexml (3.2.5)
|
|
59
|
+
rouge (4.1.0)
|
|
53
60
|
rspec (3.12.0)
|
|
54
61
|
rspec-core (~> 3.12.0)
|
|
55
62
|
rspec-expectations (~> 3.12.0)
|
|
@@ -64,6 +71,22 @@ GEM
|
|
|
64
71
|
rspec-support (~> 3.12.0)
|
|
65
72
|
rspec-support (3.12.0)
|
|
66
73
|
ruby2_keywords (0.0.5)
|
|
74
|
+
strings (0.2.1)
|
|
75
|
+
strings-ansi (~> 0.2)
|
|
76
|
+
unicode-display_width (>= 1.5, < 3.0)
|
|
77
|
+
unicode_utils (~> 1.4)
|
|
78
|
+
strings-ansi (0.2.0)
|
|
79
|
+
tty-color (0.6.0)
|
|
80
|
+
tty-markdown (0.7.2)
|
|
81
|
+
kramdown (>= 1.16.2, < 3.0)
|
|
82
|
+
pastel (~> 0.8)
|
|
83
|
+
rouge (>= 3.14, < 5.0)
|
|
84
|
+
strings (~> 0.2.0)
|
|
85
|
+
tty-color (~> 0.5)
|
|
86
|
+
tty-screen (~> 0.8)
|
|
87
|
+
tty-screen (0.8.1)
|
|
88
|
+
unicode-display_width (2.4.2)
|
|
89
|
+
unicode_utils (1.4.0)
|
|
67
90
|
zeitwerk (2.6.8)
|
|
68
91
|
|
|
69
92
|
PLATFORMS
|
data/lib/luo/helpers.rb
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Luo
|
|
4
|
+
module Helpers
|
|
5
|
+
extend self
|
|
6
|
+
|
|
7
|
+
def print_md(text)
|
|
8
|
+
puts TTY::Markdown.parse(text)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def load_test(path, &block)
|
|
12
|
+
YAML.load_file(path).each do |value|
|
|
13
|
+
yield(value)
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
end
|
|
18
|
+
end
|
data/lib/luo/version.rb
CHANGED
data/lib/luo.rb
CHANGED
data/luo.gemspec
CHANGED
|
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
|
|
|
36
36
|
spec.add_dependency 'dry-schema', '~> 1.13', '>= 1.13.1'
|
|
37
37
|
spec.add_dependency 'dry-configurable', '~> 1.0', '>= 1.0.1'
|
|
38
38
|
spec.add_dependency 'dry-cli', '~> 1.0'
|
|
39
|
+
spec.add_dependency 'tty-markdown', '~> 0.7.2'
|
|
39
40
|
# spec.add_dependency "example-gem", "~> 1.0"
|
|
40
41
|
|
|
41
42
|
spec.add_development_dependency "rspec", '~> 3.12'
|
data/sig/luo/helpers.rbs
ADDED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: luo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MJ
|
|
@@ -138,6 +138,20 @@ dependencies:
|
|
|
138
138
|
- - "~>"
|
|
139
139
|
- !ruby/object:Gem::Version
|
|
140
140
|
version: '1.0'
|
|
141
|
+
- !ruby/object:Gem::Dependency
|
|
142
|
+
name: tty-markdown
|
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
|
144
|
+
requirements:
|
|
145
|
+
- - "~>"
|
|
146
|
+
- !ruby/object:Gem::Version
|
|
147
|
+
version: 0.7.2
|
|
148
|
+
type: :runtime
|
|
149
|
+
prerelease: false
|
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
151
|
+
requirements:
|
|
152
|
+
- - "~>"
|
|
153
|
+
- !ruby/object:Gem::Version
|
|
154
|
+
version: 0.7.2
|
|
141
155
|
- !ruby/object:Gem::Dependency
|
|
142
156
|
name: rspec
|
|
143
157
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -180,6 +194,7 @@ files:
|
|
|
180
194
|
- lib/luo/aiui.rb
|
|
181
195
|
- lib/luo/cli.rb
|
|
182
196
|
- lib/luo/configurable.rb
|
|
197
|
+
- lib/luo/helpers.rb
|
|
183
198
|
- lib/luo/http_client.rb
|
|
184
199
|
- lib/luo/memory_history.rb
|
|
185
200
|
- lib/luo/messages.rb
|
|
@@ -205,6 +220,7 @@ files:
|
|
|
205
220
|
- sig/luo/aiui.rbs
|
|
206
221
|
- sig/luo/configurable.rbs
|
|
207
222
|
- sig/luo/env.rbs
|
|
223
|
+
- sig/luo/helpers.rbs
|
|
208
224
|
- sig/luo/http_client.rbs
|
|
209
225
|
- sig/luo/memory_history.rbs
|
|
210
226
|
- sig/luo/messages.rbs
|