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 +4 -4
- data/CHANGELOG.md +4 -1
- data/README.md +1 -1
- data/lib/rails/crud/tools/cli.rb +4 -0
- data/lib/rails/crud/tools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b9780c9345c5eb0ec2a7647681dac9a64b57194db6ef5fa4bd8ee92788b05fd
|
4
|
+
data.tar.gz: 708d9395be78f1e80cebc09d9cc24df79d24d3dd731ff72b528ce2e7b0376ba7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 219063db88019b029890b3263d33569b96e771fe7e01c65631d07a12fdb12ac7151ef90a3c7a631c161b66e407f2a5e2d21731f25ae783d52918b78e8a34e34f
|
7
|
+
data.tar.gz: cf01b00c5edf43220459ef19175f693acb0828d67c036b45a2996912397647d616365bda53d28f024c6c9fd2a54a379fd59127d6c0744296e943a02c4c1210ba
|
data/CHANGELOG.md
CHANGED
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'
|
12
|
+
gem 'rails-crud-tools'
|
13
13
|
```
|
14
14
|
|
15
15
|
Then execute:
|
data/lib/rails/crud/tools/cli.rb
CHANGED
@@ -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}"
|