gem_fresh 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/lib/gem_fresh/gem_version.rb +6 -2
- data/lib/gem_fresh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5ebc5688725458760ee41d50e1e8aa70e05f4ba
|
4
|
+
data.tar.gz: 731ec9ae384c98bbe2af747c46f8bb5d09d1dcd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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 [
|
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
|
-
|
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/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.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:
|
12
|
+
date: 2017-04-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|