earthquake 0.9.2 → 0.9.3
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/lib/earthquake/commands.rb +3 -3
- data/lib/earthquake/core.rb +1 -1
- data/lib/earthquake/version.rb +1 -1
- metadata +4 -3
data/lib/earthquake/commands.rb
CHANGED
|
@@ -480,15 +480,15 @@ Earthquake.init do
|
|
|
480
480
|
else
|
|
481
481
|
puts "..."
|
|
482
482
|
gist_id = uri.path[/\d+/]
|
|
483
|
-
meta = JSON.parse(open("https://
|
|
484
|
-
filename = meta["
|
|
483
|
+
meta = JSON.parse(open("https://api.github.com/gists/#{gist_id}").read)
|
|
484
|
+
filename = meta["files"].keys[0]
|
|
485
485
|
raw = open("https://gist.github.com/raw/#{gist_id}/#{filename}").read
|
|
486
486
|
|
|
487
487
|
puts '-' * 80
|
|
488
488
|
puts raw.c(36)
|
|
489
489
|
puts '-' * 80
|
|
490
490
|
|
|
491
|
-
filename = "#{meta["
|
|
491
|
+
filename = "#{meta["id"]}.rb" if filename =~ /^gistfile/
|
|
492
492
|
filepath = File.join(config[:plugin_dir], filename)
|
|
493
493
|
if confirm("Install to '#{filepath}'?")
|
|
494
494
|
File.open(File.join(config[:plugin_dir], filename), 'w') do |file|
|
data/lib/earthquake/core.rb
CHANGED
data/lib/earthquake/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: earthquake
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-06-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: twitter-stream
|
|
@@ -239,10 +239,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
239
239
|
version: '0'
|
|
240
240
|
requirements: []
|
|
241
241
|
rubyforge_project: earthquake
|
|
242
|
-
rubygems_version: 1.8.
|
|
242
|
+
rubygems_version: 1.8.23
|
|
243
243
|
signing_key:
|
|
244
244
|
specification_version: 3
|
|
245
245
|
summary: Terminal Twitter Client
|
|
246
246
|
test_files:
|
|
247
247
|
- spec/earthquake_spec.rb
|
|
248
248
|
- spec/spec_helper.rb
|
|
249
|
+
has_rdoc:
|