sublime_text_kit 0.2.0 → 0.3.0
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.md +7 -2
- data/lib/sublime_text_kit/cli.rb +1 -1
- data/lib/sublime_text_kit/session.rb +8 -4
- data/lib/sublime_text_kit/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +13 -13
- 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: 1b5c31dd36054d4843990c474ba38ef51907526e
|
4
|
+
data.tar.gz: d63de669221ed464adf366547d391e80f8302e7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65d83c8a3c8e491376ffcbdbc592e7598a3ade2964aa617c8d9b890478d68902a3051311e0c7c8c697b727dcc0c61e994e53b4e73dfed5dc9bcfc52e2764fd56
|
7
|
+
data.tar.gz: 6af542fd31e3f6263841651da7396aea368b07d9f60444465c13cdb1fe0232c1843b68a3fa5974cb3ab69f7f6c4390c459ccbe0859e0ce1a651435ec7d669aca
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/sublime_text_kit.png)](http://badge.fury.io/rb/sublime_text_kit)
|
4
4
|
[![Code Climate GPA](https://codeclimate.com/github/bkuhlmann/sublime_text_kit.png)](https://codeclimate.com/github/bkuhlmann/sublime_text_kit)
|
5
|
+
[![Gemnasium Status](https://gemnasium.com/bkuhlmann/sublime_text_kit.png)](https://gemnasium.com/bkuhlmann/sublime_text_kit)
|
5
6
|
[![Travis CI Status](https://secure.travis-ci.org/bkuhlmann/sublime_text_kit.png)](http://travis-ci.org/bkuhlmann/sublime_text_kit)
|
7
|
+
[![Coverage Status](https://coveralls.io/repos/bkuhlmann/sublime_text_kit/badge.png)](https://coveralls.io/r/bkuhlmann/sublime_text_kit)
|
6
8
|
|
7
9
|
Provides a collection of utilities that aid in Sublime Text managment. These utilities are fairly sparse at the
|
8
10
|
moment but will grow over time as new needs arise.
|
@@ -26,9 +28,12 @@ moment but will grow over time as new needs arise.
|
|
26
28
|
For a secure install, type the following from the command line (recommended):
|
27
29
|
|
28
30
|
gem cert --add <(curl -Ls http://www.redalchemist.com/gem-public.pem)
|
29
|
-
gem install sublime_text_kit -
|
31
|
+
gem install sublime_text_kit --trust-policy MediumSecurity
|
30
32
|
|
31
|
-
|
33
|
+
NOTE: A HighSecurity trust policy would be best but MediumSecurity enables signed gem verification while
|
34
|
+
allowing the installation of unsigned dependencies since they are beyond the scope of this gem.
|
35
|
+
|
36
|
+
For an insecure install, type the following (not recommended):
|
32
37
|
|
33
38
|
gem install sublime_text_kit
|
34
39
|
|
data/lib/sublime_text_kit/cli.rb
CHANGED
@@ -52,7 +52,7 @@ module SublimeTextKit
|
|
52
52
|
def rebuild_recent_workspaces
|
53
53
|
info "Rebuilding recent workspaces..."
|
54
54
|
session = SublimeTextKit::Session.new workspaces_path: @settings[:workspaces_path]
|
55
|
-
info "Workspaces Path: #{session.
|
55
|
+
info "Workspaces Path: #{session.workspaces_absolute_path}"
|
56
56
|
info "Sublime Text Session: #{SublimeTextKit::Session.session_path}"
|
57
57
|
session.rebuild_recent_workspaces
|
58
58
|
info "Recent workspaces rebuilt."
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
1
|
+
require "multi_json"
|
2
2
|
|
3
3
|
module SublimeTextKit
|
4
4
|
class Session
|
@@ -16,8 +16,12 @@ module SublimeTextKit
|
|
16
16
|
@workspaces_path = options.fetch :workspaces_path, ''
|
17
17
|
end
|
18
18
|
|
19
|
+
def workspaces_absolute_path
|
20
|
+
File.expand_path workspaces_path
|
21
|
+
end
|
22
|
+
|
19
23
|
def workspaces
|
20
|
-
Dir["#{
|
24
|
+
Dir["#{workspaces_absolute_path}/*.sublime-project"].sort
|
21
25
|
end
|
22
26
|
|
23
27
|
def rebuild_recent_workspaces
|
@@ -32,11 +36,11 @@ module SublimeTextKit
|
|
32
36
|
private
|
33
37
|
|
34
38
|
def load_session
|
35
|
-
File.exists?(self.class.session_path) ?
|
39
|
+
File.exists?(self.class.session_path) ? MultiJson.load(File.read(self.class.session_path)) : {}
|
36
40
|
end
|
37
41
|
|
38
42
|
def save_session json
|
39
|
-
File.open(self.class.session_path, 'w') { |file| file.write
|
43
|
+
File.open(self.class.session_path, 'w') { |file| file.write MultiJson.dump(json) }
|
40
44
|
end
|
41
45
|
end
|
42
46
|
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: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
SJpzzzZ8gO6BKn4fhd+ENNQ333Qy3nuNk07TVIaNnlgeHhowUDuD9T7Z8Lka0pt3
|
31
31
|
4PteiTppsf0SSVAM9zSO5IuFngXMRwWgvjOfXE70f43RDuUVTCSyylc=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2014-
|
33
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: pry-byebug
|
@@ -66,42 +66,42 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0.
|
69
|
+
version: '0.19'
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '0.
|
76
|
+
version: '0.19'
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: thor_plus
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '1.
|
83
|
+
version: '1.5'
|
84
84
|
type: :runtime
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '1.
|
90
|
+
version: '1.5'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
92
|
+
name: multi_json
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '1.
|
97
|
+
version: '1.9'
|
98
98
|
type: :runtime
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: '1.
|
104
|
+
version: '1.9'
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: rake
|
107
107
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,7 +159,7 @@ dependencies:
|
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '0'
|
161
161
|
- !ruby/object:Gem::Dependency
|
162
|
-
name:
|
162
|
+
name: rspec
|
163
163
|
requirement: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
165
|
- - ">="
|
@@ -173,7 +173,7 @@ dependencies:
|
|
173
173
|
- !ruby/object:Gem::Version
|
174
174
|
version: '0'
|
175
175
|
- !ruby/object:Gem::Dependency
|
176
|
-
name:
|
176
|
+
name: rb-fsevent
|
177
177
|
requirement: !ruby/object:Gem::Requirement
|
178
178
|
requirements:
|
179
179
|
- - ">="
|
@@ -187,7 +187,7 @@ dependencies:
|
|
187
187
|
- !ruby/object:Gem::Version
|
188
188
|
version: '0'
|
189
189
|
- !ruby/object:Gem::Dependency
|
190
|
-
name:
|
190
|
+
name: guard-rspec
|
191
191
|
requirement: !ruby/object:Gem::Requirement
|
192
192
|
requirements:
|
193
193
|
- - ">="
|
@@ -201,7 +201,7 @@ dependencies:
|
|
201
201
|
- !ruby/object:Gem::Version
|
202
202
|
version: '0'
|
203
203
|
- !ruby/object:Gem::Dependency
|
204
|
-
name:
|
204
|
+
name: coveralls
|
205
205
|
requirement: !ruby/object:Gem::Requirement
|
206
206
|
requirements:
|
207
207
|
- - ">="
|
metadata.gz.sig
CHANGED
Binary file
|