flnt 0.3.2 → 0.3.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: 6288d322043de28dae84a50b8d134770f6ff596f
4
- data.tar.gz: bba575379bbcdfebd459bfa2d5f563efd92457c0
3
+ metadata.gz: 36241968a567600f6af996589ca58ba338600e54
4
+ data.tar.gz: 7b535e3f4334687613c1d7cf34b98e0a8420c62e
5
5
  SHA512:
6
- metadata.gz: 7b28886b4ef11edd9113b31bafb7a6eab62c3195d4ffa2d605e4877a8c07647f4a928f564de65eaef8c9523511499dcb2eb234c59c971c798a1a17be3a4901f1
7
- data.tar.gz: 8d84a6180cbb0594d023a395e885c652aba06a6a34fdae7e375bb5bffb3f888934fa5f6036e9499a709f50afbb4569aad195862b10129fa1eae5259e3386f6f6
6
+ metadata.gz: b33beec07ecde402cc773e479a581d54352fb6177d88b6ffe38d68357d37bd8a073b1d5e805f82d036b7d64e47a760f7bc61ff05b6aa07b7b751115807417f23
7
+ data.tar.gz: eb1129fb9a410681abab248a010dc96fc8d5d4a40ba19fa044b78a441770180f8025b55e22fd92590946343b2e7211f1488c533c9f166b25ab8af87798c11be2
@@ -12,7 +12,8 @@ module Flnt
12
12
  each do |target_method|
13
13
 
14
14
  # Also pass the :singleton_class to avoid rspec stubbing errors
15
- unless [:singleton_class, :object_id].include?(target_method.to_sym)
15
+ # And :class to avoid stack level too deep in detecting receive ... FIXME
16
+ unless [:class, :singleton_class, :object_id].include?(target_method.to_sym)
16
17
  eval %Q(undef #{target_method})
17
18
  end
18
19
  end
@@ -1,3 +1,3 @@
1
1
  module Flnt
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -26,6 +26,19 @@ describe "Flnt::Logger" do
26
26
  }.to raise_error NoMethodError
27
27
  end
28
28
 
29
+ it "should have cached some logging methods" do
30
+ logger = Flnt.sample
31
+ %i(debug info warn error fatal).each do |name|
32
+ expect(logger).to respond_to name
33
+ end
34
+ end
35
+
36
+ it "should be mocked by rspec successfully" do
37
+ logger = Flnt.sample
38
+ expect(logger).to receive(:info).with(instance_of(String))
39
+ logger.info "test"
40
+ end
41
+
29
42
  it "should not cache tag called with args" do
30
43
  logger = Flnt.sample.foo
31
44
  expect(Fluent::Logger).not_to receive(:post).with("sample.foo.info.info", {message: "Hello multi times"})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flnt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uchio KONDO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-09 00:00:00.000000000 Z
11
+ date: 2014-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluent-logger