tmbundle-manager 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -6
- data/lib/tmbundle/bundle_name.rb +8 -2
- data/lib/tmbundle/manager/version.rb +1 -1
- data/spec/tmbundle/bundle_name_spec.rb +10 -0
- data/spec/tmbundle/manager_spec.rb +2 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 002698ac7716ea2a29067af597360f50ea472cf8
|
4
|
+
data.tar.gz: 620d5ec0706afd63887c0392339b0ae3b76128ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb379f2a7648a6d562ef8b3b63c370210cf7df1247130e9221626b0338820582f4bbaca8e573b852df0ecd13fcfa13edd1fe7e28b406c7687d677830b72b74a7
|
7
|
+
data.tar.gz: 357ef252fccfcb36a2d7f815c05740f6fea15f5ea99f7322ece01d5a816f152386642302e3863c2ca15feb018e0baae4e2ee7c6c7b0b01c3ca17e0e3ae35d3b2
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ tmb install elia/avian-missing
|
|
11
11
|
|
12
12
|
Install with RubyGems in your Terminal:
|
13
13
|
|
14
|
-
gem install tmbundle-manager
|
14
|
+
gem install tmbundle-manager
|
15
15
|
|
16
16
|
|
17
17
|
## Usage
|
@@ -20,12 +20,15 @@ Use the `tmb` executable:
|
|
20
20
|
|
21
21
|
```shell
|
22
22
|
$ tmb help
|
23
|
-
|
24
23
|
Commands:
|
25
|
-
tmb
|
26
|
-
tmb
|
27
|
-
tmb
|
28
|
-
tmb
|
24
|
+
tmb cd PARTIAL_NAME # open a terminal in the bundle dir
|
25
|
+
tmb edit PARTIAL_NAME # Edit an installed bundle (name will be matched against PARTIAL_NAME)
|
26
|
+
tmb help [COMMAND] # Describe available commands or one specific command
|
27
|
+
tmb install USER/BUNDLE # Install a bundle from GitHub (e.g. tmb install elia/bundler)
|
28
|
+
tmb list # lists all installed bundles
|
29
|
+
tmb path NAME # print path to bundle dir
|
30
|
+
tmb status [BUNDLE] # Check the status of your local copy of the bundle
|
31
|
+
tmb update [PARTIAL_NAME] # Update installed bundles
|
29
32
|
|
30
33
|
```
|
31
34
|
|
data/lib/tmbundle/bundle_name.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
class TMBundle::BundleName
|
2
|
+
REGEX = /([_\.\-]tmbundle)$/i
|
3
|
+
|
2
4
|
def initialize(name)
|
3
5
|
@name = name
|
4
6
|
end
|
@@ -7,14 +9,18 @@ class TMBundle::BundleName
|
|
7
9
|
private :name
|
8
10
|
|
9
11
|
def install_name
|
10
|
-
File.basename(name.gsub(
|
12
|
+
File.basename(name =~ REGEX ? name.gsub(REGEX, '.tmbundle') : name)
|
11
13
|
end
|
12
14
|
|
13
15
|
def repo_name
|
14
|
-
name
|
16
|
+
name =~ REGEX ? name : name+'.tmbundle'
|
15
17
|
end
|
16
18
|
|
17
19
|
def git_url
|
18
20
|
"https://github.com/#{repo_name}.git"
|
19
21
|
end
|
22
|
+
|
23
|
+
def inspect
|
24
|
+
"#<TMBundle::BundleName @name=#@name repo_name:#{repo_name} git_url:#{git_url} install_name:#{install_name}>"
|
25
|
+
end
|
20
26
|
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'tmbundle'
|
3
|
+
require 'tmbundle/bundle_name'
|
4
|
+
|
5
|
+
describe TMBundle::BundleName do
|
6
|
+
subject(:name) { described_class.new('davidrios/jade-tmbundle') }
|
7
|
+
its(:name) { should eq('davidrios/jade-tmbundle') }
|
8
|
+
its(:install_name) { should eq('jade.tmbundle') }
|
9
|
+
its(:git_url) { should eq('https://github.com/davidrios/jade-tmbundle.git') }
|
10
|
+
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.1
|
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-09-
|
11
|
+
date: 2014-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- lib/tmbundle/manager/server.rb
|
103
103
|
- lib/tmbundle/manager/version.rb
|
104
104
|
- spec/spec_helper.rb
|
105
|
+
- spec/tmbundle/bundle_name_spec.rb
|
105
106
|
- spec/tmbundle/manager_spec.rb
|
106
107
|
- spec/tmbundle_spec.rb
|
107
108
|
- tmbundle-manager.gemspec
|
@@ -131,5 +132,6 @@ specification_version: 4
|
|
131
132
|
summary: TextMate 2 Bundle/Package Manager
|
132
133
|
test_files:
|
133
134
|
- spec/spec_helper.rb
|
135
|
+
- spec/tmbundle/bundle_name_spec.rb
|
134
136
|
- spec/tmbundle/manager_spec.rb
|
135
137
|
- spec/tmbundle_spec.rb
|