gem_fresh 0.1.6 → 0.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e983476883545bed05dd71048bf6b0de2e69932e
4
- data.tar.gz: 16ee84bfe3c985cf8e5483af7bb1d82a289aa3c3
3
+ metadata.gz: b5ebc5688725458760ee41d50e1e8aa70e05f4ba
4
+ data.tar.gz: 731ec9ae384c98bbe2af747c46f8bb5d09d1dcd9
5
5
  SHA512:
6
- metadata.gz: 76f42c0fb04bd279d0271d7c4b0541743df63ff88729dc3331a90a67f0fccf1b9b2e992df8719e88b4a18327ca5c76cdc47ca94784383fea465f1f6f177afb56
7
- data.tar.gz: 3b4ebc93db54391589059ea0077e7b8d3bf5bff1f3c2b984d8c9e0a6f36ea0bfe3b6d0ac513308eaeda7504be1fceaff8aed5c941dda0bea26f76215967e215a
6
+ metadata.gz: ecb4c2c69ff19f61026855a6b42ddfb2eebcaf45c2d141df8fff1beef1334c45fcaaa3ccdebefd912c8b7b411586f8fc2efba609b9048c09a13ce8e9f8f1c622
7
+ data.tar.gz: fde0ce103cee7a12ceb313a80cde8606039fd5848cfedb33a5c9aa3608762e2c40d9f1267742805429ec83be539f6938ed7b1c7559431e97d371af714726d3ed
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
@@ -58,10 +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.
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
62
 
63
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
64
 
65
65
  ## About
66
66
 
67
- 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).
@@ -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
@@ -1,3 +1,3 @@
1
1
  module GemFresh
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
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.6
4
+ version: 0.1.7
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-10-03 00:00:00.000000000 Z
12
+ date: 2017-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler