tmbundle-manager 0.1.0.pre1 → 0.1.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/tmb +13 -4
- data/lib/tmbundle/manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6c5b22838e97783ac348b484db1b99f8b89a25a
|
4
|
+
data.tar.gz: e2bf8d4a4919f63ebe5d79bf74015b9b938d25c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67558ee5deb1342431e4c3bb3fae0e2e8e7d6fccb699951267e646435882272aa1717ca9d0ec947f2b209c7a51ba0108d9278ba5eda47bd8e5e927a784d959cb
|
7
|
+
data.tar.gz: ef6b7a4181a713ddf570df6de626e4e32daabb5a5e98f6551f65a62578013c2718f108c56670f51f7b5130ef50315e7c9a532f02d4615605921fbea1dfef37a8
|
data/bin/tmb
CHANGED
@@ -62,6 +62,14 @@ class TMBundle < Thor
|
|
62
62
|
puts "Errored (#{errored.size})\n- #{errored.map(&:name).join("\n- ")}\n\n" if errored.any?
|
63
63
|
end
|
64
64
|
|
65
|
+
desc 'install', 'Install a bundle from GitHub'
|
66
|
+
def install name
|
67
|
+
full_name = name.gsub(/(\.tmbundle)$/i, '')+'.tmbundle'
|
68
|
+
git_url = "https://github.com/#{full_name}.git"
|
69
|
+
install_path = bundles_dir.join(full_name).to_s
|
70
|
+
system *(%w[git clone] + [git_url, install_path])
|
71
|
+
end
|
72
|
+
|
65
73
|
private
|
66
74
|
|
67
75
|
def within bundle
|
@@ -71,10 +79,11 @@ class TMBundle < Thor
|
|
71
79
|
end
|
72
80
|
|
73
81
|
def installed_bundles
|
74
|
-
@installed_bundles ||=
|
75
|
-
|
76
|
-
|
77
|
-
|
82
|
+
@installed_bundles ||= Dir[bundles_dir.join('*').to_s].map {|path| Bundle.new(path)}
|
83
|
+
end
|
84
|
+
|
85
|
+
def bundles_dir
|
86
|
+
@bundles_dir ||= Pathname('~/Library/Application Support/Avian/Bundles').expand_path
|
78
87
|
end
|
79
88
|
|
80
89
|
class Bundle < Struct.new(:path)
|
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.0.
|
4
|
+
version: 0.1.0.pre2
|
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-04-
|
11
|
+
date: 2014-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|