log-me 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,8 @@
1
+ == Version 0.0.3
2
+ - Line break after log message.
3
+
4
+ == Version 0.0.2
5
+ - Update documentation.
6
+
7
+ == Version 0.0.1
8
+ - Initial version.
data/Gemfile CHANGED
@@ -1,8 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  group :development do
4
- gem "rspec", "~> 2.6.0"
5
- gem "bundler", "~> 1.0.0"
6
- gem "jeweler", "~> 1.6.2"
7
- gem "rcov", ">= 0"
4
+ gem "jeweler", "~> 1.8"
5
+ gem "rspec", "~> 2.10"
8
6
  end
data/Gemfile.lock CHANGED
@@ -1,28 +1,29 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- diff-lcs (1.1.2)
4
+ diff-lcs (1.1.3)
5
5
  git (1.2.5)
6
- jeweler (1.6.4)
6
+ jeweler (1.8.3)
7
7
  bundler (~> 1.0)
8
8
  git (>= 1.2.5)
9
9
  rake
10
- rake (0.9.2)
11
- rcov (0.9.10)
12
- rspec (2.6.0)
13
- rspec-core (~> 2.6.0)
14
- rspec-expectations (~> 2.6.0)
15
- rspec-mocks (~> 2.6.0)
16
- rspec-core (2.6.4)
17
- rspec-expectations (2.6.0)
18
- diff-lcs (~> 1.1.2)
19
- rspec-mocks (2.6.0)
10
+ rdoc
11
+ json (1.7.3)
12
+ rake (0.9.2.2)
13
+ rdoc (3.12)
14
+ json (~> 1.4)
15
+ rspec (2.10.0)
16
+ rspec-core (~> 2.10.0)
17
+ rspec-expectations (~> 2.10.0)
18
+ rspec-mocks (~> 2.10.0)
19
+ rspec-core (2.10.1)
20
+ rspec-expectations (2.10.0)
21
+ diff-lcs (~> 1.1.3)
22
+ rspec-mocks (2.10.1)
20
23
 
21
24
  PLATFORMS
22
25
  ruby
23
26
 
24
27
  DEPENDENCIES
25
- bundler (~> 1.0.0)
26
- jeweler (~> 1.6.2)
27
- rcov
28
- rspec (~> 2.6.0)
28
+ jeweler (~> 1.8)
29
+ rspec (~> 2.10)
data/README.rdoc CHANGED
@@ -7,7 +7,7 @@ LogMe is especially useful when you need to log Web Service calls or HTTP reques
7
7
  == Instalation
8
8
 
9
9
  === Gemfile
10
- gem 'log-me', '~> 0.0.2'
10
+ gem 'log-me'
11
11
 
12
12
  === Command line
13
13
  $ gem install log-me
@@ -50,7 +50,7 @@ Your gem consumer can configure the logger:
50
50
 
