gem_fresh 0.1.5 → 0.1.6
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 +4 -4
- data/README.md +5 -1
- data/gemfresh.gemspec +1 -0
- data/lib/gem_fresh/outdated.rb +2 -1
- data/lib/gem_fresh/railtie.rb +2 -0
- data/lib/gem_fresh/version.rb +1 -1
- metadata +4 -4
- data/lib/tasks/metrics.rake +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e983476883545bed05dd71048bf6b0de2e69932e
|
4
|
+
data.tar.gz: 16ee84bfe3c985cf8e5483af7bb1d82a289aa3c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76f42c0fb04bd279d0271d7c4b0541743df63ff88729dc3331a90a67f0fccf1b9b2e992df8719e88b4a18327ca5c76cdc47ca94784383fea465f1f6f177afb56
|
7
|
+
data.tar.gz: 3b4ebc93db54391589059ea0077e7b8d3bf5bff1f3c2b984d8c9e0a6f36ea0bfe3b6d0ac513308eaeda7504be1fceaff8aed5c941dda0bea26f76215967e215a
|
data/README.md
CHANGED
@@ -50,7 +50,7 @@ Create `config/initializers/gem_fresh.rb` for your Rails application. Fill it o
|
|
50
50
|
|
51
51
|
See information on your outdated gems by running the rake task:
|
52
52
|
|
53
|
-
rake gem_fresh
|
53
|
+
rake gem_fresh
|
54
54
|
|
55
55
|
This combines information from `bundle outdated` with the information in the GemFresh config to give a weighted view as to how outdated your third-party Ruby code is and how much it matters.
|
56
56
|
|
@@ -58,6 +58,10 @@ Whenever you add a gem to your Gemfile, add it to GemFresh.rb so that the rake t
|
|
58
58
|
|
59
59
|
Gems are assigned points. The more central a gem is, and the more outdated it is, the higher the points. You can think of the points as a "bounty" on the gem, telling you how badly it needs to be updated.
|
60
60
|
|
61
|
+
*If you're finding that `gem_fresh` takes forever* you may want to _temporarily_ change your Gemfile's `source` line from `source 'https://rubygems.org'` to `source 'http://rubygems.org'`. This is because `bundle outdated` makes a _lot_ of requests to the Rubygems API. Removing the SSL handshake reduces the total time dramatically.
|
62
|
+
|
63
|
+
I'll re-emphasize that this should be a _temporary_ change, because SSL protects you from a man-in-the-middle attack which could lead to you unknowingly installing bogus gems. It's less necessary to use SSL for this operation because no gems are installed; we're just querying the index for version data.
|
64
|
+
|
61
65
|
## About
|
62
66
|
|
63
67
|
GemFresh was originally developed at [the District Management Council](http://dmcouncil.org) by Wyatt Greene, and is now maintained by [DMC](/dmcouncil).
|
data/gemfresh.gemspec
CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["annasazi@gmail.com", "flashesofpanic@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Quantifying the freshness of your gems.}
|
13
|
+
spec.description = %q{Uses Bundler's "outdated" function and some ranking of your gems to generate a score for how significantly you're behind on updating gems.}
|
13
14
|
spec.homepage = "https://github.com/dmcouncil/gem_fresh"
|
14
15
|
spec.license = "MIT"
|
15
16
|
|
data/lib/gem_fresh/outdated.rb
CHANGED
@@ -40,6 +40,7 @@ module GemFresh
|
|
40
40
|
# * zeus (newest 0.15.4, installed 0.13.3) in group "test"
|
41
41
|
# * websocket-driver (newest 0.6.3, installed 0.5.4)
|
42
42
|
#
|
43
|
+
return false if version_data.nil? || version_data.strip.blank?
|
43
44
|
versions = version_data.split(', ').map(&:strip).map(&:split) # [["newest", "4.2.5"], ["installed", "3.2.22"], ["requested", "=", "3.2.22"]]
|
44
45
|
version_hash = {}
|
45
46
|
versions.each { |v| version_hash[v.first.to_sym] = v.last unless v.size > 2 }
|
@@ -66,7 +67,7 @@ module GemFresh
|
|
66
67
|
def raw_gem_info_from_bundler
|
67
68
|
if @bundler_version.major > 1 || (@bundler_version.major == 1 && @bundler_version.minor >= 12)
|
68
69
|
# All lines are useful when using the --porcelain flag
|
69
|
-
return %x{ bundle outdated --porcelain }
|
70
|
+
return %x{ bundle outdated --porcelain }.split("\n").map(&:strip)
|
70
71
|
end
|
71
72
|
just_the_gem_lines = %x{ bundle outdated }.split("\n").map(&:strip).select do |line|
|
72
73
|
line =~ /\A\s*\*\s+\w/
|
data/lib/gem_fresh/railtie.rb
CHANGED
data/lib/gem_fresh/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_fresh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anne Geiersbach
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -39,7 +39,8 @@ dependencies:
|
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '10.0'
|
42
|
-
description:
|
42
|
+
description: Uses Bundler's "outdated" function and some ranking of your gems to generate
|
43
|
+
a score for how significantly you're behind on updating gems.
|
43
44
|
email:
|
44
45
|
- annasazi@gmail.com
|
45
46
|
- flashesofpanic@gmail.com
|
@@ -63,7 +64,6 @@ files:
|
|
63
64
|
- lib/gem_fresh/railtie.rb
|
64
65
|
- lib/gem_fresh/reporter.rb
|
65
66
|
- lib/gem_fresh/version.rb
|
66
|
-
- lib/tasks/metrics.rake
|
67
67
|
homepage: https://github.com/dmcouncil/gem_fresh
|
68
68
|
licenses:
|
69
69
|
- MIT
|