rails-crud-tools 0.4.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 768af8c4b3d9581a61568c0817ae477ef8d2f30552825ba1c69fa7daa4d748dc
4
- data.tar.gz: aab060f00958cfa1c1969f7bb87692854b8a5c6d638cc7b31b4c540b6071e871
3
+ metadata.gz: 4b9780c9345c5eb0ec2a7647681dac9a64b57194db6ef5fa4bd8ee92788b05fd
4
+ data.tar.gz: 708d9395be78f1e80cebc09d9cc24df79d24d3dd731ff72b528ce2e7b0376ba7
5
5
  SHA512:
6
- metadata.gz: 0e58858f11d6fa4aab47fa791881ee52e2d714f347abee711eaeedfd57f780f51c63f0f8fae3964eb897b454e93fe116a0fb1cbcf57892d5f22612b3e7bd5500
7
- data.tar.gz: 96a3967933bf721e59d1007a2fe12a3103f52866197401436523355282cc72367417c62a462b9490395b0f8ade376b8d8988b574df0178edb1ba012668085193
6
+ metadata.gz: 219063db88019b029890b3263d33569b96e771fe7e01c65631d07a12fdb12ac7151ef90a3c7a631c161b66e407f2a5e2d21731f25ae783d52918b78e8a34e34f
7
+ data.tar.gz: cf01b00c5edf43220459ef19175f693acb0828d67c036b45a2996912397647d616365bda53d28f024c6c9fd2a54a379fd59127d6c0744296e943a02c4c1210ba
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
- ## [0.4.0] - 2025-01-03
1
+ ## [0.4.1] - 2025-01-04
2
+ - 初期化時にベースディレクトリが存在しない場合は作成する
3
+
4
+ ## [0.4.0] - 2025-01-04
2
5
  - セルの値が変化する場合のみ保存するよう修正
3
6
  - 設定ファイルにシート名を追加
4
7
  - 設定ファイルにフォント名を追加
data/README.md CHANGED
@@ -9,7 +9,7 @@ It simplifies logging and managing CRUD operations seamlessly within a Rails app
9
9
  Add the gem to the `development` group in your application's Gemfile by including the following lines:
10
10
 
11
11
  ```ruby
12
- gem 'rails-crud-tools', git: 'https://github.com/YamabikoLab/rails-crud-tools', tag: 'v*.*.*'
12
+ gem 'rails-crud-tools'
13
13
  ```
14
14
 
15
15
  Then execute:
@@ -111,6 +111,10 @@ module RailsCrudTools
111
111
 
112
112
  # ファイルを保存
113
113
  crud_file = config.crud_file_path
114
+ base_dir = File.dirname(crud_file)
115
+
116
+ # base_dirが存在しなければ作成
117
+ FileUtils.mkdir_p(base_dir) unless Dir.exist?(base_dir)
114
118
  workbook.write(crud_file)
115
119
 
116
120
  puts "Output: #{crud_file}"
@@ -3,7 +3,7 @@
3
3
  module Rails
4
4
  module Crud
5
5
  module Tools
6
- VERSION = "0.4.0"
6
+ VERSION = "0.4.1"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-crud-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yhijikata