time 0.2.2 → 0.3.0

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: c649f3e03bc94c67fb970de271850e36dc34f9734b8346b507a36c55e9f7997b
4
- data.tar.gz: b6363dc0af8599975a0e58edbbf7a39ce9b59f1cfe9072806a3179d0cbf455b6
3
+ metadata.gz: 85ec62f9bc0a6c24e4fa69d2aff1c055e49c73cc68daa9ecbcb663c5c7a22d3b
4
+ data.tar.gz: 5eabd0bf9fd0c3af11ebc2c3d2ad126bd33bec59f4e2be888fa8805a1eaecbf2
5
5
  SHA512:
6
- metadata.gz: 6aa3f46a4ac364d93d54f3d3992f514d9893894603808158afecc12cc864e9b3739a96205b48c928c309d7aa330f0a6202be520f3ca9360e025f289b7902bae8
7
- data.tar.gz: 5adb6fc047ab5b42c9931c58398db41c0b613444a705f07885a6330c7a4a267e48ae9b0916649a83f110da1c7889989ce6662993d2de50803837a831b1872c58
6
+ metadata.gz: 9eccf100eba636071c06ee2fdbe9e9b696344b2789156869e217577c5da32e2111dd9c7004356a8a9a596361eeb4b29d51200797a32c2e17cb1467871f8fdaad
7
+ data.tar.gz: 9b6c2b038457f1e5cf6e0061125fd916c74ddd9937d6d66f44c8a6cfffe9e3e6a3669ad6611919de3272f33416fa3d67620d72cb806af32d27aa152f6183c9a1
@@ -3,18 +3,26 @@ name: ubuntu
3
3
  on: [push, pull_request]
4
4
 
5
5
  jobs:
6
+ ruby-versions:
7
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8
+ with:
9
+ engine: cruby
10
+ min_version: 2.6
11
+
6
12
  build:
13
+ needs: ruby-versions
7
14
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
15
  strategy:
9
16
  matrix:
10
- ruby: [ '3.0', 2.7, 2.6, head ]
17
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
11
18
  os: [ ubuntu-latest, macos-latest ]
12
19
  runs-on: ${{ matrix.os }}
13
20
  steps:
14
- - uses: actions/checkout@v3
21
+ - uses: actions/checkout@v4
15
22
  - name: Set up Ruby
16
23
  uses: ruby/setup-ruby@v1
17
24
  with:
18
25
  ruby-version: ${{ matrix.ruby }}
26
+ bundler-cache: true
19
27
  - name: Run test
20
- run: rake test
28
+ run: bundle exec rake test
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
 
6
6
  gem "rake", "~> 12.0"
7
7
  gem "test-unit"
8
+ gem "test-unit-ruby-core"
data/Rakefile CHANGED
@@ -7,11 +7,4 @@ Rake::TestTask.new(:test) do |t|
7
7
  t.test_files = FileList["test/**/test_*.rb"]
8
8
  end
9
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"
15
- end
16
-
17
10
  task :default => :test
data/lib/time.rb CHANGED
@@ -25,6 +25,9 @@ require 'date'
25
25
  # :startdoc:
26
26
 
27
27
  class Time
28
+
29
+ VERSION = "0.3.0"
30
+
28
31
  class << Time
29
32
 
30
33
  #
data/time.gemspec CHANGED
@@ -1,13 +1,20 @@
1
+ name = File.basename(__FILE__, ".gemspec")
2
+ version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
3
+ break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
4
+ /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
5
+ end rescue nil
6
+ end
7
+
1
8
  Gem::Specification.new do |spec|
2
- spec.name = "time"
3
- spec.version = "0.2.2"
9
+ spec.name = name
10
+ spec.version = version
4
11
  spec.authors = ["Tanaka Akira"]
5
12
  spec.email = ["akr@fsij.org"]
6
13
 
7
14
  spec.summary = %q{Extends the Time class with methods for parsing and conversion.}
8
15
  spec.description = %q{Extends the Time class with methods for parsing and conversion.}
9
16
  spec.homepage = "https://github.com/ruby/time"
10
- spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
17
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
11
18
  spec.licenses = ["Ruby", "BSD-2-Clause"]
12
19
 
13
20
  spec.metadata["homepage_uri"] = spec.homepage
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.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanaka Akira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-30 00:00:00.000000000 Z
11
+ date: 2023-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: date
@@ -57,7 +57,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 2.3.0
60
+ version: 2.4.0
61
61
  required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="