sublime_text_kit 6.0.0 → 6.1.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 +34 -34
- data/lib/sublime_text_kit/cli.rb +17 -19
- data/lib/sublime_text_kit/identity.rb +1 -1
- metadata +33 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe35e323138ee1868a67aaa86f840b7cf491ee61
|
4
|
+
data.tar.gz: 1f5d24d403b75c1e35b5535142c37eaf9e77758a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc01e2dbdfc4f4acbc7a97e5ffdd4638cce6704acef59c9893fcbc8d6579412d3940564a3415d58a13ec02a4354d37ed7d200e6a2f5c7d2c5c40575642d35ab4
|
7
|
+
data.tar.gz: 7dbb0e67785909f4782e2973217210852945d30af7c12aee5bf0d8be5061124ddfc3a27d0273ce150c46772be6d1449eebdbc3c239a120b13c0aa400fc46694e
|
data/README.md
CHANGED
@@ -11,28 +11,28 @@ A command line interface for managing Sublime Text metadata.
|
|
11
11
|
|
12
12
|
<!-- Tocer[start]: Auto-generated, don't remove. -->
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
- [Features](#features)
|
17
|
-
- [Screencasts](#screencasts)
|
18
|
-
- [Requirements](#requirements)
|
19
|
-
- [Setup](#setup)
|
20
|
-
- [Usage](#usage)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
- [Tests](#tests)
|
26
|
-
- [Versioning](#versioning)
|
27
|
-
- [Code of Conduct](#code-of-conduct)
|
28
|
-
- [Contributions](#contributions)
|
29
|
-
- [License](#license)
|
30
|
-
- [History](#history)
|
31
|
-
- [Credits](#credits)
|
14
|
+
## Table of Contents
|
15
|
+
|
16
|
+
- [Features](#features)
|
17
|
+
- [Screencasts](#screencasts)
|
18
|
+
- [Requirements](#requirements)
|
19
|
+
- [Setup](#setup)
|
20
|
+
- [Usage](#usage)
|
21
|
+
- [Command Line Interface (CLI)](#command-line-interface-cli)
|
22
|
+
- [Customization](#customization)
|
23
|
+
- [Workflow](#workflow)
|
24
|
+
- [Troubleshooting](#troubleshooting)
|
25
|
+
- [Tests](#tests)
|
26
|
+
- [Versioning](#versioning)
|
27
|
+
- [Code of Conduct](#code-of-conduct)
|
28
|
+
- [Contributions](#contributions)
|
29
|
+
- [License](#license)
|
30
|
+
- [History](#history)
|
31
|
+
- [Credits](#credits)
|
32
32
|
|
33
33
|
<!-- Tocer[finish]: Auto-generated, don't remove. -->
|
34
34
|
|
35
|
-
|
35
|
+
## Features
|
36
36
|
|
37
37
|
- Provides project metadata (i.e. *.sublime-project and *.sublime-workspace files) management for
|
38
38
|
project switching via the `CONTROL+COMMAND+P` shortcut.
|
@@ -40,16 +40,16 @@ A command line interface for managing Sublime Text metadata.
|
|
40
40
|
metadata is in a directory) so one can easily toggle between up-to-date project information via
|
41
41
|
the `CONTROL+COMMAND+P` shortcut.
|
42
42
|
|
43
|
-
|
43
|
+
## Screencasts
|
44
44
|
|
45
45
|
[![asciicast](https://asciinema.org/a/92707.png)](https://asciinema.org/a/92707)
|
46
46
|
|
47
|
-
|
47
|
+
## Requirements
|
48
48
|
|
49
49
|
0. [Ruby 2.4.x](https://www.ruby-lang.org).
|
50
50
|
0. [Sublime Text 2](https://www.sublimetext.com).
|
51
51
|
|
52
|
-
|
52
|
+
## Setup
|
53
53
|
|
54
54
|
For a secure install, type the following from the command line (recommended):
|
55
55
|
|
@@ -64,9 +64,9 @@ For an insecure install, type the following (not recommended):
|
|
64
64
|
|
65
65
|
gem install sublime_text_kit
|
66
66
|
|
67
|
-
|
67
|
+
## Usage
|
68
68
|
|
69
|
-
|
69
|
+
### Command Line Interface (CLI)
|
70
70
|
|
71
71
|
From the command line, type: `sublime_text_kit`
|
72
72
|
|
@@ -92,7 +92,7 @@ For session options, type: `sublime_text_kit --help --session`
|
|
92
92
|
|
93
93
|
-R, [--rebuild], [--no-rebuild] # Rebuild session metadata.
|
94
94
|
|
95
|
-
|
95
|
+
### Customization
|
96
96
|
|
97
97
|
This gem can be configured via a global configuration:
|
98
98
|
|
@@ -127,7 +127,7 @@ assuming the following directory structure exists...
|
|
127
127
|
~/Dropbox/Cache/Sublime/sublime_text_kit.sublime-project
|
128
128
|
~/Dropbox/Cache/Sublime/sublime_text_kit.sublime-workspace
|
129
129
|
|
130
|
-
|
130
|
+
### Workflow
|
131
131
|
|
132
132
|
The following demonstrates a default Sublime Text setup:
|
133
133
|
|
@@ -141,19 +141,19 @@ The following demonstrates a default Sublime Text setup:
|
|
141
141
|
Notice that you can (fuzzy type) project names to jump between them.
|
142
142
|
0. Breeze through your project workload with ease. :)
|
143
143
|
|
144
|
-
|
144
|
+
### Troubleshooting
|
145
145
|
|
146
146
|
- When rebuilding workspaces, ensure Sublime Text is shutdown or changes won't be applied.
|
147
147
|
- When rebuilding workspaces, ensure workspace_dir (as defined via settings.yml) points to a
|
148
148
|
directory containing `*.sublime-project` and `*.sublime-workspace` files.
|
149
149
|
|
150
|
-
|
150
|
+
## Tests
|
151
151
|
|
152
152
|
To test, run:
|
153
153
|
|
154
154
|
bundle exec rake
|
155
155
|
|
156
|
-
|
156
|
+
## Versioning
|
157
157
|
|
158
158
|
Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
|
159
159
|
|
@@ -161,26 +161,26 @@ Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
|
|
161
161
|
- Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
|
162
162
|
- Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
|
163
163
|
|
164
|
-
|
164
|
+
## Code of Conduct
|
165
165
|
|
166
166
|
Please note that this project is released with a [CODE OF CONDUCT](CODE_OF_CONDUCT.md). By
|
167
167
|
participating in this project you agree to abide by its terms.
|
168
168
|
|
169
|
-
|
169
|
+
## Contributions
|
170
170
|
|
171
171
|
Read [CONTRIBUTING](CONTRIBUTING.md) for details.
|
172
172
|
|
173
|
-
|
173
|
+
## License
|
174
174
|
|
175
175
|
Copyright (c) 2014 [Alchemists](https://www.alchemists.io).
|
176
176
|
Read [LICENSE](LICENSE.md) for details.
|
177
177
|
|
178
|
-
|
178
|
+
## History
|
179
179
|
|
180
180
|
Read [CHANGES](CHANGES.md) for details.
|
181
181
|
Built with [Gemsmith](https://github.com/bkuhlmann/gemsmith).
|
182
182
|
|
183
|
-
|
183
|
+
## Credits
|
184
184
|
|
185
185
|
Developed by [Brooke Kuhlmann](https://www.alchemists.io) at
|
186
186
|
[Alchemists](https://www.alchemists.io).
|
data/lib/sublime_text_kit/cli.rb
CHANGED
@@ -2,14 +2,12 @@
|
|
2
2
|
|
3
3
|
require "thor"
|
4
4
|
require "thor/actions"
|
5
|
-
require "thor_plus/actions"
|
6
5
|
require "runcom"
|
7
6
|
|
8
7
|
module SublimeTextKit
|
9
8
|
# The Command Line Interface (CLI) for the gem.
|
10
9
|
class CLI < Thor
|
11
10
|
include Thor::Actions
|
12
|
-
include ThorPlus::Actions
|
13
11
|
|
14
12
|
package_name Identity.version_label
|
15
13
|
|
@@ -73,7 +71,7 @@ module SublimeTextKit
|
|
73
71
|
def config
|
74
72
|
path = self.class.configuration.path
|
75
73
|
|
76
|
-
if options.edit? then `#{
|
74
|
+
if options.edit? then `#{ENV["EDITOR"]} #{path}`
|
77
75
|
elsif options.info?
|
78
76
|
path ? say(path) : say("Configuration doesn't exist.")
|
79
77
|
else help(:config)
|
@@ -103,53 +101,53 @@ module SublimeTextKit
|
|
103
101
|
end
|
104
102
|
|
105
103
|
def create_metadata
|
106
|
-
info "Creating metadata..."
|
107
|
-
info "Metadata Path: #{metadata_dir}"
|
104
|
+
say_status :info, "Creating metadata...", :green
|
105
|
+
say_status :info, "Metadata Path: #{metadata_dir}", :green
|
108
106
|
project_roots.each do |project_root|
|
109
|
-
info "Processing project root: #{File.expand_path project_root}..."
|
107
|
+
say_status :info, "Processing project root: #{File.expand_path project_root}...", :green
|
110
108
|
Metadata::Project.create project_root, metadata_dir
|
111
109
|
Metadata::Workspace.create project_root, metadata_dir
|
112
110
|
end
|
113
|
-
info "Metadata created."
|
111
|
+
say_status :info, "Metadata created.", :green
|
114
112
|
end
|
115
113
|
|
116
114
|
def destroy_metadata
|
117
115
|
if yes? "Delete metadata in #{metadata_dir}?"
|
118
|
-
info "Deleting metadata..."
|
116
|
+
say_status :info, "Deleting metadata...", :green
|
119
117
|
Metadata::Project.delete metadata_dir
|
120
118
|
Metadata::Workspace.delete metadata_dir
|
121
|
-
info "Metadata deleted."
|
119
|
+
say_status :info, "Metadata deleted.", :green
|
122
120
|
else
|
123
|
-
info "Metadata deletion aborted."
|
121
|
+
say_status :info, "Metadata deletion aborted.", :green
|
124
122
|
end
|
125
123
|
end
|
126
124
|
|
127
125
|
def rebuild_metadata
|
128
126
|
if yes? "Rebuild metadata in #{metadata_dir}?"
|
129
|
-
info "Deleting metadata..."
|
127
|
+
say_status :info, "Deleting metadata...", :green
|
130
128
|
Metadata::Project.delete metadata_dir
|
131
129
|
Metadata::Workspace.delete metadata_dir
|
132
130
|
|
133
|
-
info "Creating metadata..."
|
131
|
+
say_status :info, "Creating metadata...", :green
|
134
132
|
project_roots.each do |project_root|
|
135
|
-
info "Processing project root: #{File.expand_path project_root}..."
|
133
|
+
say_status :info, "Processing project root: #{File.expand_path project_root}...", :green
|
136
134
|
Metadata::Project.create project_root, metadata_dir
|
137
135
|
Metadata::Workspace.create project_root, metadata_dir
|
138
136
|
end
|
139
137
|
|
140
|
-
info "Metadata rebuilt."
|
138
|
+
say_status :info, "Metadata rebuilt.", :green
|
141
139
|
else
|
142
|
-
info "Metadata rebuild aborted."
|
140
|
+
say_status :info, "Metadata rebuild aborted.", :green
|
143
141
|
end
|
144
142
|
end
|
145
143
|
|
146
144
|
def rebuild_session
|
147
|
-
info "Rebuilding session metadata..."
|
148
|
-
info "Metadata (project/workspace) Path: #{metadata_dir}"
|
149
|
-
info "Session Path: #{Session.session_path}"
|
145
|
+
say_status :info, "Rebuilding session metadata...", :green
|
146
|
+
say_status :info, "Metadata (project/workspace) Path: #{metadata_dir}", :green
|
147
|
+
say_status :info, "Session Path: #{Session.session_path}", :green
|
150
148
|
session = Session.new metadata_dir
|
151
149
|
session.rebuild_recent_workspaces
|
152
|
-
info "Session metadata rebuilt."
|
150
|
+
say_status :info, "Session metadata rebuilt.", :green
|
153
151
|
end
|
154
152
|
end
|
155
153
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sublime_text_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -16,42 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.20'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: thor_plus
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '5.1'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '5.1'
|
26
|
+
version: '0.20'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: runcom
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
33
|
+
version: '1.2'
|
48
34
|
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
40
|
+
version: '1.2'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rake
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,47 +53,47 @@ dependencies:
|
|
67
53
|
- !ruby/object:Gem::Version
|
68
54
|
version: '12.0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
56
|
+
name: gemsmith
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
61
|
+
version: '10.3'
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
68
|
+
version: '10.3'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: pry
|
70
|
+
name: pry
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
75
|
+
version: '0.10'
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
82
|
+
version: '0.10'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
|
-
name: pry-
|
84
|
+
name: pry-byebug
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
89
|
+
version: '3.5'
|
104
90
|
type: :development
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
96
|
+
version: '3.5'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: bond
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +114,14 @@ dependencies:
|
|
128
114
|
requirements:
|
129
115
|
- - "~>"
|
130
116
|
- !ruby/object:Gem::Version
|
131
|
-
version: '2.
|
117
|
+
version: '2.1'
|
132
118
|
type: :development
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - "~>"
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version: '2.
|
124
|
+
version: '2.1'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: hirb
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +142,14 @@ dependencies:
|
|
156
142
|
requirements:
|
157
143
|
- - "~>"
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version: '1.
|
145
|
+
version: '1.8'
|
160
146
|
type: :development
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version: '1.
|
152
|
+
version: '1.8'
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: rspec
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,6 +178,20 @@ dependencies:
|
|
192
178
|
- - "~>"
|
193
179
|
- !ruby/object:Gem::Version
|
194
180
|
version: '4.7'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: git-cop
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '1.6'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '1.6'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: reek
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|