earthquake 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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://gist.github.com/api/v1/json/#{gist_id}").read)
484
- filename = meta["gists"][0]["files"][0]
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["gists"][0]["repo"]}.rb" if filename =~ /^gistfile/
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|
@@ -149,7 +149,7 @@ module Earthquake
149
149
  # ignore
150
150
  end
151
151
  end
152
- if Readline.line_buffer.blank?
152
+ if Readline.line_buffer.nil? || Readline.line_buffer.empty?
153
153
  sync { output }
154
154
  end
155
155
  end
@@ -1,3 +1,3 @@
1
1
  module Earthquake
2
- VERSION = '0.9.2'
2
+ VERSION = '0.9.3'
3
3
  end
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.2
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-05-29 00:00:00.000000000 Z
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.21
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: