act-fluent-logger-rails 0.1.4 → 0.1.5

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: 05832e487b4b706c45c60c718b8af8df70727b3e
4
- data.tar.gz: d8060a8d22b973a64f2f88deb36e94bb32a2f165
3
+ metadata.gz: b8948529fa64435096f9be2f85e103b34268652a
4
+ data.tar.gz: 588ce44194197d65ca7528941e931107296bd255
5
5
  SHA512:
6
- metadata.gz: 852f2e62bb26f23d128cf7bb85827561c2e51828a7029e1b05ec77d79bbcaf57fabdf188026b0c917708ab7ab412fcf71283c439e6448631f0a988f2de1f7cc3
7
- data.tar.gz: 4b2e65c18ba75b62cfbd9d06ab1bab3ff958d306e618d08d7c3dc2bcc8ae96f24ede8f249266c833c9b6c398922ffdf4928c4ee7737a11026041c9e888d0b3e1
6
+ metadata.gz: 207a1c5007dca5360349c02224f70a95398fa9fa17a9d702cb94a2708a2e005cde466011f5df88de16df6a3bc7c995d068268b0f8527b3b589fd39396aa6e994
7
+ data.tar.gz: 9249a4c66f68484277066328e07e5a457f4a28e411497400cb170a798f8a0bc12992e03859c99e0d9efe96d06736e60352bbe390a6dcfda844fa8576ca6c8e87
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1.2
@@ -1,3 +1,7 @@
1
+ ## 0.1.5 / July 19 2014
2
+
3
+ * Fix keynames of EVN['FLUENTD_URL']
4
+
1
5
  ## 0.1.4 / July 18 2014
2
6
 
3
7
  * Enable to use EVN['FLUENTD_URL']
data/Rakefile CHANGED
@@ -1 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -35,8 +35,8 @@ module ActFluentLoggerRails
35
35
  params = CGI.parse uri.query
36
36
 
37
37
  {
38
- host: uri.host,
39
- port: uri.port,
38
+ fluent_host: uri.host,
39
+ fluent_port: uri.port,
40
40
  tag: uri.path[1..-1],
41
41
  messages_type: params["messages_type"].try(:first)
42
42
  }.stringify_keys
@@ -1,3 +1,3 @@
1
1
  module ActFluentLoggerRails
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -5,9 +5,11 @@ require 'tempfile'
5
5
  describe ActFluentLoggerRails::Logger do
6
6
  before do
7
7
 
8
- Rails = double("Rails", env: "test")
9
- Rails.stub_chain(:application, :config, :log_level).and_return(:debug)
10
- Rails.stub_chain(:application, :config, :log_tags=)
8
+ unless self.class.const_defined?(:Rails)
9
+ Rails = double("Rails", env: "test")
10
+ Rails.stub_chain(:application, :config, :log_level).and_return(:debug)
11
+ Rails.stub_chain(:application, :config, :log_tags=)
12
+ end
11
13
 
12
14
  class MyLogger
13
15
  attr_accessor :log
@@ -71,8 +73,8 @@ EOF
71
73
  describe ".parse_url" do
72
74
  subject { described_class.parse_url(fluentd_url) }
73
75
  it { expect(subject['tag']).to eq 'hoge' }
74
- it { expect(subject['host']).to eq 'fluentd.example.com' }
75
- it { expect(subject['port']).to eq 42442 }
76
+ it { expect(subject['fluent_host']).to eq 'fluentd.example.com' }
77
+ it { expect(subject['fluent_port']).to eq 42442 }
76
78
  it { expect(subject['messages_type']).to eq 'string' }
77
79
  end
78
80
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: act-fluent-logger-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAHARA Yoshinori
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-18 00:00:00.000000000 Z
11
+ date: 2014-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -66,6 +66,7 @@ extensions: []
66
66
  extra_rdoc_files: []
67
67
  files:
68
68
  - ".gitignore"
69
+ - ".travis.yml"
69
70
  - CHANGELOG.md
70
71
  - Gemfile
71
72
  - LICENSE.txt