panter-rails-deploy 1.3.2 → 1.3.3

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: e5cc26883c656a87e08b0be4dea491f9e0b9af1c
4
- data.tar.gz: 4e9228da49ef583021534292dd648043559a9363
3
+ metadata.gz: 07f2278bedf522d42c074ecd937a7ef5365348b6
4
+ data.tar.gz: 71433ba36dbf51d16ad0648591c7b55442a3d7d1
5
5
  SHA512:
6
- metadata.gz: a1b2d00a6aaff7d46ba04db29a3e25d3a82f242a82512738bb1e58347aecf2352604de68d8377fc9d8d641afe2a24265d62239d795b75d0abe5f509a0fcaff42
7
- data.tar.gz: 2436e2f84957858018648ce9ef4a6cbef84ce97c2dfcbb75fdbfda0161c5da923d2f40c16453e5ae5bfd2a45762d89dc158863bc4b1750a054a471124482ee90
6
+ metadata.gz: 87929692046c132e91c636ddc352d8ed1466d5792ba15596997a9d8019717ee77e3f5b6dbede35014291c2a44cd9e3d8691d03cc2aa486384654d6e7231fb720
7
+ data.tar.gz: 44c008c261b1d283df1e6c8e74dc73f0e7b7bffc3aa413fa14cab2a0cf3bcf2e7d49334cbacbabf79149f986e3822f39a8b1af1670ccf9790909147d4dee9fd8
data/.gitignore CHANGED
@@ -1,5 +1,4 @@
1
1
  /.bundle
2
2
  /Gemfile.lock
3
- /Capfile
4
- /config
3
+ /log
5
4
  /pkg
@@ -0,0 +1,26 @@
1
+ sudo: false
2
+ language: ruby
3
+ cache: bundler
4
+
5
+ before_install:
6
+ - gem update bundler
7
+
8
+ before_script:
9
+ - bundle update
10
+
11
+ script:
12
+ - bundle exec rake test
13
+
14
+ env:
15
+ - rails=4.2.0
16
+ - rails=5.0.0
17
+
18
+ rvm:
19
+ - 2.1
20
+ - 2.2.6
21
+ - 2.3.3
22
+
23
+ matrix:
24
+ exclude:
25
+ - env: rails=5.0.0
26
+ rvm: 2.1
data/Capfile ADDED
@@ -0,0 +1 @@
1
+ require 'panter-rails-deploy'
data/Gemfile CHANGED
@@ -1,3 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ # use Rails version specified by environment
4
+ ENV['rails'] ||= '5.0.0'
5
+ gem 'rails', "~> #{ENV['rails']}"
6
+
3
7
  gemspec
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Panter Rails Deploy
2
2
 
