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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7363995b8c6c16faf3412019c2b07fb9f93386a3
4
- data.tar.gz: d8761eae4394fb57c6e93cc31766f7f8025af1cb
3
+ metadata.gz: 02d3ad00484d97ad24c15de92b325eb2d867470a
4
+ data.tar.gz: 0ae6392ec5541c4284254cff708b84f3c7169a4f
5
5
  SHA512:
6
- metadata.gz: c9e236ef841b15ae900db8843fe54ea9595a5a7a967fa7d5b68853eab8dc157f01df83029afb2a69d03a67abcb31770d494e5cba720966bc867cd19e1fe06e67
7
- data.tar.gz: 478fec5276dce61c670eafac339b7d421b62e140164b667e2bc4bcea974e0ad2d29d27b01583c46854413c60ea03c84937fa7e7b1a4a604ca53e09b09eca026c
6
+ metadata.gz: 57f9368e98e27d4da8ea037a830f38f636e6a2ccc9ded026d83a259f376812d7306caff015f6e9947be60dfc5f6dab3020dc3572bc1397d8fea960247d2a9982
7
+ data.tar.gz: d4a6c72e7fc06eb565c1b37329f4bc2fc2e61a5f7c9a2dd45450ac5f8dcb0e4d33f037c49a641639905d507fc0de8e5ac01e5942e1ecb41e8e596517b1deb077
data/.travis.yml CHANGED
@@ -1,5 +1,9 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
+ - 2.0
5
+ - 2.1
6
+ - 2.2
7
+ - 2.3.3
4
8
  - 2.4.0
5
9
  before_install: gem install bundler -v 1.14.5
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 and line number for the first occurrence of the regex in each:
107
+ Then find the file with the first occurrence of the regex in each:
106
108
  ```
107
- >> bad_context_maybe.stats
108
- => [[["/Users/pboling/.rvm/gems/ruby-2.4.0@foss/gems/byebug-9.0.6/lib/byebug/command.rb", 777]], [["/Users/pboling/.rvm/gems/ruby-2.4.0@foss/gems/diff-lcs-1.3/lib/diff/lcs/hunk.rb", 5655]]]
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
-
@@ -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 = self.gemfile_lines.delete_at(self.gemfile_lines.index(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
@@ -1,3 +1,3 @@
1
1
  module GemBench
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-02-26 00:00:00.000000000 Z
11
+ date: 2017-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler