sublime_text_kit 5.0.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +42 -32
- data/lib/sublime_text_kit/cli.rb +5 -4
- data/lib/sublime_text_kit/identity.rb +1 -5
- metadata +14 -50
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7458f5bba684f91a6affce2c91993e880e20f9a6
|
4
|
+
data.tar.gz: 87c38618500f8e6fd521e221d0b8c9fe81e983cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2350c8bb294bdb798d33dd85eee3531227ed7fd60d5081ee284d06786c141a1f142bc57bb9d5bc8c67cbb9e54acd5a138c496d125fcfc0783c43b9d5ad783de2
|
7
|
+
data.tar.gz: 961bef10e8d0a897dcff3fc573f259ffcfd2d2ae816e7364f8c69d22dd8e295c1a0a0dba0f2f565b3a17490b53aaebae4cf60581b8eae840cfece5db89b2c8ee
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
[![Code Climate GPA](https://codeclimate.com/github/bkuhlmann/sublime_text_kit.svg)](https://codeclimate.com/github/bkuhlmann/sublime_text_kit)
|
5
5
|
[![Code Climate Coverage](https://codeclimate.com/github/bkuhlmann/sublime_text_kit/coverage.svg)](https://codeclimate.com/github/bkuhlmann/sublime_text_kit)
|
6
6
|
[![Gemnasium Status](https://gemnasium.com/bkuhlmann/sublime_text_kit.svg)](https://gemnasium.com/bkuhlmann/sublime_text_kit)
|
7
|
-
[![
|
7
|
+
[![Circle CI Status](https://circleci.com/gh/bkuhlmann/sublime_text_kit.svg?style=svg)](https://circleci.com/gh/bkuhlmann/sublime_text_kit)
|
8
8
|
[![Patreon](https://img.shields.io/badge/patreon-donate-brightgreen.svg)](https://www.patreon.com/bkuhlmann)
|
9
9
|
|
10
10
|
A command line interface for managing Sublime Text metadata.
|
@@ -18,6 +18,8 @@ A command line interface for managing Sublime Text metadata.
|
|
18
18
|
- [Requirements](#requirements)
|
19
19
|
- [Setup](#setup)
|
20
20
|
- [Usage](#usage)
|
21
|
+
- [Command Line Interface (CLI)](#command-line-interface-cli)
|
22
|
+
- [Customization](#customization)
|
21
23
|
- [Workflow](#workflow)
|
22
24
|
- [Troubleshooting](#troubleshooting)
|
23
25
|
- [Tests](#tests)
|
@@ -62,37 +64,10 @@ For an insecure install, type the following (not recommended):
|
|
62
64
|
|
63
65
|
gem install sublime_text_kit
|
64
66
|
|
65
|
-
You can define settings by creating the following file:
|
66
|
-
|
67
|
-
~/.sublime_text_kitrc
|
68
|
-
|
69
|
-
Example:
|
70
|
-
|
71
|
-
---
|
72
|
-
:project_roots:
|
73
|
-
- "~/Dropbox/Development/Misc"
|
74
|
-
- "~/Dropbox/Development/OSS"
|
75
|
-
- "~/Dropbox/Development/Work"
|
76
|
-
:metadata_dir: "~/Dropbox/Cache/Sublime"
|
77
|
-
|
78
|
-
The project roots define the root level directories where project folders are located. When project
|
79
|
-
metadata (i.e. *.sublime-project, *.sublime-workspace) is generated, the name of the metadata file
|
80
|
-
will be the same name as that of the project folder. All project metadata, regardless of root
|
81
|
-
location, is written to the same metadata directory. If using the example settings shown above and
|
82
|
-
assuming the following directory structure exists...
|
83
|
-
|
84
|
-
~/Dropbox/Development/Misc/example
|
85
|
-
~/Dropbox/Development/OSS/sublime_text_kit
|
86
|
-
|
87
|
-
...the project metadata will be created in the workspace directory as follows:
|
88
|
-
|
89
|
-
~/Dropbox/Cache/Sublime/example.sublime-project
|
90
|
-
~/Dropbox/Cache/Sublime/example.sublime-workspace
|
91
|
-
~/Dropbox/Cache/Sublime/sublime_text_kit.sublime-project
|
92
|
-
~/Dropbox/Cache/Sublime/sublime_text_kit.sublime-workspace
|
93
|
-
|
94
67
|
# Usage
|
95
68
|
|
69
|
+
## Command Line Interface (CLI)
|
70
|
+
|
96
71
|
From the command line, type: `sublime_text_kit`
|
97
72
|
|
98
73
|
sublime_text_kit -c, [--config] # Manage gem configuration.
|
@@ -117,6 +92,41 @@ For session options, type: `sublime_text_kit --help --session`
|
|
117
92
|
|
118
93
|
-R, [--rebuild], [--no-rebuild] # Rebuild session metadata.
|
119
94
|
|
95
|
+
## Customization
|
96
|
+
|
97
|
+
This gem can be configured via a global configuration:
|
98
|
+
|
99
|
+
~/.config/sublime_text_kit/configuration.yml
|
100
|
+
|
101
|
+
It can also be configured via [XDG environment variables](https://github.com/bkuhlmann/runcom#xdg)
|
102
|
+
as provided by the [Runcom](https://github.com/bkuhlmann/runcom) gem.
|
103
|
+
|
104
|
+
An example configuration could be:
|
105
|
+
|
106
|
+
:project_roots:
|
107
|
+
- "~/Dropbox/Development/Misc"
|
108
|
+
- "~/Dropbox/Development/OSS"
|
109
|
+
- "~/Dropbox/Development/Work"
|
110
|
+
:metadata_dir: "~/Dropbox/Cache/Sublime"
|
111
|
+
|
112
|
+
Feel free to take this configuration, modify, and save as your own custom `configuration.yml`.
|
113
|
+
|
114
|
+
The project roots define the root level directories where project folders are located. When project
|
115
|
+
metadata (i.e. *.sublime-project, *.sublime-workspace) is generated, the name of the metadata file
|
116
|
+
will be the same name as that of the project folder. All project metadata, regardless of root
|
117
|
+
location, is written to the same metadata directory. If using the example settings shown above and
|
118
|
+
assuming the following directory structure exists...
|
119
|
+
|
120
|
+
~/Dropbox/Development/Misc/example
|
121
|
+
~/Dropbox/Development/OSS/sublime_text_kit
|
122
|
+
|
123
|
+
...the project metadata will be created in the workspace directory as follows:
|
124
|
+
|
125
|
+
~/Dropbox/Cache/Sublime/example.sublime-project
|
126
|
+
~/Dropbox/Cache/Sublime/example.sublime-workspace
|
127
|
+
~/Dropbox/Cache/Sublime/sublime_text_kit.sublime-project
|
128
|
+
~/Dropbox/Cache/Sublime/sublime_text_kit.sublime-workspace
|
129
|
+
|
120
130
|
## Workflow
|
121
131
|
|
122
132
|
The following demonstrates a default Sublime Text setup:
|
@@ -147,9 +157,9 @@ To test, run:
|
|
147
157
|
|
148
158
|
Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
|
149
159
|
|
150
|
-
- Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
|
151
|
-
- Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
|
152
160
|
- Major (X.y.z) - Incremented for any backwards incompatible public API changes.
|
161
|
+
- Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
|
162
|
+
- Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
|
153
163
|
|
154
164
|
# Code of Conduct
|
155
165
|
|
data/lib/sublime_text_kit/cli.rb
CHANGED
@@ -14,7 +14,7 @@ module SublimeTextKit
|
|
14
14
|
package_name Identity.version_label
|
15
15
|
|
16
16
|
def self.configuration
|
17
|
-
Runcom::Configuration.new
|
17
|
+
Runcom::Configuration.new project_name: Identity.name
|
18
18
|
end
|
19
19
|
|
20
20
|
# Initialize.
|
@@ -60,7 +60,7 @@ module SublimeTextKit
|
|
60
60
|
say
|
61
61
|
end
|
62
62
|
|
63
|
-
desc "-c, [--config]",
|
63
|
+
desc "-c, [--config]", "Manage gem configuration."
|
64
64
|
map %w[-c --config] => :config
|
65
65
|
method_option :edit,
|
66
66
|
aliases: "-e",
|
@@ -71,10 +71,11 @@ module SublimeTextKit
|
|
71
71
|
desc: "Print gem configuration.",
|
72
72
|
type: :boolean, default: false
|
73
73
|
def config
|
74
|
-
path = self.class.configuration.
|
74
|
+
path = self.class.configuration.path
|
75
75
|
|
76
76
|
if options.edit? then `#{editor} #{path}`
|
77
|
-
elsif options.info?
|
77
|
+
elsif options.info?
|
78
|
+
path ? say(path) : say("Configuration doesn't exist.")
|
78
79
|
else help(:config)
|
79
80
|
end
|
80
81
|
end
|
metadata
CHANGED
@@ -1,36 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sublime_text_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZicm9v
|
14
|
-
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
15
|
-
aW8wHhcNMTYxMDE5MTY0NDEzWhcNMTcxMDE5MTY0NDEzWjBBMQ8wDQYDVQQDDAZi
|
16
|
-
cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
|
17
|
-
GRYCaW8wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCgryPL4/IbWDcL
|
18
|
-
fnqpnoJALqj+ega7hSsvvD8sac57HPNLeKcOmSafFiQLAnTmmE132ZlFc8kyZRVn
|
19
|
-
zmqSESowO5jd+ggFuy1ySqQJXhwgik04KedKRUjpIDZePrjw+M5UJT1qzKCKL2xI
|
20
|
-
nx5cOKP1fSWJ1RRu8JhaDeSloGtYMdw2c28wnKPNIsWDood4xhbLcY9IqeISft2e
|
21
|
-
oTAHTHandHbvt24X3/n67ceNjLBbsVZPXCC1C8C8ccjHjA4Tm2uiFoDwThMcPggg
|
22
|
-
90H6fh0vLFcNAobdPEchbge8tWtfmMPz2+C4yklANn81GA+ANsBS1uwx6mxJoMQU
|
23
|
-
BNVp0aLvAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
24
|
-
BBRS85Rn1BaqeIONByw4t46DMDMzHDAfBgNVHREEGDAWgRRicm9va2VAYWxjaGVt
|
25
|
-
aXN0cy5pbzAfBgNVHRIEGDAWgRRicm9va2VAYWxjaGVtaXN0cy5pbzANBgkqhkiG
|
26
|
-
9w0BAQUFAAOCAQEAZMb57Y4wdpbX8XxTukEO7VC1pndccUsxdbziGsAOiuHET3Aq
|
27
|
-
ygLvrfdYrN88/w+qxncW5bxbO3a6UGkuhIFUPM8zRSE/rh6bCcJljTJrExVt42eV
|
28
|
-
aYCb7WJNsx3eNXHn3uQodq3tD+lmNJzz2bFeT3smGSKEnALBjqorO/2mpDh4FJ3S
|
29
|
-
4CcDYsJ1ywep8LDJDBBGdKz9moL+axryzpeTpgTT/fFYFzRzWrURPyDvPOikh9TX
|
30
|
-
n/LUZ1dKhIHzfKx1B4+TEIefArObGfkLIDM8+Dq1RX7TF1k81Men7iu4MgE9bYBn
|
31
|
-
3dE+xI3FdB5gWcdWxdtgRCmWjtXeYYyb4z6NQQ==
|
32
|
-
-----END CERTIFICATE-----
|
33
|
-
date: 2017-01-22 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-18 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: thor
|
@@ -52,28 +30,28 @@ dependencies:
|
|
52
30
|
requirements:
|
53
31
|
- - "~>"
|
54
32
|
- !ruby/object:Gem::Version
|
55
|
-
version: '5.
|
33
|
+
version: '5.1'
|
56
34
|
type: :runtime
|
57
35
|
prerelease: false
|
58
36
|
version_requirements: !ruby/object:Gem::Requirement
|
59
37
|
requirements:
|
60
38
|
- - "~>"
|
61
39
|
- !ruby/object:Gem::Version
|
62
|
-
version: '5.
|
40
|
+
version: '5.1'
|
63
41
|
- !ruby/object:Gem::Dependency
|
64
42
|
name: runcom
|
65
43
|
requirement: !ruby/object:Gem::Requirement
|
66
44
|
requirements:
|
67
45
|
- - "~>"
|
68
46
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
47
|
+
version: '1.1'
|
70
48
|
type: :runtime
|
71
49
|
prerelease: false
|
72
50
|
version_requirements: !ruby/object:Gem::Requirement
|
73
51
|
requirements:
|
74
52
|
- - "~>"
|
75
53
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
54
|
+
version: '1.1'
|
77
55
|
- !ruby/object:Gem::Dependency
|
78
56
|
name: rake
|
79
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,20 +66,6 @@ dependencies:
|
|
88
66
|
- - "~>"
|
89
67
|
- !ruby/object:Gem::Version
|
90
68
|
version: '12.0'
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: gemsmith
|
93
|
-
requirement: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - "~>"
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '9.0'
|
98
|
-
type: :development
|
99
|
-
prerelease: false
|
100
|
-
version_requirements: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - "~>"
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '9.0'
|
105
69
|
- !ruby/object:Gem::Dependency
|
106
70
|
name: pry
|
107
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,14 +170,14 @@ dependencies:
|
|
206
170
|
requirements:
|
207
171
|
- - "~>"
|
208
172
|
- !ruby/object:Gem::Version
|
209
|
-
version: '3.
|
173
|
+
version: '3.6'
|
210
174
|
type: :development
|
211
175
|
prerelease: false
|
212
176
|
version_requirements: !ruby/object:Gem::Requirement
|
213
177
|
requirements:
|
214
178
|
- - "~>"
|
215
179
|
- !ruby/object:Gem::Version
|
216
|
-
version: '3.
|
180
|
+
version: '3.6'
|
217
181
|
- !ruby/object:Gem::Dependency
|
218
182
|
name: guard-rspec
|
219
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,28 +198,28 @@ dependencies:
|
|
234
198
|
requirements:
|
235
199
|
- - "~>"
|
236
200
|
- !ruby/object:Gem::Version
|
237
|
-
version: '4.
|
201
|
+
version: '4.7'
|
238
202
|
type: :development
|
239
203
|
prerelease: false
|
240
204
|
version_requirements: !ruby/object:Gem::Requirement
|
241
205
|
requirements:
|
242
206
|
- - "~>"
|
243
207
|
- !ruby/object:Gem::Version
|
244
|
-
version: '4.
|
208
|
+
version: '4.7'
|
245
209
|
- !ruby/object:Gem::Dependency
|
246
210
|
name: rubocop
|
247
211
|
requirement: !ruby/object:Gem::Requirement
|
248
212
|
requirements:
|
249
213
|
- - "~>"
|
250
214
|
- !ruby/object:Gem::Version
|
251
|
-
version: '0.
|
215
|
+
version: '0.49'
|
252
216
|
type: :development
|
253
217
|
prerelease: false
|
254
218
|
version_requirements: !ruby/object:Gem::Requirement
|
255
219
|
requirements:
|
256
220
|
- - "~>"
|
257
221
|
- !ruby/object:Gem::Version
|
258
|
-
version: '0.
|
222
|
+
version: '0.49'
|
259
223
|
- !ruby/object:Gem::Dependency
|
260
224
|
name: codeclimate-test-reporter
|
261
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -310,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
310
274
|
version: '0'
|
311
275
|
requirements: []
|
312
276
|
rubyforge_project:
|
313
|
-
rubygems_version: 2.6.
|
277
|
+
rubygems_version: 2.6.12
|
314
278
|
signing_key:
|
315
279
|
specification_version: 4
|
316
280
|
summary: A command line interface for managing Sublime Text metadata.
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED
Binary file
|