desi 0.2.8 → 0.2.9

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.
@@ -10,13 +10,13 @@ module Desi
10
10
 
11
11
  def initialize(opts = {})
12
12
  @destination_dir = Pathname(opts.fetch(:destination_dir, Desi::LocalInstall.new))
13
- @host = URI(opts.fetch(:host, 'https://nodeload.github.com/'))
13
+ @host = URI(opts.fetch(:host, 'https://download.elasticsearch.org/'))
14
14
  @client = opts.fetch(:http_client_factory, Desi::HttpClient).new(@host)
15
15
  @verbose = opts[:verbose]
16
16
  end
17
17
 
18
18
  def download!(version, opts = {})
19
- path = "/elasticsearch/elasticsearch/tar.gz/#{version.version_name}"
19
+ path = "/elasticsearch/elasticsearch/#{version.filename}"
20
20
  destination_name = @destination_dir.join File.basename(version.filename)
21
21
 
22
22
  raise "ERROR: File #{destination_name} already present!" if destination_name.exist?
data/lib/desi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Desi
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: desi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
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: 2013-01-03 00:00:00.000000000 Z
12
+ date: 2013-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: boson
@@ -207,7 +207,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
207
  version: '0'
208
208
  segments:
209
209
  - 0
210
- hash: 4007543491113843537
210
+ hash: -3536869085604684472
211
211
  required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  none: false
213
213
  requirements:
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  version: '0'
217
217
  segments:
218
218
  - 0
219
- hash: 4007543491113843537
219
+ hash: -3536869085604684472
220
220
  requirements: []
221
221
  rubyforge_project:
222
222
  rubygems_version: 1.8.23