tmbundle-manager 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tmbundle.rb +8 -3
- data/lib/tmbundle/bundle_name.rb +4 -0
- data/lib/tmbundle/manager/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0edb5aa31859ebc247c67ba65083ccbca27e436d
|
|
4
|
+
data.tar.gz: f72ea2e7d93d12b2de71edfa25d4eb81bb0571fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aacf6aa0b33c33556645278de30e6c82686637c47fbe8904befe9035fe6461a38228772cf323c4c8026944c7290657e26d9811b7309f08a647a3e481c59dc4df
|
|
7
|
+
data.tar.gz: 3480dfe8af1ba06bfcdb22b3b9bc9f763a1a63f4292b4caf6991d4cba43b88f22b5e72ed34226179c34c4bb608986b946ea35ae00964378616f896c9f96ab88d
|
data/lib/tmbundle.rb
CHANGED
|
@@ -56,7 +56,11 @@ class TMBundle < Thor
|
|
|
56
56
|
require 'tmbundle/bundle_name'
|
|
57
57
|
name = BundleName.new(name)
|
|
58
58
|
install_path = bundles_dir.join(name.install_name).to_s
|
|
59
|
-
system('git', 'clone', name.git_url, install_path)
|
|
59
|
+
success = system('git', 'clone', name.git_url, install_path)
|
|
60
|
+
if not success
|
|
61
|
+
puts "attempting clone of #{name.alt_git_url}"
|
|
62
|
+
success = system('git', 'clone', name.alt_git_url, install_path)
|
|
63
|
+
end
|
|
60
64
|
end
|
|
61
65
|
|
|
62
66
|
desc 'path NAME', 'print path to bundle dir'
|
|
@@ -115,7 +119,8 @@ class TMBundle < Thor
|
|
|
115
119
|
def cd(partial_name)
|
|
116
120
|
bundle = find_bundle(partial_name)
|
|
117
121
|
within bundle do
|
|
118
|
-
|
|
122
|
+
term_program = ENV['TERM_PROGRAM'] || 'Terminal.app'
|
|
123
|
+
system 'open', bundle.path, '-a', term_program
|
|
119
124
|
end
|
|
120
125
|
end
|
|
121
126
|
|
|
@@ -161,7 +166,7 @@ class TMBundle < Thor
|
|
|
161
166
|
end
|
|
162
167
|
|
|
163
168
|
def bundles_dir
|
|
164
|
-
@bundles_dir ||= Pathname('~/Library/Application Support/
|
|
169
|
+
@bundles_dir ||= Pathname('~/Library/Application Support/TextMate/Bundles').expand_path
|
|
165
170
|
end
|
|
166
171
|
|
|
167
172
|
class BundlesList < Struct.new(:dir)
|
data/lib/tmbundle/bundle_name.rb
CHANGED
|
@@ -20,6 +20,10 @@ class TMBundle::BundleName
|
|
|
20
20
|
"https://github.com/#{repo_name}.git"
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
+
def alt_git_url
|
|
24
|
+
git_url.gsub('.tmbundle', '-tmbundle')
|
|
25
|
+
end
|
|
26
|
+
|
|
23
27
|
def inspect
|
|
24
28
|
"#<TMBundle::BundleName @name=#@name repo_name:#{repo_name} git_url:#{git_url} install_name:#{install_name}>"
|
|
25
29
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tmbundle-manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Elia Schito
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
126
126
|
version: '0'
|
|
127
127
|
requirements: []
|
|
128
128
|
rubyforge_project:
|
|
129
|
-
rubygems_version: 2.
|
|
129
|
+
rubygems_version: 2.6.8
|
|
130
130
|
signing_key:
|
|
131
131
|
specification_version: 4
|
|
132
132
|
summary: TextMate 2 Bundle/Package Manager
|