sublime_text_kit 0.1.0 → 0.2.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
  SHA1:
3
- metadata.gz: 856d1ed15281faf42b62d61ceeae2c9597b12253
4
- data.tar.gz: 1cfd8b2e1456c1723f5ae90867eb348fe6ad3347
3
+ metadata.gz: a79588250ed58de5a6c66ec236b4d40ccab48583
4
+ data.tar.gz: 02be57c00be89a837b187b1584fc8155b732ac49
5
5
  SHA512:
6
- metadata.gz: 7c73df56e09e2ab166ef63c75dec2c633f0d49d21910c64fc5dfcddc444bc499352ec1f6900661c55375fafa8490c0baa4d57d12fe5cfd5be72924e6ce92bbbb
7
- data.tar.gz: 64a904e76eba7342a2c2bc01b0997f301f5e8e811a247276308f04b76e5afe2064280d1401eb6d2d4e38fb71551ac8776863090d3c9b2a94b8baff1ff69cd9aa
6
+ metadata.gz: 81e815e251d79c393d6c6feae4de45d10b783600261aa74f12f17de8630f8e1b3b5e14ce36353bf5636a24abd2204b6cef28b7ec26647f633c48a28145c00666
7
+ data.tar.gz: 9f899b89655a9b6825fcf23a6a405b24ae64db49a08af607c937dcdbf8db125317f38c949e2905d63504a37e3f017d1b5497fb803524f5630fda8334d954ce0c
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- #�N�0H�„A j D��y� Dj)���f���p�%=�ג��{d ����n/]���m<���q����D ħ(����|4�Q
2
- ��E\h�a��3���E��e�F%�h�E�0�m�4l5�-���.�i:Fb'��
1
+ PQ�oШhЫ�|��9v��V%->�h��=\ɗ_������pczd�@bVN"���t�����Ԓda7W*�t��=�*�9�xJ������e��0��1\A���&P:2��Fq+�O/��m�@�9ם<�JQPi^
2
+ j
3
+ �c�mƩu��]e���G�N�^7���! �k�F�[�vJ��o#�?-WP��W�NvZ8l.+G
data/README.md CHANGED
@@ -4,8 +4,8 @@
4
4
  [![Code Climate GPA](https://codeclimate.com/github/bkuhlmann/sublime_text_kit.png)](https://codeclimate.com/github/bkuhlmann/sublime_text_kit)
5
5
  [![Travis CI Status](https://secure.travis-ci.org/bkuhlmann/sublime_text_kit.png)](http://travis-ci.org/bkuhlmann/sublime_text_kit)
6
6
 
7
- Provides a collection of utilities that aids in Sublime Text managment. The utilities are fairly sparse at the
8
- moment but the idea is that this will grow over time.
7
+ Provides a collection of utilities that aid in Sublime Text managment. These utilities are fairly sparse at the
8
+ moment but will grow over time as new needs arise.
9
9
 
10
10
  # Features
11
11
 
@@ -15,7 +15,10 @@ moment but the idea is that this will grow over time.
15
15
 
16
16
  # Requirements
17
17
 
18
- 0. [Ruby 2.x.x](http://www.ruby-lang.org).
18
+ 0. Any of the following Ruby VMs:
19
+ * [MRI 2.x.x](http://www.ruby-lang.org)
20
+ * [JRuby 1.x.x](http://jruby.org)
21
+ * [Rubinius 2.x.x](http://rubini.us)
19
22
  0. [Sublime Text 2](http://www.sublimetext.com).
20
23
 
21
24
  # Setup
@@ -47,12 +50,13 @@ From the command line, type: stk
47
50
  stk -s, [--session] # Manage session data.
48
51
  stk -v, [--version] # Show version.
49
52
 
50
- For settion options, type: stk help --session
53
+ For session options, type: stk help --session
51
54
 
52
55
  -r, [--rebuild-recent-workspaces] # Rebuild recent workspaces.
53
56
 
54
57
  # Troubleshooting
55
58
 
59
+ * When rebuilding workspaces, ensure Sublime Text is shutdown or changes won't be applied.
56
60
  * When rebuilding workspaces, ensure workspaces_path (as defined via settings.yml) points to a directory containing
57
61
  both *.sublime-project and *.sublime-workspace files.
58
62
 
@@ -32,7 +32,7 @@ module SublimeTextKit
32
32
  desc "-e, [--edit]", "Edit settings in default editor (assumes $EDITOR environment variable)."
33
33
  map %w(-e --edit) => :edit
34
34
  def edit
35
- `$EDITOR #{@settings_file}`
35
+ `#{editor} #{@settings_file}`
36
36
  end
37
37
 
38
38
  desc "-v, [--version]", "Show version."
@@ -1,4 +1,4 @@
1
- require "oj"
1
+ require "json"
2
2
 
3
3
  module SublimeTextKit
4
4
  class Session
@@ -12,8 +12,8 @@ module SublimeTextKit
12
12
  "#{home_path}/Library/Application Support/Sublime Text 2/Settings/Session.sublime_session"
13
13
  end
14
14
 
15
- def initialize workspaces_path: ''
16
- @workspaces_path = workspaces_path
15
+ def initialize options = {}
16
+ @workspaces_path = options.fetch :workspaces_path, ''
17
17
  end
18
18
 
19
19
  def workspaces
@@ -32,11 +32,11 @@ module SublimeTextKit
32
32
  private
33
33
 
34
34
  def load_session
35
- File.exists?(self.class.session_path) ? Oj.load(File.read(self.class.session_path)) : {}
35
+ File.exists?(self.class.session_path) ? JSON.load(File.read(self.class.session_path)) : {}
36
36
  end
37
37
 
38
38
  def save_session json
39
- File.open(self.class.session_path, 'w') { |file| file.write Oj.dump(json) }
39
+ File.open(self.class.session_path, 'w') { |file| file.write JSON.dump(json) }
40
40
  end
41
41
  end
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module SublimeTextKit
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -30,94 +30,94 @@ cert_chain:
30
30
  SJpzzzZ8gO6BKn4fhd+ENNQ333Qy3nuNk07TVIaNnlgeHhowUDuD9T7Z8Lka0pt3
31
31
  4PteiTppsf0SSVAM9zSO5IuFngXMRwWgvjOfXE70f43RDuUVTCSyylc=
32
32
  -----END CERTIFICATE-----
33
- date: 2014-01-28 00:00:00.000000000 Z
33
+ date: 2014-02-16 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
- name: thor
36
+ name: pry-byebug
37
37
  requirement: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '0.18'
42
- type: :runtime
41
+ version: '0'
42
+ type: :development
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: '0.18'
48
+ version: '0'
49
49
  - !ruby/object:Gem::Dependency
50
- name: thor_plus
50
+ name: pry-stack_explorer
51
51
  requirement: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '1.0'
56
- type: :runtime
55
+ version: '0'
56
+ type: :development
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: '1.0'
62
+ version: '0'
63
63
  - !ruby/object:Gem::Dependency
64
- name: oj
64
+ name: thor
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '2.5'
69
+ version: '0.18'
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: '2.5'
76
+ version: '0.18'
77
77
  - !ruby/object:Gem::Dependency
78
- name: rake
78
+ name: thor_plus
79
79
  requirement: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '10.0'
84
- type: :development
83
+ version: '1.4'
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: '10.0'
90
+ version: '1.4'
91
91
  - !ruby/object:Gem::Dependency
92
- name: pry
92
+ name: json
93
93
  requirement: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ">="
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '0'
98
- type: :development
97
+ version: '1.8'
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: '0'
104
+ version: '1.8'
105
105
  - !ruby/object:Gem::Dependency
106
- name: pry-byebug
106
+ name: rake
107
107
  requirement: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ">="
109
+ - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: '0'
111
+ version: '10.0'
112
112
  type: :development
113
113
  prerelease: false
114
114
  version_requirements: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ">="
116
+ - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: '0'
118
+ version: '10.0'
119
119
  - !ruby/object:Gem::Dependency
120
- name: pry-remote
120
+ name: pry
121
121
  requirement: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - ">="
@@ -131,7 +131,7 @@ dependencies:
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  - !ruby/object:Gem::Dependency
134
- name: pry-rescue
134
+ name: pry-remote
135
135
  requirement: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - ">="
@@ -145,7 +145,7 @@ dependencies:
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  - !ruby/object:Gem::Dependency
148
- name: pry-stack_explorer
148
+ name: pry-rescue
149
149
  requirement: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - ">="
@@ -172,34 +172,6 @@ dependencies:
172
172
  - - ">="
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
- - !ruby/object:Gem::Dependency
176
- name: pry-git
177
- requirement: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
- type: :development
183
- prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
- requirements:
186
- - - ">="
187
- - !ruby/object:Gem::Version
188
- version: '0'
189
- - !ruby/object:Gem::Dependency
190
- name: pry-doc
191
- requirement: !ruby/object:Gem::Requirement
192
- requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- version: '0'
196
- type: :development
197
- prerelease: false
198
- version_requirements: !ruby/object:Gem::Requirement
199
- requirements:
200
- - - ">="
201
- - !ruby/object:Gem::Version
202
- version: '0'
203
175
  - !ruby/object:Gem::Dependency
204
176
  name: rspec
205
177
  requirement: !ruby/object:Gem::Requirement
@@ -214,20 +186,6 @@ dependencies:
214
186
  - - ">="
215
187
  - !ruby/object:Gem::Version
216
188
  version: '0'
217
- - !ruby/object:Gem::Dependency
218
- name: aruba
219
- requirement: !ruby/object:Gem::Requirement
220
- requirements:
221
- - - ">="
222
- - !ruby/object:Gem::Version
223
- version: '0'
224
- type: :development
225
- prerelease: false
226
- version_requirements: !ruby/object:Gem::Requirement
227
- requirements:
228
- - - ">="
229
- - !ruby/object:Gem::Version
230
- version: '0'
231
189
  - !ruby/object:Gem::Dependency
232
190
  name: rb-fsevent
233
191
  requirement: !ruby/object:Gem::Requirement
@@ -282,9 +240,9 @@ require_paths:
282
240
  - lib
283
241
  required_ruby_version: !ruby/object:Gem::Requirement
284
242
  requirements:
285
- - - "~>"
243
+ - - ">="
286
244
  - !ruby/object:Gem::Version
287
- version: '2.0'
245
+ version: '0'
288
246
  required_rubygems_version: !ruby/object:Gem::Requirement
289
247
  requirements:
290
248
  - - ">="
@@ -292,9 +250,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
250
  version: '0'
293
251
  requirements: []
294
252
  rubyforge_project:
295
- rubygems_version: 2.2.1
253
+ rubygems_version: 2.2.2
296
254
  signing_key:
297
255
  specification_version: 4
298
256
  summary: Command line utilities for Sublime Text.
299
257
  test_files: []
300
- has_rdoc:
metadata.gz.sig CHANGED
Binary file