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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eca4ac7b55486034165b1b5477275faebdda6f9f
4
- data.tar.gz: b7788a53dc1ec478e19e4d6616649a5e178fb73b
3
+ metadata.gz: a6c5b22838e97783ac348b484db1b99f8b89a25a
4
+ data.tar.gz: e2bf8d4a4919f63ebe5d79bf74015b9b938d25c8
5
5
  SHA512:
6
- metadata.gz: b4c17656a55946f59d3abc1dd035b0eaea6d14df9b3c1bcef19319f4649aa596ac49eda142ba2251522ff66d90e4a513bc8db9eeebbb7265305a75d9d16f4a79
7
- data.tar.gz: 3c0f0a7fbb39e1d82dde75268becada03f297528742c1d86b28cd0ff32aca105ab611bd902241e951cebb32f44a3e80d6281cd144ba7fac9218298fbc189eb58
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 ||= begin
75
- bundles_dir = Pathname('~/Library/Application Support/Avian/Bundles').expand_path
76
- Dir[bundles_dir.join('*').to_s].map {|path| Bundle.new(path)}
77
- end
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)
@@ -1,5 +1,5 @@
1
1
  module Tmbundle
2
2
  module Manager
3
- VERSION = '0.1.0.pre1'
3
+ VERSION = '0.1.0.pre2'
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.0.pre1
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-22 00:00:00.000000000 Z
11
+ date: 2014-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor