idobata 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fabeea28a904b731379c893c6811530b6f19fc9
4
- data.tar.gz: f9b0634a85b12857bf287c019515cd6ebb2a6bc7
3
+ metadata.gz: a66faa2a98c64199da4060bded87a7695c08035a
4
+ data.tar.gz: a5e8d9a5e5e4b20d80281014eaa296621321f5a2
5
5
  SHA512:
6
- metadata.gz: 4408ae9400626729e2c5f6966efbbd07538d2c965eceabfa7920b5c0a57ecd0d1aea12f5ae3a63cf7c8112076ba9b1bbe17b8868e9d1cac6a54bf9674889468d
7
- data.tar.gz: 7e1410d7390d18b17dffad56192567a819212f5194a5c0371fd59aed5a1a6d146521373141dbe8fcdffd17f98c6df554bacad6574292abd394b2cd96292a1bee
6
+ metadata.gz: e2d2123267e4f190187f9793a9a3f16f1c3a452dafcab2a4816e80dc0c00a9cd89bdc8df59984d512c9544f73f3e4119eb63c023bd7ec2cdf257fa0e90829840
7
+ data.tar.gz: 030aeb658aeb614272edf066619d6fa22eb9234ef60cae1c4789d7ed550c6083e9491d9bd85abf3d7714136c0e5bb46cbe00cb78d788f6f6776f78a819e73338
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Idobata
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/idobata.rb CHANGED
@@ -3,6 +3,7 @@ require "idobata/version"
3
3
  module Idobata
4
4
  autoload(:Client, 'idobata/client')
5
5
  autoload(:Message, 'idobata/message')
6
+ autoload(:Support, 'idobata/support')
6
7
 
7
8
  @hook_url = nil
8
9
 
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
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-22 00:00:00.000000000 Z
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: