mkfiles 0.1.1 → 0.1.2
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/Gemfile.lock +1 -1
- data/README.md +21 -1
- data/lib/mkfiles/version.rb +1 -1
- metadata +2 -4
- data/exe/mkfiles +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75d413d001b33f32d72ff9d6871256548644ee1f
|
|
4
|
+
data.tar.gz: 1568b8aff13cf617f4ae07895dc1fe5399af19f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12341e47add908f51da99f68a8d9cf0b90cc9dc49b6e481b860fd8112777083ad2d4d908a4d87a3b769c630294b38fae5ec7a521b6afe8094882903c7c2be91e
|
|
7
|
+
data.tar.gz: bc0bd836ad85812c0c04249733b7e44158762875fbc14e2841d51d637ee2f82bf2476ee3746a16f66f57e44e53d937f5f6e555a0f145e5a8295cb08d93cdcbe5
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
A gem for generating directories, subdirectiories and empty files automaticaly based on paths from a yaml file.
|
|
4
4
|
|
|
5
|
+
For now it doesn't delete any file but it will overwrite if there are any conflicts.
|
|
6
|
+
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
Add this line to your application's Gemfile:
|
|
@@ -20,7 +22,19 @@ Or install it yourself as:
|
|
|
20
22
|
|
|
21
23
|
## Usage
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
Reqiure module and method.
|
|
26
|
+
|
|
27
|
+
```ruby
|
|
28
|
+
"mkfiles/generate_from_file"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Use it.
|
|
32
|
+
|
|
33
|
+
```ruby
|
|
34
|
+
Mkfiles.generate_from_file("sample.yml")
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Put a path to your yml file. Pay attention for your current working directory if you are using relative start place in your yml file.
|
|
24
38
|
|
|
25
39
|
## The yaml file
|
|
26
40
|
|
|
@@ -45,6 +59,12 @@ sub_paths:
|
|
|
45
59
|
- qewasdsdf/sd23e2fv/dwqqwdqwef/
|
|
46
60
|
- New Folderr53453/New Folder44444574/new document63452.txt
|
|
47
61
|
```
|
|
62
|
+
|
|
63
|
+
## To do features
|
|
64
|
+
|
|
65
|
+
- CLI commands
|
|
66
|
+
- Template yml file generator
|
|
67
|
+
|
|
48
68
|
## Development
|
|
49
69
|
|
|
50
70
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/mkfiles/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mkfiles
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bartłomiej Sielski
|
|
@@ -56,8 +56,7 @@ description: A gem for generating directories, subdirectiories and empty files b
|
|
|
56
56
|
on paths from a yaml file.
|
|
57
57
|
email:
|
|
58
58
|
- b.sielski@yandex.com
|
|
59
|
-
executables:
|
|
60
|
-
- mkfiles
|
|
59
|
+
executables: []
|
|
61
60
|
extensions: []
|
|
62
61
|
extra_rdoc_files: []
|
|
63
62
|
files:
|
|
@@ -71,7 +70,6 @@ files:
|
|
|
71
70
|
- Rakefile
|
|
72
71
|
- bin/console
|
|
73
72
|
- bin/setup
|
|
74
|
-
- exe/mkfiles
|
|
75
73
|
- lib/mkfiles.rb
|
|
76
74
|
- lib/mkfiles/absolutize_paths.rb
|
|
77
75
|
- lib/mkfiles/config.rb
|