tmb 0.0.89 → 0.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest +1 -0
- data/Rakefile +1 -1
- data/bin/tmb +0 -0
- data/lib/tmb/bundle.rb +7 -4
- data/lib/tmb/bundles.rb +3 -1
- data/lib/tmb/commands.rb +4 -0
- data/tmb.gemspec +11 -65
- metadata +7 -30
- data.tar.gz.sig +0 -2
- metadata.gz.sig +0 -2
data/Manifest
CHANGED
data/Rakefile
CHANGED
data/bin/tmb
CHANGED
|
File without changes
|
data/lib/tmb/bundle.rb
CHANGED
|
@@ -5,8 +5,11 @@ module TM
|
|
|
5
5
|
Indent = (" " * IndentSpacing)
|
|
6
6
|
Justify = 15
|
|
7
7
|
Delimiter = ": "
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
BaseBundleDirectory = "/Library/Application Support/TextMate/Bundles"
|
|
9
|
+
UserBundleDirectory = "#{ENV['HOME']}/Library/Application\ Support/TextMate/Bundles"
|
|
10
|
+
BundleDirectory = Dir.entries(BaseBundleDirectory).size > Dir.entries(UserBundleDirectory).size ? BaseBundleDirectory : UserBundleDirectory
|
|
11
|
+
SettingsDirectory = "/#{ENV['HOME']}/tmb"
|
|
12
|
+
App = File.basename File.dirname(__FILE__)
|
|
10
13
|
DB = ".tmbdb"
|
|
11
14
|
SearchDB = ".searchdb"
|
|
12
15
|
|
|
@@ -116,12 +119,12 @@ module TM
|
|
|
116
119
|
end
|
|
117
120
|
|
|
118
121
|
def self.db_filename
|
|
119
|
-
File.join(
|
|
122
|
+
File.join(SettingsDirectory, DB)
|
|
120
123
|
end
|
|
121
124
|
|
|
122
125
|
def self.db(settings=nil)
|
|
123
126
|
f = File.open(db_filename,File::RDWR|File::CREAT)
|
|
124
|
-
unless settings.nil?
|
|
127
|
+
unless settings.nil? or settings.class.name =~ /^Hash/
|
|
125
128
|
parsed = settings.merge(YAML::parse( f.read ) || {})
|
|
126
129
|
f.puts YAML::dump( parsed )
|
|
127
130
|
end
|
data/lib/tmb/bundles.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
module TM
|
|
3
3
|
class Bundles
|
|
4
4
|
|
|
5
|
-
@@search_file = File.join(TM::
|
|
5
|
+
@@search_file = File.join(TM::SettingsDirectory, TM::SearchDB)
|
|
6
6
|
|
|
7
7
|
attr_accessor :response, :results, :search_url, :search_terms, :full_set
|
|
8
8
|
|
|
@@ -21,6 +21,7 @@ module TM
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def search_db(new_entries=nil)
|
|
24
|
+
FileUtils.mkdir TM::BundleDirectory unless File.exist?(TM::BundleDirectory)
|
|
24
25
|
f = File.open(self.class.searchdb_file,File::RDWR|File::CREAT)
|
|
25
26
|
file_contents = f.read
|
|
26
27
|
if new_entries
|
|
@@ -102,6 +103,7 @@ module TM
|
|
|
102
103
|
end
|
|
103
104
|
|
|
104
105
|
def get_search_pages(url, page_range=1)
|
|
106
|
+
puts "Getting a list of repositories from Github...\nThis will take a while but should only happen once...ever"
|
|
105
107
|
result_set = []
|
|
106
108
|
page_range.times do |i|
|
|
107
109
|
page = i + 1
|
data/lib/tmb/commands.rb
CHANGED
|
@@ -7,6 +7,10 @@ module TM
|
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
def self.run(args)
|
|
10
|
+
if args[0].nil?
|
|
11
|
+
help
|
|
12
|
+
return
|
|
13
|
+
end
|
|
10
14
|
tm_command = args[0].to_sym
|
|
11
15
|
unless self.respond_to?(tm_command)
|
|
12
16
|
puts "Bad command: #{tm_command}\n\nTMB only understands: #{self.commands.join(', ')}\n\n| Args: #{args.inspect}"
|
data/tmb.gemspec
CHANGED
|
@@ -1,78 +1,24 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
|
-
s.name =
|
|
5
|
-
s.version = "0.0.
|
|
4
|
+
s.name = "tmb"
|
|
5
|
+
s.version = "0.0.90"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Justin Thibault"]
|
|
9
|
-
s.
|
|
10
|
-
s.
|
|
11
|
-
s.
|
|
12
|
-
s.description = %q{tmb provides a command line interface to manage your textmate bundles, allowing you to search for new bundles on github, install them, and uninstall existing local bundles.}
|
|
13
|
-
s.email = %q{jvthibault@gmail.com}
|
|
9
|
+
s.date = "2011-09-01"
|
|
10
|
+
s.description = "tmb provides a command line interface to manage your textmate bundles, allowing you to search for new bundles on github, install them, and uninstall existing local bundles."
|
|
11
|
+
s.email = "jvthibault@gmail.com"
|
|
14
12
|
s.executables = ["tmb"]
|
|
15
13
|
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README.md", "bin/tmb", "lib/tmb.rb", "lib/tmb/bundle.rb", "lib/tmb/bundles.rb", "lib/tmb/commands.rb"]
|
|
16
|
-
s.files = ["CHANGELOG", "LICENSE", "README.md", "Rakefile", "bin/tmb", "lib/tmb.rb", "lib/tmb/bundle.rb", "lib/tmb/bundles.rb", "lib/tmb/commands.rb", "
|
|
17
|
-
s.homepage =
|
|
18
|
-
s.post_install_message =
|
|
19
|
-
[1mtmb[0m is a utility to search for textmate bundles, download and install
|
|
20
|
-
them, all via a convenient command line interface, much like rubygems.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Usage:
|
|
24
|
-
======================================
|
|
25
|
-
|
|
26
|
-
# Search for bundles containing the word 'webrat' in
|
|
27
|
-
# the title, description, or author's name.
|
|
28
|
-
|
|
29
|
-
[1mtmb search webrat[0m
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
# Search for bundles containing the word 'rspec' OR
|
|
33
|
-
# 'cucumber' OR 'shoulda' in their title, description,
|
|
34
|
-
# or author's name.
|
|
35
|
-
|
|
36
|
-
[1mtmb search rspec cucumber shoulda[0m
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
# Install a bundle containing the word rspec in its
|
|
40
|
-
# search fields. If multiple matches exist, tmb
|
|
41
|
-
# will let you choose which version to install.
|
|
42
|
-
|
|
43
|
-
[1mtmb install rspec[0m
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
# List all installed bundles
|
|
47
|
-
|
|
48
|
-
[1mtmb list[0m
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
# Uninstall bundle matching 'json'. If you type in a
|
|
52
|
-
# fragment and there are multiple installed bundles that begin
|
|
53
|
-
# with that fragment, tmb will let you choose which version
|
|
54
|
-
# you'd like to destroy
|
|
55
|
-
|
|
56
|
-
[1mtmb uninstall json[0m
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
# Tell textmate (if it's open) to reload its bundle information,
|
|
60
|
-
# and update menus & controls accordingly
|
|
61
|
-
|
|
62
|
-
[1mtmb reload[0m
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
# Print this help information
|
|
66
|
-
|
|
67
|
-
[1mtmb help[0m
|
|
68
|
-
|
|
69
|
-
}
|
|
14
|
+
s.files = ["CHANGELOG", "LICENSE", "README.md", "Rakefile", "bin/tmb", "lib/tmb.rb", "lib/tmb/bundle.rb", "lib/tmb/bundles.rb", "lib/tmb/commands.rb", "tmb.gemspec", "Manifest"]
|
|
15
|
+
s.homepage = "http://tmb.github.com/tmb/"
|
|
16
|
+
s.post_install_message = "\n \e[1mtmb\e[0m is a utility to search for textmate bundles, download and install\n them, all via a convenient command line interface, much like rubygems.\n\n\n Usage:\n ======================================\n\n # Search for bundles containing the word 'webrat' in\n # the title, description, or author's name.\n\n \e[1mtmb search webrat\e[0m\n\n\n # Search for bundles containing the word 'rspec' OR\n # 'cucumber' OR 'shoulda' in their title, description,\n # or author's name.\n\n \e[1mtmb search rspec cucumber shoulda\e[0m\n\n\n # Install a bundle containing the word rspec in its\n # search fields. If multiple matches exist, tmb\n # will let you choose which version to install.\n\n \e[1mtmb install rspec\e[0m\n\n\n # List all installed bundles\n\n \e[1mtmb list\e[0m\n\n\n # Uninstall bundle matching 'json'. If you type in a\n # fragment and there are multiple installed bundles that begin\n # with that fragment, tmb will let you choose which version\n # you'd like to destroy\n\n \e[1mtmb uninstall json\e[0m\n\n\n # Tell textmate (if it's open) to reload its bundle information,\n # and update menus & controls accordingly\n\n \e[1mtmb reload\e[0m\n\n\n # Print this help information\n\n \e[1mtmb help\e[0m\n\n"
|
|
70
17
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Tmb", "--main", "README.md"]
|
|
71
18
|
s.require_paths = ["lib"]
|
|
72
|
-
s.rubyforge_project =
|
|
73
|
-
s.rubygems_version =
|
|
74
|
-
s.
|
|
75
|
-
s.summary = %q{tmb - Textmate bundle utility: A utility to search, install, and uninstall textmate bundles from github}
|
|
19
|
+
s.rubyforge_project = "tmb"
|
|
20
|
+
s.rubygems_version = "1.8.10"
|
|
21
|
+
s.summary = "tmb - Textmate bundle utility: A utility to search, install, and uninstall textmate bundles from github"
|
|
76
22
|
|
|
77
23
|
if s.respond_to? :specification_version then
|
|
78
24
|
s.specification_version = 3
|
metadata
CHANGED
|
@@ -1,43 +1,21 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tmb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 171
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 90
|
|
10
|
+
version: 0.0.90
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Justin Thibault
|
|
14
14
|
autorequire:
|
|
15
15
|
bindir: bin
|
|
16
|
-
cert_chain:
|
|
17
|
-
- |
|
|
18
|
-
-----BEGIN CERTIFICATE-----
|
|
19
|
-
MIIDNjCCAh6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMRMwEQYDVQQDDApqdnRo
|
|
20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0kMFs+3WT2oMYPqaGSZBL6tugfSuFq20E2SxXXmNQeKRKfaxxTc+Kg
|
|
35
|
-
Hh/CGhbz5iOqdyIlXmrOpS6P5G7PVqX8LSHid40rBK5uJgRtuw+812bXuypFo0ib
|
|
36
|
-
qKZc+z33GcN0Zg==
|
|
37
|
-
-----END CERTIFICATE-----
|
|
16
|
+
cert_chain: []
|
|
38
17
|
|
|
39
|
-
date: 2011-
|
|
40
|
-
default_executable:
|
|
18
|
+
date: 2011-09-01 00:00:00 Z
|
|
41
19
|
dependencies: []
|
|
42
20
|
|
|
43
21
|
description: tmb provides a command line interface to manage your textmate bundles, allowing you to search for new bundles on github, install them, and uninstall existing local bundles.
|
|
@@ -65,9 +43,8 @@ files:
|
|
|
65
43
|
- lib/tmb/bundle.rb
|
|
66
44
|
- lib/tmb/bundles.rb
|
|
67
45
|
- lib/tmb/commands.rb
|
|
68
|
-
- Manifest
|
|
69
46
|
- tmb.gemspec
|
|
70
|
-
|
|
47
|
+
- Manifest
|
|
71
48
|
homepage: http://tmb.github.com/tmb/
|
|
72
49
|
licenses: []
|
|
73
50
|
|
|
@@ -103,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
80
|
requirements: []
|
|
104
81
|
|
|
105
82
|
rubyforge_project: tmb
|
|
106
|
-
rubygems_version: 1.
|
|
83
|
+
rubygems_version: 1.8.10
|
|
107
84
|
signing_key:
|
|
108
85
|
specification_version: 3
|
|
109
86
|
summary: "tmb - Textmate bundle utility: A utility to search, install, and uninstall textmate bundles from github"
|
data.tar.gz.sig
DELETED
metadata.gz.sig
DELETED