chicanery 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +2 -3
- data/Gemfile.lock +37 -36
- data/README.md +3 -3
- data/Rakefile +0 -4
- data/chicanery.gemspec +7 -9
- data/lib/chicanery.rb +1 -2
- data/lib/chicanery/debug.rb +2 -0
- data/lib/chicanery/handlers.rb +0 -1
- data/lib/chicanery/version.rb +3 -0
- data/spec/chicanery/cctray_spec.rb +2 -3
- data/spec/chicanery/collections_spec.rb +3 -1
- data/spec/chicanery/persistence_spec.rb +3 -1
- data/spec/chicanery/servers_spec.rb +3 -1
- data/spec/chicanery/summary_spec.rb +3 -1
- data/spec/chicanery_spec.rb +2 -0
- data/spec/embedded_chicanery_spec.rb +3 -1
- data/spec/spec_helper.rb +9 -0
- metadata +16 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 496b85a08502668e3852df9db9f99132d09b2974b5b2e8f7f9adbcfff5a667ed
|
4
|
+
data.tar.gz: 6a2e6113783e2bdc409bb9834a4d7e089a72b54c15ba3208c6c245a072f989d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 583955a38c81e0f4f5ea0f90569c688b8050092e56ebf0f022afba40cd7df96d7cf17e011f34abc3fce15302921852003dc4339b35bd76168736211e98d8e73a
|
7
|
+
data.tar.gz: 5d74241181416c8df9b59b1150dd3adb12dd9e6dceb829c86588fa51c99c507459cd6c5b44aee6ba7921a4d724937bec262eb2cc96e28f71e2af8294ca10bae4
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,52 +2,53 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
chicanery (0.1.8)
|
5
|
-
colorize
|
6
|
-
nokogiri
|
5
|
+
colorize
|
6
|
+
nokogiri
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.
|
12
|
-
|
13
|
-
|
11
|
+
addressable (2.7.0)
|
12
|
+
public_suffix (>= 2.0.2, < 5.0)
|
13
|
+
colorize (0.8.1)
|
14
|
+
crack (0.4.3)
|
14
15
|
safe_yaml (~> 1.0.0)
|
15
|
-
diff-lcs (1.
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
rake (0.
|
22
|
-
rspec (
|
23
|
-
rspec-core (~>
|
24
|
-
rspec-expectations (~>
|
25
|
-
rspec-mocks (~>
|
26
|
-
rspec-core (
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
webmock (1.9.3)
|
40
|
-
addressable (>= 2.2.7)
|
16
|
+
diff-lcs (1.3)
|
17
|
+
hashdiff (1.0.1)
|
18
|
+
mini_portile2 (2.4.0)
|
19
|
+
nokogiri (1.10.9)
|
20
|
+
mini_portile2 (~> 2.4.0)
|
21
|
+
public_suffix (4.0.3)
|
22
|
+
rake (13.0.1)
|
23
|
+
rspec (3.9.0)
|
24
|
+
rspec-core (~> 3.9.0)
|
25
|
+
rspec-expectations (~> 3.9.0)
|
26
|
+
rspec-mocks (~> 3.9.0)
|
27
|
+
rspec-core (3.9.1)
|
28
|
+
rspec-support (~> 3.9.1)
|
29
|
+
rspec-expectations (3.9.1)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.9.0)
|
32
|
+
rspec-mocks (3.9.1)
|
33
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
+
rspec-support (~> 3.9.0)
|
35
|
+
rspec-support (3.9.2)
|
36
|
+
safe_yaml (1.0.5)
|
37
|
+
vcr (5.1.0)
|
38
|
+
webmock (3.8.3)
|
39
|
+
addressable (>= 2.3.6)
|
41
40
|
crack (>= 0.3.2)
|
41
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
42
42
|
|
43
43
|
PLATFORMS
|
44
44
|
ruby
|
45
45
|
|
46
46
|
DEPENDENCIES
|
47
47
|
chicanery!
|
48
|
-
rake
|
49
|
-
rspec
|
50
|
-
simplecov
|
51
|
-
simplecov-gem-adapter
|
48
|
+
rake
|
49
|
+
rspec
|
52
50
|
vcr
|
53
|
-
webmock
|
51
|
+
webmock
|
52
|
+
|
53
|
+
BUNDLED WITH
|
54
|
+
2.1.4
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Chicanery
|
1
|
+
# Chicanery
|
2
2
|
|
3
3
|
This is a command line tool to trigger any kind of action in response to any interesting event in a software development project (such as build server events, commit events, deployment events, etc.).
|
4
4
|
|
@@ -101,7 +101,7 @@ The following callbacks may be received after checking a web site:
|
|
101
101
|
|
102
102
|
## Supported CI servers
|
103
103
|
|
104
|
-
Currently only ci servers that can provide [
|
104
|
+
Currently only ci servers that can provide [Multiple Project Summary Reporting Standard](https://github.com/erikdoe/ccmenu/wiki/Multiple-Project-Summary-Reporting-Standard) are supported.
|
105
105
|
|
106
106
|
This includes thoughtworks go, tddium, travisci, circleci, jenkins, teamcity, cc.net and several others:
|
107
107
|
|
@@ -132,4 +132,4 @@ Basic authentication is supported by passing :user => 'user', :password => 'pass
|
|
132
132
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
133
133
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
134
134
|
4. Push to the branch (`git push origin my-new-feature`)
|
135
|
-
5. Create new Pull Request
|
135
|
+
5. Create new Pull Request
|
data/Rakefile
CHANGED
data/chicanery.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'chicanery'
|
4
|
+
require 'chicanery/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = "chicanery"
|
@@ -17,13 +17,11 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.add_dependency 'nokogiri'
|
21
|
-
gem.add_dependency 'colorize'
|
20
|
+
gem.add_dependency 'nokogiri'
|
21
|
+
gem.add_dependency 'colorize'
|
22
22
|
|
23
|
-
gem.add_development_dependency 'rake'
|
24
|
-
gem.add_development_dependency 'rspec'
|
25
|
-
gem.add_development_dependency 'simplecov'
|
26
|
-
gem.add_development_dependency 'simplecov-gem-adapter'
|
23
|
+
gem.add_development_dependency 'rake'
|
24
|
+
gem.add_development_dependency 'rspec'
|
27
25
|
gem.add_development_dependency 'vcr'
|
28
|
-
gem.add_development_dependency 'webmock'
|
29
|
-
end
|
26
|
+
gem.add_development_dependency 'webmock'
|
27
|
+
end
|
data/lib/chicanery.rb
CHANGED
@@ -4,6 +4,7 @@ if ENV['COVERAGE']
|
|
4
4
|
SimpleCov.start 'gem'
|
5
5
|
end
|
6
6
|
|
7
|
+
require 'chicanery/version'
|
7
8
|
require 'chicanery/persistence'
|
8
9
|
require 'chicanery/servers'
|
9
10
|
require 'chicanery/repos'
|
@@ -16,8 +17,6 @@ module Chicanery
|
|
16
17
|
include Repos
|
17
18
|
include Sites
|
18
19
|
|
19
|
-
VERSION = "0.1.8"
|
20
|
-
|
21
20
|
def poll_period seconds=nil
|
22
21
|
@poll_period = seconds if seconds
|
23
22
|
@poll_period
|
data/lib/chicanery/debug.rb
CHANGED
data/lib/chicanery/handlers.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
require 'vcr'
|
1
|
+
require_relative '../spec_helper'
|
3
2
|
|
4
3
|
VCR.configure do |c|
|
5
4
|
c.cassette_library_dir = 'fixtures/vcr_cassettes'
|
@@ -64,4 +63,4 @@ describe Chicanery::Cctray do
|
|
64
63
|
expect{server.jobs}.to raise_error Net::HTTPRetriableError
|
65
64
|
end
|
66
65
|
end
|
67
|
-
end
|
66
|
+
end
|
data/spec/chicanery_spec.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require_relative 'spec_helper'
|
2
|
+
|
1
3
|
describe Chicanery do
|
2
4
|
subject { Object.new.extend Chicanery }
|
3
5
|
|
@@ -35,4 +37,4 @@ describe Chicanery do
|
|
35
37
|
# it compares current state and previous state for each server
|
36
38
|
# it compares current state and previous state for each server
|
37
39
|
end
|
38
|
-
end
|
40
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,73 +1,59 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chicanery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Ryall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: colorize
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '2'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: simplecov
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - ">="
|
@@ -81,7 +67,7 @@ dependencies:
|
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
70
|
+
name: vcr
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - ">="
|
@@ -95,7 +81,7 @@ dependencies:
|
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
84
|
+
name: webmock
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - ">="
|
@@ -108,20 +94,6 @@ dependencies:
|
|
108
94
|
- - ">="
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: webmock
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "<"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '1.10'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "<"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '1.10'
|
125
97
|
description: trigger various events related to a continuous integration environment
|
126
98
|
email:
|
127
99
|
- mark@ryall.name
|
@@ -159,6 +131,7 @@ files:
|
|
159
131
|
- lib/chicanery/site.rb
|
160
132
|
- lib/chicanery/sites.rb
|
161
133
|
- lib/chicanery/summary.rb
|
134
|
+
- lib/chicanery/version.rb
|
162
135
|
- spec/chicanery/cctray_spec.rb
|
163
136
|
- spec/chicanery/collections_spec.rb
|
164
137
|
- spec/chicanery/persistence_spec.rb
|
@@ -166,6 +139,7 @@ files:
|
|
166
139
|
- spec/chicanery/summary_spec.rb
|
167
140
|
- spec/chicanery_spec.rb
|
168
141
|
- spec/embedded_chicanery_spec.rb
|
142
|
+
- spec/spec_helper.rb
|
169
143
|
homepage: http://github.com/markryall/chicanery
|
170
144
|
licenses: []
|
171
145
|
metadata: {}
|
@@ -184,8 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
158
|
- !ruby/object:Gem::Version
|
185
159
|
version: '0'
|
186
160
|
requirements: []
|
187
|
-
|
188
|
-
rubygems_version: 2.2.2
|
161
|
+
rubygems_version: 3.0.6
|
189
162
|
signing_key:
|
190
163
|
specification_version: 4
|
191
164
|
summary: polls various resources related to a ci environment and performs custom notifications
|
@@ -197,3 +170,4 @@ test_files:
|
|
197
170
|
- spec/chicanery/summary_spec.rb
|
198
171
|
- spec/chicanery_spec.rb
|
199
172
|
- spec/embedded_chicanery_spec.rb
|
173
|
+
- spec/spec_helper.rb
|