chicken_soup 0.5.2 → 0.5.3

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.
@@ -14,8 +14,6 @@ Capistrano::Configuration.instance(:must_exist).load do
14
14
  set(:branch) { `git branch`.match(/\* (\S+)\s/m)[1] || raise("Couldn't determine current branch") }
15
15
  set(:remote) { `git remote`.match(/(\S+)\s/m)[1] || raise("Couldn't determine default remote repository") }
16
16
  ssh_options[:forward_agent] = true
17
-
18
- set(:vc_log) { `git log #{previous_revision}..#{current_revision} --pretty=format:%ai:::%an:::%s` }
19
17
  end
20
18
  end
21
19
  end
@@ -1,12 +1,12 @@
1
1
  ######################################################################
2
2
  # SUBVERSION TASKS #
3
3
  ######################################################################
4
- Capistrano::Configuration.instance(:must_exist).load do
5
- namespace :vc do
6
- desc <<-DESC
7
- DESC
8
- task :log do
9
- set :vc_log, `svn log -r #{previous_revision.to_i + 1}:#{current_revision}`
10
- end
4
+ module ChickenSoup
5
+ def vc_log
6
+ `svn log -r #{previous_revision.to_i + 1}:#{current_revision}`
11
7
  end
12
8
  end
9
+
10
+ Capistrano::Configuration.instance(:must_exist).load do
11
+ # Implement me!
12
+ end
@@ -131,3 +131,7 @@ def download_compressed(remote, local, options = {})
131
131
  run "rm -f #{remote_compressed_filename}"
132
132
  `bunzip2 -f #{local_compressed_filename} && rm -f #{local_compressed_filename}`
133
133
  end
134
+
135
+ def vc_log
136
+ nil
137
+ end
@@ -14,8 +14,7 @@ Capistrano::Configuration.instance(:must_exist).load do
14
14
  :email_notifier_internal_recipients,
15
15
  :email_notifier_domain,
16
16
  :email_notifier_username,
17
- :email_notifier_password,
18
- :vc_log
17
+ :email_notifier_password
19
18
  ]
20
19
 
21
20
  abort "You must specify either internal or client recipients in order to use the email notifier." if email_notifier_client_recipients.empty? && email_notifier_internal_recipients.empty?
@@ -35,7 +35,7 @@ module ChickenSoup
35
35
  end
36
36
 
37
37
  def changes_since_last_deployment
38
- @capistrano[:vc_log]
38
+ vc_log
39
39
  end
40
40
 
41
41
  private
@@ -1,6 +1,12 @@
1
1
  ######################################################################
2
2
  # GIT NOTIFIER TASKS #
3
3
  ######################################################################
4
+ module ChickenSoup
5
+ def vc_log
6
+ `git log #{previous_revision}..#{current_revision} --pretty=format:%ai:::%an:::%s`
7
+ end
8
+ end
9
+
4
10
  Capistrano::Configuration.instance(:must_exist).load do
5
11
  after 'deploy:cleanup', 'notify:via_git:tag'
6
12
 
@@ -1,3 +1,3 @@
1
1
  module ChickenSoup
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: chicken_soup
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.2
5
+ version: 0.5.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - thekompanee