benchmark_requires 1.0.0 → 1.0.1
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 +4 -4
- data/README.md +4 -2
- data/lib/benchmark_requires/version.rb +1 -1
- data/lib/benchmark_requires.rb +1 -1
- metadata +11 -13
- data/Rakefile +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec6989c116a249070eb72f15be902c809b09a0b4
|
4
|
+
data.tar.gz: ff95a76aee3083c2a74496d10ee5b9481685e8aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be334a41038305e0e476fe8204fdbc624656af73a331e63868b87a4de2735f3e003e4f596ab07754ae137afc0e22f25049aa63800d5d6463b5875189d61093bc
|
7
|
+
data.tar.gz: 87806ccb04f41d22c9936dc9e189fa00a4c5e1b1143d0ac4984dbf24f29621b761fb03191c0c68407c4bbba02bdb24f6f91c14544e21673bfdb24819ad96dd0b
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
benchmark_requires
|
2
2
|
==================
|
3
3
|
|
4
|
+

|
5
|
+
|
4
6
|
BenchmarkRequires is a simple gem that helps identify slow loading libraries.
|
5
7
|
|
6
8
|
As applications get older and more complex the start-up time tends to increase
|
@@ -37,12 +39,12 @@ BenchmarkRequires.logger = Rails.logger
|
|
37
39
|
BenchmarkRequires.logger = Logger.new STDERR
|
38
40
|
BenchmarkRequires.logger = Logger.new nil
|
39
41
|
|
40
|
-
BenchmarkRequires.log_action =
|
42
|
+
BenchmarkRequires.log_action = lambda do |logger, message|
|
41
43
|
logger.info message
|
42
44
|
end
|
43
45
|
|
44
46
|
# super basic log action.
|
45
|
-
BenchmarkRequires.log_action =
|
47
|
+
BenchmarkRequires.log_action = lambda do |logger, message|
|
46
48
|
puts message
|
47
49
|
end
|
48
50
|
|
data/lib/benchmark_requires.rb
CHANGED
@@ -24,7 +24,7 @@ module BenchmarkRequires
|
|
24
24
|
|
25
25
|
unless self.logger
|
26
26
|
logger = Logger.new(STDOUT)
|
27
|
-
logger.formatter =
|
27
|
+
logger.formatter = lambda do |severity, datetime, progname, message|
|
28
28
|
"#{message}\n"
|
29
29
|
end
|
30
30
|
self.logger = logger
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: benchmark_requires
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Daniel
|
@@ -14,28 +14,28 @@ dependencies:
|
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: "BenchmarkRequires is a simple gem that helps identify slow loading libraries.\n\nAs
|
@@ -47,17 +47,16 @@ executables: []
|
|
47
47
|
extensions: []
|
48
48
|
extra_rdoc_files: []
|
49
49
|
files:
|
50
|
+
- LICENSE
|
51
|
+
- README.md
|
52
|
+
- lib/benchmark_requires.rb
|
50
53
|
- lib/benchmark_requires/message_builder.rb
|
51
54
|
- lib/benchmark_requires/object_extension.rb
|
52
55
|
- lib/benchmark_requires/runner.rb
|
53
56
|
- lib/benchmark_requires/version.rb
|
54
|
-
- lib/benchmark_requires.rb
|
55
|
-
- LICENSE
|
56
|
-
- README.md
|
57
57
|
- spec/lib/benchmark_requires/message_builder_spec.rb
|
58
58
|
- spec/lib/benchmark_requires/runner_spec.rb
|
59
59
|
- spec/lib/benchmark_requires_spec.rb
|
60
|
-
- Rakefile
|
61
60
|
homepage: http://www.github.com/binarycleric/benchmark_requires
|
62
61
|
licenses:
|
63
62
|
- MIT
|
@@ -68,17 +67,17 @@ require_paths:
|
|
68
67
|
- lib
|
69
68
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
69
|
requirements:
|
71
|
-
- -
|
70
|
+
- - ">="
|
72
71
|
- !ruby/object:Gem::Version
|
73
72
|
version: '0'
|
74
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
74
|
requirements:
|
76
|
-
- -
|
75
|
+
- - ">="
|
77
76
|
- !ruby/object:Gem::Version
|
78
77
|
version: '0'
|
79
78
|
requirements: []
|
80
79
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.0
|
80
|
+
rubygems_version: 2.2.0
|
82
81
|
signing_key:
|
83
82
|
specification_version: 4
|
84
83
|
summary: BenchmarkRequires is a simple gem that helps identify slow loading libraries.
|
@@ -86,4 +85,3 @@ test_files:
|
|
86
85
|
- spec/lib/benchmark_requires/message_builder_spec.rb
|
87
86
|
- spec/lib/benchmark_requires/runner_spec.rb
|
88
87
|
- spec/lib/benchmark_requires_spec.rb
|
89
|
-
- Rakefile
|