fluent-logger 0.4.5 → 0.4.6

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: 8525291cd93940414e8293bb9192b0dbe5a22139
4
- data.tar.gz: 5b6ef12a4e210b4f69708f9f6e0f5a0fc386fe90
3
+ metadata.gz: 646a1e0a022169db9fa2392e5e4e4077b98fe82d
4
+ data.tar.gz: bc397f0a66e90d51e6c5d10912f2c735f8feab6c
5
5
  SHA512:
6
- metadata.gz: f11fcb6feb0fb0d53813a726f83164d6c34d2edef250d526b6b64a4945778ce784fcdbe7a13c08bf3bbbcc839c4350b579f82068a6a9c0bf8d3dec10bd60d7ca
7
- data.tar.gz: b4f051ffb95d006a7d88c489b373f5e5686ffc67ec4e4a7c0cd9ccf49838edb7f8b7c3f622909f95e12a8011c36e637f9cee778b12b07db73e1ae4e92887db23
6
+ metadata.gz: 4ab7cc6f13741664506d4ecb537effb9630efaf8cfc81f496dfc2d9d65ee944d9f835b21e95c45d8133c51e98e7992ffb5d5a512ce14e6a630f6aff714be94d7
7
+ data.tar.gz: 762bd7f474ea59cd7e689eb20d99d3926f7acd821bd9121c49afddb0ce2da1e47cbdf6ed144c3f296ce56a952c5358c32123702d99938508ea6b77541bfdb146
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.4.6 - 2013/06/17
2
+
3
+ * Raise an ArgumentError when passes invalid argument to post method
4
+ * Relax msgpack gem version
5
+
1
6
  Release 0.4.5 - 2013/02/26
2
7
 
3
8
  * Use https scheme for rubygems source
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.5
1
+ 0.4.6
@@ -36,7 +36,7 @@ EOF
36
36
  gem.require_paths = ['lib']
37
37
 
38
38
  gem.add_dependency 'yajl-ruby', '~> 1.0'
39
- gem.add_dependency 'msgpack', '0.4.7'
39
+ gem.add_dependency "msgpack", [">= 0.4.4", "!= 0.5.0", "!= 0.5.1", "!= 0.5.2", "!= 0.5.3", "< 0.6.0"]
40
40
  gem.add_development_dependency 'rake', '>= 0.9.2'
41
41
  gem.add_development_dependency 'rspec', '>= 2.7.0'
42
42
  gem.add_development_dependency 'simplecov', '>= 0.5.4'
@@ -24,6 +24,7 @@ class LoggerBase
24
24
  end
25
25
 
26
26
  def post(tag, map)
27
+ raise ArgumentError.new("Second argument should kind of Hash (tag: #{map})") unless map.kind_of? Hash
27
28
  post_with_time(tag, map, Time.now)
28
29
  end
29
30
 
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Logger
3
3
 
4
- VERSION = '0.4.5'
4
+ VERSION = '0.4.6'
5
5
 
6
6
  end
7
7
  end
@@ -161,6 +161,18 @@ EOF
161
161
  logger_io.rewind
162
162
  logger_io.read =~ /FluentLogger: Can't convert to msgpack:/
163
163
  }
164
+
165
+ it ('should raise an error when second argument is non hash object') {
166
+ data = 'FooBar'
167
+ expect {
168
+ logger.post('tag', data)
169
+ }.to raise_error(ArgumentError)
170
+
171
+ data = nil
172
+ expect {
173
+ logger.post('tag', data)
174
+ }.to raise_error(ArgumentError)
175
+ }
164
176
  end
165
177
 
166
178
  context "initializer" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-02-26 00:00:00.000000000 Z
11
+ date: 2013-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yajl-ruby
@@ -28,16 +28,46 @@ dependencies:
28
28
  name: msgpack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.4.4
34
+ - - '!='
35
+ - !ruby/object:Gem::Version
36
+ version: 0.5.0
37
+ - - '!='
38
+ - !ruby/object:Gem::Version
39
+ version: 0.5.1
40
+ - - '!='
41
+ - !ruby/object:Gem::Version
42
+ version: 0.5.2
43
+ - - '!='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.5.3
46
+ - - <
32
47
  - !ruby/object:Gem::Version
33
- version: 0.4.7
48
+ version: 0.6.0
34
49
  type: :runtime
35
50
  prerelease: false
36
51
  version_requirements: !ruby/object:Gem::Requirement
37
52
  requirements:
38
- - - '='
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: 0.4.4
56
+ - - '!='
57
+ - !ruby/object:Gem::Version
58
+ version: 0.5.0
59
+ - - '!='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.5.1
62
+ - - '!='
63
+ - !ruby/object:Gem::Version
64
+ version: 0.5.2
65
+ - - '!='
66
+ - !ruby/object:Gem::Version
67
+ version: 0.5.3
68
+ - - <
39
69
  - !ruby/object:Gem::Version
40
- version: 0.4.7
70
+ version: 0.6.0
41
71
  - !ruby/object:Gem::Dependency
42
72
  name: rake
43
73
  requirement: !ruby/object:Gem::Requirement