geny 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/geny.gemspec +3 -2
- data/lib/geny/actions/files.rb +19 -1
- data/lib/geny/version.rb +1 -1
- metadata +21 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f1865a94af00ab3badb4bdbab792430b36231fec33bfa08474e45e323bb0c319
|
4
|
+
data.tar.gz: 6b627f7f4ffd8e6b4faa044c67351f6ebc1ff671f06bedc667da75811245a8b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ed5e8d8ae37ec2bc44ee0c40b945ca8e9dc8031056b6da702c944ee3310186a8e14b87cfafb5e85d2c4b94060282cf1afd6318579e60a88b7613b479234a39f
|
7
|
+
data.tar.gz: bbb6a96d6ec5b22e17037ffbe8d2678b8bd4a6aa3aa30dde873246b19ba9e3cd64d0977ae446e2258c030496ac879a28b15ae94d1a0f9539cb51ce016a5e0767
|
data/geny.gemspec
CHANGED
@@ -27,10 +27,11 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency "argy", "~> 0.2.2"
|
28
28
|
spec.add_dependency "pastel", "~> 0.7.3"
|
29
29
|
spec.add_dependency "tty-file", "~> 0.8.0"
|
30
|
-
spec.add_dependency "tty-prompt", "~> 0.
|
30
|
+
spec.add_dependency "tty-prompt", "~> 0.21.0"
|
31
31
|
|
32
32
|
spec.add_development_dependency "bundler", "~> 2.0"
|
33
|
-
spec.add_development_dependency "rake", "~>
|
33
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
34
34
|
spec.add_development_dependency "rspec", "~> 3.0"
|
35
35
|
spec.add_development_dependency "simplecov", "~> 0.17.1"
|
36
|
+
spec.add_development_dependency "file_spec", "~> 0.1.0"
|
36
37
|
end
|
data/lib/geny/actions/files.rb
CHANGED
@@ -19,9 +19,18 @@ module Geny
|
|
19
19
|
# @example
|
20
20
|
# files.create("test.txt")
|
21
21
|
# files.create("test.txt", "hello!")
|
22
|
-
# files.
|
22
|
+
# files.create("test.txt", force: true)
|
23
23
|
def_delegator TTY::File, :create_file, :create
|
24
24
|
|
25
|
+
# @!method copy
|
26
|
+
# Copy a file
|
27
|
+
# @see TTY::File.copy
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
# files.copy("foo.txt", "bar.txt")
|
31
|
+
# files.copy("foo.txt", "bar.txt", force: true)
|
32
|
+
def_delegator TTY::File, :copy_file, :copy
|
33
|
+
|
25
34
|
# @!method create_dir
|
26
35
|
# Create a directory recursively
|
27
36
|
# @see TTY::File.create_dir
|
@@ -30,6 +39,15 @@ module Geny
|
|
30
39
|
# files.create_dir("app/controllers")
|
31
40
|
def_delegator TTY::File, :create_dir
|
32
41
|
|
42
|
+
# @!method copy_dir
|
43
|
+
# Copy a directory recursively
|
44
|
+
# @see TTY::File.copy_dir
|
45
|
+
#
|
46
|
+
# @example
|
47
|
+
# files.copy_dir("foo", "bar")
|
48
|
+
# files.copy_dir("foo", "bar", force: true)
|
49
|
+
def_delegator TTY::File, :copy_dir
|
50
|
+
|
33
51
|
# @!method remove
|
34
52
|
# Remove a file
|
35
53
|
# @see TTY::File.remove_file
|
data/lib/geny/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ray Zane
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: argy
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.21.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.21.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '13.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '13.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 0.17.1
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: file_spec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.1.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.1.0
|
125
139
|
description:
|
126
140
|
email:
|
127
141
|
- raymondzane@gmail.com
|
@@ -184,8 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
198
|
- !ruby/object:Gem::Version
|
185
199
|
version: '0'
|
186
200
|
requirements: []
|
187
|
-
|
188
|
-
rubygems_version: 2.6.14
|
201
|
+
rubygems_version: 3.0.3
|
189
202
|
signing_key:
|
190
203
|
specification_version: 4
|
191
204
|
summary: The only tool you need to build a code generator.
|