tmbundle-manager 0.1.2 → 0.1.3

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: b7a2ad9ae1af79f756fa79cb8a738b87aaedb773
4
- data.tar.gz: d69d7eb25a2e0c66a9aca347470505b0e2d188c5
3
+ metadata.gz: 0edb5aa31859ebc247c67ba65083ccbca27e436d
4
+ data.tar.gz: f72ea2e7d93d12b2de71edfa25d4eb81bb0571fc
5
5
  SHA512:
6
- metadata.gz: bce719f22413dcbe7070da9349e661ce6b700d9b3ac51e7ae2eb200f145f0f173abb809de928fea7ce79247931a31295704974c8502cdddff0dafed1e87acebd
7
- data.tar.gz: 9d8b09475f27a1ccd55cbe39d7766838707578850d040134732a5d756bfd81413d54f78730f8515b7b140059763c0c98c02cdd241ad66dcfa198e2ada7e7b131
6
+ metadata.gz: aacf6aa0b33c33556645278de30e6c82686637c47fbe8904befe9035fe6461a38228772cf323c4c8026944c7290657e26d9811b7309f08a647a3e481c59dc4df
7
+ data.tar.gz: 3480dfe8af1ba06bfcdb22b3b9bc9f763a1a63f4292b4caf6991d4cba43b88f22b5e72ed34226179c34c4bb608986b946ea35ae00964378616f896c9f96ab88d
@@ -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
- system 'open', bundle.path, '-a', 'Terminal.app'
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/Avian/Bundles').expand_path
169
+ @bundles_dir ||= Pathname('~/Library/Application Support/TextMate/Bundles').expand_path
165
170
  end
166
171
 
167
172
  class BundlesList < Struct.new(:dir)
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Tmbundle
2
2
  module Manager
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
5
5
  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.2
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: 2014-11-13 00:00:00.000000000 Z
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.4.2
129
+ rubygems_version: 2.6.8
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: TextMate 2 Bundle/Package Manager