mina 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: dd2e33c131a0bfb0c0f3a00cc075cf8223946f97
4
- data.tar.gz: 7b2bf61f316e5f8eb054f3c969f935567142f7ca
2
+ SHA256:
3
+ metadata.gz: dc88a947e07838f640dab1f4d01c29626e749f1404f700c92a398bb226809f85
4
+ data.tar.gz: a030ea5cd4e664f3a845e1e0c48baaf7705a31c5b843ab2fbc7c1abf2609659b
5
5
  SHA512:
6
- metadata.gz: e30988b3d133b9ac564b38cd723959ecb0ad7c70ef84489cb45621c8357245c97434168c50650eae0df30523fe394b9de7b431de5ca63e683a5f456d49e2216c
7
- data.tar.gz: e4c14e1741fb77d0cfff12fa087ee99599641ceccb9cf6b9522ed73041972730e8fc199c24ddf263a089d44188a4c3a4d9cf67cacaec1b14701dc44e10356f58
6
+ metadata.gz: 89d43287a0497147d9c2c3d483e129f674b46d2734ded7ec48c401ab66a3ac6a381204d853af4c885f25c32aca4df94499267862a87b52e260545f67fac0d328
7
+ data.tar.gz: 36046004c36893b1855d98da30e3d6a23025e47fa8a4442103ed648bff23781f3fbe80f25a3f5feb6a13bdee84f0a34c4ab072a9aac8bedd4f4c348646d34ab4
@@ -0,0 +1,18 @@
1
+ name: CI
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ name: Ruby ${{ matrix.ruby }} (${{ matrix.os }})
6
+ strategy:
7
+ fail-fast: false
8
+ matrix:
9
+ os: [ubuntu-20.04, macos-10.15]
10
+ ruby: [2.6, 2.7, 3.0]
11
+ runs-on: ${{ matrix.os }}
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: ${{ matrix.ruby }}
17
+ bundler-cache: true
18
+ - run: bundle exec rspec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # Change Log
2
2
 
3
+ ## [v1.2.3](https://github.com/mina-deploy/mina/tree/v1.2.3) (2017-11-22)
4
+ [Full Changelog](https://github.com/mina-deploy/mina/compare/v1.2.2...v1.2.3)
5
+
6
+ **Closed issues:**
7
+
8
+ - Task :environment not valid any longer [\#583](https://github.com/mina-deploy/mina/issues/583)
9
+
10
+ **Merged pull requests:**
11
+
12
+ - Fix empty stage queue [\#592](https://github.com/mina-deploy/mina/pull/592) ([Narayanan170](https://github.com/Narayanan170))
13
+ - fix typo [\#584](https://github.com/mina-deploy/mina/pull/584) ([MatzFan](https://github.com/MatzFan))
14
+
15
+ ## [v1.2.2](https://github.com/mina-deploy/mina/tree/v1.2.2) (2017-10-13)
16
+ [Full Changelog](https://github.com/mina-deploy/mina/compare/v1.2.1...v1.2.2)
17
+
18
+ **Implemented enhancements:**
19
+
20
+ - Add shared folders validations [\#559](https://github.com/mina-deploy/mina/issues/559)
21
+
22
+ **Fixed bugs:**
23
+
24
+ - Add shared folders validations [\#559](https://github.com/mina-deploy/mina/issues/559)
25
+
26
+ **Closed issues:**
27
+
28
+ - prepend environments when run outside run block [\#576](https://github.com/mina-deploy/mina/issues/576)
29
+ - rails:assets\_precompile from cache [\#494](https://github.com/mina-deploy/mina/issues/494)
30
+
31
+ **Merged pull requests:**
32
+
33
+ - Remove spec for now, unitl \#579 [\#580](https://github.com/mina-deploy/mina/pull/580) ([d4be4st](https://github.com/d4be4st))
34
+ - Add folder validation for symlinking [\#578](https://github.com/mina-deploy/mina/pull/578) ([d4be4st](https://github.com/d4be4st))
35
+ - Resolves \#576 [\#577](https://github.com/mina-deploy/mina/pull/577) ([d4be4st](https://github.com/d4be4st))
36
+ - Remote environment in deploy example [\#573](https://github.com/mina-deploy/mina/pull/573) ([ozgg](https://github.com/ozgg))
37
+
38
+ ## [v1.2.1](https://github.com/mina-deploy/mina/tree/v1.2.1) (2017-10-02)
39
+ [Full Changelog](https://github.com/mina-deploy/mina/compare/v1.2.0...v1.2.1)
40
+
41
+ **Closed issues:**
42
+
43
+ - Deploy does not work since version 1.2.0 [\#572](https://github.com/mina-deploy/mina/issues/572)
44
+
3
45
  ## [v1.2.0](https://github.com/mina-deploy/mina/tree/v1.2.0) (2017-09-29)
4
46
  [Full Changelog](https://github.com/mina-deploy/mina/compare/v1.1.1...v1.2.0)
5
47
 
data/data/deploy.rb CHANGED
@@ -34,13 +34,15 @@ task :remote_environment do
34
34
  # invoke :'rbenv:load'
35
35
 
36
36
  # For those using RVM, use this to load an RVM version@gemset.
37
- # invoke :'rvm:use', 'ruby-1.9.3-p125@default'
37
+ # invoke :'rvm:use', 'ruby-2.5.3@default'
38
38
  end
39
39
 
40
40
  # Put any custom commands you need to run at setup
41
41
  # All paths in `shared_dirs` and `shared_paths` will be created on their own.
42
42
  task :setup do
43
- # command %{rbenv install 2.3.0 --skip-existing}
43
+ # command %{rbenv install 2.5.3 --skip-existing}
44
+ # command %{rvm install ruby-2.5.3}
45
+ # command %{gem install bundler}
44
46
  end
45
47
 
46
48
  desc "Deploys the current version to the server."
@@ -34,3 +34,5 @@
34
34
  * [mina-unicorn](https://github.com/openteam/mina-unicorn)
35
35
  * [mina-whenever](https://github.com/mina-deploy/mina-whenever)
36
36
  * [mina-lock](https://github.com/lorenzosinisi/mina-lock)
37
+ * [mina-thinking-sphinx](https://github.com/airled/mina-thinking-sphinx)
38
+ * [mina-multideploy](https://github.com/codica2/mina-multideploy)
data/docs/cookbook.md CHANGED
@@ -34,7 +34,7 @@ $ mina production deploy
34
34
  ```
35
35
  task :deploy do
36
36
  run(:local) do
37
- comamnd "scp config/application.yml #{fetch(:user)}@#{fetch(:domain)}:#{fetch(:shared_path)}/config/application.yml"
37
+ command "scp config/application.yml #{fetch(:user)}@#{fetch(:domain)}:#{fetch(:shared_path)}/config/application.yml"
38
38
  end
39
39
 
40
40
  deploy do
@@ -32,7 +32,7 @@ require 'mina/default'
32
32
  :domain #=> nil
33
33
  :port #=> 22
34
34
  :deploy_to #=> nil
35
- :execution_mode #=> :pretty ## Can be [:exec, :pretty, :pritner, :system]
35
+ :execution_mode #=> :pretty ## Can be [:exec, :pretty, :printer, :system]
36
36
  ```
37
37
 
38
38
  ### Execution mode
@@ -63,7 +63,7 @@ loads:
63
63
  :shared_path #=> "#{fetch(:deploy_to)}/shared"
64
64
  :current_path #=> "#{fetch(:deploy_to)}/current"
65
65
  :lock_file #=> 'deploy.lock'
66
- :deploy_script #=> 'data/deploy.sh.erb'
66
+ :deploy_script #=> Mina.root_path('data/deploy.sh.erb')
67
67
  :keep_releases #=> 5
68
68
  :version_scheme #=> :sequence ## Can be [:sequence, :datetime]
69
69
  :shared_dirs #=> []
@@ -129,9 +129,9 @@ loads:
129
129
  git:ensure_pushed #=> Ensures local repository is pushed to remote
130
130
  ```
131
131
 
132
- ## Bunlder
132
+ ## Bundler
133
133
  ``` ruby
134
- require 'mina/bunlder'
134
+ require 'mina/bundler'
135
135
  ```
136
136
  loads:
137
137
  - `mina/default`
@@ -139,7 +139,7 @@ Folder | Description
139
139
  `current` | folders is a symbolic link to the current release (does not have to be the lastest one)
140
140
  `releases` | folder conains your last `keep_releases` releases
141
141
  `scm` | folder contains information about your version controll (git, svn, ...)
142
- `shared` | folder cotinas folders and files that are kept between releaes (logs, uploads, configs, ...)
142
+ `shared` | folder contains folders and files that are kept between releases (logs, uploads, configs, ...)
143
143
  `tmp` | folder contains temporary build folders
144
144
 
145
145
  ## Features
@@ -5,7 +5,7 @@ module Mina
5
5
 
6
6
  def deploy_script
7
7
  yield
8
- erb Mina.root_path(fetch(:deploy_script))
8
+ erb fetch(:deploy_script)
9
9
  end
10
10
 
11
11
  def erb(file, b = binding)
data/lib/mina/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mina
2
- VERSION = '1.2.3'.freeze
2
+ VERSION = '1.2.4'.freeze
3
3
  end
@@ -10,7 +10,7 @@ describe Mina::Helpers::Internal do
10
10
 
11
11
  describe '#deploy_script' do
12
12
  before do
13
- Mina::Configuration.instance.set(:deploy_script, 'data/deploy.sh.erb')
13
+ Mina::Configuration.instance.set(:deploy_script, Mina.root_path('data/deploy.sh.erb'))
14
14
  Mina::Configuration.instance.set(:version_scheme, :sequence)
15
15
  end
16
16
 
@@ -1 +1 @@
1
- if\ \[\ !\ \-d\ ".*/deploy/scm/objects"\ \];\ then\s*echo\ "\-\-\-\-\->\ Cloning\ the\ Git\ repository"\s*git\ clone\ ".*"\ ".*/deploy/scm"\ \-\-bare\s*else\s*echo\ "\-\-\-\-\->\ Fetching\ new\ git\ commits"\s*\(cd\ ".*/deploy/scm"\ &&\ git\ fetch\ ".*"\ "master:master"\ \-\-force\)\s*fi\ &&\s*echo\ "\-\-\-\-\->\ Using\ git\ branch\ 'master'"\ &&\s*git\ clone\ ".*/deploy/scm"\ \.\ \-\-recursive\ \-\-branch\ "master"\necho\ "\-\-\-\-\->\ Using\ this\ git\ commit"\ngit\ rev\-parse\ HEAD\ >\ \.mina_git_revision\ngit\ \-\-no\-pager\ log\ \-\-format="%aN\ \(%h\):%n>\ %s"\ \-n\ 1\nrm\ \-rf\ \.git
1
+ if\ \[\ !\ \-d\ ".*/deploy/scm/objects"\ \];\ then\s*echo\ "\-\-\-\-\->\ Cloning\ the\ Git\ repository"\s*git\ clone\ ".*"\ ".*/deploy/scm"\ \-\-bare\s*else\s*echo\ "\-\-\-\-\->\ Fetching\ new\ git\ commits"\s*\(cd\ ".*/deploy/scm"\ &&\ git\ fetch\ ".*"\ "master:master"\ \-\-force\)\s*fi\ &&\s*echo\ "\-\-\-\-\->\ Using\ git\ branch\ 'master'"\ &&\s*git\ clone\ ".*/deploy/scm"\ \.\ \-\-recursive\ \-\-branch\ "master"\necho\ "\-\-\-\-\->\ Updating\ submodules"\ngit\ submodule\ update\necho\ "\-\-\-\-\->\ Using\ this\ git\ commit"\ngit\ rev\-parse\ HEAD\ >\ \.mina_git_revision\ngit\ \-\-no\-pager\ log\ \-\-format="%aN\ \(%h\):%n>\ %s"\ \-n\ 1\nrm\ \-rf\ \.git
@@ -1 +1 @@
1
- echo\ "\-\-\-\-\->\ Using\ git\ commit\ \\"123456\\""\ngit\ clone\ ".*"\ \.\ \-\-recursive\ngit\ checkout\ \-b\ current_release\ "123456"\ \-\-force\necho\ "\-\-\-\-\->\ Using\ this\ git\ commit"\ngit\ rev\-parse\ HEAD\ >\ \.mina_git_revision\ngit\ \-\-no\-pager\ log\ \-\-format="%aN\ \(%h\):%n>\ %s"\ \-n\ 1\nrm\ \-rf\ \.git
1
+ echo\ "\-\-\-\-\->\ Using\ git\ commit\ \\"123456\\""\ngit\ clone\ ".*"\ \.\ \-\-recursive\ngit\ checkout\ \-b\ current_release\ "123456"\ \-\-force\necho\ "\-\-\-\-\->\ Updating\ submodules"\ngit\ submodule\ update\necho\ "\-\-\-\-\->\ Using\ this\ git\ commit"\ngit\ rev\-parse\ HEAD\ >\ \.mina_git_revision\ngit\ \-\-no\-pager\ log\ \-\-format="%aN\ \(%h\):%n>\ %s"\ \-n\ 1\nrm\ \-rf\ \.git
data/tasks/mina/deploy.rb CHANGED
@@ -4,7 +4,7 @@ set :releases_path, -> { "#{fetch(:deploy_to)}/releases" }
4
4
  set :shared_path, -> { "#{fetch(:deploy_to)}/shared" }
5
5
  set :current_path, -> { "#{fetch(:deploy_to)}/current" }
6
6
  set :lock_file, 'deploy.lock'
7
- set :deploy_script, 'data/deploy.sh.erb'
7
+ set :deploy_script, Mina.root_path('data/deploy.sh.erb')
8
8
  set :keep_releases, 5
9
9
  set :version_scheme, :sequence
10
10
  set :execution_mode, :pretty
data/tasks/mina/git.rb CHANGED
@@ -27,7 +27,8 @@ namespace :git do
27
27
  #{echo_cmd %[git clone "#{fetch(:deploy_to)}/scm" . --recursive --branch "#{fetch(:branch)}"]}
28
28
  }, quiet: true
29
29
  end
30
-
30
+ comment %{Updating submodules}
31
+ command %{git submodule update}
31
32
  comment %{Using this git commit}
32
33
  command %{git rev-parse HEAD > .mina_git_revision}
33
34
  command %{git --no-pager log --format="%aN (%h):%n> %s" -n 1}
@@ -45,7 +46,7 @@ namespace :git do
45
46
  desc 'Ensures local repository is pushed to remote'
46
47
  task :ensure_pushed do
47
48
  run :local do
48
- comment %{Ensuring everyting is pushed to git}
49
+ comment %{Ensuring everything is pushed to git}
49
50
  command %{
50
51
  if [ $(git log #{fetch(:remote)}/#{fetch(:branch)}..#{fetch(:branch)} | wc -l) -ne 0 ]; then
51
52
  echo "! #{fetch(:git_not_pushed_message)}"
@@ -9,6 +9,13 @@ task :init do
9
9
  end
10
10
 
11
11
  outfile = './config/deploy.rb'
12
+
13
+ if File.exists?(outfile)
14
+ print 'deploy.rb already exists, do you want to overwrite it? (y/n) '
15
+
16
+ exit(8) if $stdin.readline.chomp.downcase != 'y'
17
+ end
18
+
12
19
  require 'fileutils'
13
20
  FileUtils.mkdir_p './config'
14
21
  FileUtils.cp Mina.root_path('data/deploy.rb'), outfile
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjić
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-22 00:00:00.000000000 Z
11
+ date: 2021-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -117,6 +117,7 @@ extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
119
  - ".codeclimate.yml"
120
+ - ".github/workflows/ci.yml"
120
121
  - ".github_changelog_generator"
121
122
  - ".gitignore"
122
123
  - ".rspec"
@@ -214,7 +215,7 @@ homepage: https://github.com/mina-deploy/mina
214
215
  licenses:
215
216
  - MIT
216
217
  metadata: {}
217
- post_install_message:
218
+ post_install_message:
218
219
  rdoc_options: []
219
220
  require_paths:
220
221
  - lib
@@ -230,9 +231,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
231
  - !ruby/object:Gem::Version
231
232
  version: '0'
232
233
  requirements: []
233
- rubyforge_project:
234
- rubygems_version: 2.6.11
235
- signing_key:
234
+ rubygems_version: 3.2.3
235
+ signing_key:
236
236
  specification_version: 4
237
237
  summary: Blazing fast application deployment tool.
238
238
  test_files: []