time 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/Rakefile +10 -3
- data/lib/time.rb +2 -2
- data/time.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15e8574e213d15cfd7b411f51b77558c8c0b5cddb94e02f1d8e1ac348dd94bb8
|
4
|
+
data.tar.gz: 31fea0688adc521bd18b56dcdcac15d450781d523c04c7979003fce9fd6ee19d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ddaed6b6b3f00d9e5f67894232cc93b708ca51e45d30e8dac48efbd716f23cf89080db1a38355f8c54b51d121b140ea196be424ef36d722664e30a248b59efc
|
7
|
+
data.tar.gz: 0f2117e35e6343d59e72ed6a0041ccdad8594ffd2e0420ee35c763ed3cf4c799913b376d30eab5365b9487e045b24867cfa15e0b3655de86c83e937c704e4cdc
|
data/Rakefile
CHANGED
@@ -2,9 +2,16 @@ require "bundler/gem_tasks"
|
|
2
2
|
require "rake/testtask"
|
3
3
|
|
4
4
|
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs << "test"
|
6
|
-
t.
|
7
|
-
t.test_files = FileList["test
|
5
|
+
t.libs << "test/lib"
|
6
|
+
t.ruby_opts << "-rhelper"
|
7
|
+
t.test_files = FileList["test/**/test_*.rb"]
|
8
|
+
end
|
9
|
+
|
10
|
+
task :sync_tool do
|
11
|
+
require 'fileutils'
|
12
|
+
FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
|
13
|
+
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
|
14
|
+
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
|
8
15
|
end
|
9
16
|
|
10
17
|
task :default => :test
|
data/lib/time.rb
CHANGED
@@ -506,8 +506,8 @@ class Time
|
|
506
506
|
(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+
|
507
507
|
(\d{2,})\s+
|
508
508
|
(\d{2})\s*
|
509
|
-
:\s*(\d{2})
|
510
|
-
(
|
509
|
+
:\s*(\d{2})
|
510
|
+
(?:\s*:\s*(\d\d))?\s+
|
511
511
|
([+-]\d{4}|
|
512
512
|
UT|GMT|EST|EDT|CST|CDT|MST|MDT|PST|PDT|[A-IK-Z])/ix =~ date
|
513
513
|
# Since RFC 2822 permit comments, the regexp has no right anchor.
|
data/time.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: time
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanaka Akira
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Extends the Time class with methods for parsing and conversion.
|
14
14
|
email:
|
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0'
|
50
50
|
requirements: []
|
51
|
-
rubygems_version: 3.
|
51
|
+
rubygems_version: 3.5.0.dev
|
52
52
|
signing_key:
|
53
53
|
specification_version: 4
|
54
54
|
summary: Extends the Time class with methods for parsing and conversion.
|