pixelforce_recipes 1.4 → 1.5

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: 4b5e21e690c3f0a6ef398cf285f22ff5e9c652d3
4
- data.tar.gz: c415d1d498cdbe3684460c73dd4298efe4785334
3
+ metadata.gz: f40e55ffb256c9c468b6a0f783889e4ea4f42dca
4
+ data.tar.gz: d752bcd16f3fa0017fc4f0cd732a2ddac037988f
5
5
  SHA512:
6
- metadata.gz: 68d3980743a9b71969e2ce5339eb8417e26bc3b9c30ab4ccda765c74cd1c5acfe9708032cbbf287215ad016c6abe4e719792592e30527ce92629e3aaba37736c
7
- data.tar.gz: e27fa4ca1a0ebc01467b18417351961f2e4dcd70c471e8321f4f23eb4571aa0a7dbe978b496e50c5e75f66cc408818cbc14b8a66eea455ad741e2dd83ce5896a
6
+ metadata.gz: 441eaecd80b0c50da3e70211c4efa2a4446f1c117a3d52fd33b6801035702c19f325a9d8cd9c8b14fc42c7b455351bedea9e2674f794406664a020fc0011de20
7
+ data.tar.gz: 0f1bb92ede4277bec0badf5bbb8cd9554c6419a659fc12e6e0c38fa811a729c75af738cda2f2b74e01923263ee3a0c6ec967e7623d798c1decb4e6236576e22c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pixelforce_recipes (1.4)
4
+ pixelforce_recipes (1.5)
5
5
  capistrano (> 2.0.0)
6
6
 
7
7
  GEM
@@ -1,16 +1,20 @@
1
1
  require "pixelforce_recipes/version"
2
2
  require "capistrano"
3
3
 
4
- if defined?(Capistrano::VERSION) && Capistrano::VERSION.to_s.split('.').first.to_i >= 3
5
- require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/base")
6
- require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/sidekiq")
7
- require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/resque")
8
- require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/logrotate")
9
- else
10
- require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/base")
11
- require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/unicorn")
12
- require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/sidekiq")
13
- require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/resque")
14
- require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/puma")
15
- require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/logrotate")
4
+ if defined?(Capistrano::VERSION)
5
+ if Capistrano::VERSION.to_s.split('.').first.to_i >= 3
6
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/base")
7
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/sidekiq")
8
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/resque")
9
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/logrotate")
10
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/unicorn")
11
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/capistrano_3_recipes/puma")
12
+ else
13
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/base")
14
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/unicorn")
15
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/sidekiq")
16
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/resque")
17
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/puma")
18
+ require File.expand_path("#{File.dirname(__FILE__)}/pixelforce_recipes/legacy_recipes/logrotate")
19
+ end
16
20
  end
@@ -3,7 +3,7 @@ if Capistrano::Configuration.instance(false)
3
3
  Capistrano::Configuration.instance(true).load do |instance|
4
4
 
5
5
  def template(from, to)
6
- erb = File.read(File.expand_path("../templates/#{from}", __FILE__))
6
+ erb = File.read(File.expand_path("../../templates/#{from}", __FILE__))
7
7
  put ERB.new(erb).result(binding), to
8
8
  end
9
9
 
@@ -1,3 +1,3 @@
1
1
  module PixelforceRecipes
2
- VERSION = "1.4"
2
+ VERSION = "1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pixelforce_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.4'
4
+ version: '1.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Zhang