gem_bench 0.0.4 → 0.0.5
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 +7 -0
- data/CHANGELOG +15 -0
- data/README.md +8 -3
- data/lib/gem_bench/player.rb +1 -1
- data/lib/gem_bench/version.rb +1 -1
- metadata +13 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e6d1a0464bf885b99552e8441a7067b98e390384
|
4
|
+
data.tar.gz: 90959f7b78474c94f9d6c7f663788bd0f62db5fa
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 31fcbfacd09e6e4c3e0f0ad7abe1bce0a60725489cb86951a358970b3e8d971e81a94d3e4eaa191f7fd1040bf6e6df490912e93cc1b36c9d9aa41555250aaede
|
7
|
+
data.tar.gz: 56bfbc4c0f7c5f3abfbfe4fa7ebd11e2bd306432d3624852dc9206e5ec16cd6b413d865262fe3b0c3ac503bfa3e28ae4519a3ee54a45f439c20b332096c9ca58
|
data/CHANGELOG
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Version 0.0.5 - AUG.28.2013
|
2
|
+
* Encode as UTF-8 prior to comparison by Peter Boling
|
3
|
+
|
4
|
+
Version 0.0.4 - APR.06.2013
|
5
|
+
* Expanded exclusion list by Peter Boling
|
6
|
+
|
7
|
+
Version 0.0.3 - APR.06.2013
|
8
|
+
* Late night coding needs more coffee. by Peter Boling
|
9
|
+
|
10
|
+
Version 0.0.2 - APR.06.2013
|
11
|
+
* Works against 265 dependency Gemfile by Peter Boling
|
12
|
+
* Added ability to evaluate a Gemfile by Peter Boling
|
13
|
+
|
14
|
+
Version 0.0.1 - APR.05.2013
|
15
|
+
* Initial release by Peter Boling
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ It is a fact of RubyGems that many of them do not need to be loaded by your app
|
|
9
9
|
It is a fact of Bundler that you don't know which ones need to be 'required' while staring at the Gemfile.
|
10
10
|
It is a fact of Heroku that you only have 60 precious seconds to get your app loaded before ❨╯°□°❩╯︵┻━┻
|
11
11
|
|
12
|
-
This gem helps by telling you which gems
|
12
|
+
This gem helps by telling you which gems don't need to be loaded during boot time.
|
13
13
|
|
14
14
|
You can even use it to evaluate your project's actual Gemfile for easy peasy boot time savings. (see Advanced Usage)
|
15
15
|
|
@@ -430,12 +430,17 @@ So here's a [*fat* Gemfile][bundle-group-pattern] weighing in at 265 gem depende
|
|
430
430
|
[SUGGESTION] 44) gem 'uglifier', '~> 1.3.0'
|
431
431
|
[SUGGESTION] 45) gem 'vestal_versions', '~> 1.2.3'
|
432
432
|
|
433
|
-
|
433
|
+
`gem_bench` found 45 gems which are listed as primary dependencies in my `Gemfile` which I can add `require: false` to.
|
434
434
|
|
435
435
|
How much faster will my app boot loading 45 fewer gems? A bit.
|
436
436
|
|
437
437
|
**Note:** Some of the gems in the list above should have been excluded. They are now excluded as of `gem_bench` version 0.0.4.
|
438
438
|
|
439
|
+
## Future
|
440
|
+
|
441
|
+
This gem determines which gems need to be loaded at Rails' boot time by looking for Railties and Engines.
|
442
|
+
A future verison will also look for initializers, because gems which have code that runs (e.g. configuration) in an initializer also need to be loaded at boot time.
|
443
|
+
|
439
444
|
## Contributing
|
440
445
|
|
441
446
|
1. Fork it
|
@@ -464,7 +469,7 @@ For example:
|
|
464
469
|
## Legal
|
465
470
|
|
466
471
|
* MIT License
|
467
|
-
* Copyright (c) 2013 [Peter H. Boling](http://www.railsbling.com), and Acquaintable
|
472
|
+
* Copyright (c) 2013 [Peter H. Boling](http://www.railsbling.com), and [Acquaintable](http://acquaintable.com/)
|
468
473
|
|
469
474
|
[semver]: http://semver.org/
|
470
475
|
[pvc]: http://docs.rubygems.org/read/chapter/16#page74
|
data/lib/gem_bench/player.rb
CHANGED
@@ -19,7 +19,7 @@ module GemBench
|
|
19
19
|
if GemBench::DO_NOT_SCAN.include? self.name
|
20
20
|
false
|
21
21
|
else
|
22
|
-
File.read(file_path) =~ GemBench::RAILTIE_REGEX
|
22
|
+
File.read(file_path).encode('utf-8', :invalid => :replace, :undef => :replace, :replace => '_') =~ GemBench::RAILTIE_REGEX
|
23
23
|
end
|
24
24
|
end
|
25
25
|
self.stats << [file_path,scan] if scan
|
data/lib/gem_bench/version.rb
CHANGED
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_bench
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Peter Boling
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>'
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.2'
|
22
20
|
type: :runtime
|
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: '1.2'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: gem-release
|
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
|
description: trim down app load times by keeping your worst players on the bench
|
@@ -51,6 +46,7 @@ extensions: []
|
|
51
46
|
extra_rdoc_files: []
|
52
47
|
files:
|
53
48
|
- .gitignore
|
49
|
+
- CHANGELOG
|
54
50
|
- Gemfile
|
55
51
|
- LICENSE.txt
|
56
52
|
- README.md
|
@@ -62,26 +58,25 @@ files:
|
|
62
58
|
- lib/gem_bench/version.rb
|
63
59
|
homepage: http://github.com/acquaintable/gem_bench
|
64
60
|
licenses: []
|
61
|
+
metadata: {}
|
65
62
|
post_install_message:
|
66
63
|
rdoc_options: []
|
67
64
|
require_paths:
|
68
65
|
- lib
|
69
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
67
|
requirements:
|
72
|
-
- -
|
68
|
+
- - '>='
|
73
69
|
- !ruby/object:Gem::Version
|
74
70
|
version: '0'
|
75
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
72
|
requirements:
|
78
|
-
- -
|
73
|
+
- - '>='
|
79
74
|
- !ruby/object:Gem::Version
|
80
75
|
version: '0'
|
81
76
|
requirements: []
|
82
77
|
rubyforge_project:
|
83
|
-
rubygems_version:
|
78
|
+
rubygems_version: 2.0.3
|
84
79
|
signing_key:
|
85
|
-
specification_version:
|
86
|
-
summary:
|
80
|
+
specification_version: 4
|
81
|
+
summary: 'Gem: "Put me in coach" You: ❨╯°□°❩╯︵┻━┻'
|
87
82
|
test_files: []
|