rumbrl 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9df154c45e87dfaba90a89c8b7d27b72d892bc32
4
- data.tar.gz: 37d72e10c60b45e74703cc2ac2eed95081228d16
3
+ metadata.gz: cd9b50771e691f739d4907afd96ae6b815b81d54
4
+ data.tar.gz: f3daec85e76d030a6e2488e3455ef1db3070d637
5
5
  SHA512:
6
- metadata.gz: ec8067e052e6da3f7067b1a4881755b096a92f7b1c9a6f522e5939462c5480e46213df15bd34d9ee6220d052874b0445fa00665ef04cae3b1bfcce4ce35f562d
7
- data.tar.gz: 72295fd53f6704373a10fc771b6d24e8620abb6b4fe1531f643ca645ca7a32cce1b92227ca04a253c96870dbe45604f03b8fee4ea7b9b07e4b04508f3fa62da2
6
+ metadata.gz: 0dd5b8a4dc6e5f7ec89ae9d384ed6f154265ddabaa7f5c3dd53112ac16dfa408dbed3cbdf393a304183f9930c85e468f367ea5dfdb8c61318a520a0be9ff8952
7
+ data.tar.gz: c6c46e5cf46ab53b4f87167104117d77aafb920fcb8638791c4ceea4052b323beb5c33fc32c369114f4909635e4e3cb8902d6993a0d9475f983bf140ece3ee65
data/Gemfile.lock CHANGED
@@ -1,53 +1,52 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rumbrl (0.3.0)
4
+ rumbrl (0.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activesupport (4.1.8)
10
- i18n (~> 0.6, >= 0.6.9)
9
+ activesupport (4.2.1)
10
+ i18n (~> 0.7)
11
11
  json (~> 1.7, >= 1.7.7)
12
12
  minitest (~> 5.1)
13
- thread_safe (~> 0.1)
13
+ thread_safe (~> 0.3, >= 0.3.4)
14
14
  tzinfo (~> 1.1)
15
15
  ast (2.0.0)
16
16
  astrolabe (1.3.0)
17
17
  parser (>= 2.2.0.pre.3, < 3.0)
18
18
  diff-lcs (1.2.5)
19
19
  gem-release (0.7.3)
20
- i18n (0.6.11)
21
- json (1.8.1)
22
- minitest (5.5.0)
23
- parser (2.2.0.pre.8)
20
+ i18n (0.7.0)
21
+ json (1.8.3)
22
+ minitest (5.7.0)
23
+ parser (2.2.2.5)
24
24
  ast (>= 1.1, < 3.0)
25
- slop (~> 3.4, >= 3.4.5)
26
- powerpack (0.0.9)
25
+ powerpack (0.1.1)
27
26
  rainbow (2.0.0)
28
- rspec (3.1.0)
29
- rspec-core (~> 3.1.0)
30
- rspec-expectations (~> 3.1.0)
31
- rspec-mocks (~> 3.1.0)
32
- rspec-core (3.1.7)
33
- rspec-support (~> 3.1.0)
34
- rspec-expectations (3.1.2)
27
+ rspec (3.2.0)
28
+ rspec-core (~> 3.2.0)
29
+ rspec-expectations (~> 3.2.0)
30
+ rspec-mocks (~> 3.2.0)
31
+ rspec-core (3.2.3)
32
+ rspec-support (~> 3.2.0)
33
+ rspec-expectations (3.2.1)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.2.0)
36
+ rspec-mocks (3.2.1)
35
37
  diff-lcs (>= 1.2.0, < 2.0)
36
- rspec-support (~> 3.1.0)
37
- rspec-mocks (3.1.3)
38
- rspec-support (~> 3.1.0)
39
- rspec-support (3.1.2)
40
- rubocop (0.28.0)
38
+ rspec-support (~> 3.2.0)
39
+ rspec-support (3.2.2)
40
+ rubocop (0.31.0)
41
41
  astrolabe (~> 1.3)
42
- parser (>= 2.2.0.pre.7, < 3.0)
43
- powerpack (~> 0.0.6)
42
+ parser (>= 2.2.2.1, < 3.0)
43
+ powerpack (~> 0.1)
44
44
  rainbow (>= 1.99.1, < 3.0)
45
45
  ruby-progressbar (~> 1.4)
46
- ruby-progressbar (1.7.0)
47
- shoulda-matchers (2.7.0)
46
+ ruby-progressbar (1.7.5)
47
+ shoulda-matchers (2.8.0)
48
48
  activesupport (>= 3.0.0)
49
- slop (3.6.0)
50
- thread_safe (0.3.4)
49
+ thread_safe (0.3.5)
51
50
  tzinfo (1.2.2)
52
51
  thread_safe (~> 0.1)
53
52
 
data/lib/rumbrl/log.rb CHANGED
@@ -21,7 +21,10 @@ module Rumbrl
21
21
  :info?
22
22
 
23
23
  def initialize(path, age, size, data_format, log_format = nil)
24
- @logger = ::Logger.new(log_file(path), shift_age: age, shift_size: size)
24
+ log_target = path
25
+ log_target = log_file(path) unless path.class == ::IO
26
+
27
+ @logger = ::Logger.new(log_target, shift_age: age, shift_size: size)
25
28
  @data_format = data_format
26
29
  setup_format(log_format) if log_format
27
30
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # version const for gem
4
4
  module Rumbrl
5
- VERSION = '0.3.0'
5
+ VERSION = '0.4.0'
6
6
  end
data/rumbrl.gemspec CHANGED
@@ -14,8 +14,8 @@ Gem::Specification.new do |spec|
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
17
- spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(/^(test|spec|features)\//)
17
+ spec.executables = spec.files.grep(%r{^bin\/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)\/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_development_dependency 'rubocop', '~> 0.24'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumbrl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chr0n1x
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-07 00:00:00.000000000 Z
11
+ date: 2015-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop