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 ADDED
@@ -0,0 +1,11 @@
1
+ # check-date
2
+ Check gem's date and warn if date is more than 1 years ago.
3
+
4
+ ## Install
5
+ $ gem install check-date
6
+
7
+ ## Usage
8
+ * Install this gem.
9
+ * When you Install other gems, warn if gem's date is more than 1 years ago.
10
+
11
+
@@ -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.\nInstall this gem?", true) then
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
@@ -1,5 +1,5 @@
1
1
  module Check
2
2
  module Date
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
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.1
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