mediashelf-loggable 0.4.9 → 0.4.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d8b5c0bd95a23d3612b776db37c407579a9489be
4
+ data.tar.gz: 3cae8f2c3666e789c143758acbd3db0ab7150ed5
5
+ SHA512:
6
+ metadata.gz: 77fed1000c576440aaba654baecc50b0be5a33f8de8fb815b88ac08d4bba34a751f9611bc1bb3312081ab0b43411698fff9baf92fb8f44ad4474062c65e64a65
7
+ data.tar.gz: 41a0058ed82f9f50c9c193078ad210c0df0d88ee2564afc694ced0cb88e6f193a607d68c26ffd343f494d2cfece676569ba8238adb106562b5cb41a0c5dbeba2
data/Gemfile CHANGED
@@ -1,14 +1,3 @@
1
- source "http://rubygems.org"
2
-
3
- group :development, :test do
4
- gem "jeweler"
5
- gem "mocha"
6
- gem "jnunemaker-matchy"
7
- gem "thoughtbot-shoulda"
8
- gem "rcov"
9
- gem "yard"
10
- gem "RedCloth"
11
- gem "ruby-debug"
12
- end
1
+ source "https://rubygems.org"
13
2
 
14
3
  gemspec
@@ -1,45 +1,30 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mediashelf-loggable (0.4.8)
4
+ mediashelf-loggable (0.4.10)
5
5
 
6
6
  GEM
7
- remote: http://rubygems.org/
7
+ remote: https://rubygems.org/
8
8
  specs:
9
- RedCloth (4.2.7)
10
- columnize (0.3.4)
11
- git (1.2.5)
12
- jeweler (1.6.4)
13
- bundler (~> 1.0)
14
- git (>= 1.2.5)
15
- rake
16
- jnunemaker-matchy (0.4.0)
17
- linecache (0.46)
18
- rbx-require-relative (> 0.0.4)
19
- mocha (0.9.12)
20
- rake (0.9.2)
21
- rbx-require-relative (0.0.5)
22
- rcov (0.9.9)
23
- rspec (1.3.2)
24
- ruby-debug (0.10.4)
25
- columnize (>= 0.1)
26
- ruby-debug-base (~> 0.10.4.0)
27
- ruby-debug-base (0.10.4)
28
- linecache (>= 0.3)
9
+ RedCloth (4.2.9)
10
+ metaclass (0.0.4)
11
+ minitest (4.7.5)
12
+ mocha (1.1.0)
13
+ metaclass (~> 0.0.1)
14
+ rake (10.3.2)
15
+ test-unit (2.5.5)
29
16
  thoughtbot-shoulda (2.11.1)
30
- yard (0.7.2)
17
+ yard (0.8.7.4)
31
18
 
32
19
  PLATFORMS
33
20
  ruby
34
21
 
35
22
  DEPENDENCIES
36
23
  RedCloth
37
- jeweler
38
- jnunemaker-matchy
39
24
  mediashelf-loggable!
40
- mocha
41
- rcov
42
- rspec (< 2.0)
43
- ruby-debug
25
+ minitest (~> 4.0)
26
+ mocha (~> 1.0)
27
+ rake
28
+ test-unit
44
29
  thoughtbot-shoulda
45
30
  yard
data/Rakefile CHANGED
@@ -13,16 +13,3 @@ Rake::TestTask.new(:test) do |test|
13
13
  test.pattern = 'test/**/*_test.rb'
14
14
  test.verbose = true
15
15
  end
16
-
17
- begin
18
- require 'rcov/rcovtask'
19
- Rcov::RcovTask.new do |test|
20
- test.libs << 'test'
21
- test.pattern = 'test/**/*_test.rb'
22
- test.verbose = true
23
- end
24
- rescue LoadError
25
- task :rcov do
26
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
27
- end
28
- end
@@ -1,9 +1,3 @@
1
1
  module Loggable
2
- unless Loggable.const_defined? :VERSION
3
- def self.version
4
- @version ||= File.read(File.join(File.dirname(__FILE__), '..', '..', 'VERSION')).chomp
5
- end
6
-
7
- VERSION = self.version
8
- end
2
+ VERSION = "0.4.10"
9
3
  end
@@ -1,7 +1,6 @@
1
1
  desc "Task to execute builds on a Hudson Continuous Integration Server."
2
2
  task :hudson do
3
3
  Rake::Task["loggable:doc"].invoke
4
- Rake::Task["loggable:rcov"].invoke
5
4
  Rake::Task["loggable:test"].invoke
6
5
  end
7
6
 
@@ -32,13 +31,4 @@ namespace :loggable do
32
31
  abort "Please install the YARD gem to generate rdoc."
33
32
  end
34
33
  end
