gem_bench 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/README.md +9 -3
- data/gem_bench.gemspec +4 -3
- data/lib/gem_bench/scout.rb +2 -0
- data/lib/gem_bench/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c33530febbc947b520d85f5489e36998331e5a3d
|
4
|
+
data.tar.gz: 4aea6577c980e5f95ee630269593e6bbe9687dbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4f6e8e779c9816ec15c9c8ca10334d8ea0ed0808f925f6a63c2e057737ff260aafaf728fda9dd14437193715321bb63f374fdbc59aa064414a522d77a2400e3
|
7
|
+
data.tar.gz: a071e83f2ecc47ca940ce2c6919b272479c4ab1aef8a6fbace07f297660c08583eed38dfd9f0eaec570f29713c6604d47b182cc7de6d906b9212a0e6a93c5078
|
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# GemBench [![Inline docs](http://inch-ci.org/github/pboling/gem_bench.png)](http://inch-ci.org/github/pboling/gem_bench)
|
2
2
|
|
3
|
-
`gem_bench` is
|
3
|
+
`gem_bench` is for static Gemfile and installed gem library source code analysis.
|
4
|
+
|
5
|
+
`gem_bench` can also be used to trim down app load times by keeping your worst players on the bench.
|
4
6
|
|
5
7
|
Gem: "Put me in coach!"
|
6
8
|
You: ❨╯°□°❩╯︵┻━┻
|
@@ -74,14 +76,13 @@ Just install it, and require it in your`irb`/`console` session when you want to
|
|
74
76
|
|
75
77
|
$ gem install gem_bench
|
76
78
|
|
77
|
-
|
78
79
|
### Option 2
|
79
80
|
|
80
81
|
If you decide to include it in your project: add this line to your `Gemfile` in the `:development` group.
|
81
82
|
|
82
83
|
gem 'gem_bench', :require => false, :group => :development
|
83
84
|
|
84
|
-
### Option BEST
|
85
|
+
### Option BEST 1
|
85
86
|
|
86
87
|
Or better yet [follow the bundle group pattern in your Gemfile][bundle-group-pattern] and setup a console group so it will only load in the console, and not the web app. With it loading only in the console session the `require: false` is completely optional. The gem is tiny, so won't impact console load time much. Requiring it will allow checking your `Gemfile` without needing to first `require 'gem_bench'`.
|
87
88
|
|
@@ -91,6 +92,11 @@ And then execute:
|
|
91
92
|
|
92
93
|
$ bundle
|
93
94
|
|
95
|
+
### Option BEST 2
|
96
|
+
|
97
|
+
If you are going to use the gem in your specs, you will need to add it to the test group.
|
98
|
+
|
99
|
+
gem 'gem_bench', :group => :test
|
94
100
|
|
95
101
|
## Usage
|
96
102
|
|
data/gem_bench.gemspec
CHANGED
@@ -9,9 +9,10 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Peter Boling"]
|
10
10
|
spec.email = ["peter.boling@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{
|
13
|
-
|
14
|
-
|
12
|
+
spec.summary = %q{Static Gemfile and installed gem library source code analysis}
|
13
|
+
spec.description = %q{Enforce Gemfile version constraints
|
14
|
+
Regex search across all installed gem's source code to find issues quickly
|
15
|
+
Trim down app load times by keeping your worst players on the bench (useful for beating Heroku slug load time cutoff)}
|
15
16
|
spec.homepage = "http://github.com/acquaintable/gem_bench"
|
16
17
|
|
17
18
|
spec.licenses = ['MIT']
|
data/lib/gem_bench/scout.rb
CHANGED
@@ -8,6 +8,8 @@ module GemBench
|
|
8
8
|
@gemfile_path = "#{Dir.pwd}/Gemfile"
|
9
9
|
gem_lookup_paths_from_bundler
|
10
10
|
gem_lines_from_gemfile
|
11
|
+
# Gem.loaded_specs are the gems that have been loaded / required.
|
12
|
+
@loaded_gems = Gem.loaded_specs.values.map {|x| [x.name, x.version.to_s] }
|
11
13
|
end
|
12
14
|
|
13
15
|
def check_gemfile?
|
data/lib/gem_bench/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_bench
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
@@ -94,7 +94,10 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
description:
|
97
|
+
description: |-
|
98
|
+
Enforce Gemfile version constraints
|
99
|
+
Regex search across all installed gem's source code to find issues quickly
|
100
|
+
Trim down app load times by keeping your worst players on the bench (useful for beating Heroku slug load time cutoff)
|
98
101
|
email:
|
99
102
|
- peter.boling@gmail.com
|
100
103
|
executables: []
|
@@ -144,5 +147,5 @@ rubyforge_project:
|
|
144
147
|
rubygems_version: 2.6.12
|
145
148
|
signing_key:
|
146
149
|
specification_version: 4
|
147
|
-
summary:
|
150
|
+
summary: Static Gemfile and installed gem library source code analysis
|
148
151
|
test_files: []
|