dockly-util 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: aa82faeaa551aae9dd5cbcfcb31c502117ac3286
4
+ data.tar.gz: db2b3bfadcce12546935ab8f23bd4874d57b78c4
5
+ SHA512:
6
+ metadata.gz: 655560e869545e587da06ceef918f6a171e7fd13089c215eada9ca08be7f05a3c63c153c76ce659707bb95c9152b0cd773047c6b2b6d5d4c5db3bf9954251a4c
7
+ data.tar.gz: faa5b3e270132eaa44847c4a08b29a39692b8191fbef2b9a60168727adeff8908888781dba33c65d0922a759c00cfb591a23b9e3a9c6bfab0ec4aebfc74a923c
@@ -21,6 +21,7 @@ class Dockly::Util::Logger
21
21
  def format_message(level, message)
22
22
  [
23
23
  format_level(level),
24
+ Thread.current.object_id.to_s,
24
25
  Thread.current[:rake_task].to_s,
25
26
  prefix,
26
27
  get_last_method,
@@ -1,5 +1,5 @@
1
1
  module Dockly
2
2
  module Util
3
- VERSION = '0.0.7'
3
+ VERSION = '0.0.8'
4
4
  end
5
5
  end
@@ -46,7 +46,7 @@ describe Dockly::Util::Logger do
46
46
  end
47
47
  end
48
48
 
49
- describe '#format message' do
49
+ describe '#format_message' do
50
50
  before do
51
51
  subject.stub(:prefix).and_return(prefix)
52
52
  subject.stub(:get_last_method).and_return(method)
@@ -61,7 +61,8 @@ describe Dockly::Util::Logger do
61
61
  let(:message) { 'here i am' }
62
62
 
63
63
  it 'returns each of them with a space in the middle' do
64
- subject.format_message(level, message).should == "#{formatted_level} #{prefix} #{method} #{message}"
64
+ subject.format_message(level, message).should ==
65
+ "#{formatted_level} #{Thread.current.object_id} #{prefix} #{method} #{message}"
65
66
  end
66
67
  end
67
68
 
@@ -73,7 +74,8 @@ describe Dockly::Util::Logger do
73
74
  let(:message) { 'there you are' }
74
75
 
75
76
  it 'does not insert an extra space' do
76
- subject.format_message(level, message).should == "#{formatted_level} #{prefix} #{message}"
77
+ subject.format_message(level, message).should ==
78
+ "#{formatted_level} #{Thread.current.object_id} #{prefix} #{message}"
77
79
  end
78
80
  end
79
81
  end
metadata CHANGED
@@ -1,78 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockly-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
5
- prerelease:
4
+ version: 0.0.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Swipely, Inc.
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-06 00:00:00.000000000 Z
11
+ date: 2014-03-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: cane
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: pry
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  description: DSL made easy
@@ -84,10 +75,10 @@ executables: []
84
75
  extensions: []
85
76
  extra_rdoc_files: []
86
77
  files:
87
- - .cane
88
- - .gitignore
89
- - .rspec
90
- - .travis.yml
78
+ - ".cane"
79
+ - ".gitignore"
80
+ - ".rspec"
81
+ - ".travis.yml"
91
82
  - Gemfile
92
83
  - LICENSE.txt
93
84
  - Rakefile
@@ -103,30 +94,28 @@ files:
103
94
  homepage: https://github.com/swipely/dockly-util
104
95
  licenses:
105
96
  - MIT
97
+ metadata: {}
106
98
  post_install_message:
107
99
  rdoc_options: []
108
100
  require_paths:
109
101
  - lib
110
102
  required_ruby_version: !ruby/object:Gem::Requirement
111
- none: false
112
103
  requirements:
113
- - - ! '>='
104
+ - - ">="
114
105
  - !ruby/object:Gem::Version
115
106
  version: '0'
116
107
  required_rubygems_version: !ruby/object:Gem::Requirement
117
- none: false
118
108
  requirements:
119
- - - ! '>='
109
+ - - ">="
120
110
  - !ruby/object:Gem::Version
121
111
  version: '0'
122
112
  requirements: []
123
113
  rubyforge_project:
124
- rubygems_version: 1.8.23
114
+ rubygems_version: 2.2.0
125
115
  signing_key:
126
- specification_version: 3
116
+ specification_version: 4
127
117
  summary: DSL made easy
128
118
  test_files:
129
119
  - spec/dockly/util/dsl_spec.rb
130
120
  - spec/dockly/util/logger_spec.rb
131
121
  - spec/spec_helper.rb
132
- has_rdoc: