geny 2.1.4 → 2.2.0
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/.travis.yml +1 -0
- data/Gemfile +1 -0
- data/README.md +1 -1
- data/Rakefile +5 -2
- data/lib/geny/actions/files.rb +10 -0
- data/lib/geny/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2286049f68c8960495c76620fc2ee09f9c24750
|
4
|
+
data.tar.gz: 1bd837179aa4586403a537d674fc835723a1c1d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8d4c6173e8929ed5e47e6be62c0cdbdf75afe1d5b4f953e3e9875f0656eb8f964751743ac8fb3cb1bf4f536e212c09ee94de039c416acc072f822e93a2f5ae2
|
7
|
+
data.tar.gz: 66499adbb817910d08bbd1775f712b6ec6f65f693a61351ec7a396d3a0e5ecc4f844fb286823439a4b132cf1c55b95b5751088d749aadda48324bcc735bbec61
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Geny [](https://travis-ci.org/rzane/geny)
|
1
|
+
# Geny [](https://travis-ci.org/rzane/geny) [](https://coveralls.io/github/rzane/geny?branch=master)
|
2
2
|
|
3
3
|
A tool for building code generators.
|
4
4
|
|
data/Rakefile
CHANGED
data/lib/geny/actions/files.rb
CHANGED
@@ -77,6 +77,16 @@ module Geny
|
|
77
77
|
TTY::File.chmod(path, coerce_mode(mode), *args)
|
78
78
|
end
|
79
79
|
|
80
|
+
# @see #insert
|
81
|
+
def insert_before(path, pattern, content, **opts)
|
82
|
+
insert(path, content, before: pattern, **opts)
|
83
|
+
end
|
84
|
+
|
85
|
+
# @see #insert
|
86
|
+
def insert_after(path, pattern, content, **opts)
|
87
|
+
insert(path, content, after: pattern, **opts)
|
88
|
+
end
|
89
|
+
|
80
90
|
private
|
81
91
|
|
82
92
|
def coerce_mode(mode)
|
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.2.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-
|
11
|
+
date: 2019-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: argy
|