check-date 0.0.1 → 0.0.2
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.
- data/README.md +11 -0
- data/lib/check-date/hook.rb +1 -1
- data/lib/check-date/version.rb +1 -1
- metadata +2 -1
data/README.md
ADDED
data/lib/check-date/hook.rb
CHANGED
@@ -3,7 +3,7 @@ Gem.pre_install do |installer|
|
|
3
3
|
year_sec = 365 * 24 * 60 * 60
|
4
4
|
|
5
5
|
if (today - installer.spec.date) / year_sec > 1 then
|
6
|
-
if !Gem::ConsoleUI.new.ask_yes_no("This gem was updated more than 1 years ago
|
6
|
+
if !Gem::ConsoleUI.new.ask_yes_no("This gem was updated more than 1 years ago. (last update: #{installer.spec.date})\nInstall this gem?", true) then
|
7
7
|
abort
|
8
8
|
end
|
9
9
|
end
|
data/lib/check-date/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: check-date
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -20,6 +20,7 @@ extra_rdoc_files: []
|
|
20
20
|
files:
|
21
21
|
- .gitignore
|
22
22
|
- Gemfile
|
23
|
+
- README.md
|
23
24
|
- Rakefile
|
24
25
|
- check-date.gemspec
|
25
26
|
- lib/check-date.rb
|