chicanery 0.1.3 → 0.1.4
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 +6 -14
- data/Gemfile +0 -3
- data/Gemfile.lock +18 -14
- data/README.md +7 -4
- data/lib/chicanery.rb +1 -1
- data/lib/chicanery/site.rb +2 -0
- metadata +10 -10
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
metadata.gz: !binary |-
|
|
9
|
-
ZGY4NmM0NDE4ZTFlZjE3YzQ3OGUzZDJlZmUwMmQ5YmNiOTc2NzM5YjgzZDQ3
|
|
10
|
-
ZDAxYTg2MTY1MzMxNjYxZDlmNDVmN2M4NzI2NDY5N2MwMjgxOTdjY2UxZTYx
|
|
11
|
-
OTAyMjI3OWUxNDJkZDllNzdmMGRjYjQ2MmExZjgyNDdhNDllOTU=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
NmVjZGVlNGI2YzA2NWEwMjY2MGU3MTZhMGJhM2I4MzAyNjhhM2I4NjdlM2Yw
|
|
14
|
-
ODJiYWZjMGJkOWE1ZDEzNGMzNWQ4NDljYWZjMmZkYWZjOWU2MjhlNzMxNzY5
|
|
15
|
-
Y2E2YzM5NmU5OGJlMzQ3MGI3YjcyNjYxOTNhZjcxOGE4NzI4ODk=
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 846eca2bba6266d70bc2238dd6bafd85257314e0
|
|
4
|
+
data.tar.gz: f8804952b0756317edfd7c79e1dd80a3bf8206a7
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: a3182e3bc85cdabb365541063bd7ca5a403537be8661e55bdb12001fba6f583587157663323d54bf66f485a0ab277f3d026a3e09cce4adf5751c50aee6249b67
|
|
7
|
+
data.tar.gz: 00ff2db2662c9bf8a46c6ac426850453ddbe9e74d027ed36f35475cf3116f193cef0d6cc2bf2c0caadfa553c6e5559f6ceab22c460014259c61e6033a8a507a9
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
chicanery (0.1.
|
|
4
|
+
chicanery (0.1.4)
|
|
5
5
|
nokogiri (~> 1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
addressable (2.3.
|
|
11
|
-
crack (0.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
addressable (2.3.5)
|
|
11
|
+
crack (0.4.1)
|
|
12
|
+
safe_yaml (~> 0.9.0)
|
|
13
|
+
diff-lcs (1.2.4)
|
|
14
|
+
mini_portile (0.5.1)
|
|
15
|
+
multi_json (1.8.0)
|
|
16
|
+
nokogiri (1.6.0)
|
|
17
|
+
mini_portile (~> 0.5.0)
|
|
15
18
|
rake (0.9.6)
|
|
16
|
-
rspec (2.
|
|
17
|
-
rspec-core (~> 2.
|
|
18
|
-
rspec-expectations (~> 2.
|
|
19
|
-
rspec-mocks (~> 2.
|
|
20
|
-
rspec-core (2.
|
|
21
|
-
rspec-expectations (2.
|
|
19
|
+
rspec (2.14.1)
|
|
20
|
+
rspec-core (~> 2.14.0)
|
|
21
|
+
rspec-expectations (~> 2.14.0)
|
|
22
|
+
rspec-mocks (~> 2.14.0)
|
|
23
|
+
rspec-core (2.14.5)
|
|
24
|
+
rspec-expectations (2.14.2)
|
|
22
25
|
diff-lcs (>= 1.1.3, < 2.0)
|
|
23
|
-
rspec-mocks (2.
|
|
26
|
+
rspec-mocks (2.14.3)
|
|
27
|
+
safe_yaml (0.9.5)
|
|
24
28
|
simplecov (0.7.1)
|
|
25
29
|
multi_json (~> 1.0)
|
|
26
30
|
simplecov-html (~> 0.7.1)
|
|
27
31
|
simplecov-gem-adapter (1.0.1)
|
|
28
32
|
simplecov
|
|
29
33
|
simplecov-html (0.7.1)
|
|
30
|
-
vcr (2.
|
|
34
|
+
vcr (2.5.0)
|
|
31
35
|
webmock (1.9.3)
|
|
32
36
|
addressable (>= 2.2.7)
|
|
33
37
|
crack (>= 0.3.2)
|
data/README.md
CHANGED
|
@@ -103,7 +103,7 @@ The following callbacks may be received after checking a web site:
|
|
|
103
103
|
|
|
104
104
|
Currently only ci servers that can provide [cctray reporting format](http://confluence.public.thoughtworks.org/display/CI/Multiple+Project+Summary+Reporting+Standard) are supported.
|
|
105
105
|
|
|
106
|
-
This includes thoughtworks go, tddium, travisci, jenkins, cc.net and several others:
|
|
106
|
+
This includes thoughtworks go, tddium, travisci, circleci, jenkins, teamcity, cc.net and several others:
|
|
107
107
|
|
|
108
108
|
For a jenkins or hudson server, monitor http://jenkins-server:8080/cc.xml
|
|
109
109
|
|
|
@@ -113,14 +113,17 @@ For a travis ci project, monitor https://api.travis-ci.org/repositories/owner/pr
|
|
|
113
113
|
|
|
114
114
|
For a tddium project, monitor the link 'Configure with CCMenu' which will look something like https://api.tddium.com/cc/long_uuid_string/cctray.xml
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
For team city, monitor the http://teamcity:8111/httpAuth/app/rest/cctray/projects.xml (requires credentials) or http://teamcity:8111/guestAuth/app/rest/cctray/projects.xml for guest. See [documentation](http://confluence.jetbrains.com/display/TW/REST+API+Plugin#RESTAPIPlugin-CCTray) for more information.
|
|
117
|
+
|
|
118
|
+
For a circleci project, monitor the links https://circleci.com/cc.xml?circle-token=:circle-token, https://circleci.com/gh/:owner/:repo.cc.xml?circle-token=:circle-token or https://circleci.com/gh/:owner/:repo/tree/:branch.cc.xml?circle-token=:circle-token. See [documentation](https://circleci.com/docs/polling-project-status) for more details.
|
|
119
|
+
|
|
120
|
+
Basic authentication is supported by passing :user => 'user', :password => 'password' to the Chicanery::Cctray constructor. https is supported without performing certificate verification (some ci servers such as thoughtworks go generates a self signed cert that would otherwise be rejected without significant messing around). You can turn certificate verification back on by passing :verify_ssl => true.
|
|
117
121
|
|
|
118
122
|
## Plans for world domination
|
|
119
123
|
|
|
120
124
|
* monitoring a mercurial repository for push notifications
|
|
121
125
|
* monitoring a subversion repository for commit notifications
|
|
122
|
-
* monitoring
|
|
123
|
-
* monitoring more ci servers (atlassian bamboo, jetbrains team city, etc.)
|
|
126
|
+
* monitoring more ci servers (atlassian bamboo, etc.)
|
|
124
127
|
* other interesting notifier plugins or examples
|
|
125
128
|
|
|
126
129
|
## Contributing
|
data/lib/chicanery.rb
CHANGED
data/lib/chicanery/site.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require 'net/http'
|
|
2
|
+
require 'openssl'
|
|
2
3
|
require 'benchmark'
|
|
3
4
|
|
|
4
5
|
module Chicanery
|
|
@@ -11,6 +12,7 @@ module Chicanery
|
|
|
11
12
|
|
|
12
13
|
def get
|
|
13
14
|
req = Net::HTTP::Get.new uri.path
|
|
15
|
+
req += "?#{uri.query}" if uri.query
|
|
14
16
|
req.basic_auth options[:user], options[:password] if options[:user] and options[:password]
|
|
15
17
|
http_opts = { use_ssl: uri.scheme == 'https' }
|
|
16
18
|
http_opts[:verify_mode] = OpenSSL::SSL::VERIFY_NONE unless options[:verify_ssl]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Ryall
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -56,42 +56,42 @@ dependencies:
|
|
|
56
56
|
name: simplecov
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - '>='
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - '>='
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: simplecov-gem-adapter
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- -
|
|
73
|
+
- - '>='
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '0'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- -
|
|
80
|
+
- - '>='
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: vcr
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
|
-
- -
|
|
87
|
+
- - '>='
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
89
|
version: '0'
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
|
-
- -
|
|
94
|
+
- - '>='
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
@@ -160,12 +160,12 @@ require_paths:
|
|
|
160
160
|
- lib
|
|
161
161
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
162
|
requirements:
|
|
163
|
-
- -
|
|
163
|
+
- - '>='
|
|
164
164
|
- !ruby/object:Gem::Version
|
|
165
165
|
version: '0'
|
|
166
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
requirements:
|
|
168
|
-
- -
|
|
168
|
+
- - '>='
|
|
169
169
|
- !ruby/object:Gem::Version
|
|
170
170
|
version: '0'
|
|
171
171
|
requirements: []
|