35
-
36
- require 'rcov/rcovtask'
37
-
38
- desc "Create a cross-referenced code coverage report."
39
- Rcov::RcovTask.new(:rcov) do |t|
40
- t.libs << "test"
41
- t.test_files = FileList['test/**/*_test.rb']
42
- t.rcov_opts << "--exclude \"gems/*\" --rails"
43
- end
44
34
  end
@@ -4,25 +4,26 @@ require 'loggable/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = %q{mediashelf-loggable}
7
- s.version = Loggable.version
7
+ s.version = Loggable::VERSION
8
8
  s.authors = ["Patrick Reagan", "Matt Zumwalt"]
9
9
  s.email = %q{matt.zumwalt@yourmediashelf.com}
10
10
  s.homepage = %q{http://github.com/mediashelf/loggable}
11
11
  s.summary = %q{A gem that provides logging capabilities to any class}
12
12
  s.description = %q{A gem that provides logging capabilities to any class. Relies on Rails logger if it's available. Extended from loggable gem by viget}
13
13
  s.files = `git ls-files`.split("\n")
14
- s.test_files = `git ls-files -- {spec}/*`.split("\n")
14
+ s.test_files = `git ls-files -- {test}/*`.split("\n")
15
15
  # s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
16
  s.require_paths = ["lib"]
17
17
 
18
18
  s.required_rubygems_version = ">= 1.3.6"
19
19
 
20
20
 
21
- s.add_development_dependency "rspec", "< 2.0" # We're not ready to upgrade to rspec 2
22
- s.add_development_dependency 'mocha'
23
- s.add_development_dependency 'rcov'
24
- s.add_development_dependency 'thoughtbot-shoulda'
25
- s.add_development_dependency 'jnunemaker-matchy'
26
- s.add_development_dependency 'yard', '0.6.5' # Yard > 0.6.5 won't generate docs.
21
+ s.add_development_dependency "rake"
22
+ s.add_development_dependency 'yard'
27
23
  s.add_development_dependency 'RedCloth'
24
+ s.add_development_dependency 'test-unit'
25
+ s.add_development_dependency 'minitest', '~> 4.0'
26
+ s.add_development_dependency 'mocha', '~> 1.0'
27
+ s.add_development_dependency 'thoughtbot-shoulda'
28
+
28
29
  end
@@ -15,22 +15,22 @@ class LogMethodsTest < Test::Unit::TestCase
15
15
  teardown { MyClass.logger = nil}
16
16
 
17
17
  should "have a logger stub by default" do
18
- MyClass.logger.should be_instance_of(Logger)
18
+ assert_instance_of Logger, MyClass.logger
19
19
  end
20
20
 
21
21
  should "not fail when an instance calls an uninitialized logger" do
22
22
  m = MyClass.new
23
- lambda { m.logged_method }.should_not raise_error
23
+ assert_nothing_raised { m.logged_method }
24
24
  end
25
25
 
26
26
  should "allow the asssignment of a logger" do
27
27
  MyClass.logger = @logger
28
- MyClass.logger.should == @logger
28
+ assert_equal MyClass.logger, @logger
29
29
  end
30
30
 
31
31
  should "allow access to the logger from an instance" do
32
32
  MyClass.logger = @logger
33
- MyClass.new.logger.should == @logger
33
+ assert_equal MyClass.new.logger, @logger
34
34
  end
35
35
 
36
36
  end
@@ -39,7 +39,7 @@ class LogMethodsTest < Test::Unit::TestCase
39
39
 
40
40
  should "have a logger stub by default" do
41
41
  MyModule.logger = nil
42
- MyModule.logger.should be_kind_of(Logger)
42
+ assert_kind_of Logger, MyModule.logger
43
43
  end
44
44
 
45
45
  should "be able to log messages" do
@@ -64,7 +64,7 @@ class LogMethodsTest < Test::Unit::TestCase
64
64
 
65
65
  should "use the default logger" do
66
66
  MyModule.logger = nil
67
- MyModule.logger.should be_kind_of(Logger)
67
+ assert_kind_of Logger, MyModule.logger
68
68
  end
69
69
  end
70
70
 
@@ -87,11 +87,11 @@ class LogMethodsTest < Test::Unit::TestCase
87
87
 
88
88
  should "use Rails3 logger" do
89
89
  MyModule.logger = nil
90
- MyModule.logger.should == Rails.logger
90
+ assert_equal MyModule.logger, Rails.logger
91
91
  end
92
92
  should "switch to using Rails3 logger even if a default logger was already defined" do
93
93
  MyModule.logger = Logger.new(STDOUT)
94
- MyModule.logger.should == Rails.logger
94
+ assert_equal MyModule.logger, Rails.logger
95
95
  end
96
96
  end
97
97
  end
@@ -7,9 +7,9 @@ class LoggerStubTest < Test::Unit::TestCase
7
7
 
8
8
  should "return nil for all standard logging methods" do
9
9
  [:debug, :error, :fatal, :info, :warn].each do |method|
10
- @logger.send(method, 'message').should be(nil)
10
+ assert_nil @logger.send(method, 'message')
11
11
  end
12
12
  end
13
13
 
14
14
  end
15
- end
15
+ end
@@ -1,9 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'test/unit'
3
- require 'mocha'
4
3
  require 'shoulda'
5
- require 'matchy'
6
- require "ruby-debug"
4
+ require 'mocha/test_unit'
7
5
 
8
6
  require File.dirname(__FILE__) + '/../lib/loggable'
9
7
 
metadata CHANGED
@@ -1,142 +1,128 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mediashelf-loggable
3
- version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 9
10
- version: 0.4.9
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.10
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Patrick Reagan
14
8
  - Matt Zumwalt
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2011-12-06 00:00:00 -06:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
23
- name: rspec
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - <
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 2
33
- - 0
34
- version: "2.0"
12
+ date: 2014-07-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
35
21
  type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: mocha
39
22
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: yard
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
43
32
  - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
- version: "0"
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
49
35
  type: :development
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: rcov
53
36
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: RedCloth
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
57
46
  - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
63
49
  type: :development
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: thoughtbot-shoulda
67
50
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
71
53
  - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: test-unit
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
77
63
  type: :development
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: jnunemaker-matchy
81
64
  prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
85
67
  - - ">="
86
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
89
- - 0
90
- version: "0"
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: minitest
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '4.0'
91
77
  type: :development
92
- version_requirements: *id005
93
- - !ruby/object:Gem::Dependency
94
- name: yard
95
78
  prerelease: false
96
- requirement: &id006 !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - "="
100
- - !ruby/object:Gem::Version
101
- hash: 13
102
- segments:
103
- - 0
104
- - 6
105
- - 5
106
- version: 0.6.5
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '4.0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: mocha
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '1.0'
107
91
  type: :development
108
- version_requirements: *id006
109
- - !ruby/object:Gem::Dependency
110
- name: RedCloth
111
92
  prerelease: false
112
- requirement: &id007 !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: thoughtbot-shoulda
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
115
102
  - - ">="
116
- - !ruby/object:Gem::Version
117
- hash: 3
118
- segments:
119
- - 0
120
- version: "0"
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
121
105
  type: :development
122
- version_requirements: *id007
123
- description: A gem that provides logging capabilities to any class. Relies on Rails logger if it's available. Extended from loggable gem by viget
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ description: A gem that provides logging capabilities to any class. Relies on Rails
113
+ logger if it's available. Extended from loggable gem by viget
124
114
  email: matt.zumwalt@yourmediashelf.com
125
115
  executables: []
126
-
127
116
  extensions: []
128
-
129
117
  extra_rdoc_files: []
130
-
131
- files:
132
- - .gitignore
133
- - .rvmrc
118
+ files:
119
+ - ".gitignore"
120
+ - ".rvmrc"
134
121
  - Gemfile
135
122
  - Gemfile.lock
136
123
  - History.txt
137
124
  - README.rdoc
138
125
  - Rakefile
139
- - VERSION
140
126
  - lib/loggable.rb
141
127
  - lib/loggable/log_methods.rb
142
128
  - lib/loggable/logger_stub.rb
@@ -146,41 +132,28 @@ files:
146
132
  - test/examples/log_methods_test.rb
147
133
  - test/examples/logger_stub_test.rb
148
134
  - test/test_helper.rb
149
- has_rdoc: true
150
135
  homepage: http://github.com/mediashelf/loggable
151
136
  licenses: []
152
-
137
+ metadata: {}
153
138
  post_install_message:
154
139
  rdoc_options: []
155
-
156
- require_paths:
140
+ require_paths:
157
141
  - lib
158
- required_ruby_version: !ruby/object:Gem::Requirement
159
- none: false
160
- requirements:
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
161
144
  - - ">="
162
- - !ruby/object:Gem::Version
163
- hash: 3
164
- segments:
165
- - 0
166
- version: "0"
167
- required_rubygems_version: !ruby/object:Gem::Requirement
168
- none: false
169
- requirements:
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
170
149
  - - ">="
171
- - !ruby/object:Gem::Version
172
- hash: 23
173
- segments:
174
- - 1
175
- - 3
176
- - 6
150
+ - !ruby/object:Gem::Version
177
151
  version: 1.3.6
178
152
  requirements: []
179
-
180
153
  rubyforge_project:
181
- rubygems_version: 1.6.2
154
+ rubygems_version: 2.2.2
182
155
  signing_key:
183
- specification_version: 3
156
+ specification_version: 4
184
157
  summary: A gem that provides logging capabilities to any class
185
158
  test_files: []
186
-
159
+ has_rdoc:
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.4.9