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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: daef9d1fb25afffabeafc440ba2263086f5a6f11
4
- data.tar.gz: ca7141c16811f8d87e38879079126a21ec47c9e8
3
+ metadata.gz: b7d6d07daa7e0f964dc81115370e2efdfcbe5979
4
+ data.tar.gz: 3623f3d37d8563141eb18fd8539dd460bde5bd8c
5
5
  SHA512:
6
- metadata.gz: 7b0299ab99e1957eb5eb3c30947a7a83e1c23737d4c70da90e579e0cfa1735435fcd4a94292e8da8bf7d4a527d9d5d18708f244385a533d272bcc6c669a04891
7
- data.tar.gz: f47dd9c9780516b952adb8851cf73aea9875c58214b414a7dcef0d43f68731ef9cbdecbca60ef2a601aad6fdf4fbb44cd2c2092291338c26b6c397728f1e5b82
6
+ metadata.gz: 05cb88885ffff1444bf79b57270bc1cc20347902af63d11f8bbe5044173f6db3fb83e12a352d47529be8331f1109580c2d7ef52af9cbcf3cd542081f768ea17d
7
+ data.tar.gz: 00342c715dfff316d958b647f2a6d22b5d7bbae54006fa9e8746ffafcb63336bb28a997451707fd9fce40f03d7e4e9f155dadc66de48e62f3603bad4cf655872
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- GɃ�uq��s���G�Ft�z}/2�W��-X��I���^t6�����qẒ?�kKZ>�ma��ߢ��fH�KTܣ��[ ĝů��Qk�V�n&�/��7���(H7�@���FW?躠/��±���c�Tq�}"L5�^k/"������
2
- �Z���Q;�+���S�F��V��xF�S[��4��c"6�� � D Eέ��v�(]\@dtC�@+u��a+�8𬝾�,$�3p�5�� ����%�;�+^dn!�
1
+ ��%�B
2
+
@@ -5,8 +5,8 @@ require "thor_plus/actions"
5
5
 
6
6
  module SublimeTextKit
7
7
  class CLI < Thor
8
- include Thor::Actions
9
- include ThorPlus::Actions
8
+ include Thor::Actions
9
+ include ThorPlus::Actions
10
10
 
11
11
  # Initialize.
12
12
  def initialize args = [], options = {}, config = {}
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SublimeTextKit
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.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: 1.0.0
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-09-21 00:00:00.000000000 Z
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.6'
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.6'
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.9'
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.9'
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
- - brooke@redalchemist.com
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.1
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