gem_fresh 0.1.5 → 0.1.9

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
- SHA1:
3
- metadata.gz: 853fe0139c8cb0bddcdadf3dfaa47b9848f2be5d
4
- data.tar.gz: 848a649df43309ee3a84f88c38b687af13e68529
2
+ SHA256:
3
+ metadata.gz: a4c2ff8045426b85b174c88f0f7daeb2119d78169987ddadd1ff5c72ed1cbca4
4
+ data.tar.gz: c2497ab0e8c1289260b529e90fae803d23d01d89f01cbee964e3c5a147b52af1
5
5
  SHA512:
6
- metadata.gz: c46c708c8873f76aa911ae22585772353252fbea3326b8f7d28f8e29c074e5e9b988fb2b6695309b5a5649b467de995cca7c3b6ff72d2644bba60c680f9b6f9f
7
- data.tar.gz: a5c4f032f8c0a335c62a90bacd915abe9e20b953fed1dcca66524d81143cd63f1b511f43456e630fb6526761541a11faa328e7827f52af52208c064d379799cb
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) 2016 Anne Geiersbach
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: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. (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 [the District Management Council](http://dmcouncil.org) by Wyatt Greene, and is now maintained by [DMC](/dmcouncil).
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", "~> 1.9"
22
- spec.add_dependency "rake", "~> 10.0"
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
- @major, @minor, @patch = version_string.split('.').map(&:to_i)
10
- @patch ||= 0
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
@@ -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.9"
3
3
  end
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.5
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: 2016-08-24 00:00:00.000000000 Z
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: '1.9'
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: '1.9'
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: '10.0'
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: '10.0'
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
- rubyforge_project:
87
- rubygems_version: 2.4.8
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: []
@@ -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