gem_fresh 0.1.5 → 0.1.9
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 +5 -5
- data/LICENSE.txt +1 -1
- data/README.md +6 -2
- data/gemfresh.gemspec +3 -2
- data/lib/gem_fresh/gem_version.rb +6 -2
- 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 +16 -17
- data/lib/tasks/metrics.rake +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a4c2ff8045426b85b174c88f0f7daeb2119d78169987ddadd1ff5c72ed1cbca4
|
4
|
+
data.tar.gz: c2497ab0e8c1289260b529e90fae803d23d01d89f01cbee964e3c5a147b52af1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 839a5cc1c68bb0f0fca25b758c2b89fefda1c8e79d5f1d2782218fb55bc9ed5cee6245e8fca0a51aaf9f59ecf64363b068bba334e8684fef6b66936bc5991ebd
|
7
|
+
data.tar.gz: 3a08f06e6f5ee43116bd97f05363707c6db64e3f9f916dd1fc667cb04167d91bc69651a5a503d1480f384374cb16123a362055ac5de2dc73f0104e478e28b54c
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) 2017 District Management Group
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
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. (You may also want to [check this Stack Overflow question](http://stackoverflow.com/q/15343771/306084).)
|
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
|
-
GemFresh was originally developed at [
|
67
|
+
GemFresh was originally developed at [District Management Group](https://dmgroupK12.com) by [Wyatt Greene](/techiferous), and is now maintained by [DMGroup](/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
|
|
@@ -18,6 +19,6 @@ Gem::Specification.new do |spec|
|
|
18
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
20
|
spec.require_paths = ["lib"]
|
20
21
|
|
21
|
-
spec.add_dependency "bundler", "
|
22
|
-
spec.add_dependency "rake"
|
22
|
+
spec.add_dependency "bundler", ">= 2.1.4"
|
23
|
+
spec.add_dependency "rake"
|
23
24
|
end
|
@@ -6,8 +6,12 @@ module GemFresh
|
|
6
6
|
# 7.6.2.11, 7.6, or even 7.6.2.beta. We just care about the first
|
7
7
|
# three numbers
|
8
8
|
def initialize(version_string)
|
9
|
-
|
10
|
-
|
9
|
+
begin
|
10
|
+
@major, @minor, @patch = version_string.split('.').map(&:to_i)
|
11
|
+
@patch ||= 0
|
12
|
+
rescue NoMethodError
|
13
|
+
@major, @minor, @patch = [0,0,0]
|
14
|
+
end
|
11
15
|
end
|
12
16
|
end
|
13
17
|
end
|
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,45 +1,46 @@
|
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anne Geiersbach
|
8
8
|
- Parker Morse
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 2.1.4
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 2.1.4
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
42
|
-
description:
|
41
|
+
version: '0'
|
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,12 +64,11 @@ 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
|
70
70
|
metadata: {}
|
71
|
-
post_install_message:
|
71
|
+
post_install_message:
|
72
72
|
rdoc_options: []
|
73
73
|
require_paths:
|
74
74
|
- lib
|
@@ -83,9 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
|
87
|
-
|
88
|
-
signing_key:
|
86
|
+
rubygems_version: 3.1.4
|
87
|
+
signing_key:
|
89
88
|
specification_version: 4
|
90
89
|
summary: Quantifying the freshness of your gems.
|
91
90
|
test_files: []
|