capistrano-measure 0.8.0 → 0.8.1
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 +4 -4
- data/README.md +2 -0
- data/lib/capistrano/measure/integration/capistrano_3.rb +2 -2
- data/lib/capistrano/measure/version.rb +1 -1
- data/lib/capistrano-measure.rb +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8800ff49810b512b1a0fac4e8efa703f0cd2a3a4
|
4
|
+
data.tar.gz: fa54945a4235c958ec5c7a1df9ed58207ac76242
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 342c4504f111003037d240c6c2e5c1473d3297c24c1b3f6c91e61db813a9f3d1c24871ce1083c7bc4edbd975b307f7afe5f825e1063af74ff6dcbc764f0b1232
|
7
|
+
data.tar.gz: 0a472eaae23502477d039e487fc03e12040e7102b556bdd6a314017f2c222b1cf85711215a63b247eb6780de4d13e115c8e4a4e8b7c57f76f15708a618fa4008
|
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
In order to improve something you have to measure it! This helps you measure performance of your Capistrano deployments by appending performance reports after each Capistrano execution
|
4
4
|
|
5
|
+
Works with **Capistrano 2** and **Capistrano 3**
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
@@ -6,7 +6,7 @@ module Capistrano
|
|
6
6
|
@measure_adapter ||= Capistrano::Measure::Adapter.new
|
7
7
|
end
|
8
8
|
|
9
|
-
def
|
9
|
+
def insert_measure_tasks
|
10
10
|
Rake.application.tasks.each do |current_task|
|
11
11
|
before(current_task, :"bm_#{current_task}_before_hook") do
|
12
12
|
measure_adapter.before_task(current_task)
|
@@ -21,7 +21,7 @@ module Capistrano
|
|
21
21
|
def invoke_task(task_string)
|
22
22
|
name, _ = parse_task_string(task_string)
|
23
23
|
|
24
|
-
|
24
|
+
insert_measure_tasks if top_level_tasks.first == name
|
25
25
|
super(task_string)
|
26
26
|
measure_adapter.print_report if top_level_tasks.last == name
|
27
27
|
end
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-measure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artūrs Mekšs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- README.md
|
117
117
|
- Rakefile
|
118
118
|
- capistrano-measure.gemspec
|
119
|
+
- lib/capistrano-measure.rb
|
119
120
|
- lib/capistrano/measure.rb
|
120
121
|
- lib/capistrano/measure/adapter.rb
|
121
122
|
- lib/capistrano/measure/integration/capistrano_2.rb
|