jballanc-textmate 0.9.3 → 0.9.4
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/Rakefile +2 -2
- data/bin/textmate +4 -4
- metadata +3 -2
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rake/gempackagetask'
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
GEM = "textmate"
|
6
|
-
GEM_VERSION = "0.9.
|
6
|
+
GEM_VERSION = "0.9.4"
|
7
7
|
AUTHOR = "Yehuda Katz"
|
8
8
|
EMAIL = "wycats@gmail.com"
|
9
9
|
HOMEPAGE = "http://yehudakatz.com"
|
@@ -43,4 +43,4 @@ end
|
|
43
43
|
|
44
44
|
task :install => [:package] do
|
45
45
|
sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION} --no-rdoc --no-ri}
|
46
|
-
end
|
46
|
+
end
|
data/bin/textmate
CHANGED
@@ -26,7 +26,7 @@ class TextmateInstaller < Thor
|
|
26
26
|
"%s (by %s)" %
|
27
27
|
[
|
28
28
|
normalize_github_repo_name(result['name']).split('.').first,
|
29
|
-
result['
|
29
|
+
result['username']
|
30
30
|
]
|
31
31
|
}
|
32
32
|
end
|
@@ -69,7 +69,7 @@ class TextmateInstaller < Thor
|
|
69
69
|
when 0
|
70
70
|
'echo "Sorry, no such bundle found"'
|
71
71
|
when 1
|
72
|
-
%[git clone #{e_sh repos.first['
|
72
|
+
%[git clone #{e_sh "git://github.com/#{repos.first['username']}/#{repos.first['name']}"} #{e_sh install_bundles_path}/#{e_sh bundle_name}.tmbundle 2>&1]
|
73
73
|
else
|
74
74
|
puts "Multiple bundles with that name found. Please choose which one you want to install:"
|
75
75
|
repos.each_with_index {|repo, idx|
|
@@ -177,12 +177,12 @@ class TextmateInstaller < Thor
|
|
177
177
|
# Until GitHub fixes http://support.github.com/discussions/feature-requests/11-api-search-results,
|
178
178
|
# we need to account for multiple pages of results:
|
179
179
|
page = 1
|
180
|
-
repositories = YAML.load(open("http://github.com/api/v1/yaml/search/tmbundle?
|
180
|
+
repositories = YAML.load(open("http://github.com/api/v1/yaml/search/tmbundle?start_value=#{page}"))['repositories']
|
181
181
|
results = []
|
182
182
|
until repositories.empty?
|
183
183
|
results += repositories.find_all{|result| result['name'].match(search_term)}
|
184
184
|
page += 1
|
185
|
-
repositories = YAML.load(open("http://github.com/api/v1/yaml/search/tmbundle?
|
185
|
+
repositories = YAML.load(open("http://github.com/api/v1/yaml/search/tmbundle?start_value=#{page}"))['repositories']
|
186
186
|
end
|
187
187
|
results.sort{|a,b| a['name'] <=> b['name']}
|
188
188
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jballanc-textmate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yehuda Katz
|
@@ -9,11 +9,12 @@ autorequire: textmate
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-03-19 00:00:00 -07:00
|
13
13
|
default_executable: textmate
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: wycats-thor
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|