integration-hipchat-plugin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in integration-hipchat-plugin.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # Integration
2
+
3
+ ## WTF?
4
+
5
+ This plugin adds hipchat support to [integration](http://github.com/tapajos/integration). Its a small set of rake tasks that can be used along with integration so it can interact with hipchat during the integration process.
6
+
7
+
8
+ ## Installing
9
+
10
+ Add this project to your gemfile, as you are probably used to do in a bundler controlled project.
11
+
12
+ group :test, :development do
13
+ gem 'integration-hipchat'
14
+ end
15
+
16
+ After bundling your app, you need to change your INTEGRATION\_TASKS adding your hipchat tasks.
17
+
18
+ Don't forget also to configure Rails.root/config/hipchat.yml with the following variables:
19
+
20
+ token: "<your token>"
21
+ room: "Your room"
22
+ user: "Your name" # Default to `whoami`
23
+ notify: true # Defaults to false
24
+
25
+ ## Tasks provided
26
+
27
+ This plugin provides the following tasks
28
+
29
+ * integration:hipchat:announce
30
+ * integration:hipchat:finish
31
+
32
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "integration-hipchat-plugin/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "integration-hipchat-plugin"
7
+ s.version = Integration::Hipchat::Plugin::VERSION
8
+ s.authors = ["Vitor Pellegrino"]
9
+ s.email = ["vitorp@gmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{Hipchat support to integration}
12
+ s.description = %q{Few rake tasks created to operate with integration rails plugin}
13
+
14
+ s.rubyforge_project = "integration-hipchat-plugin"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ s.add_development_dependency "integration"
22
+
23
+ s.add_runtime_dependency "hipchat"
24
+ end
@@ -0,0 +1,10 @@
1
+ require "integration-hipchat-plugin/version"
2
+ Dir["#{Gem::Specification.find_by_name('integration-hipchat-plugin').full_gem_path}/lib/tasks/*.rake"].each { |ext| load ext } if defined?(Rake)
3
+
4
+ module Integration
5
+ module Hipchat
6
+ module Plugin
7
+ # Your code goes here...
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ module Integration
2
+ module Hipchat
3
+ module Plugin
4
+ VERSION = "0.0.1"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,20 @@
1
+ require 'hipchat'
2
+
3
+ namespace :integration do
4
+
5
+ namespace :hipchat do
6
+ desc "Announce the begining of the integration process to a hipchat room"
7
+ task :announce do
8
+ user = `whoami`
9
+ `MESSAGE="@all User #{user} started to integrate" bundle exec rake hipchat:send`
10
+ end
11
+
12
+ task :finish do
13
+ user = `whoami`
14
+ `MESSAGE="@all User #{user} finished to integrate" bundle exec rake hipchat:send`
15
+ `MESSAGE="Well done!" bundle exec rake hipchat:send`
16
+ end
17
+
18
+ end
19
+
20
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: integration-hipchat-plugin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Vitor Pellegrino
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-01-31 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: integration
16
+ requirement: &18090660 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *18090660
25
+ - !ruby/object:Gem::Dependency
26
+ name: hipchat
27
+ requirement: &18089840 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *18089840
36
+ description: Few rake tasks created to operate with integration rails plugin
37
+ email:
38
+ - vitorp@gmail.com
39
+ executables: []
40
+ extensions: []
41
+ extra_rdoc_files: []
42
+ files:
43
+ - .gitignore
44
+ - Gemfile
45
+ - README.md
46
+ - Rakefile
47
+ - integration-hipchat-plugin.gemspec
48
+ - lib/integration-hipchat-plugin.rb
49
+ - lib/integration-hipchat-plugin/version.rb
50
+ - lib/tasks/integration_hipchat.rake
51
+ homepage: ''
52
+ licenses: []
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ segments:
64
+ - 0
65
+ hash: -3269608392025886867
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ segments:
73
+ - 0
74
+ hash: -3269608392025886867
75
+ requirements: []
76
+ rubyforge_project: integration-hipchat-plugin
77
+ rubygems_version: 1.8.10
78
+ signing_key:
79
+ specification_version: 3
80
+ summary: Hipchat support to integration
81
+ test_files: []