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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a22bdf5fe48f431d284be7b04a93f66f527969ae
4
- data.tar.gz: cb1c8f0821496dbc2fb73640cf67c47d3b23c2e3
3
+ metadata.gz: 002698ac7716ea2a29067af597360f50ea472cf8
4
+ data.tar.gz: 620d5ec0706afd63887c0392339b0ae3b76128ff
5
5
  SHA512:
6
- metadata.gz: 8a07ae95b1457de6554b437a0e3923f73ab14019bf8da5c3344a7f26cf389a67ff44ba13ec9d11f52aa300e99efec762b597b3f60de79774329a61b7bbe19b6f
7
- data.tar.gz: c2b900a0f77e4c07e8794571f5a318589d29a85b1d8155f529abeed74fc825fdad21e7ddeb2d08117cd2732c0516233f0c5e3a9e125dc61764402ab0179d3706
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 --pre
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 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 update # Update installed bundles
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
 
@@ -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(/([\.\-_]tmbundle)?$/i, '.tmbundle'))
12
+ File.basename(name =~ REGEX ? name.gsub(REGEX, '.tmbundle') : name)
11
13
  end
12
14
 
13
15
  def repo_name
14
- name+'.tmbundle' unless name =~ /([\.\-_]tmbundle)$/i
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
@@ -1,5 +1,5 @@
1
1
  module Tmbundle
2
2
  module Manager
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  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
@@ -6,6 +6,7 @@ describe Tmbundle::Manager do
6
6
  end
7
7
 
8
8
  it 'does something useful' do
9
- expect(false).to eq(true)
9
+ # expect(false).to eq(true)
10
+ pending
10
11
  end
11
12
  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
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 00:00:00.000000000 Z
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