capistrano-memcached 1.1.0 → 1.2.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: 08c7994a3efaa51855d4ef96394c6a77eb523e54
4
- data.tar.gz: f3c50b41488b2e626b010480a77dc13ab24f11f6
3
+ metadata.gz: 2bde74a2a4981325e07ba166976f6ba4879288bf
4
+ data.tar.gz: af545a9bc44caa6fb0f3f8c6e674f156cc1a89a5
5
5
  SHA512:
6
- metadata.gz: 76e4cdd71f4d5f6acd2204f71006c30cdbd0fa8dc67a6f8a929cd12da99439333cbcfd2f244ed38f2b7557fa0c6467fca663bd882d7ea98bc4cd4ff05f9d100a
7
- data.tar.gz: b80880afb79a280c72b10442e969ff1f25c6105cf2f9f6d1c1accb733709fef7755740023e89cd92a0d8a0e1f9e09ccc1a735b7592c2a9604aa6bb7df93d6ac1
6
+ metadata.gz: cb648d2e9031dd541584c671f86bbe10c2b1563c2792836db7dbd1194de3a8abb459101eeb131f9fcc5948ad2d6e3e41ab9609a94daec921acb4837ac820b0fa
7
+ data.tar.gz: 91c4797c1470b7375b051cd557b051aec51f66757c9e25de85b6945c36f4110290077b8392e370ce3f45428c54f8781d9b71d9816ac5f73cccb5e1a60e7e0a7a
@@ -0,0 +1,6 @@
1
+ # Changelog
2
+
3
+ ### master
4
+
5
+ ### v1.2.0, 2015-06-06
6
+ - increase performance by removing duplicated linking of config file
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Memcached
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
@@ -14,7 +14,6 @@ namespace :load do
14
14
  # this is where memcached will be installed. A handy memcached.yml file will be created on all :app roles in
15
15
  # shared/config
16
16
  set :memcached_roles, [:app]
17
- set :memcached_client_roles, [:app]
18
17
  set :memcached_user, "memcache"
19
18
 
20
19
  set :memcached_app_config, -> { memcached_default_app_config_file }
@@ -43,16 +42,14 @@ namespace :memcached do
43
42
 
44
43
  desc 'Setup Memcached app configuration'
45
44
  task :setup_app_config do
46
- on roles fetch(:memcached_client_roles) do
45
+ on release_roles :all do
47
46
  execute :mkdir, '-pv', File.dirname(fetch(:memcached_app_config))
48
47
  upload! mem_template('memcached.yml.erb'), fetch(:memcached_app_config)
49
48
  end
50
49
  end
51
50
 
52
51
  task :memcached_yml_symlink do
53
- on roles fetch(:memcached_client_roles) do
54
- set :linked_files, fetch(:linked_files, []).push("config/memcached.yml")
55
- end
52
+ set :linked_files, fetch(:linked_files, []).push("config/memcached.yml")
56
53
  end
57
54
  before 'deploy:symlink:linked_files', 'memcached:memcached_yml_symlink'
58
55
  end
@@ -61,4 +58,4 @@ desc 'Server setup tasks'
61
58
  task :setup do
62
59
  invoke 'memcached:setup'
63
60
  invoke 'memcached:setup_app_config'
64
- end
61
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-memcached
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Stranders
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-30 00:00:00.000000000 Z
11
+ date: 2015-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -65,6 +65,7 @@ extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
67
  - ".gitignore"
68
+ - CHANGELOG.md
68
69
  - Gemfile
69
70
  - LICENSE.md
70
71
  - README.md
@@ -99,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
100
  version: '0'
100
101
  requirements: []
101
102
  rubyforge_project:
102
- rubygems_version: 2.2.2
103
+ rubygems_version: 2.4.5
103
104
  signing_key:
104
105
  specification_version: 4
105
106
  summary: Capistrano tasks for automatic and sensible memcached configuration.