green_day 1.1.0 → 1.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a382b709216ac2a7d03cbfd4ffe96a8922d3057306129182c47598202e89db5
4
- data.tar.gz: 16a3e1f16df20721da2c285c066f5d3546beb83e01158bc5c60f91bd06532cfb
3
+ metadata.gz: bed777519c5b732e0c4e4ebc54ff899be8e6bbf4545f98a803d8f00b3311126f
4
+ data.tar.gz: 0dd3771285b889d3d036c56e59db0557d83df7cb39c4a83269dac0b5069c0387
5
5
  SHA512:
6
- metadata.gz: 2f2c9365890badf1c788e73a1e8eb38e25bf15188cbfbd4adcab43fd701fcb5e706d64a10057ed14d070ea45da944be9ec6d5f980cb8fe8fab1e9b53dbc6c9ee
7
- data.tar.gz: 80c5a108f8909d61f2f8d35718d6f2020da1dd5c233f1c17195680cb41a17895397e454dcc9c8e349a34d39168c2b3aa278c39fdccef84756bec20003215b5c4
6
+ metadata.gz: 36262c7aeb8c52ccdd159b6f01f2d1a5d350a95ef1ce3cd6e458faaf3bcb26551b05acf8a6fd77b135a187098e6c2ffff5511b05e6ae816aadaf944bd9bce761
7
+ data.tar.gz: 29cdb13b552938f6a1149618ca6d47f927b95f86d6eb1fe48b5d7fe307fe872162bdf1cd5773dc4f45ecc033e668f4f03c7db755e340d96d8466c72e63e63fc7
@@ -18,11 +18,11 @@ jobs:
18
18
  contents: read
19
19
 
20
20
  steps:
21
- - uses: actions/checkout@v3
22
- - name: Set up Ruby 3.2
21
+ - uses: actions/checkout@v5
22
+ - name: Set up Ruby 3.4
23
23
  uses: ruby/setup-ruby@v1
24
24
  with:
25
- ruby-version: 3.2
25
+ ruby-version: 3.4
26
26
 
27
27
  - run: bundle install
28
28
 
@@ -11,7 +11,7 @@ jobs:
11
11
  strategy:
12
12
  matrix:
13
13
  ruby-version:
14
- - 3.2.1 # Atcoderが採用しているバージョン
14
+ - 3.4.5 # Atcoderが採用しているバージョン
15
15
  steps:
16
16
  - uses: actions/checkout@v3
17
17
  - name: Set up Ruby ${{ matrix.ruby-version }}
@@ -32,7 +32,7 @@ jobs:
32
32
  - uses: actions/checkout@v3
33
33
  - uses: ruby/setup-ruby@v1
34
34
  with:
35
- ruby-version: 3.2.1
35
+ ruby-version: 3.4.5
36
36
  - name: Bundle install
37
37
  run: bundle install
38
38
  - name: Run rubocop
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-rake
3
3
  - rubocop-rspec
4
4
 
data/Gemfile CHANGED
@@ -8,6 +8,8 @@ gemspec
8
8
  gem 'bundler', '~> 2.0'
9
9
  gem 'codecov'
10
10
  gem 'dotenv'
11
+ gem 'logger'
12
+ gem 'ostruct'
11
13
  gem 'rake', '>= 12.3.3'
12
14
  gem 'rspec', '~> 3.0'
13
15
  gem 'rubocop'
data/README.md CHANGED
@@ -77,8 +77,8 @@ RSpec.describe 'abc150/A.rb' do
77
77
  end
78
78
  ```
79
79
 
80
- ### template
81
- You can use template file for creating spec.
80
+ ### Template
81
+ You can use a template file for creating specs.
82
82
  GreenDay uses `template.rb` in the working directory as a template file.
83
83
 
84
84
  ```ruby
data/green_day.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'green_day/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.required_ruby_version = '>= 3.2.1'
8
+ spec.required_ruby_version = '>= 3.4.5'
9
9
  spec.name = 'green_day'
10
10
  spec.executables = ['green_day']
11
11
  spec.version = GreenDay::VERSION
data/lib/green_day/cli.rb CHANGED
@@ -3,6 +3,8 @@
3
3
  require 'thor'
4
4
  require 'colorize'
5
5
  require 'io/console'
6
+ require 'fileutils'
7
+
6
8
  require_relative 'atcoder_client'
7
9
  require_relative 'contest'
8
10
  require_relative 'task_source_to_file_worker'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GreenDay
4
- VERSION = '1.1.0'
4
+ VERSION = '1.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: green_day
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - qwyng
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-05-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: colorize
@@ -117,7 +116,6 @@ metadata:
117
116
  homepage_uri: https://github.com/QWYNG/green_day
118
117
  source_code_uri: https://github.com/QWYNG/green_day
119
118
  rubygems_mfa_required: 'true'
120
- post_install_message:
121
119
  rdoc_options: []
122
120
  require_paths:
123
121
  - lib
@@ -125,15 +123,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
123
  requirements:
126
124
  - - ">="
127
125
  - !ruby/object:Gem::Version
128
- version: 3.2.1
126
+ version: 3.4.5
129
127
  required_rubygems_version: !ruby/object:Gem::Requirement
130
128
  requirements:
131
129
  - - ">="
132
130
  - !ruby/object:Gem::Version
133
131
  version: '0'
134
132
  requirements: []
135
- rubygems_version: 3.4.10
136
- signing_key:
133
+ rubygems_version: 3.6.9
137
134
  specification_version: 4
138
135
  summary: CLI tool for AtCoder and Ruby
139
136
  test_files: []