mhc 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/bin/mhc +1 -1
- data/emacs/Cask +1 -1
- data/emacs/mhc-vars.el +1 -1
- data/emacs/mhc.el +1 -1
- data/lib/mhc/command/init.rb +4 -4
- data/lib/mhc/config.rb +1 -1
- data/lib/mhc/etag.rb +1 -1
- data/lib/mhc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1770cced4e43154f7af7e9f9827811c082ba36215fc1a5f0553306a2b7ffec1
|
4
|
+
data.tar.gz: 68f9c66861b05ee65769ac9cc2bd3d011311a3407d39fcf1d07370fc57565c11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f24b75dc4012c86e17578dcdcb3aa25cb689e2a448d75c520e37bed7951db33b5d6303598a7e3e923390a37f85a42150e8ecdc4edc5c4064997e0c19273f1f57
|
7
|
+
data.tar.gz: 7f56ec202242dfda4bb52b4fb9cb8820b5f45b2f433468c60671d3c44fae2c7724fb2b803cd787e5d58a76eb7b80c4c5809e7af618a3bb9aca6863975314a8b7
|
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ task :build => :check_version
|
|
20
20
|
task :check_version do
|
21
21
|
for file in %w(mhc.el mhc-vars.el Cask)
|
22
22
|
path = File.expand_path("../emacs/#{file}", __FILE__)
|
23
|
-
raise "File not found #{path}" unless File.
|
23
|
+
raise "File not found #{path}" unless File.exist?(path)
|
24
24
|
|
25
25
|
content = File.open(path).read
|
26
26
|
unless (/^;; Version: (\d+\.\d+\.\d+)$/ =~ content ||
|
data/bin/mhc
CHANGED
data/emacs/Cask
CHANGED
data/emacs/mhc-vars.el
CHANGED
data/emacs/mhc.el
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
;; Description: Message Harmonized Calendaring system.
|
4
4
|
;; Author: Yoshinari Nomura <nom@quickhack.net>
|
5
5
|
;; Created: 1994-07-04
|
6
|
-
;; Version: 1.2.
|
6
|
+
;; Version: 1.2.6
|
7
7
|
;; Keywords: calendar
|
8
8
|
;; URL: http://www.quickhack.net/mhc
|
9
9
|
;; Package-Requires: ((calfw "20150703"))
|
data/lib/mhc/command/init.rb
CHANGED
@@ -62,7 +62,7 @@ module Mhc
|
|
62
62
|
require "erb"
|
63
63
|
template = ERB.new(File.open(template_path).read, nil, "-")
|
64
64
|
|
65
|
-
if File.
|
65
|
+
if File.exist?(dest_path)
|
66
66
|
say_status "exist", "Ignore #{dest_path}", :yellow
|
67
67
|
return
|
68
68
|
end
|
@@ -98,7 +98,7 @@ module Mhc
|
|
98
98
|
require "digest/md5"
|
99
99
|
|
100
100
|
# Debian
|
101
|
-
if File.
|
101
|
+
if File.exist?("/etc/timezone")
|
102
102
|
return File.open("/etc/timezone").read.chomp
|
103
103
|
end
|
104
104
|
|
@@ -109,13 +109,13 @@ module Mhc
|
|
109
109
|
end
|
110
110
|
|
111
111
|
# Red Had / CentOS
|
112
|
-
if File.
|
112
|
+
if File.exist?("/etc/sysconfig/clock") &&
|
113
113
|
/ZONE=["']?([^"']+)/ =~ File.open("/etc/sysconfig/clock").read.chomp
|
114
114
|
return $1
|
115
115
|
end
|
116
116
|
|
117
117
|
# generic including FreeBSD
|
118
|
-
if File.
|
118
|
+
if File.exist?("/etc/localtime")
|
119
119
|
localtime = Digest::MD5.file("/etc/localtime")
|
120
120
|
candidates = Dir.chdir("/usr/share/zoneinfo") do
|
121
121
|
Dir.glob("**/*").select do |fn|
|
data/lib/mhc/config.rb
CHANGED
@@ -211,7 +211,7 @@ module Mhc
|
|
211
211
|
end # class Top
|
212
212
|
|
213
213
|
def self.create_from_file(file_name)
|
214
|
-
unless File.
|
214
|
+
unless File.exist?(File.expand_path(file_name))
|
215
215
|
raise Mhc::ConfigurationError, "config file '#{file_name}' not found"
|
216
216
|
end
|
217
217
|
begin
|
data/lib/mhc/etag.rb
CHANGED
data/lib/mhc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mhc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshinari Nomura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|