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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 63e0940e39b3fae585bf25fc2203664e3149a9d4
4
- data.tar.gz: 0ce7235f5553af6c59bee867cda1e5ab19fdd70c
2
+ SHA256:
3
+ metadata.gz: f1865a94af00ab3badb4bdbab792430b36231fec33bfa08474e45e323bb0c319
4
+ data.tar.gz: 6b627f7f4ffd8e6b4faa044c67351f6ebc1ff671f06bedc667da75811245a8b9
5
5
  SHA512:
6
- metadata.gz: e49631f224c2741b318f7cf9f9a16b6fc857d176a4a156453d95b3729f3055f77b50a98eb37e4a4513198d80fa17a096f257928d118de0d8efbb31c04ad56915
7
- data.tar.gz: 928ad9248746055f875d874ad19998c57a3185de9774bb4e946bbb8b328e618c1599938672239f5511a60c2d09c661e326e1d45d14f8ea398416d85dcf3bd2c7
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.20.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", "~> 10.0"
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
@@ -19,9 +19,18 @@ module Geny
19
19
  # @example
20
20
  # files.create("test.txt")
21
21
  # files.create("test.txt", "hello!")
22
- # files.remove("test.txt", force: true)
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
@@ -1,3 +1,3 @@
1
1
  module Geny
2
- VERSION = "2.4.0"
2
+ VERSION = "2.5.0"
3
3
  end
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.0
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: 2019-12-23 00:00:00.000000000 Z
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.20.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.20.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: '10.0'
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: '10.0'
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
- rubyforge_project:
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.