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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0b65ae5e1dd5f504de2eeb59f280eff7ef0422133520006e9814ab52510e9ac
4
- data.tar.gz: '0168de3d55867bf8356a02cf9be81d3ecd199b01f64d5c2cdc5f6835a0605fdd'
3
+ metadata.gz: f1770cced4e43154f7af7e9f9827811c082ba36215fc1a5f0553306a2b7ffec1
4
+ data.tar.gz: 68f9c66861b05ee65769ac9cc2bd3d011311a3407d39fcf1d07370fc57565c11
5
5
  SHA512:
6
- metadata.gz: d4533cef977bafd8491f1f3bbb709049dfa17b7ca70f0286381aaba60ffb51a096d34b28d6cb7239e1a5f932729237dce1d931332c1830983357ec99196f75e5
7
- data.tar.gz: 40dbdfcdcacf2ac4f274db2897bfa91f25a58ebb0d80c4b705d9134efef3e2fafa7e1ec51a743817e075e7a0f015b53262a6c3c1f915400ce5e0dd5dad31727d
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.exists?(path)
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
@@ -17,7 +17,7 @@ end
17
17
 
18
18
  gemfile = File.expand_path("../../Gemfile", __FILE__)
19
19
 
20
- if File.exists?(gemfile + ".lock")
20
+ if File.exist?(gemfile + ".lock")
21
21
  ENV["BUNDLE_GEMFILE"] = gemfile
22
22
  require "bundler/setup"
23
23
  end
data/emacs/Cask CHANGED
@@ -5,7 +5,7 @@
5
5
  (source org)
6
6
  (source melpa)
7
7
 
8
- (package "mhc" "1.2.5" "Message Harmonized Calendaring system") ;; MHC_VERSION
8
+ (package "mhc" "1.2.6" "Message Harmonized Calendaring system") ;; MHC_VERSION
9
9
 
10
10
  (files "mhc.el" "mhc-*.el")
11
11
 
data/emacs/mhc-vars.el CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
 
20
20
  ;;; Constants:
21
- (defconst mhc-version "mhc 1.2.5") ;; MHC_VERSION
21
+ (defconst mhc-version "mhc 1.2.6") ;; MHC_VERSION
22
22
 
23
23
 
24
24
  ;;; Configration Variables:
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.5
6
+ ;; Version: 1.2.6
7
7
  ;; Keywords: calendar
8
8
  ;; URL: http://www.quickhack.net/mhc
9
9
  ;; Package-Requires: ((calfw "20150703"))
@@ -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.exists?(dest_path)
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.exists?("/etc/timezone")
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.exists?("/etc/sysconfig/clock") &&
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.exists?("/etc/localtime")
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.exists?(File.expand_path(file_name))
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
@@ -52,7 +52,7 @@ module Mhc
52
52
  end
53
53
 
54
54
  def unlink(key)
55
- if File.exists?(path = make_path(key))
55
+ if File.exist?(path = make_path(key))
56
56
  File.unlink(path)
57
57
  end
58
58
  end
data/lib/mhc/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Mhc
2
- VERSION = "1.2.5"
2
+ VERSION = "1.2.6"
3
3
  PRODID = "-//Quickhack.net//MHC #{Mhc::VERSION}//EN"
4
4
  end
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.5
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-02-28 00:00:00.000000000 Z
11
+ date: 2024-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor