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 +4 -4
- data/lib/idobata/message.rb +6 -0
- data/lib/idobata/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fabeea28a904b731379c893c6811530b6f19fc9
|
4
|
+
data.tar.gz: f9b0634a85b12857bf287c019515cd6ebb2a6bc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4408ae9400626729e2c5f6966efbbd07538d2c965eceabfa7920b5c0a57ecd0d1aea12f5ae3a63cf7c8112076ba9b1bbe17b8868e9d1cac6a54bf9674889468d
|
7
|
+
data.tar.gz: 7e1410d7390d18b17dffad56192567a819212f5194a5c0371fd59aed5a1a6d146521373141dbe8fcdffd17f98c6df554bacad6574292abd394b2cd96292a1bee
|
data/lib/idobata/message.rb
CHANGED
@@ -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
|
data/lib/idobata/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|