gem_fresh 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -14
- data/lib/gem_fresh/railtie.rb +0 -4
- data/lib/gem_fresh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2deeca659d41796ea26f4b6bed0ef6e115c732c9
|
4
|
+
data.tar.gz: 775e5b4e6be6f1c53739a622f6808a759f5d49a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65094f85476f668380dc7b10ed6433036dbefc83e7f0bc909615d56f7ea6bae9fe70e18064a1b00f323520365a0a980c19e48bd337b02199ca2406e071756881
|
7
|
+
data.tar.gz: ded1915dd8ad5096672cbaeb54e7dd04f39e85dc33f996c036df8a1385f2123a2ff7877e9b9a5f115ef7b563ea3cc4bfa3468bf9d15d8609de7179f0bf4855cf
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ The purpose of GemFresh is to expose useful information about how outdated your
|
|
4
4
|
|
5
5
|
## Setup
|
6
6
|
|
7
|
-
Create
|
7
|
+
Create `config/initializers/gem_fresh.rb` for your Rails application. Fill it out like this:
|
8
8
|
|
9
9
|
# Any gems that you put in the Gemfile should also be listed here.
|
10
10
|
# The rake metrics:outdated_gems task calculates which gems are
|
@@ -38,30 +38,19 @@ Create a file called GemFresh.rb in the root directory of your application. Fil
|
|
38
38
|
|
39
39
|
# We ignore these since we are in complete control of their update cycles.
|
40
40
|
gems.that_are_private %w(
|
41
|
-
dmc_server_admin
|
42
41
|
job_state
|
43
42
|
...
|
44
43
|
)
|
45
44
|
|
46
45
|
end
|
47
46
|
|
48
|
-
Then create a rake task like this:
|
49
|
-
|
50
|
-
namespace :metrics do
|
51
|
-
desc "display outdated gem version metrics"
|
52
|
-
task :outdated_gems do
|
53
|
-
GemFresh::Reporter.new.report
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
|
58
47
|
## Usage
|
59
48
|
|
60
49
|
See information on your outdated gems by running the rake task:
|
61
50
|
|
62
|
-
rake
|
51
|
+
rake gem_fresh:outdated
|
63
52
|
|
64
|
-
This combines information from `bundle outdated` with the information in GemFresh
|
53
|
+
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.
|
65
54
|
|
66
55
|
Whenever you add a gem to your Gemfile, add it to GemFresh.rb so that the rake task knows how important the gem is.
|
67
56
|
|
data/lib/gem_fresh/railtie.rb
CHANGED
data/lib/gem_fresh/version.rb
CHANGED