sublime_text_kit 12.0.0 → 12.3.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: 789017af8c346965c8c9f4fcc3904e3dea998dfbbb95cee447fe006d3984cc91
4
- data.tar.gz: 462b53e314173afb04a87d9d642b6dd0f3202b2c3ef8d4cbb2d0ead82e0e3180
3
+ metadata.gz: 71904b15c41b3d19260c54574df0a8acfe510c54ad58c14df7470d1faf2b08ce
4
+ data.tar.gz: 3ccfd485563ab002f3ee9897db64d0e6f5635b8266f9ae94c30ae185e8245a5e
5
5
  SHA512:
6
- metadata.gz: 1a601f00b04cea50cc78d0dfd84b7439b07823d4b79ba7b3ccee06cc47f4c3cd4994f485c678f20bc78026f28cd991c298ed1571057c1e66ca2370d6d0d6f928
7
- data.tar.gz: 902bfad0dbaf6652a39a9c4d0c139e5deca18fcc7aa0ab5f92a24c847120e921392bcac9d1b53cf56318159949fb1143a9a9ca4722259cbd05cb2f8e8756076a
6
+ metadata.gz: 47adb3dd0a875fa6c765936e311a95cf9ace82e499781e5da6516e57eb2be6581e82f446079fcf1e9d7a73258b318d64a4ebca84dc4e09d490e1acf9037380ac
7
+ data.tar.gz: 2a6e75f5f4532aa8d75895660553708d8df8e2f5f696ddbfa980a2e940576a75cd594447ac43d9204ffa0f1dd634740cd91efdb20077b8f199487b5175ceeab4
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -4,13 +4,6 @@
4
4
 
5
5
  = Sublime Text Kit
6
6
 
