murmurs 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/murmurs.rb +8 -7
  2. metadata +2 -2
data/lib/murmurs.rb CHANGED
@@ -9,18 +9,19 @@ module Murmurs
9
9
  class UnexpectedResponseError < StandardError; end
10
10
 
11
11
  def murmur(url, msg, options={})
12
+ if msg.nil? || msg.empty?
13
+ log(options[:log_level], "Nothing to murmur.")
14
+ return
15
+ end
16
+
17
+ log(options[:log_level], "murmur => #{extract_project_info(url)}")
12
18
  if options[:git]
13
19
  Array(git_commits(msg, options[:git_branch])).each do |msg|
14
- murmur(url, msg, options.merge(:git => false))
20
+ murmur(url, msg, options.merge(:git => false, :log_level => :error))
15
21
  end
16
22
  else
17
23
  validate_murmurs_url!(url)
18
- if msg.nil? || msg.empty?
19
- log(options[:log_level], "Nothing to murmur.")
20
- else
21
- log(options[:log_level], "murmur #{truncate(msg)} => #{extract_project_info(url)}")
22
- http_post(url, {:murmur => {:body => msg}}, options)
23
- end
24
+ http_post(url, {:murmur => {:body => msg}}, options)
24
25
  end
25
26
  end
26
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: murmurs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-07 00:00:00.000000000 Z
12
+ date: 2014-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: api-auth