sublime_text_kit 1.0.0 → 1.1.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 +2 -2
- data/lib/sublime_text_kit/cli.rb +2 -2
- data/lib/sublime_text_kit/project_metadata.rb +16 -0
- data/lib/sublime_text_kit/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +8 -8
- 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: b7d6d07daa7e0f964dc81115370e2efdfcbe5979
|
4
|
+
data.tar.gz: 3623f3d37d8563141eb18fd8539dd460bde5bd8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05cb88885ffff1444bf79b57270bc1cc20347902af63d11f8bbe5044173f6db3fb83e12a352d47529be8331f1109580c2d7ef52af9cbcf3cd542081f768ea17d
|
7
|
+
data.tar.gz: 00342c715dfff316d958b647f2a6d22b5d7bbae54006fa9e8746ffafcb63336bb28a997451707fd9fce40f03d7e4e9f155dadc66de48e62f3603bad4cf655872
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
��%�B
|
2
|
+
|
data/lib/sublime_text_kit/cli.rb
CHANGED
@@ -6,12 +6,17 @@ module SublimeTextKit
|
|
6
6
|
attr_reader :name, :project_dir, :workspace_dir, :project_file
|
7
7
|
|
8
8
|
def self.create projects_dir, workspace_dir
|
9
|
+
return unless valid_dir?(projects_dir, "Projects")
|
10
|
+
return unless valid_dir?(workspace_dir, "Workspace")
|
11
|
+
|
9
12
|
projects_dir = File.expand_path projects_dir
|
10
13
|
project_paths = ::Pathname.new(projects_dir).children.select {|child| child if child.directory? }
|
11
14
|
project_paths.each { |project_dir| new(project_dir, workspace_dir).save }
|
12
15
|
end
|
13
16
|
|
14
17
|
def self.delete workspace_dir
|
18
|
+
return unless valid_dir?(workspace_dir, "Workspace")
|
19
|
+
|
15
20
|
workspace_dir = File.expand_path workspace_dir
|
16
21
|
::Pathname.glob("#{workspace_dir}/*.sublime-*").each(&:delete)
|
17
22
|
end
|
@@ -36,5 +41,16 @@ module SublimeTextKit
|
|
36
41
|
File.open(project_file, 'w') { |file| file.write MultiJson.dump(to_h, pretty: true) }
|
37
42
|
end
|
38
43
|
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def self.valid_dir? dir, label
|
48
|
+
if File.exist?(dir)
|
49
|
+
true
|
50
|
+
else
|
51
|
+
puts "#{label} directory doesn't exist: #{dir}."
|
52
|
+
false
|
53
|
+
end
|
54
|
+
end
|
39
55
|
end
|
40
56
|
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: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
fMlZDUGx3lQarp/vPjK+6XH7DLXjBEKqeIGBIpLthYUvDxJRp23C+T3liGSL32vg
|
31
31
|
mSpxxwmK95GDFuEy2mNPaxnazdkw8c+7DbrSpzd/CnNZkRgitxOavs8=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2014-
|
33
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: pry-byebug
|
@@ -80,28 +80,28 @@ dependencies:
|
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '1.
|
83
|
+
version: '1.7'
|
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.7'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
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.10'
|
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.10'
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: rake
|
107
107
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,7 +230,7 @@ dependencies:
|
|
230
230
|
version: '0'
|
231
231
|
description: Command line utilities for Sublime Text packaged as a Ruby Gem.
|
232
232
|
email:
|
233
|
-
-
|
233
|
+
- bkuhlmann@alchemists.io
|
234
234
|
executables:
|
235
235
|
- stk
|
236
236
|
extensions: []
|
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
268
|
rubyforge_project:
|
269
|
-
rubygems_version: 2.4.
|
269
|
+
rubygems_version: 2.4.2
|
270
270
|
signing_key:
|
271
271
|
specification_version: 4
|
272
272
|
summary: Command line utilities for Sublime Text.
|
metadata.gz.sig
CHANGED
Binary file
|