7
- [link=http://badge.fury.io/rb/sublime_text_kit]
8
- image::https://badge.fury.io/rb/sublime_text_kit.svg[Gem Version]
9
- [link=https://www.alchemists.io/projects/code_quality]
10
- image::https://img.shields.io/badge/code_style-alchemists-brightgreen.svg[Alchemists Style Guide]
11
- [link=https://circleci.com/gh/bkuhlmann/sublime_text_kit]
12
- image::https://circleci.com/gh/bkuhlmann/sublime_text_kit.svg?style=svg[Circle CI Status]
13
-
14
7
  Sublime Text Kit is a command line interface for managing Sublime Text metadata for multiple
15
8
  projects, sessions, snippets, etc. This allows you to avoiding manual maintenance of your workspace
16
9
  so you can stay focused on your own work.
@@ -150,35 +143,17 @@ To test, run:
150
143
  bundle exec rake
151
144
  ----
152
145
 
153
- == Versioning
154
-
155
- Read link:https://semver.org[Semantic Versioning] for details. Briefly, it means:
156
-
157
- * Major (X.y.z) - Incremented for any backwards incompatible public API changes.
158
- * Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
159
- * Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
160
-
161
- == Code of Conduct
162
-
163
- Please note that this project is released with a link:CODE_OF_CONDUCT.adoc[CODE OF CONDUCT]. By
164
- participating in this project you agree to abide by its terms.
165
-
166
- == Contributions
167
-
168
- Read link:CONTRIBUTING.adoc[CONTRIBUTING] for details.
169
-
170
- == Community
146
+ == link:https://www.alchemists.io/policies/license[License]
171
147
 
172
- Feel free to link:https://www.alchemists.io/community[join the commmunity] for discussions related
173
- to this project and much more.
148
+ == link:https://www.alchemists.io/policies/security[Security]
174
149
 
175
- == License
150
+ == link:https://www.alchemists.io/policies/code_of_conduct[Code of Conduct]
176
151
 
177
- Read link:LICENSE.adoc[LICENSE] for details.
152
+ == link:https://www.alchemists.io/policies/contributions[Contributions]
178
153
 
179
- == Changes
154
+ == link:https://www.alchemists.io/projects/sublime_text_kit/versions[Versions]
180
155
 
181
- Read link:CHANGES.adoc[CHANGES] for details.
156
+ == link:https://www.alchemists.io/community[Community]
182
157
 
183
158
  == Credits
184
159
 
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 = specification.labeled_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 { specification.labeled_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
 
@@ -3,6 +3,7 @@
3
3
  require "dry-container"
4
4
  require "logger"
5
5
  require "pastel"
6
+ require "spek"
6
7
 
7
8
  module SublimeTextKit
8
9
  # Provides a global gem container for injection into other objects.
@@ -10,6 +11,7 @@ module SublimeTextKit
10
11
  extend Dry::Container::Mixin
11
12
 
12
13
  register(:configuration) { Configuration::Loader.call }
14
+ register(:specification) { Spek::Loader.call "#{__dir__}/../../sublime_text_kit.gemspec" }
13
15
  register(:colorizer) { Pastel.new enabled: $stdout.tty? }
14
16
  register(:kernel) { Kernel }
15
17
 
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "sublime_text_kit"
5
+ spec.version = "12.3.0"
6
+ spec.authors = ["Brooke Kuhlmann"]
7
+ spec.email = ["brooke@alchemists.io"]
8
+ spec.homepage = "https://www.alchemists.io/projects/sublime_text_kit"
9
+ spec.summary = "A command line interface for managing Sublime Text metadata."
10
+ spec.license = "Hippocratic-3.0"
11
+
12
+ spec.metadata = {
13
+ "bug_tracker_uri" => "https://github.com/bkuhlmann/sublime_text_kit/issues",
14
+ "changelog_uri" => "https://www.alchemists.io/projects/sublime_text_kit/versions",
15
+ "documentation_uri" => "https://www.alchemists.io/projects/sublime_text_kit",
16
+ "label" => "Sublime Text Kit",
17
+ "rubygems_mfa_required" => "true",
18
+ "source_code_uri" => "https://github.com/bkuhlmann/sublime_text_kit"
19
+ }
20
+
21
+ spec.signing_key = Gem.default_key_path
22
+ spec.cert_chain = [Gem.default_cert_path]
23
+
24
+ spec.required_ruby_version = "~> 3.1"
25
+ spec.add_dependency "dry-container", "~> 0.8"
26
+ spec.add_dependency "pastel", "~> 0.8"
27
+ spec.add_dependency "refinements", "~> 9.2"
28
+ spec.add_dependency "runcom", "~> 8.2"
29
+ spec.add_dependency "spek", "~> 0.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
+ end
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- p�~��ᰗ=i��b~��j_����U����P0�=I�ZI���q�p�Vc�*�Q�P���/����2���<��Z�K��:'bU0 �݃U�o�I�����y����z��;��w�Y�-���K�W)�w9�9�}���]q ?���l�C��_xȎ<0 +\!�*��q ���b�
1
+ ��:�kz���Ϫ���p���u6�-p��jS��i�z3�lK4�� C� �%����O��.�(���
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.0
4
+ version: 12.3.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: 2021-12-29 00:00:00.000000000 Z
31
+ date: 2022-02-12 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: dry-container
@@ -64,28 +64,42 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '9.0'
67
+ version: '9.2'
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.2'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: runcom
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '8.0'
81
+ version: '8.2'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '8.0'
88
+ version: '8.2'
89
+ - !ruby/object:Gem::Dependency
90
+ name: spek
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '0.0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '0.0'
89
103
  - !ruby/object:Gem::Dependency
90
104
  name: zeitwerk
91
105
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +140,6 @@ files:
126
140
  - lib/sublime_text_kit/configuration/defaults.yml
127
141
  - lib/sublime_text_kit/configuration/loader.rb
128
142
  - lib/sublime_text_kit/container.rb
129
- - lib/sublime_text_kit/identity.rb
130
143
  - lib/sublime_text_kit/metadata/handler.rb
131
144
  - lib/sublime_text_kit/metadata/pathway.rb
132
145
  - lib/sublime_text_kit/metadata/serializers/project.rb
@@ -137,13 +150,15 @@ files:
137
150
  - lib/sublime_text_kit/snippets/printers/ascii_doc.rb
138
151
  - lib/sublime_text_kit/snippets/printers/markdown.rb
139
152
  - lib/sublime_text_kit/snippets/reader.rb
153
+ - sublime_text_kit.gemspec
140
154
  homepage: https://www.alchemists.io/projects/sublime_text_kit
141
155
  licenses:
142
156
  - Hippocratic-3.0
143
157
  metadata:
144
158
  bug_tracker_uri: https://github.com/bkuhlmann/sublime_text_kit/issues
145
- changelog_uri: https://www.alchemists.io/projects/sublime_text_kit/changes.html
159
+ changelog_uri: https://www.alchemists.io/projects/sublime_text_kit/versions
146
160
  documentation_uri: https://www.alchemists.io/projects/sublime_text_kit
161
+ label: Sublime Text Kit
147
162
  rubygems_mfa_required: 'true'
148
163
  source_code_uri: https://github.com/bkuhlmann/sublime_text_kit
149
164
  post_install_message:
@@ -161,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
176
  - !ruby/object:Gem::Version
162
177
  version: '0'
163
178
  requirements: []
164
- rubygems_version: 3.3.3
179
+ rubygems_version: 3.3.7
165
180
  signing_key:
166
181
  specification_version: 4
167
182
  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.0"
9
- VERSION_LABEL = "#{LABEL} #{VERSION}".freeze
10
- SUMMARY = "A command line interface for managing Sublime Text metadata."
11
- end
12
- end