bzhipchat 0.0.1 → 0.0.2

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.
data/README.textile CHANGED
@@ -1,67 +1,4 @@
1
- h1. HipChat Wrapper
1
+ h1. BzHipChat Wrapper
2
2
 
3
- A very basic wrapper for the HipChat HTTP API.
3
+ A very basic wrapper for the HipChat HTTP API, forked from the (Original HipChat)[https://github.com/hipchat/hipchat-rb]
4
4
 
5
- h2. Usage
6
-
7
- bc.. client = HipChat::Client.new(api_token)
8
- client['my room'].send('username', 'I talk')
9
-
10
- # Send notifications to users (default false)
11
- client['my room'].send('username', 'I quit!', :notify => true)
12
-
13
- # Color it red. or "yellow", "green", "purple", "random" (default "yellow")
14
- client['my room'].send('username', 'Build failed!', :color => 'red')
15
-
16
- h2. Capistrano
17
-
18
- bc.. require 'hipchat/capistrano'
19
-
20
- set :hipchat_token, "<your token>"
21
- set :hipchat_room_name, "Your room"
22
- set :hipchat_announce, false # notify users
23
- set :hipchat_color, 'green' #finished deployment message color
24
- set :hipchat_failed_color, 'red' #cancelled deployment message color
25
-
26
- h3. Who did it?
27
-
28
- To determine the user that is currently running the deploy, the capistrano tasks will look for the following:
29
-
30
- # The $HIPCHAT_USER environment variable
31
- # The hipchat_human capistrano var.
32
- # The git user.name var.
33
- # The $USER environment variable.
34
-
35
- h2. Rails 3 Rake Task
36
-
37
- Send a message using a rake task:
38
-
39
- bc. rake hipchat:send["hello world"]
40
-
41
- Options like the room, API token, user name and notification flag can be set in YAML.
42
-
43
- RAILS_ROOT/config/hipchat.yml:
44
-
45
- bc.. token: "<your token>"
46
- room: "Your room"
47
- user: "Your name" # Default to `whoami`
48
- notify: true # Defaults to false
49
-
50
- h2. Engine Yard
51
-
52
- Use a "deploy hook":http://bit.ly/qnbIkP to send messages from Engine Yard's Cloud platform.
53
-
54
- RAILS_ROOT/deploy/after_restart.rb:
55
-
56
- bc.. on_app_master do
57
- message = "Deploying revision #{revision[0...6]} to #{node[:environment][:name]}"
58
- message += " (with migrations)" if migrate?
59
- message += "."
60
-
61
- # Send a message via rake task assuming a hipchat.yml in your config like above
62
- run "cd #{release_path} && bundle exec rake hipchat:send MESSAGE='#{message}'"
63
- end
64
-
65
- h2. Copyright
66
-
67
- Copyright (c) 2010 Mojo Tech. See LICENSE for details.
data/hipchat.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bzhipchat"
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Betazeta"]
12
- s.date = "2013-08-27"
12
+ s.date = "2013-09-04"
13
13
  s.description = "Ruby library to interact with HipChat, forked by boris.quiroz@betazeta.com"
14
14
  s.email = "boris.quiroz@betazeta.com"
15
15
  s.extra_rdoc_files = [
@@ -22,7 +22,7 @@ Capistrano::Configuration.instance(:must_exist).load do
22
22
  on_rollback do
23
23
  send_options.merge!(:color => failed_message_color)
24
24
  hipchat_client[hipchat_room_name].
25
- send(deploy_user, "#{human} cancelled deployment of #{deployment_name} to #{env}.", send_options)
25
+ send(deploy_user, "#{human} cancelled deployment of #{deployment_name} to #{env}. (yuno)", send_options)
26
26
  end
27
27
 
28
28
  message = "#{human} esta haciendo deploy #{deployment_name} a #{stage}"
@@ -35,7 +35,7 @@ Capistrano::Configuration.instance(:must_exist).load do
35
35
 
36
36
  task :notify_deploy_finished do
37
37
  hipchat_client[hipchat_room_name].
38
- send(deploy_user, "#{human} termino deploy #{deployment_name} a #{stage}.", send_options)
38
+ send(deploy_user, "#{human} termino deploy #{deployment_name} a #{stage}. (fuckyeah)", send_options)
39
39
  end
40
40
 
41
41
  def send_options
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bzhipchat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-27 00:00:00.000000000 Z
12
+ date: 2013-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty