capistrano-fiftyfive 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ed9fece906727e319ca2ba1f1c323656311beaf
4
- data.tar.gz: 062dca1468dfd16c7bdd51614509eb6b8e229cf2
3
+ metadata.gz: 0be8cbab2bac473d93fe1559a4c276ec65209607
4
+ data.tar.gz: c95b6477716bb9b6551c99d5f4db9440a323fa24
5
5
  SHA512:
6
- metadata.gz: 43414f1de4670b65b20dfb6c9302622c6bff58b7b9d2c99bc96338f6bbd234e2c87d00ca3f3b36e7ca092f85cafc2e02ba4bf4f03a1b0150b245ef4201673d52
7
- data.tar.gz: 2252c5459ea41cd548e7bbe219dd5ba9b1bc61847ab15ec712b9ffdc892f501bb50cef01b7b3d50b013bf279fc7ed204d1b04cbc429519a74eb8f79f841ff196
6
+ metadata.gz: af38dfc37059163c561ac2c5fafbe4aa5049b7f79e9a1dd0ce4c00eb8001d128f30a3cb4a3174ea083da2f2cc64509ba3bd63e4899762c57973e73347b6c9827
7
+ data.tar.gz: 89ae486c42f39b1bf23240cabd3fa35be26f79c8f765995d939357b5aeec9438a4722110841309889d2b87cff2d0641c55ebbca6004888b28ba89c538c65b2b0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # capistrano-fiftyfive Changelog
2
2
 
3
+ ## `0.16.0`
4
+
5
+ * capistrano-fiftyfive now requires capistrano >= 3.3.5 and sshkit => 1.6.1
6
+ * `ask_secretly` has been removed in favor of Capistrano's built-in `ask ..., :echo => false`
7
+ * `agree` no longer takes an optional second argument
8
+ * highline dependency removed
9
+ * Install libffi-dev so that Ruby 2.2.0 can be compiled
10
+
3
11
  ## `0.15.2`
4
12
 
5
13
  * The capistrano-fiftyfive GitHub repository has changed: it is now <https://github.com/mattbrictson/capistrano-fiftyfive>.
@@ -21,10 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_dependency "capistrano", ">= 3.2.1"
25
- spec.add_dependency "sshkit", ">= 1.4.0"
26
- spec.add_dependency "colorize"
27
- spec.add_dependency "highline"
24
+ spec.add_dependency "capistrano", ">= 3.3.5"
25
+ spec.add_dependency "sshkit", ">= 1.6.1"
28
26
 
29
27
  spec.add_development_dependency "bundler", "~> 1.3"
30
28
  spec.add_development_dependency "rake"
@@ -29,23 +29,10 @@ module Capistrano
29
29
  fetch(:application).to_s.gsub(/[^a-zA-Z0-9_]/, "_")
30
30
  end
31
31
 
32
- # Like capistrano's built-in ask(), but does not echo user input.
33
- # Suitable for passwords, etc. Uses the highline gem.
34
- #
35
- # ask_secretly(:postgresql_password)
36
- #
37
- def ask_secretly(key, default=nil)
38
- set key, proc{
39
- hint = default ? " [#{default}]" : ""
40
- answer = HighLine.new.ask("Enter #{key}#{hint}: ") do |q|
41
- q.echo = false
42
- end.to_s
43
- }
44
- end
45
-
46
- # Delegates to HighLine's agree() method.
47
- def agree(yes_or_no_question, character=nil)
48
- HighLine.new.agree(yes_or_no_question, character)
32
+ # Prints a question and returns truthy if the user answers "y" or "yes".
33
+ def agree(yes_or_no_question)
34
+ $stdout.print(yes_or_no_question)
35
+ $stdin.gets.to_s =~ /^y(es)?/i
49
36
  end
50
37
 
51
38
  # Like capistrano's built-in on(), but connects to the server as root.
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Fiftyfive
3
- VERSION = "0.15.2"
3
+ VERSION = "0.16.0"
4
4
  end
5
5
  end
@@ -1,5 +1,4 @@
1
1
  require "digest"
2
- require "highline"
3
2
  require "monitor"
4
3
  require "capistrano/fiftyfive/version"
5
4
  require "capistrano/fiftyfive/compatibility"
@@ -42,7 +42,7 @@ namespace :load do
42
42
  set :fiftyfive_nginx_force_https, false
43
43
  set :fiftyfive_nginx_redirect_hosts, {}
44
44
 
45
- ask_secretly :fiftyfive_postgresql_password
45
+ ask :fiftyfive_postgresql_password, nil, :echo => false
46
46
  set :fiftyfive_postgresql_max_connections, 25
47
47
  set :fiftyfive_postgresql_pool_size, 5
48
48
  set :fiftyfive_postgresql_host, "localhost"
@@ -33,7 +33,7 @@ namespace :fiftyfive do
33
33
  def set_up_prompts
34
34
  fetch(:fiftyfive_dotenv_keys).each do |key|
35
35
  if key.to_s =~ /key|token|secret|password/i
36
- ask_secretly(key)
36
+ ask(key, nil, :echo => false)
37
37
  else
38
38
  ask(key, nil)
39
39
  end
@@ -63,6 +63,7 @@ namespace :fiftyfive do
63
63
  privileged_on release_roles(:all) do |host, user|
64
64
  with :debian_frontend => "noninteractive" do
65
65
  execute "sudo ~#{user}/.rbenv/plugins/rbenv-bootstrap/bin/rbenv-bootstrap-ubuntu-12-04"
66
+ execute "sudo aptitude -y -q install libffi-dev"
66
67
  end
67
68
  end
68
69
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-fiftyfive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-14 00:00:00.000000000 Z
11
+ date: 2014-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -16,56 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.1
19
+ version: 3.3.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.1
26
+ version: 3.3.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sshkit
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.4.0
33
+ version: 1.6.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.4.0
41
- - !ruby/object:Gem::Dependency
42
- name: colorize
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: highline
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
40
+ version: 1.6.1
69
41
  - !ruby/object:Gem::Dependency
70
42
  name: bundler
71
43
  requirement: !ruby/object:Gem::Requirement
@@ -173,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
145
  version: '0'
174
146
  requirements: []
175
147
  rubyforge_project:
176
- rubygems_version: 2.2.2
148
+ rubygems_version: 2.4.5
177
149
  signing_key:
178
150
  specification_version: 4
179
151
  summary: Additional Capistrano recipes from 55 Minutes