uhl-cap-recipes 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ Using Jeweler for Gem Packaging...
11
11
 
12
12
  require 'rake'
13
13
  require 'rake/testtask'
14
- require 'rake/rdoctask'
14
+ #require 'rake/rdoctask'
15
15
 
16
16
  begin
17
17
  require 'jeweler'
@@ -33,14 +33,6 @@ rescue LoadError
33
33
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
34
34
  end
35
35
 
36
- Rake::RDocTask.new do |rdoc|
37
- rdoc.rdoc_dir = 'rdoc'
38
- rdoc.title = 'uhl-cap-recipes'
39
- rdoc.options << '--line-numbers' << '--inline-source'
40
- rdoc.rdoc_files.include('README*')
41
- rdoc.rdoc_files.include('lib/**/*.rb')
42
- end
43
-
44
36
  begin
45
37
  require 'rcov/rcovtask'
46
38
  Rcov::RcovTask.new do |t|
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 7
4
+ :patch: 8
5
5
  :build:
@@ -167,6 +167,7 @@ Capistrano::Configuration.instance(true).load do |configuration|
167
167
  else
168
168
  run pull_repository_remote_command(branch)
169
169
  end
170
+ run record_git_reversion_command()
170
171
  end
171
172
 
172
173
  def self.clone_repository_local_command
@@ -240,6 +241,13 @@ Capistrano::Configuration.instance(true).load do |configuration|
240
241
  ].join("; ")
241
242
  end
242
243
 
244
+ def self.record_git_reversion_command()
245
+ [
246
+ "cd #{deploy_to_gitrepo}",
247
+ "echo \"$(date +"%Y-%m-%d %H:%M:%S") $(git log --pretty -1 | awk '/^commit/{print $2}')\" >> #{deploy_to}/#{application}_reversion",
248
+ ].join("; ")
249
+ end
250
+
243
251
  end
244
252
 
245
253
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "uhl-cap-recipes"
8
- s.version = "0.1.7"
8
+ s.version = "0.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["crazycode"]
12
- s.date = "2012-08-06"
12
+ s.date = "2012-12-12"
13
13
  s.description = "capistrano recipes for my works"
14
14
  s.email = "crazycode@gmail.com"
15
15
  s.executables = ["cap-recipes"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uhl-cap-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-06 00:00:00.000000000 Z
12
+ date: 2012-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano