idobata 0.0.3 → 0.0.4

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: 6c09459f97f8e08b1bfb2be2ede6821863850b6a
4
- data.tar.gz: f1d652dd2e19afc4312ce4916e911d677e87fd0f
3
+ metadata.gz: 7fabeea28a904b731379c893c6811530b6f19fc9
4
+ data.tar.gz: f9b0634a85b12857bf287c019515cd6ebb2a6bc7
5
5
  SHA512:
6
- metadata.gz: a7d9b0ecdd21582536876284c3197c332cc34d2644e709b9db7c42a91479d57c3871a10c0f96210cdbf96931c501bee3a715ea465b4fd45d17dfdaf2e3c0990d
7
- data.tar.gz: 4eb308447db2227715ebf11f7a35229101e4f5473fda4072e81f543d1e6ebcb1c0971dd0435a2fb66e84acc5e39f82a1ac1962dd89c960e1368d7291deec1abd
6
+ metadata.gz: 4408ae9400626729e2c5f6966efbbd07538d2c965eceabfa7920b5c0a57ecd0d1aea12f5ae3a63cf7c8112076ba9b1bbe17b8868e9d1cac6a54bf9674889468d
7
+ data.tar.gz: 7e1410d7390d18b17dffad56192567a819212f5194a5c0371fd59aed5a1a6d146521373141dbe8fcdffd17f98c6df554bacad6574292abd394b2cd96292a1bee
@@ -3,5 +3,11 @@ module Idobata
3
3
  def self.create(params = {})
4
4
  Idobata.client.post(params)
5
5
  end
6
+
7
+ def self.deploy_notification(user_name: "anonymous", application_name: "", revision_url: "", revision: "")
8
+ source = "[DEPLOY] #{user_name} deployed a new version of #{application_name}"
9
+ source += " (deployed revision: <a href=#{revision_url} target='_blank'>#{revision[0..8]}</a>)" unless revision.empty?
10
+ Idobata.client.post(format: :html, source: source)
11
+ end
6
12
  end
7
13
  end
@@ -1,3 +1,3 @@
1
1
  module Idobata
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idobata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - asonas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-20 00:00:00.000000000 Z
11
+ date: 2014-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday