sublime_text_kit 14.0.0 → 14.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +1 -1
- data/lib/sublime_text_kit/cli/actions/config.rb +2 -2
- data/lib/sublime_text_kit/cli/actions/metadata.rb +2 -3
- data/lib/sublime_text_kit/cli/actions/session.rb +2 -3
- data/lib/sublime_text_kit/cli/actions/snippets.rb +2 -2
- data/lib/sublime_text_kit/cli/actions/update.rb +6 -6
- data/lib/sublime_text_kit/cli/parser.rb +4 -5
- data/lib/sublime_text_kit/cli/parsers/core.rb +4 -7
- data/lib/sublime_text_kit/cli/shell.rb +7 -5
- data/lib/sublime_text_kit/snippets/collector.rb +2 -2
- data/lib/sublime_text_kit/snippets/printer.rb +2 -2
- data/sublime_text_kit.gemspec +2 -1
- data.tar.gz.sig +0 -0
- metadata +17 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 685db134303f817ea1bc68c8ae11a5e3154b554c2717892a7ea446fce2146abc
|
4
|
+
data.tar.gz: 4794d42c21ea78e0e2167dc202366f1fcbd281035e0ec497c47262d66444829e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b639f1fa50ac1303409c95deeff89923e7a36f872fd48e57b1b74ba9f6559625aedee09a5af861099403506f46a85fae1da2965b42641ae0c3e4d2064fa95c5
|
7
|
+
data.tar.gz: e1c8804cace5ca22ecf802b93ac4c9158cddb80ef715a0ebd73d1147e7f2ea5511a212cb3613e4701f92e52fa5dce96d0107bda01aa6dc199a35dedccfb7c45d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -7,8 +7,8 @@ module SublimeTextKit
|
|
7
7
|
class Config
|
8
8
|
include SublimeTextKit::Import[:kernel, :logger]
|
9
9
|
|
10
|
-
def initialize
|
11
|
-
super(**
|
10
|
+
def initialize(configuration: Configuration::Loader::CLIENT, **)
|
11
|
+
super(**)
|
12
12
|
@configuration = configuration
|
13
13
|
end
|
14
14
|
|
@@ -11,9 +11,8 @@ module SublimeTextKit
|
|
11
11
|
|
12
12
|
using Refinements::Pathnames
|
13
13
|
|
14
|
-
def initialize
|
15
|
-
super(**
|
16
|
-
|
14
|
+
def initialize(handler: SublimeTextKit::Metadata::Handler, **)
|
15
|
+
super(**)
|
17
16
|
@handler = handler
|
18
17
|
end
|
19
18
|
|
@@ -7,9 +7,8 @@ module SublimeTextKit
|
|
7
7
|
class Session
|
8
8
|
include SublimeTextKit::Import[:logger]
|
9
9
|
|
10
|
-
def initialize
|
11
|
-
super(**
|
12
|
-
|
10
|
+
def initialize(rebuilder: Sessions::Rebuilder.new, **)
|
11
|
+
super(**)
|
13
12
|
@rebuilder = rebuilder
|
14
13
|
end
|
15
14
|
|
@@ -7,8 +7,8 @@ module SublimeTextKit
|
|
7
7
|
class Snippets
|
8
8
|
include SublimeTextKit::Import[:configuration, :logger]
|
9
9
|
|
10
|
-
def initialize
|
11
|
-
super(**
|
10
|
+
def initialize(printer: SublimeTextKit::Snippets::Printer.new, **)
|
11
|
+
super(**)
|
12
12
|
@printer = printer
|
13
13
|
end
|
14
14
|
|
@@ -7,12 +7,12 @@ module SublimeTextKit
|
|
7
7
|
class Update
|
8
8
|
include SublimeTextKit::Import[:configuration, :logger]
|
9
9
|
|
10
|
-
def initialize
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
10
|
+
def initialize(
|
11
|
+
metadata: SublimeTextKit::Metadata::Handler,
|
12
|
+
session: Sessions::Rebuilder.new,
|
13
|
+
**
|
14
|
+
)
|
15
|
+
super(**)
|
16
16
|
@metadata = metadata
|
17
17
|
@session = session
|
18
18
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
3
4
|
require "optparse"
|
4
5
|
|
5
6
|
module SublimeTextKit
|
@@ -10,16 +11,14 @@ module SublimeTextKit
|
|
10
11
|
|
11
12
|
CLIENT = OptionParser.new nil, 40, " "
|
12
13
|
|
13
|
-
def initialize
|
14
|
-
|
15
|
-
**dependencies
|
16
|
-
super(**dependencies)
|
14
|
+
def initialize(section: Parsers::Core, client: CLIENT, **)
|
15
|
+
super(**)
|
17
16
|
@section = section
|
18
17
|
@client = client
|
19
18
|
@configuration_duplicate = configuration.dup
|
20
19
|
end
|
21
20
|
|
22
|
-
def call arguments =
|
21
|
+
def call arguments = Core::EMPTY_ARRAY
|
23
22
|
section.call(configuration_duplicate, client:)
|
24
23
|
client.parse arguments
|
25
24
|
configuration_duplicate.freeze
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
3
4
|
require "refinements/structs"
|
4
5
|
|
5
6
|
module SublimeTextKit
|
@@ -13,17 +14,13 @@ module SublimeTextKit
|
|
13
14
|
|
14
15
|
def self.call(...) = new(...).call
|
15
16
|
|
16
|
-
def initialize
|
17
|
-
|
18
|
-
**dependencies
|
19
|
-
|
20
|
-
super(**dependencies)
|
21
|
-
|
17
|
+
def initialize(configuration = Container[:configuration], client: Parser::CLIENT, **)
|
18
|
+
super(**)
|
22
19
|
@configuration = configuration
|
23
20
|
@client = client
|
24
21
|
end
|
25
22
|
|
26
|
-
def call arguments =
|
23
|
+
def call arguments = ::Core::EMPTY_ARRAY
|
27
24
|
client.banner = specification.labeled_summary
|
28
25
|
client.separator "\nUSAGE:\n"
|
29
26
|
collate
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
4
|
+
|
3
5
|
module SublimeTextKit
|
4
6
|
module CLI
|
5
7
|
# The main Command Line Interface (CLI) object.
|
@@ -14,13 +16,13 @@ module SublimeTextKit
|
|
14
16
|
:update
|
15
17
|
]
|
16
18
|
|
17
|
-
def initialize
|
18
|
-
super(**
|
19
|
+
def initialize(parser: Parser.new, **)
|
20
|
+
super(**)
|
19
21
|
@parser = parser
|
20
22
|
end
|
21
23
|
|
22
|
-
def call arguments =
|
23
|
-
|
24
|
+
def call arguments = Core::EMPTY_ARRAY
|
25
|
+
act_on parser.call(arguments)
|
24
26
|
rescue OptionParser::ParseError, Error => error
|
25
27
|
logger.error { error.message }
|
26
28
|
end
|
@@ -29,7 +31,7 @@ module SublimeTextKit
|
|
29
31
|
|
30
32
|
attr_reader :parser
|
31
33
|
|
32
|
-
def
|
34
|
+
def act_on configuration
|
33
35
|
case configuration
|
34
36
|
in action_config: Symbol => action then config.call action
|
35
37
|
in action_metadata: Symbol => kind then metadata.call kind
|
data/sublime_text_kit.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "sublime_text_kit"
|
5
|
-
spec.version = "14.
|
5
|
+
spec.version = "14.1.1"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://www.alchemists.io/projects/sublime_text_kit"
|
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.required_ruby_version = "~> 3.2"
|
26
26
|
spec.add_dependency "cogger", "~> 0.5"
|
27
|
+
spec.add_dependency "core", "~> 0.1"
|
27
28
|
spec.add_dependency "dry-container", "~> 0.11"
|
28
29
|
spec.add_dependency "infusible", "~> 1.0"
|
29
30
|
spec.add_dependency "refinements", "~> 10.0"
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sublime_text_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.
|
4
|
+
version: 14.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
29
|
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date:
|
31
|
+
date: 2023-02-05 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: cogger
|
@@ -44,6 +44,20 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0.5'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: core
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.1'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0.1'
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
62
|
name: dry-container
|
49
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
207
|
- !ruby/object:Gem::Version
|
194
208
|
version: '0'
|
195
209
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
210
|
+
rubygems_version: 3.4.6
|
197
211
|
signing_key:
|
198
212
|
specification_version: 4
|
199
213
|
summary: A command line interface for managing Sublime Text metadata.
|
metadata.gz.sig
CHANGED
Binary file
|