idobata 0.0.4 → 0.0.5
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 +0 -6
- data/lib/idobata/support.rb +9 -0
- data/lib/idobata/version.rb +1 -1
- data/lib/idobata.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a66faa2a98c64199da4060bded87a7695c08035a
|
4
|
+
data.tar.gz: a5e8d9a5e5e4b20d80281014eaa296621321f5a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2d2123267e4f190187f9793a9a3f16f1c3a452dafcab2a4816e80dc0c00a9cd89bdc8df59984d512c9544f73f3e4119eb63c023bd7ec2cdf257fa0e90829840
|
7
|
+
data.tar.gz: 030aeb658aeb614272edf066619d6fa22eb9234ef60cae1c4789d7ed550c6083e9491d9bd85abf3d7714136c0e5bb46cbe00cb78d788f6f6776f78a819e73338
|
data/lib/idobata/message.rb
CHANGED
@@ -3,11 +3,5 @@ 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
|
12
6
|
end
|
13
7
|
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module Idobata
|
2
|
+
class Support
|
3
|
+
def self.deploy_notification(user_name: "anonymous", application_name: "", revision_url: "", revision: "")
|
4
|
+
source = "[DEPLOY] #{user_name} deployed a new version of #{application_name}"
|
5
|
+
source += " (deployed revision: <a href=#{revision_url} target='_blank'>#{revision[0..8]}</a>)" unless revision.empty?
|
6
|
+
Idobata.client.post(format: :html, source: source)
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
data/lib/idobata/version.rb
CHANGED
data/lib/idobata.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.5
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- lib/idobata.rb
|
69
69
|
- lib/idobata/client.rb
|
70
70
|
- lib/idobata/message.rb
|
71
|
+
- lib/idobata/support.rb
|
71
72
|
- lib/idobata/version.rb
|
72
73
|
homepage: ''
|
73
74
|
licenses:
|