capistrano-sumo 1.2.0 → 1.4.2

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
- SHA1:
3
- metadata.gz: 4a4f92aab2678482e8df49df24a77e81d9f3ba95
4
- data.tar.gz: 729024a100e9067f3a75f6819596c1223d0ae3bb
2
+ SHA256:
3
+ metadata.gz: 71506ab24af5e01d01759890efb811b20354d763c8554f16da6fe9075196e2ad
4
+ data.tar.gz: e2850afaaee08e0650713dbd22c2d9b67a6ee68ddb4cc8c14e8b102285752fda
5
5
  SHA512:
6
- metadata.gz: 83050e4927f5e1c358de0d696aaf7d0e5d192eb47fac803d02abbf15ca21204a26260872707190cbfe3d8996b3d8c8e57c02b3ba96d0564c576dbda016a4fa2c
7
- data.tar.gz: 68f7453dfe4f6be7da08cdb70c175dd32b1e1f116ab98216c1dfec0dbc018a3536e97201c9df0e359781b547b1ed6612d34865e72538f7bcbf605243959ee233
6
+ metadata.gz: d99c8ca7f8e64e7efecb90c4b193277d198cb13960fcc241e6a448bbead6f6f982adea02e8bfd392749907be3f04fd5961314e518d8eb207117c1947456cfd24
7
+ data.tar.gz: 5993153b03c57859f782e1cd94f66d7021f8c5b817fccfdb1f4356cff8cc93652eba3febdfe6254cf0f2c1890256524c26da9f41f38f2eac2a7645bee814bf9e
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
data/Gemfile.lock ADDED
@@ -0,0 +1,28 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.4.4)
5
+ rake (12.3.3)
6
+ rspec (3.10.0)
7
+ rspec-core (~> 3.10.0)
8
+ rspec-expectations (~> 3.10.0)
9
+ rspec-mocks (~> 3.10.0)
10
+ rspec-core (3.10.1)
11
+ rspec-support (~> 3.10.0)
12
+ rspec-expectations (3.10.1)
13
+ diff-lcs (>= 1.2.0, < 2.0)
14
+ rspec-support (~> 3.10.0)
15
+ rspec-mocks (3.10.2)
16
+ diff-lcs (>= 1.2.0, < 2.0)
17
+ rspec-support (~> 3.10.0)
18
+ rspec-support (3.10.2)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ rake (~> 12.0)
25
+ rspec (~> 3.0)
26
+
27
+ BUNDLED WITH
28
+ 2.2.15
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  end
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_development_dependency 'bundler', '~> 1.15'
22
+ spec.add_development_dependency 'bundler', '~> 2.1.0'
23
23
  spec.add_development_dependency 'rake', '~> 12.0'
24
24
  spec.add_development_dependency 'rspec', '~> 3.6'
25
- end
25
+ end
@@ -1,6 +1,10 @@
1
+ require 'json'
2
+
1
3
  namespace :deploy do
2
- # compile and upload the assets
3
- after :updated, 'sumo:assets:put'
4
+ package = JSON.parse(File.read('composer.json'))
5
+
6
+ # compile and upload the assets, but only if it's a Fork CMS project
7
+ after :updated, 'sumo:assets:put' if package['name'] == 'forkcms/forkcms'
4
8
 
5
9
  # notify our bot about the deploy
6
10
  after :finished, 'sumo:notifications:deploy'
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Sumo
3
- VERSION = '1.2.0'
3
+ VERSION = '1.4.2'
4
4
  end
5
5
  end
@@ -2,15 +2,20 @@ namespace :sumo do
2
2
  namespace :notifications do
3
3
  desc 'Notify our webhooks on a deploy'
4
4
  task :deploy do
5
+ # fetch the revision from the web-server
5
6
  on roles(:web) do
7
+ set :revision, capture("cat #{current_path}/REVISION")
8
+ end
9
+
10
+ run_locally do
6
11
  execute :curl,
7
12
  '-sS',
8
13
  "--data local_username=#{ENV["USER"]}",
9
14
  "--data stage=#{fetch(:stage)}",
10
15
  "--data repo=#{fetch(:repo_url)}",
11
- "--data revision=#{capture("cat #{current_path}/REVISION")}",
16
+ "--data revision=#{fetch(:revision)}",
12
17
  'http://bot.sumo.sumoapp.be:3001/deploy/hook'
13
18
  end
14
19
  end
15
20
  end
16
- end
21
+ end
@@ -4,12 +4,12 @@ namespace :sumo do
4
4
  task :enable do
5
5
  on roles(:web) do
6
6
  execute :mkdir, '-p', "#{shared_path}/redirect"
7
- execute :wget, '-qO', "#{shared_path}/redirect/index.php http://static.sumocoders.be/redirect/index.phps"
8
- execute :wget, '-qO', "#{shared_path}/redirect/.htaccess http://static.sumocoders.be/redirect/htaccess"
7
+ execute :wget, '-qO', "#{shared_path}/redirect/index.php http://static.sumocoders.be/redirect2/index.phps"
8
+ execute :wget, '-qO', "#{shared_path}/redirect/.htaccess http://static.sumocoders.be/redirect2/htaccess"
9
9
  execute :sed, '-i', "'s|<real-url>|#{fetch :production_url}|' #{shared_path}/redirect/index.php"
10
10
  execute :rm, '-f', "#{fetch :deploy_to}/current"
11
11
  execute :ln, '-s', "#{shared_path}/redirect #{fetch :deploy_to}/current"
12
12
  end
13
13
  end
14
14
  end
15
- end
15
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-sumo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tijs Verkoyen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-21 00:00:00.000000000 Z
11
+ date: 2021-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.15'
19
+ version: 2.1.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.15'
26
+ version: 2.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -63,6 +63,7 @@ files:
63
63
  - ".rspec"
64
64
  - ".travis.yml"
65
65
  - Gemfile
66
+ - Gemfile.lock
66
67
  - LICENSE.md
67
68
  - README.md
68
69
  - Rakefile
@@ -79,7 +80,7 @@ homepage: https://github.com/tijsverkoyen/capistrano-sumo
79
80
  licenses:
80
81
  - MIT
81
82
  metadata: {}
82
- post_install_message:
83
+ post_install_message:
83
84
  rdoc_options: []
84
85
  require_paths:
85
86
  - lib
@@ -94,9 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
95
  - !ruby/object:Gem::Version
95
96
  version: '0'
96
97
  requirements: []
97
- rubyforge_project:
98
- rubygems_version: 2.6.11
99
- signing_key:
98
+ rubygems_version: 3.0.8
99
+ signing_key:
100
100
  specification_version: 4
101
101
  summary: SumoCoders specific task for Capistrano 3.x.
102
102
  test_files: []