capistrano-benchmark 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/capistrano-benchmark.gemspec +2 -2
- data/lib/capistrano-benchmark.rb +2 -3
- metadata +3 -3
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ Jeweler::Tasks.new do |gem|
|
|
21
21
|
gem.description = %Q{Benchchmark cpaistrano-tasks like whoa}
|
22
22
|
gem.email = "josh@technicalpickles.com"
|
23
23
|
gem.authors = ["Josh Nichols"]
|
24
|
-
gem.version = "0.0.
|
24
|
+
gem.version = "0.0.4"
|
25
25
|
# dependencies defined in Gemfile
|
26
26
|
end
|
27
27
|
Jeweler::RubygemsDotOrgTasks.new
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "capistrano-benchmark"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Josh Nichols"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-05-17"
|
13
13
|
s.description = "Benchchmark cpaistrano-tasks like whoa"
|
14
14
|
s.email = "josh@technicalpickles.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/capistrano-benchmark.rb
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
require 'benchmark'
|
2
2
|
Capistrano::Configuration.class_eval do
|
3
|
-
@@benchmarks = []
|
4
3
|
def execute_task_with_benchmarking(task)
|
5
4
|
if fetch(:benchmark, false)
|
6
5
|
name = task.fully_qualified_name
|
7
6
|
realtime = Benchmark.realtime do
|
8
7
|
execute_task_without_benchmarking(task)
|
9
8
|
end
|
10
|
-
|
9
|
+
self.class.benchmarks << [name,realtime]
|
11
10
|
|
12
11
|
logger.debug "Finished #{name} in #{realtime}"
|
13
12
|
else
|
@@ -16,7 +15,7 @@ Capistrano::Configuration.class_eval do
|
|
16
15
|
end
|
17
16
|
|
18
17
|
def self.benchmarks
|
19
|
-
|
18
|
+
@benchmarks ||= []
|
20
19
|
end
|
21
20
|
|
22
21
|
alias_method :execute_task_without_benchmarking, :execute_task
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-benchmark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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: 2013-
|
12
|
+
date: 2013-05-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: '0'
|
126
126
|
segments:
|
127
127
|
- 0
|
128
|
-
hash: -
|
128
|
+
hash: -1820410802111794886
|
129
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
130
|
none: false
|
131
131
|
requirements:
|