51
51
  {Prodis a.k.a. Fernando Hamasaki}[http://prodis.blog.br]
52
52
 
53
- Copyright (c) 2011 Prodis
53
+ Copyright (c) 2011-2012 Prodis
54
54
 
55
55
  Permission is hereby granted, free of charge, to any person obtaining
56
56
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -48,5 +48,6 @@ Rake::RDocTask.new do |rdoc|
48
48
  rdoc.rdoc_dir = 'rdoc'
49
49
  rdoc.title = "log-me #{version}"
50
50
  rdoc.rdoc_files.include('README*')
51
+ rdoc.rdoc_files.include('CHANGELOG*')
51
52
  rdoc.rdoc_files.include('lib/**/*.rb')
52
53
  end
data/lib/log-me.rb CHANGED
@@ -20,7 +20,7 @@ module LogMe
20
20
  end
21
21
 
22
22
  def log(message)
23
- logger.send log_level, message if log_enabled?
23
+ logger.send log_level, "#{message}\n" if log_enabled?
24
24
  end
25
25
 
26
26
  def self.extended(base)
data/lib/logme/version.rb CHANGED
@@ -3,7 +3,7 @@ module LogMe
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 0
6
- PATCH = 2
6
+ PATCH = 3
7
7
  VERSION = [MAJOR, MINOR, PATCH].join(".")
8
8
  end
9
9
  end
data/log-me.gemspec CHANGED
@@ -4,20 +4,21 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{log-me}
8
- s.version = "0.0.2"
7
+ s.name = "log-me"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Prodis a.k.a. Fernando Hamasaki"]
12
- s.date = %q{2011-08-29}
13
- s.description = %q{LogMe is a simple way to configure log in your gem. It's especially useful when you need to log Web Service calls or HTTP requests and responses.}
14
- s.email = %q{prodis@gmail.com}
12
+ s.date = "2012-06-06"
13
+ s.description = "LogMe is a simple way to configure log in your gem. It's especially useful when you need to log Web Service calls or HTTP requests and responses."
14
+ s.email = "prodis@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "README.rdoc"
17
17
  ]
18
18
  s.files = [
19
19
  ".document",
20
20
  ".rspec",
21
+ "CHANGELOG.rdoc",
21
22
  "Gemfile",
22
23
  "Gemfile.lock",
23
24
  "README.rdoc",
@@ -28,32 +29,26 @@ Gem::Specification.new do |s|
28
29
  "spec/log-me_spec.rb",
29
30
  "spec/spec_helper.rb"
30
31
  ]
31
- s.homepage = %q{http://github.com/prodis/log-me}
32
+ s.homepage = "http://github.com/prodis/log-me"
32
33
  s.licenses = ["MIT"]
33
34
  s.require_paths = ["lib"]
34
35
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
35
- s.rubygems_version = %q{1.6.1}
36
- s.summary = %q{A simple way to configure log in your gem.}
36
+ s.rubygems_version = "1.8.16"
37
+ s.summary = "A simple way to configure log in your gem."
37
38
 
38
39
  if s.respond_to? :specification_version then
39
40
  s.specification_version = 3
40
41
 
41
42
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
- s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
43
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
44
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
45
- s.add_development_dependency(%q<rcov>, [">= 0"])
43
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8"])
44
+ s.add_development_dependency(%q<rspec>, ["~> 2.10"])
46
45
  else
47
- s.add_dependency(%q<rspec>, ["~> 2.6.0"])
48
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
49
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
50
- s.add_dependency(%q<rcov>, [">= 0"])
46
+ s.add_dependency(%q<jeweler>, ["~> 1.8"])
47
+ s.add_dependency(%q<rspec>, ["~> 2.10"])
51
48
  end
52
49
  else
53
- s.add_dependency(%q<rspec>, ["~> 2.6.0"])
54
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
55
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
56
- s.add_dependency(%q<rcov>, [">= 0"])
50
+ s.add_dependency(%q<jeweler>, ["~> 1.8"])
51
+ s.add_dependency(%q<rspec>, ["~> 2.10"])
57
52
  end
58
53
  end
59
54
 
data/spec/log-me_spec.rb CHANGED
@@ -65,11 +65,11 @@ describe LogMe do
65
65
  context "when log is enabled" do
66
66
  it "logs the message" do
67
67
  FakeModule.log("Some message to log.")
68
- @log_stream.string.should include("Some message to log.")
68
+ @log_stream.string.should include("Some message to log.\n")
69
69
  end
70
70
 
71
71
  it "calls log level method" do
72
- FakeModule.logger.should_receive(:info).with("Some message to log.")
72
+ FakeModule.logger.should_receive(:info).with("Some message to log.\n")
73
73
  FakeModule.log("Some message to log.")
74
74
  end
75
75
  end
@@ -95,7 +95,7 @@ describe LogMe do
95
95
  end
96
96
 
97
97
  it "calls log level set method" do
98
- FakeModule.logger.should_receive(:debug).with("Some message to log.")
98
+ FakeModule.logger.should_receive(:debug).with("Some message to log.\n")
99
99
  FakeModule.log("Some message to log.")
100
100
  end
101
101
  end
metadata CHANGED
@@ -1,73 +1,49 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: log-me
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
4
5
  prerelease:
5
- version: 0.0.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Prodis a.k.a. Fernando Hamasaki
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-08-29 00:00:00 -03:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: rspec
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ~>
22
- - !ruby/object:Gem::Version
23
- version: 2.6.0
24
- type: :development
25
- prerelease: false
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ~>
33
- - !ruby/object:Gem::Version
34
- version: 1.0.0
35
- type: :development
36
- prerelease: false
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
12
+ date: 2012-06-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
39
15
  name: jeweler
40
- requirement: &id003 !ruby/object:Gem::Requirement
16
+ requirement: &11167770 !ruby/object:Gem::Requirement
41
17
  none: false
42
- requirements:
18
+ requirements:
43
19
  - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 1.6.2
20
+ - !ruby/object:Gem::Version
21
+ version: '1.8'
46
22
  type: :development
47
23
  prerelease: false
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: rcov
51
- requirement: &id004 !ruby/object:Gem::Requirement
24
+ version_requirements: *11167770
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &11167470 !ruby/object:Gem::Requirement
52
28
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: '2.10'
57
33
  type: :development
58
34
  prerelease: false
59
- version_requirements: *id004
60
- description: LogMe is a simple way to configure log in your gem. It's especially useful when you need to log Web Service calls or HTTP requests and responses.
35
+ version_requirements: *11167470
36
+ description: LogMe is a simple way to configure log in your gem. It's especially useful
37
+ when you need to log Web Service calls or HTTP requests and responses.
61
38
  email: prodis@gmail.com
62
39
  executables: []
63
-
64
40
  extensions: []
65
-
66
- extra_rdoc_files:
41
+ extra_rdoc_files:
67
42
  - README.rdoc
68
- files:
43
+ files:
69
44
  - .document
70
45
  - .rspec
46
+ - CHANGELOG.rdoc
71
47
  - Gemfile
72
48
  - Gemfile.lock
73
49
  - README.rdoc
@@ -77,33 +53,29 @@ files:
77
53
  - log-me.gemspec
78
54
  - spec/log-me_spec.rb
79
55
  - spec/spec_helper.rb
80
- has_rdoc: true
81
56
  homepage: http://github.com/prodis/log-me
82
- licenses:
57
+ licenses:
83
58
  - MIT
84
59
  post_install_message:
85
60
  rdoc_options: []
86
-
87
- require_paths:
61
+ require_paths:
88
62
  - lib
89
- required_ruby_version: !ruby/object:Gem::Requirement
63
+ required_ruby_version: !ruby/object:Gem::Requirement
90
64
  none: false
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
94
68
  version: 1.8.7
95
- required_rubygems_version: !ruby/object:Gem::Requirement
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
96
70
  none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: "0"
71
+ requirements:
72
+ - - ! '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
101
75
  requirements: []
102
-
103
76
  rubyforge_project:
104
- rubygems_version: 1.6.1
77
+ rubygems_version: 1.8.16
105
78
  signing_key:
106
79
  specification_version: 3
107
80
  summary: A simple way to configure log in your gem.
108
81
  test_files: []
109
-