gem_bench 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/CHANGELOG +3 -0
- data/README.md +5 -7
- data/lib/gem_bench/team.rb +1 -1
- data/lib/gem_bench/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02d3ad00484d97ad24c15de92b325eb2d867470a
|
4
|
+
data.tar.gz: 0ae6392ec5541c4284254cff708b84f3c7169a4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57f9368e98e27d4da8ea037a830f38f636e6a2ccc9ded026d83a259f376812d7306caff015f6e9947be60dfc5f6dab3020dc3572bc1397d8fea960247d2a9982
|
7
|
+
data.tar.gz: d4a6c72e7fc06eb565c1b37329f4bc2fc2e61a5f7c9a2dd45450ac5f8dcb0e4d33f037c49a641639905d507fc0de8e5ac01e5942e1ecb41e8e596517b1deb077
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
Version 1.0.1 - MAR.25.2017
|
2
|
+
* fixed a typo that prevented Gemfile comparison by mobilutz
|
3
|
+
|
1
4
|
Version 1.0.0 - FEB.26.2017
|
2
5
|
* New feature: scan all code (except for test/spec/feature code) in all loaded gems for a given regex:
|
3
6
|
- puts GemBench.find(look_for_regex: /HERE BE DRAGONS/).starters.map {|gem| "#{gem.name} has DRAGONS at #{gem.stats}" }.join("\n")
|
data/README.md
CHANGED
@@ -17,6 +17,8 @@ You: ❨╯°□°❩╯︵┻━┻
|
|
17
17
|
byebug has wat DRAGONS at [["/Users/pboling/.rvm/gems/ruby-2.4.0@foss/gems/byebug-9.0.6/lib/byebug/commands/frame.rb", 954]]
|
18
18
|
=> nil
|
19
19
|
```
|
20
|
+
NOTE: The number (954, above) is not a line number. The file which contains the text `wat` was the 954th file evaluated, i.e. the number doesn't matter.
|
21
|
+
NOTE: This is a contrived example. The occurrence of `wat` in byebug is meaningless: `byebug/commands/frame.rb:34` has ` if there is a front end also watching over things.`. This is just an example! You can find anything you want, perhaps even something important!
|
20
22
|
|
21
23
|
| Project | GemBench |
|
22
24
|
|------------------------ | ----------------- |
|
@@ -102,10 +104,10 @@ Find out what gems may be causing it by defining `context`!
|
|
102
104
|
[GemBench] Detected 11 loaded gems + 2 loaded gems which GemBench is configured to ignore.
|
103
105
|
=> [byebug, diff-lcs]
|
104
106
|
```
|
105
|
-
Then find the file
|
107
|
+
Then find the file with the first occurrence of the regex in each:
|
106
108
|
```
|
107
|
-
>> bad_context_maybe.stats
|
108
|
-
=> [[
|
109
|
+
>> bad_context_maybe.stats.map(&:first)
|
110
|
+
=> [["/Users/pboling/.rvm/gems/ruby-2.4.0@foss/gems/byebug-9.0.6/lib/byebug/command.rb"], ["/Users/pboling/.rvm/gems/ruby-2.4.0@foss/gems/diff-lcs-1.3/lib/diff/lcs/hunk.rb"]]
|
109
111
|
```
|
110
112
|
|
111
113
|
### More Different Example!
|
@@ -373,7 +375,3 @@ For example:
|
|
373
375
|
[semver]: http://semver.org/
|
374
376
|
[pvc]: http://docs.rubygems.org/read/chapter/16#page74
|
375
377
|
[bundle-group-pattern]: https://gist.github.com/pboling/4564780
|
376
|
-
|
377
|
-
|
378
|
-
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/pboling/gem_bench/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
|
379
|
-
|
data/lib/gem_bench/team.rb
CHANGED
@@ -134,7 +134,7 @@ module GemBench
|
|
134
134
|
found = (line =~ player.gemfile_regex)
|
135
135
|
if found
|
136
136
|
# remove the found line from the array, because no sane person has more than one gem dependency per line... right?
|
137
|
-
line =
|
137
|
+
line = scout.gemfile_lines.delete_at(scout.gemfile_lines.index(line))
|
138
138
|
# does the line already have require: false?
|
139
139
|
self.current_gemfile_suggestions << self.benchers.delete_at(self.benchers.index(player)) unless line =~ GemBench::REQUIRE_FALSE_REGEX
|
140
140
|
break # outside of the inner loop
|
data/lib/gem_bench/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|