From cb1e30b5153401a893c56d184a120f99b15dbf42 Mon Sep 17 00:00:00 2001 From: Florian Schwab Date: Sat, 9 Jun 2018 18:15:22 +0200 Subject: [PATCH] move to gitlab --- .gitlab-ci.yml | 15 +++++++++++++++ CHANGELOG.md | 4 ++-- README.md | 8 ++------ capistrano-rails-console.gemspec | 10 +++++----- 4 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..960915d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,15 @@ +image: ruby:2.5-slim + +cache: + paths: + - vendor/ruby + +before_script: + - apt-get update -q && apt-get install git build-essential -yqq + - ruby -v + - gem install bundler --no-ri --no-rdoc + - bundle install -j $(nproc) --path vendor + +rubocop: + script: + - bundle exec rubocop diff --git a/CHANGELOG.md b/CHANGELOG.md index ababe03..0b2b725 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,11 @@ - remove rails 5.2 deprecation: _Passing the environment's name as a regular argument is deprecated and will be removed in the next Rails version. Please, use the -e option instead._ - allow to set capistrano role to select server for remote console (#33) - allow to set shell used on server (#31) -- [add rails:c alias to rails:console](https://github.com/ydkn/capistrano-rails-console/issues/36) +- [add rails:c alias to rails:console](https://gitlab.com/ydkn/capistrano-rails-console/issues/36) ## 2.2.1 (2017-09-04) ### Feature -- [add rails:db alias to rails:dbconsole](https://github.com/ydkn/capistrano-rails-console/pull/32) +- [add rails:db alias to rails:dbconsole](https://gitlab.com/ydkn/capistrano-rails-console/merge_requests/32) ## 2.2.0 (2016-10-25) ### Feature diff --git a/README.md b/README.md index ff91604..461bb56 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,3 @@ -[![Gem Version](https://img.shields.io/gem/v/capistrano-rails-console.svg)](https://rubygems.org/gems/capistrano-rails-console) -[![Code Climate](https://img.shields.io/codeclimate/github/ydkn/capistrano-rails-console.svg)](https://codeclimate.com/github/ydkn/capistrano-rails-console) - - # Capistrano::Rails::Console Remote rails console and dbconsole for capistrano. @@ -29,7 +25,7 @@ Or install it yourself as: You should ensure there is a `rails` binstub in the `current/bin` directory on the server otherwise this gem won't work (because rails itself won't work). If you experience any problems please verify that manually running `rails console` on the server does work. -If it doesn't you are deploying your rails application wrong (check [#18](https://github.com/ydkn/capistrano-rails-console/issues/18) or [#26](https://github.com/ydkn/capistrano-rails-console/issues/26) for details)! +If it doesn't you are deploying your rails application wrong (check [#18](https://gitlab.com/ydkn/capistrano-rails-console/issues/18) or [#26](https://gitlab.com/ydkn/capistrano-rails-console/issues/26) for details)! Require in `Capfile` to use the default task: @@ -82,7 +78,7 @@ set :console_shell, '/bin/bash' # select shell to be used on server in case you ## Contributing -Bug reports and pull requests are welcome on GitHub at https://github.com/ydkn/capistrano-rails-console. +Bug reports and pull requests are welcome on GitLab at https://gitlab.com/ydkn/capistrano-rails-console. ## License diff --git a/capistrano-rails-console.gemspec b/capistrano-rails-console.gemspec index ed51416..f662b81 100644 --- a/capistrano-rails-console.gemspec +++ b/capistrano-rails-console.gemspec @@ -1,5 +1,4 @@ -# coding: utf-8 -lib = File.expand_path('../lib', __FILE__) +lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'capistrano/rails/console/version' @@ -8,9 +7,9 @@ Gem::Specification.new do |spec| spec.version = Capistrano::Rails::Console::VERSION spec.authors = ['Florian Schwab'] spec.email = ['me@ydkn.de'] - spec.description = %q{Remote rails console for capistrano} - spec.summary = %q{Remote rails console for capistrano} - spec.homepage = 'https://github.com/ydkn/capistrano-rails-console' + spec.description = 'Remote rails console for capistrano' + spec.summary = 'Remote rails console for capistrano' + spec.homepage = 'https://gitlab.com/ydkn/capistrano-rails-console' spec.license = 'MIT' spec.files = `git ls-files`.split($/) @@ -23,4 +22,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'bundler' spec.add_development_dependency 'rake' + spec.add_development_dependency 'rubocop' end