3
+ [![Build Status](https://travis-ci.org/panter/panter-rails-deploy.svg?branch=master)](https://travis-ci.org/panter/panter-rails-deploy)
4
+ [![Gem Version](https://badge.fury.io/rb/panter-rails-deploy.svg)](https://rubygems.org/gems/panter-rails-deploy)
5
+
3
6
  This gem sets up everything you need to deploy your application on the Panter Rails hosting:
4
7
 
5
8
  - [Capistrano 3](https://github.com/capistrano/capistrano) setup for:
@@ -29,7 +32,7 @@ This gem sets up everything you need to deploy your application on the Panter Ra
29
32
  bundle exec cap install
30
33
  ```
31
34
 
32
- - Add one of these to your `Capfile` - below the line "Include tasks from other gems included in your Gemfile":
35
+ - You can replace the contents of `Capfile` with one of these lines:
33
36
 
34
37
  For a standard Rails project with asset compilation:
35
38
 
data/Rakefile CHANGED
@@ -1 +1,11 @@
1
1
  require 'bundler/gem_tasks'
2
+
3
+ task :test do
4
+ output = `bundle exec cap test deploy 2>&1`
5
+ if output.empty? && $?.success?
6
+ exit 0
7
+ else
8
+ puts "#{output}Warning: Capistrano exited with an error or generated output (see above)"
9
+ exit 1
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ Bundler.require :default
5
+
6
+ require 'panter-rails-deploy'
7
+
8
+ require 'pry'
9
+ Pry.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
File without changes
File without changes
@@ -1,5 +1,10 @@
1
1
  if defined? Capistrano
2
2
  # We're running in Capistrano, only load tasks
3
+ require 'capistrano/setup'
4
+ require 'capistrano/deploy'
5
+ require 'capistrano/scm/git'
6
+ install_plugin Capistrano::SCM::Git
7
+
3
8
  require 'capistrano/rbenv'
4
9
  require 'capistrano/rbenv_install'
5
10
  require 'capistrano/bundler'
@@ -7,6 +12,9 @@ if defined? Capistrano
7
12
  require 'capistrano/rails/migrations'
8
13
 
9
14
  load File.expand_path('../capistrano/tasks/panter-rails-deploy.rake', __FILE__)
15
+
16
+ # Load custom application tasks from `lib/capistrano/tasks`
17
+ Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
10
18
  else
11
19
  # We're running in the application, load supporting gems
12
20
  require 'unicorn-rails'
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'panter-rails-deploy'
3
- gem.version = '1.3.2'
4
- gem.date = '2016-07-26'
3
+ gem.version = '1.3.3'
4
+ gem.date = '2017-01-05'
5
5
  gem.summary = 'Capistrano setup for Panter Rails Hosting'
6
6
  gem.authors = [ 'Markus Koller', 'Beat Seeliger' ]
7
7
  gem.email = 'mak@panter.ch'
@@ -13,15 +13,18 @@ Gem::Specification.new do |gem|
13
13
  gem.require_paths = [ 'lib' ]
14
14
 
15
15
  # Deployment dependencies
16
- gem.add_dependency 'capistrano', '~> 3.5'
17
- gem.add_dependency 'capistrano-rails'
18
- gem.add_dependency 'capistrano-bundler'
19
- gem.add_dependency 'capistrano-rbenv'
20
- gem.add_dependency 'capistrano-rbenv-install'
21
- gem.add_dependency 'unicorn-rails'
22
- gem.add_dependency 'dotenv-rails'
23
- gem.add_dependency 'highline'
16
+ gem.add_runtime_dependency 'capistrano', '~> 3.5'
17
+ gem.add_runtime_dependency 'capistrano-rails'
18
+ gem.add_runtime_dependency 'capistrano-bundler'
19
+ gem.add_runtime_dependency 'capistrano-rbenv'
20
+ gem.add_runtime_dependency 'capistrano-rbenv-install'
21
+ gem.add_runtime_dependency 'unicorn-rails'
22
+ gem.add_runtime_dependency 'dotenv-rails'
23
+ gem.add_runtime_dependency 'highline'
24
24
 
25
25
  # Asset pipeline dependencies
26
- gem.add_dependency 'therubyracer'
26
+ gem.add_runtime_dependency 'therubyracer'
27
+
28
+ # Development dependencies
29
+ gem.add_development_dependency 'pry-byebug'
27
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panter-rails-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Koller
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-26 00:00:00.000000000 Z
12
+ date: 2017-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -137,6 +137,20 @@ dependencies:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: pry-byebug
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
140
154
  description:
141
155
  email: mak@panter.ch
142
156
  executables: []
@@ -145,11 +159,17 @@ extra_rdoc_files: []
145
159
  files:
146
160
  - ".gitignore"
147
161
  - ".ruby-version"
162
+ - ".travis.yml"
148
163
  - CHANGELOG.md
164
+ - Capfile
149
165
  - Gemfile
150
166
  - LICENSE
151
167
  - README.md
152
168
  - Rakefile
169
+ - bin/console
170
+ - bin/setup
171
+ - config/deploy.rb
172
+ - config/deploy/test.rb
153
173
  - lib/capistrano/tasks/panter-rails-deploy.rake
154
174
  - lib/panter-rails-deploy.rb
155
175
  - lib/panter-rails-deploy/without-assets.rb