desi 0.6.7 → 0.6.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9af8c81caac6c01dded48617b37d2b8b55f1038
4
- data.tar.gz: afc38f0f2953f3ec2b8c918d45b0f112df574eba
3
+ metadata.gz: b98c15f9345db0d206dbbca070cd26a8ac27e0de
4
+ data.tar.gz: f936ffc1f630948d6e2763ec159832d54880d36f
5
5
  SHA512:
6
- metadata.gz: e0cf671b691b438728a7e7bc72ae92cb62aeaddac6a2e2b0907beb8e069855aa5377998a327cca54792db6422678760383ebfb5fb10a351e9d8b82bf913b2eee
7
- data.tar.gz: 808a3c765cdba6e45c38031a8f25eac3190ea567171a9817129a476add1db58b729b9bcb26955745cfbe1475134c9f668e1244af5b4c81633683a3e3f90462dd
6
+ metadata.gz: d04dfd7fc401493e4c7a306dce74835bef06300cc3089c3cae2d2e2ae76866b394146fe44d1bd1c981177dc157a0b1b987a6c72626e1ac12c13714b4d36f7143
7
+ data.tar.gz: e5e6a8ce10d3d9e8e78e502284decc1a26356d51f88e1856d28873de819c1f739ec005cbeea509f4c8c68bbf01b06eb69dd054f6636c4ed0a59970f89eb5df94
data/README.md CHANGED
@@ -39,12 +39,12 @@ It can be used both as a command-line tool and as a library.
39
39
  $ # The latest version will be installed by default
40
40
  $ desi install
41
41
  * No release specified, will fetch latest.
42
- * fetching release elasticsearch-0.19.9.tar.gz
42
+ * fetching release elasticsearch-1.0.1.tar.gz
43
43
  […]
44
44
 
45
45
  $ # You can also give a specific release name
46
- $ desi install 0.19.6 # ("v0.19.6" or "elasticsearch-0.19.6" would also work)
47
- * fetching release elasticsearch-0.19.6.tar.gz
46
+ $ desi install 0.90.12 # ("v0.90.12" or "elasticsearch-0.90.12" would also work)
47
+ * fetching release elasticsearch-0.90.12.tar.gz
48
48
  […]
49
49
  ```
50
50
 
@@ -58,16 +58,16 @@ will be spun up by (`desi start`)
58
58
  ```shell
59
59
  $ desi list
60
60
  Local ES installs in /home/me/elasticsearch (current one is tagged with '*'):
61
- * elasticsearch-0.19.9 (/home/me/elasticsearch/elasticsearch-0.19.9)
62
- - elasticsearch-0.19.8 (/home/me/elasticsearch/elasticsearch-0.19.8)
61
+ * elasticsearch-1.0.1 (/home/me/elasticsearch/elasticsearch-1.0.1)
62
+ - elasticsearch-1.0.0 (/home/me/elasticsearch/elasticsearch-1.0.0)
63
63
  ```
64
64
 
65
65
 
66
66
  * library
67
67
 
68
68
  ```ruby
69
- Desi::LocalInstall.new.releases.map(&:name) #=> ["elasticsearch-0.19.8", "elasticsearch-0.19.9"]
70
- Desi::LocalInstall.new.releases.detect(&:current?).version #=> "0.19.9"
69
+ Desi::LocalInstall.new.releases.map(&:name) #=> ["elasticsearch-1.0.0", "elasticsearch-1.0.1"]
70
+ Desi::LocalInstall.new.releases.detect(&:current?).version #=> "1.0.1"
71
71
  ```
72
72
 
73
73
  ### Start a node instance and get the cluster's status
@@ -76,9 +76,9 @@ will be spun up by (`desi start`)
76
76
 
77
77
  ```shell
78
78
  $ desi start
79
- * Elastic Search 0.19.9 started
79
+ * Elastic Search 1.0.1 started
80
80
  $ desi status
81
- OK. Elastic Search cluster 'elasticsearch' (v0.19.9) is running on 1 node(s) with status yellow
81
+ OK. Elastic Search cluster 'elasticsearch' (v1.0.1) is running on 1 node(s) with status yellow
82
82
 
83
83
  # Start Elastic Search in the foreground
84
84
  $ desi start -f # or --foreground
@@ -90,7 +90,7 @@ will be spun up by (`desi start`)
90
90
  * library
91
91
 
92
92
  ```ruby
93
- Desi::ProcessManager.new.start.status #=> "OK. Elastic Search cluster 'elasticsearch' (v0.19.9) is running on 1 node(s) with status green"
93
+ Desi::ProcessManager.new.start.status #=> "OK. Elastic Search cluster 'elasticsearch' (v1.0.1) is running on 1 node(s) with status green"
94
94
  ```
95
95
 
96
96
 
@@ -27,7 +27,7 @@ module Desi
27
27
  end
28
28
 
29
29
  def version
30
- @version ||= Semantic::Version.new /^elasticsearch\-(?<version>.*)$/.match(name.to_s)[:version]
30
+ @version ||= Semantic::Version.new(/^elasticsearch\-(?<version>.*)$/.match(name.to_s)[:version])
31
31
  end
32
32
 
33
33
  def to_s
@@ -36,6 +36,10 @@ module Desi
36
36
  " #{current_mark} #{name} (#{@dirname})"
37
37
  end
38
38
 
39
+ def ==(other)
40
+ other.version.to_s == version.to_s
41
+ end
42
+
39
43
  def <=>(other)
40
44
  name <=> other.name
41
45
  end
data/lib/desi/runner.rb CHANGED
@@ -54,6 +54,11 @@ module Desi
54
54
  Desi::Upstream.new.latest_release
55
55
  end
56
56
 
57
+ if Desi::LocalInstall.new.releases.any? {|r| r == release }
58
+ puts " * release #{release.version} seems to be already installed" if options[:verbose]
59
+ return
60
+ end
61
+
57
62
  puts " * fetching release #{release}" if options[:verbose]
58
63
  package = Desi::Downloader.new(options).download!(release)
59
64
 
data/lib/desi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Desi
2
- VERSION = "0.6.7"
2
+ VERSION = "0.6.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: desi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominique Rose-Rosette
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-24 00:00:00.000000000 Z
11
+ date: 2014-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: boson
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  version: '0'
225
225
  requirements: []
226
226
  rubyforge_project:
227
- rubygems_version: 2.0.13
227
+ rubygems_version: 2.2.0
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: A developer tool to quickly set up an Elastic Search local install.