capistrano-ghostinspector 0.2.0.rc → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/lib/capistrano/ghostinspector/analytics.rb +1 -1
- data/lib/capistrano/ghostinspector/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30234e4b797a6a5cfe63c41350826bca1dec3cb0
|
4
|
+
data.tar.gz: 87ac2f5807a64b752ccebce107fc100a73df3a49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa8a90aba72f06af78f400d427f42646eb254d01117c88bc83291b96dd3deccfc0b486ad787df984a901a1409cb19f0edb973ac94f3f05a9299d5c32c3f7f9f9
|
7
|
+
data.tar.gz: 7cad68d9aafdf032ce81f43ea335eb3603cd186a1550a9148e888a43c9666f6083b75f770b71ed2f6f5f13556548cfb3a5cd6472594a9609bd6a74c60e97b7d7
|
data/README.md
CHANGED
@@ -11,6 +11,8 @@
|
|
11
11
|
- Exclude individual stages
|
12
12
|
- Auto rollback to previous version on failed tests (can be disabled in config per stage)
|
13
13
|
- Auto configure start URL to reuse tests across multiple stages
|
14
|
+
- Send deployment information to Google Analytics
|
15
|
+
- Send errors to Google Analytics on failed tests
|
14
16
|
|
15
17
|
## Installation
|
16
18
|
|
@@ -42,6 +44,7 @@ First thing you need to do is create your `YAML` file (`gi_config.yaml`) in the
|
|
42
44
|
APIKEY: XXXXXXXXXXXXXXXXXXX
|
43
45
|
gi_enabled: true
|
44
46
|
rollback: true
|
47
|
+
ga_property: ""
|
45
48
|
suites:
|
46
49
|
aboutpage: "XXXXXXXXXXXXXXXXXXX"
|
47
50
|
suite2: ""
|
@@ -67,26 +70,28 @@ By default the `rollback` feature is enabled, you can disabled this for all stag
|
|
67
70
|
set :rollback, false
|
68
71
|
```
|
69
72
|
|
73
|
+
The Google Analytics property must be inserted into the `ga_property` in order to log deployments and errors. Simply update your YAML to include this `ga_property: "UA-XXXXXXXX-1"`. To disable the Google Analytics tracking just leave the `ga_property` as empty string i.e. `ga_property: ""` in your YAML
|
74
|
+
|
70
75
|
## Usage
|
71
76
|
|
72
77
|
Run a particular test when deploying to staging -
|
73
78
|
|
74
|
-
|
79
|
+
$ cap staging deploy -s gitest=homepage
|
75
80
|
|
76
81
|
|
77
82
|
Run a multiple tests when deploying to staging -
|
78
83
|
|
79
|
-
|
84
|
+
$ cap staging deploy -s gitest=homepage,test2,test3
|
80
85
|
|
81
86
|
|
82
87
|
Run a particular suite when deploying to staging -
|
83
88
|
|
84
|
-
|
89
|
+
$ cap staging deploy -s gisuite=aboutpage
|
85
90
|
|
86
91
|
|
87
92
|
Run a multiple suites when deploying to staging -
|
88
93
|
|
89
|
-
|
94
|
+
$ cap staging deploy -s gisuite=aboutpage,suite2
|
90
95
|
|
91
96
|
|
92
97
|
## Contributing
|
@@ -9,7 +9,7 @@ module Capistrano
|
|
9
9
|
tracker = Staccato.tracker(ga_property)
|
10
10
|
|
11
11
|
# inform GA of a new deployment
|
12
|
-
tracker.event(category: 'deployment', action:
|
12
|
+
tracker.event(category: 'deployment', action: 'deploy', label: current_revision, non_interactive: true)
|
13
13
|
|
14
14
|
end
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-ghostinspector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Richardson
|
@@ -131,9 +131,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
131
|
version: '0'
|
132
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
133
|
requirements:
|
134
|
-
- - "
|
134
|
+
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version:
|
136
|
+
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
139
|
rubygems_version: 2.4.5
|