gem_bench 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f89228b4ede08a4d045edb84113a8aa4abe87c5
4
- data.tar.gz: 0aed9f1441cd404b78218ddb4569fe40d5e0ba00
3
+ metadata.gz: c33530febbc947b520d85f5489e36998331e5a3d
4
+ data.tar.gz: 4aea6577c980e5f95ee630269593e6bbe9687dbb
5
5
  SHA512:
6
- metadata.gz: 260ff8d3d842a12bd4c0cda93e8bc3b08fe2df254dde06d9ac252d50a382a93c4b3ed465a768112e2624975b83039c1744d6e6a6374fcb2ced56e9a47c305e7e
7
- data.tar.gz: 0be0973760997ecf07647d741fdeb85207f11afcb8ab5a6e6a86f80c7541d72268cb1a13bce2210b84ff4da5224b033beddb719dad933a09f2d6343fa217e9b7
6
+ metadata.gz: c4f6e8e779c9816ec15c9c8ca10334d8ea0ed0808f925f6a63c2e057737ff260aafaf728fda9dd14437193715321bb63f374fdbc59aa064414a522d77a2400e3
7
+ data.tar.gz: a071e83f2ecc47ca940ce2c6919b272479c4ab1aef8a6fbace07f297660c08583eed38dfd9f0eaec570f29713c6604d47b182cc7de6d906b9212a0e6a93c5078
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ Version 1.0.3 - JUN.02.2017
2
+ * fixed accidental removal of loaded_gems in 1.0.2
3
+ * better documentation
4
+
1
5
  Version 1.0.2 - JUN.02.2017
2
6
  * version constraint checking, useful to add a spec enforcing Gemfile version constraints, by Peter Boling
3
7
  - Console use:
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 the super easy way to trim down app load times by keeping your worst players on the bench.
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
 
@@ -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{Gem: "Put me in coach"
13
- You: ❨╯°□°❩╯︵┻━┻}
14
- spec.description = %q{trim down app load times by keeping your worst players on the bench}
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']
@@ -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?
@@ -1,3 +1,3 @@
1
1
  module GemBench
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
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.2
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: trim down app load times by keeping your worst players on the bench
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: 'Gem: "Put me in coach" You: ❨╯°□°❩╯︵┻━┻'
150
+ summary: Static Gemfile and installed gem library source code analysis
148
151
  test_files: []