gem_fresh 0.1.5 → 0.1.6

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: 853fe0139c8cb0bddcdadf3dfaa47b9848f2be5d
4
- data.tar.gz: 848a649df43309ee3a84f88c38b687af13e68529
3
+ metadata.gz: e983476883545bed05dd71048bf6b0de2e69932e
4
+ data.tar.gz: 16ee84bfe3c985cf8e5483af7bb1d82a289aa3c3
5
5
  SHA512:
6
- metadata.gz: c46c708c8873f76aa911ae22585772353252fbea3326b8f7d28f8e29c074e5e9b988fb2b6695309b5a5649b467de995cca7c3b6ff72d2644bba60c680f9b6f9f
7
- data.tar.gz: a5c4f032f8c0a335c62a90bacd915abe9e20b953fed1dcca66524d81143cd63f1b511f43456e630fb6526761541a11faa328e7827f52af52208c064d379799cb
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:outdated
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).
@@ -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
 
@@ -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/
@@ -12,6 +12,8 @@ module GemFresh
12
12
  GemFresh::Reporter.new.report
13
13
  end
14
14
  end
15
+
16
+ task :gem_fresh => ['gem_fresh:outdated']
15
17
  end
16
18
  end
17
19
  end
@@ -1,3 +1,3 @@
1
1
  module GemFresh
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-08-24 00:00:00.000000000 Z
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
@@ -1,6 +0,0 @@
1
- namespace :metrics do
2
- desc "display outdated gem version metrics"
3
- task :outdated_gems => :environment do
4
- GemFresh::Reporter.new.report
5
- end
6
- end