probedock-ruby 0.1.2 → 0.1.3

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: 42f4e0e239bc73974cc063a39154763d94f6f52d
4
- data.tar.gz: 7daa0f58d40732a72639779b1caf72d0bf5ad981
3
+ metadata.gz: 503f083dd07ffc3e14ade5832a8234476263b53d
4
+ data.tar.gz: 3655d8d871f0c420c246114fe460761bdccd6b33
5
5
  SHA512:
6
- metadata.gz: 216db63ecfd21cbccdf772e3482057af37f62d61e0f0f978be129de61b2b65d27399d25bc563ac1df12f0fc608ab39aef7d8837dcd1c6d45d6d2bb8cbc1bdf3a
7
- data.tar.gz: ffe30b483888aa43b7bcdf8fc8839dab8956c5b04e054fd31286a6adb11118b02f9ff8a8bfeabe1c59779940b880c415f3105784f7cfe6910048a03af9ab9986
6
+ metadata.gz: ead83365ec209ef33f41e76d2afb8d2a8ed44480abaff6e46f164d06857f0c5129f087951ea2d347b433a035beee1f708e588deff1fd3bee366940c3580f0b0f
7
+ data.tar.gz: d91498750661c05a91308932eca7dc79b6b0f8856751c5454e18f0dca150a60eeb4575ff925c2ed83c8e78a81126559e19ebf1cb5ce88f3060e3d6254b781be6
data/README.md CHANGED
@@ -17,7 +17,7 @@
17
17
  Add it to your Gemfile:
18
18
 
19
19
  ```rb
20
- gem 'probedock-ruby', '~> 0.1.2'
20
+ gem 'probedock-ruby', '~> 0.1.3'
21
21
  ```
22
22
 
23
23
  Run `bundle install`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  module ProbeDockProbe
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
 
5
5
  class Error < StandardError; end
6
6
  class PayloadError < Error; end
@@ -16,7 +16,7 @@ module ProbeDockProbe
16
16
 
17
17
  @key = options[:key]
18
18
  @fingerprint = options[:fingerprint]
19
- @name = options[:name]
19
+ @name = options[:name].to_s
20
20
 
21
21
  @category = options[:category] || project.category
22
22
  @tags = (wrap(options[:tags]) + wrap(project.tags)).compact.collect(&:to_s).uniq
@@ -42,7 +42,7 @@ module ProbeDockProbe
42
42
  }.tap do |h|
43
43
  h['k'] = @key if @key
44
44
  h['m'] = @message if @message
45
- h['n'] = @name
45
+ h['n'] = @name.length > 255 ? "#{@name[0, 252]}..." : @name
46
46
  h['c'] = @category
47
47
  h['g'] = @tags
48
48
  h['t'] = @tickets
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: probedock-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Oulevay (Alpha Hydrae)