sublime_text_kit 12.0.1 → 12.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e97bb94145600555520ac0640ce33b5e02f06407f43dd631e52dca46c5e1be24
4
- data.tar.gz: 76ad7dcfc8538dd75fcda935dc020e842b2c854e1140c5a4a4ab7f6be51a86d4
3
+ metadata.gz: ed5feb3f22d67ceb65371f44ec00ebfd528482b99f710d2c7b592695c6ac64c9
4
+ data.tar.gz: 4b14593ae9af3d7bf2dd47b1837afbf5d0b665be04df18b92cdd1a0c9509615f
5
5
  SHA512:
6
- metadata.gz: 369bb0b9c90a73bf39c253594551847e674c3c0b02ddebd8ff3cd56347f30581f38999c0ff6c2b43e0c48700d21ba0ec2afd46a13e5d717de754fc430a824e2a
7
- data.tar.gz: 63fe603e3c60133a22bc8e98e28d47475cf9921962a502f216ba2e6e7ee235f012aa1fba7b2bde994ba4ce7cd9d58d40e0d3ade51152bb04b35487cd9d2ea073
6
+ metadata.gz: aa8f74450c1914045bd3f44f58ab78808073d0267c7fe3d7753147772587e01f8eb98a3c67e380572af361e8e3c0662f9a0be132bf79e01a385543ada1837d26
7
+ data.tar.gz: 310f1e9f3a27706b52872088ccd6fc079c1fcbb9bc95fb9c34f4d0088b21e6d45ee0d22f681e83529c80a29a865841b224c6a7ff69a3ecaa5ec3d094fb5460b6
checksums.yaml.gz.sig CHANGED
Binary file
data/exe/sublime_text_kit CHANGED
@@ -3,5 +3,4 @@
3
3
 
4
4
  require "sublime_text_kit"
5
5
 
6
- Process.setproctitle SublimeTextKit::Identity::VERSION_LABEL
7
6
  SublimeTextKit::CLI::Shell.new.call ARGV
@@ -11,13 +11,16 @@ module SublimeTextKit
11
11
 
12
12
  def self.call(...) = new(...).call
13
13
 
14
- def initialize configuration = Container[:configuration], client: Parser::CLIENT
14
+ def initialize configuration = Container[:configuration],
15
+ client: Parser::CLIENT,
16
+ container: Container
15
17
  @configuration = configuration
16
18
  @client = client
19
+ @container = container
17
20
  end
18
21
 
19
22
  def call arguments = []
20
- client.banner = "#{Identity::LABEL} - #{Identity::SUMMARY}"
23
+ client.banner = "Sublime Text Kit - #{specification.summary}"
21
24
  client.separator "\nUSAGE:\n"
22
25
  collate
23
26
  client.parse arguments
@@ -26,7 +29,7 @@ module SublimeTextKit
26
29
 
27
30
  private
28
31
 
29
- attr_reader :configuration, :client
32
+ attr_reader :configuration, :client, :container
30
33
 
31
34
  def collate = private_methods.sort.grep(/add_/).each { |method| __send__ method }
32
35
 
@@ -91,6 +94,8 @@ module SublimeTextKit
91
94
  configuration.merge! action_help: true
92
95
  end
93
96
  end
97
+
98
+ def specification = container[__method__]
94
99
  end
95
100
  end
96
101
  end
@@ -35,7 +35,7 @@ module SublimeTextKit
35
35
  in action_session: true then session
36
36
  in action_snippets: true then snippets configuration
37
37
  in action_update: true then update
38
- in action_version: true then logger.info Identity::VERSION_LABEL
38
+ in action_version: true then logger.info { "Sublime Text Kit #{specification.version}" }
39
39
  else usage
40
40
  end
41
41
  end
@@ -52,6 +52,8 @@ module SublimeTextKit
52
52
 
53
53
  def usage = logger.unknown { parser.to_s }
54
54
 
55
+ def specification = container[__method__]
56
+
55
57
  def logger = container[__method__]
56
58
  end
57
59
  end
@@ -14,7 +14,7 @@ module SublimeTextKit
14
14
  using Refinements::Structs
15
15
 
16
16
  DEFAULTS = YAML.load_file(Pathname(__dir__).join("defaults.yml")).freeze
17
- CLIENT = Runcom::Config.new "#{Identity::NAME}/configuration.yml", defaults: DEFAULTS
17
+ CLIENT = Runcom::Config.new "sublime_text_kit/configuration.yml", defaults: DEFAULTS
18
18
 
19
19
  def self.call = new.call
20
20
 
@@ -9,7 +9,10 @@ module SublimeTextKit
9
9
  module Container
10
10
  extend Dry::Container::Mixin
11
11
 
12
+ SPEC_PATH = "#{__dir__}/../../sublime_text_kit.gemspec".freeze
13
+
12
14
  register(:configuration) { Configuration::Loader.call }
15
+ register(:specification) { Gem::Specification.load SPEC_PATH }
13
16
  register(:colorizer) { Pastel.new enabled: $stdout.tty? }
14
17
  register(:kernel) { Kernel }
15
18
 
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "sublime_text_kit"
5
+ spec.version = "12.1.0"
6
+ spec.platform = Gem::Platform::RUBY
7
+ spec.authors = ["Brooke Kuhlmann"]
8
+ spec.email = ["brooke@alchemists.io"]
9
+ spec.homepage = "https://www.alchemists.io/projects/sublime_text_kit"
10
+ spec.summary = "A command line interface for managing Sublime Text metadata."
11
+ spec.license = "Hippocratic-3.0"
12
+
13
+ spec.metadata = {
14
+ "bug_tracker_uri" => "https://github.com/bkuhlmann/sublime_text_kit/issues",
15
+ "changelog_uri" => "https://www.alchemists.io/projects/sublime_text_kit/versions",
16
+ "documentation_uri" => "https://www.alchemists.io/projects/sublime_text_kit",
17
+ "label" => "Sublime Text Kit",
18
+ "rubygems_mfa_required" => "true",
19
+ "source_code_uri" => "https://github.com/bkuhlmann/sublime_text_kit"
20
+ }
21
+
22
+ spec.signing_key = Gem.default_key_path
23
+ spec.cert_chain = [Gem.default_cert_path]
24
+
25
+ spec.required_ruby_version = "~> 3.1"
26
+ spec.add_dependency "dry-container", "~> 0.8"
27
+ spec.add_dependency "pastel", "~> 0.8"
28
+ spec.add_dependency "refinements", "~> 9.1"
29
+ spec.add_dependency "runcom", "~> 8.0"
30
+ spec.add_dependency "zeitwerk", "~> 2.5"
31
+
32
+ spec.bindir = "exe"
33
+ spec.executables << "sublime_text_kit"
34
+ spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
35
+ spec.files = Dir["*.gemspec", "lib/**/*"]
36
+ spec.require_paths = ["lib"]
37
+ end
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: 12.0.1
4
+ version: 12.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  lkHilIrX69jq8wMPpBhlaw2mRmeSL50Wv5u6xVBvOHhXFSP1crXM95vfLhLyRYod
29
29
  W2A=
30
30
  -----END CERTIFICATE-----
31
- date: 2022-01-01 00:00:00.000000000 Z
31
+ date: 2022-01-23 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: dry-container
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '9.0'
67
+ version: '9.1'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '9.0'
74
+ version: '9.1'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: runcom
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +126,6 @@ files:
126
126
  - lib/sublime_text_kit/configuration/defaults.yml
127
127
  - lib/sublime_text_kit/configuration/loader.rb
128
128
  - lib/sublime_text_kit/container.rb
129
- - lib/sublime_text_kit/identity.rb
130
129
  - lib/sublime_text_kit/metadata/handler.rb
131
130
  - lib/sublime_text_kit/metadata/pathway.rb
132
131
  - lib/sublime_text_kit/metadata/serializers/project.rb
@@ -137,6 +136,7 @@ files:
137
136
  - lib/sublime_text_kit/snippets/printers/ascii_doc.rb
138
137
  - lib/sublime_text_kit/snippets/printers/markdown.rb
139
138
  - lib/sublime_text_kit/snippets/reader.rb
139
+ - sublime_text_kit.gemspec
140
140
  homepage: https://www.alchemists.io/projects/sublime_text_kit
141
141
  licenses:
142
142
  - Hippocratic-3.0
@@ -144,6 +144,7 @@ metadata:
144
144
  bug_tracker_uri: https://github.com/bkuhlmann/sublime_text_kit/issues
145
145
  changelog_uri: https://www.alchemists.io/projects/sublime_text_kit/versions
146
146
  documentation_uri: https://www.alchemists.io/projects/sublime_text_kit
147
+ label: Sublime Text Kit
147
148
  rubygems_mfa_required: 'true'
148
149
  source_code_uri: https://github.com/bkuhlmann/sublime_text_kit
149
150
  post_install_message:
@@ -161,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
162
  - !ruby/object:Gem::Version
162
163
  version: '0'
163
164
  requirements: []
164
- rubygems_version: 3.3.4
165
+ rubygems_version: 3.3.5
165
166
  signing_key:
166
167
  specification_version: 4
167
168
  summary: A command line interface for managing Sublime Text metadata.
metadata.gz.sig CHANGED
Binary file
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module SublimeTextKit
4
- # Gem identity information.
5
- module Identity
6
- NAME = "sublime_text_kit"
7
- LABEL = "Sublime Text Kit"
8
- VERSION = "12.0.1"
9
- VERSION_LABEL = "#{LABEL} #{VERSION}".freeze
10
- SUMMARY = "A command line interface for managing Sublime Text metadata."
11
- end
12
- end