jumpup-hipchat 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7ee997fffe03b563a4bf34a02ca7a3581de0b24d
4
+ data.tar.gz: 7b06b30803ca1e7d2619f8a8b70d51a5f43403f8
5
+ SHA512:
6
+ metadata.gz: 2f0ffbf0b5efd3ce21c16365c49097876802ee6a31114cf7174644bebfc6a185134e8a3ef1d8bb466159c0c8e78e715b7147880953d47fa9985963c1aa66de08
7
+ data.tar.gz: 9c1ec29753598900e96b79aad9936cfe6432b3e7393b428ba2e6298e28403c1a46d1ff7b2ec4b0b2c11f0956d4383cbee5241a5fcff2383f60ba4de9f499de2e
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
@@ -0,0 +1 @@
1
+ jumpup-hipchat
@@ -0,0 +1 @@
1
+ ruby-2.0.0
@@ -0,0 +1,25 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (unreleased)
4
+
5
+ ### features
6
+
7
+ - Renamed the gem from [integration-hipchat-plugin](https://github.com/pellegrino/integration-hipchat-plugin)
8
+ to jumpup-hipchat
9
+ - Renamed `integration:hipchat:*` tasks to `jumpup:hipchat:*`
10
+ - Load configurations from environmental variables instead of a
11
+ YAML file [[GH-3]]
12
+ - Announce messages using `git config --get user.name` instead of `whoami`.
13
+ [[GH-2]]
14
+
15
+ ### improvements
16
+
17
+ ### bug fixes
18
+
19
+ ## Previous
20
+
21
+ The changelog began with version 0.1.0, so any changes prior to that
22
+ can be seen by reading old git commit messages.
23
+
24
+ [GH-3]: https://github.com/Helabs/jumpup-hipchat/issues/3
25
+ [GH-2]: https://github.com/Helabs/jumpup-hipchat/issues/2
@@ -0,0 +1,24 @@
1
+ # Contributing
2
+
3
+ We love pull requests. Here's a quick guide:
4
+
5
+ 1. Fork the repo.
6
+
7
+ 1. Create your feature branch (`git checkout -b my-new-feature`)
8
+
9
+ 1. Update [CHANGELOG.md](https://github.com/Helabs/jumpup-hipchat/blob/master/CHANGELOG.md)
10
+ with a brief description of your changes under the `unreleased` heading.
11
+
12
+ 1. Commit your changes (`git commit -am 'Added some feature'`)
13
+
14
+ 1. Push to the branch (`git push origin my-new-feature`)
15
+
16
+ 1. Create new Pull Request
17
+
18
+ At this point you're waiting on us. We like to at least comment on, if not
19
+ accept, pull requests within three business days (and, typically, one business
20
+ day). We may suggest some changes or improvements or alternatives.
21
+
22
+ Some things that will increase the chance that your pull request is accepted is
23
+ to follow the practices described on [Ruby style guide](https://github.com/bbatsov/ruby-style-guide),
24
+ [Rails style guide](https://github.com/bbatsov/rails-style-guide) and [Better Specs](http://betterspecs.org/).
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
@@ -0,0 +1,97 @@
1
+ # Jumpup-hipchat
2
+
3
+ [![RubyGems][gem_version_badge]][ruby_gems]
4
+
5
+ This plugin adds hipchat notifications support to [Jumpup](https://github.com/Helabs/jumpup).
6
+ Its a small set of rake tasks that can be used along with Jupmup so it can
7
+ interact with hipchat during the integration process.
8
+
9
+ ## Installation
10
+
11
+ Add to your Gemfile:
12
+
13
+ ```ruby
14
+ group :development do
15
+ gem 'jumpup-hipchat'
16
+ end
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ 1. Configure some environmental variables
22
+
23
+ ```
24
+ HIPCHAT_TOKEN="Your token"
25
+ HIPCHAT_ROOM="Your room"
26
+ HIPCHAT_APP_NAME="Your project name" # used on announcement messages
27
+ ```
28
+
29
+ 2. Configure jumpup.rake:
30
+
31
+ ```ruby
32
+ INTEGRATION_TASKS = %w(
33
+ jumpup:heroku:add_remote
34
+ jumpup:heroku:check
35
+ jumpup:heroku:lock
36
+ jumpup:hipchat:announce
37
+ jumpup:start
38
+ jumpup:bundle_install
39
+ db:migrate
40
+ spec
41
+ jumpup:coverage_verify
42
+ jumpup:finish
43
+ jumpup:heroku:deploy
44
+ jumpup:heroku:unlock
45
+ jumpup:hipchat:finish
46
+ )
47
+ ```
48
+
49
+ ## Testing
50
+
51
+ Unfortunately we have no automated testing yet but you can try running the provided
52
+ tasks from the project's root in order to check if things are working fine:
53
+
54
+ ```sh
55
+ HIPCHAT_TOKEN="<your-token>" \
56
+ HIPCHAT_ROOM="Company's Room" \
57
+ HIPCHAT_APP_NAME="The next Facebook" \
58
+ bundle exec rake jumpup:hipchat:announce
59
+ ```
60
+
61
+ [gem_version_badge]: https://badge.fury.io/rb/jumpup-hipchat.png
62
+ [ruby_gems]: http://rubygems.org/gems/jumpup-hipchat
63
+
64
+ ## Tasks provided
65
+
66
+ This plugin provides the following tasks
67
+
68
+ * jumpup:hipchat:announce
69
+ * jumpup:hipchat:finish
70
+
71
+ ## Versioning
72
+
73
+ Jumpup-hipchat follows the [Semantic Versioning](http://semver.org/).
74
+
75
+ ## Issues
76
+
77
+ If you have problems, please create a [Github Issue](https://github.com/Helabs/jumpup-hipchat/issues).
78
+
79
+ ## Contributing
80
+
81
+ Please see [CONTRIBUTING.md](https://github.com/Helabs/jumpup-hipchat/blob/master/CONTRIBUTING.md) for details.
82
+
83
+ ## Release
84
+
85
+ Follow this steps to release a new version of the gem.
86
+
87
+ 1. Test if everything is running ok;
88
+ 1. Change version of the gem on `VERSION` constant;
89
+ 1. Add the release date on the `CHANGELOG`;
90
+ 1. Do a commit "Bump version x.x.x", follow the semantic version;
91
+ 1. Run `$ rake release`, this will send the gem to the rubygems;
92
+ 1. Check if the gem is on the rubygems and the tags are correct on the github;
93
+
94
+ ## Credits
95
+
96
+ Jumpup-hipchat is maintained and funded by [HE:labs](http://helabs.com.br/opensource/).
97
+ Thank you to all the [contributors](https://github.com/Helabs/jumpup-hipchat/graphs/contributors).
@@ -0,0 +1,3 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ require "jumpup-hipchat"
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "jumpup-hipchat/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "jumpup-hipchat"
7
+ s.version = Jumpup::Hipchat::VERSION
8
+ s.authors = ["HE:labs"]
9
+ s.email = ["tech@helabs.com.br"]
10
+ s.homepage = "https://github.com/Helabs/jumpup-hipchat"
11
+ s.summary = %q{Hipchat support to integration}
12
+ s.description = %q{Few rake tasks created to notify deployments made with jumpup}
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.require_paths = ["lib"]
18
+
19
+ s.add_runtime_dependency "rake"
20
+ s.add_runtime_dependency "hipchat"
21
+ end
@@ -0,0 +1,4 @@
1
+ require "jumpup-hipchat/version"
2
+
3
+ gem_path = Gem::Specification.find_by_name('jumpup-hipchat').full_gem_path
4
+ Dir["#{gem_path}/lib/tasks/*.rake"].each { |ext| load ext } if defined?(Rake)
@@ -0,0 +1,5 @@
1
+ module Jumpup
2
+ module Hipchat
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,23 @@
1
+ require 'hipchat'
2
+
3
+ namespace :jumpup do
4
+ # REFACTOR: Extract a separate class with duplicated logic
5
+ namespace :hipchat do
6
+ desc "Announce the begining of the integration process to a hipchat room"
7
+ task :announce do
8
+ user = `git config --get user.name`.strip
9
+ msg = "User #{user} started to integrate project #{ENV['HIPCHAT_APP_NAME']}"
10
+
11
+ client = HipChat::Client.new(ENV['HIPCHAT_TOKEN'])
12
+ client[ENV['HIPCHAT_ROOM']].send(user, msg, notify: true)
13
+ end
14
+
15
+ task :finish do
16
+ user = `git config --get user.name`.strip
17
+ msg = "User #{user} finished to integrate project #{ENV['HIPCHAT_APP_NAME']}. Well done pro!"
18
+
19
+ client = HipChat::Client.new(ENV['HIPCHAT_TOKEN'])
20
+ client[ENV['HIPCHAT_ROOM']].send(user, msg, notify: true)
21
+ end
22
+ end
23
+ end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jumpup-hipchat
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - HE:labs
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-02-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: hipchat
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Few rake tasks created to notify deployments made with jumpup
42
+ email:
43
+ - tech@helabs.com.br
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - .gitignore
49
+ - .ruby-gemset
50
+ - .ruby-version
51
+ - CHANGELOG.md
52
+ - CONTRIBUTING.md
53
+ - Gemfile
54
+ - README.md
55
+ - Rakefile
56
+ - jumpup-hipchat.gemspec
57
+ - lib/jumpup-hipchat.rb
58
+ - lib/jumpup-hipchat/version.rb
59
+ - lib/tasks/integrate.rake
60
+ homepage: https://github.com/Helabs/jumpup-hipchat
61
+ licenses: []
62
+ metadata: {}
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 2.2.1
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: Hipchat support to integration
83
+ test_files: []