cruisecontrolrb_to_hipchat 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3a4f5d9a20f3fbddddcb6384b120cfe03a92f66
4
- data.tar.gz: a72a8694de06e3f4b81a273d8346e00af53e19a4
3
+ metadata.gz: bb399bb7cbe2989220930dba9167277cbc0dee6c
4
+ data.tar.gz: 016d62ff0fd3922cb76be40e4cba1f10426257bf
5
5
  SHA512:
6
- metadata.gz: 922963784bf5fd209f9bdef8e97c1deae19067d0873f28df1418229262494a83f8f498375964a0868ec285b3be1e5fd6e47252f0e614d0d3bdbdbc7fc9880aff
7
- data.tar.gz: 6ef87dfc667c106a55ff2346bb320ae0a8716d81952cf1470c4d26375d73eb8ee9dff31cea812a1694f30bb357eaaaa6f7b613801971f9509a02ab95db68edd5
6
+ metadata.gz: b7c80351256e5e0cfc878830740aba4f7358d3f9b0f468a20c2995d762770fd240526d91143212cd573eb5f1e760b8a5ae239b61a8d7ac96d3f9bafa23008c21
7
+ data.tar.gz: 8b492e809013e82f1e882f4679443e3b1b64c9b797fb9e9d9ce57c8292145a6de0af1b29c5a891be8ec3830028bb8953a86b3d788e0ac44d236418d36d8f2fc4
data/README.md CHANGED
@@ -2,34 +2,76 @@ This is a little Sinatra app notifies Hipchat of any changes in the build status
2
2
 
3
3
  Heroku-ready! Just follow these steps:
4
4
 
5
- 1. Grab a copy of the source
5
+ ## Installation
6
6
 
7
- git clone git@github.com:andrewpbrett/cruisecontrolrb_to_hipchat.git
7
+ Install as a gem
8
8
 
9
- 2. Create a Heroku app
9
+ gem install cruisecontrolrb_to_hipchat
10
10
 
11
- heroku create myapp
11
+ or add to your Gemfile
12
12
 
13
- 3. Required configuration
14
-
15
- heroku config:add HIPCHAT_AUTH_TOKEN=your_auth_token
16
- heroku config:add HIPCHAT_ROOM_ID=your_room_id
17
- heroku config:add CC_URL=your_cruise_control_url
13
+ ```
14
+ # Gemfile
15
+ gem "cruisecontrolrb_to_hipchat"
16
+ ```
18
17
 
19
- 4. Optional configuration:
18
+ and run `bundle install`
20
19
 
21
- Basic auth for your CruiseControlrb install (recommended):
22
-
23
- heroku config:add CC_USERNAME=your_username
24
- heroku config:add CC_PASSWORD=your_password
25
-
26
- heroku config:add POLLING_INTERVAL # polling interval in minutes. defaults to 1 minute.
27
- heroku config:add HIPCHAT_FROM=cruise-control # who the messages are "from" in hipchat. defaults to 'cruise-control'
20
+ or from source
28
21
 
29
- 5. Deploy to Heroku
22
+ ```
23
+ git clone git@github.com:zumobi/cruisecontrolrb_to_hipchat.git
24
+ cd cruisecontrolrb_to_hipchat
25
+ bundle install
26
+ rake build
27
+ ```
30
28
 
31
- git push heroku master
29
+ ## Configuration
32
30
 
33
- 6. Set up something to ping your app regularly in order to [prevent it from idling](http://stackoverflow.com/questions/5480337/easy-way-to-prevent-heroku-idling). The New Relic add-on seems to do the trick, but so does a cron job, pingdom, etc., etc., etc. ...
31
+ Make sure to define the following environment variable as they are required in either
32
+ you `.profile` or `/etc/profile.d/cruisecontrolrc_to_hipchat.sh` (for all users)
34
33
 
35
- 7. Have a beer while you wait for your first notification in Hipchat.
34
+ ```
35
+ HIPCHAT_AUTH_TOKEN=your_auth_token
36
+ HIPCHAT_ROOM_ID=your_room_id
37
+ CC_URL=your_cruise_control_url
38
+ ```
39
+
40
+ The following are optionals
41
+
42
+ Basic auth for your CruiseControlrb install (recommended):
43
+
44
+ ```
45
+ CC_USERNAME=your_username
46
+ CC_PASSWORD=your_password
47
+ ```
48
+
49
+ ```
50
+ POLLING_INTERVAL # polling interval in minutes. defaults to 1 minute.
51
+ HIPCHAT_FROM=cruise-control # who the messages are "from" in hipchat. defaults to 'cruise-control'
52
+ ```
53
+
54
+ ## Running
55
+
56
+ As this gem uses dante, options are best describes [here](http://github.com/nesquena/dante) but here are some very simple
57
+ setup
58
+
59
+ ### Run in foreground and STDOUT output (to test most likely)
60
+
61
+ ```
62
+ cruisecontrolrb_to_hipchat
63
+ ```
64
+
65
+ ### Run in foreground with logs
66
+
67
+ ```
68
+ cruisecontrolrb_to_hipchat -l /var/log/myapp.log
69
+ ```
70
+
71
+ ### Run as a daemon with a pid file and logs
72
+
73
+ ```
74
+ cruisecontrolrb_to_hipchat -d -P /var/run/myapp.pid -l /var/log/myapp.log
75
+ ```
76
+
77
+ <img width="100px" src="http://1.bp.blogspot.com/-VYkLIx6dPTE/TapmnuECsJI/AAAAAAAAALY/L3c1FY4v--w/s1600/looney_tunes_thats_all_folks.jpg" />
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = CruisecontrolrbToHipchat::VERSION
9
9
  spec.authors = ["epinault"]
10
10
  spec.email = ["emmanuel.pinault@zumobi.com"]
11
- spec.summary = %q{A simple daemon to report last build status from cruisecontrol}
12
- spec.description = %q{Inspired from https://github.com/andrewpbrett/cruisecontrolrb_to_hipchat but with support of more recent api and multiple projects}
11
+ spec.summary = %q{A simple daemon to report last build status of projects and activities from cruisecontrol}
12
+ spec.description = %q{A simple daemon to report last build status of projects and activities from cruisecontrol. Inspired from https://github.com/andrewpbrett/cruisecontrolrb_to_hipchat but with support of more recent api and multiple projects}
13
13
  spec.homepage = "http://github.com/zumobi/cruisecontrolrb_to_hipchat"
14
14
  spec.license = "MIT"
15
15
 
@@ -1,3 +1,3 @@
1
1
  module CruisecontrolrbToHipchat
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cruisecontrolrb_to_hipchat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - epinault
@@ -108,7 +108,8 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- description: Inspired from https://github.com/andrewpbrett/cruisecontrolrb_to_hipchat
111
+ description: A simple daemon to report last build status of projects and activities
112
+ from cruisecontrol. Inspired from https://github.com/andrewpbrett/cruisecontrolrb_to_hipchat
112
113
  but with support of more recent api and multiple projects
113
114
  email:
114
115
  - emmanuel.pinault@zumobi.com
@@ -153,5 +154,6 @@ rubyforge_project:
153
154
  rubygems_version: 2.2.2
154
155
  signing_key:
155
156
  specification_version: 4
156
- summary: A simple daemon to report last build status from cruisecontrol
157
+ summary: A simple daemon to report last build status of projects and activities from
158
+ cruisecontrol
157
159
  test_files: []