geny 2.1.4 → 2.2.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
2
  SHA1:
3
- metadata.gz: f7804461eee63b3bde29b4cb845b48495beb971a
4
- data.tar.gz: 112ed6a31d7e95fa182146ec49fd6894fcad4997
3
+ metadata.gz: e2286049f68c8960495c76620fc2ee09f9c24750
4
+ data.tar.gz: 1bd837179aa4586403a537d674fc835723a1c1d7
5
5
  SHA512:
6
- metadata.gz: 4e08c3295f7d454a2addee666f1cbbc2830434adacb9a82e9b9aea6b973e2eaf799ea9a3afe462f513968ba6ca6166d72c7a02a74d79b217f965e8766f1e8bd7
7
- data.tar.gz: 4f92d295a6b7fd5d64c5bb87acf52cd40e9985a57f6ddc13f4b2c9385e735da946df578cb49fbb1a5e9001892215d1c16e43e300e4add286434df1c49a03ffff
6
+ metadata.gz: a8d4c6173e8929ed5e47e6be62c0cdbdf75afe1d5b4f953e3e9875f0656eb8f964751743ac8fb3cb1bf4f536e212c09ee94de039c416acc072f822e93a2f5ae2
7
+ data.tar.gz: 66499adbb817910d08bbd1775f712b6ec6f65f693a61351ec7a396d3a0e5ecc4f844fb286823439a4b132cf1c55b95b5751088d749aadda48324bcc735bbec61
data/.travis.yml CHANGED
@@ -5,3 +5,4 @@ cache: bundler
5
5
  rvm:
6
6
  - 2.5.3
7
7
  before_install: gem install bundler -v 2.0.2
8
+ after_script: bundle exec rake coveralls:push
data/Gemfile CHANGED
@@ -3,3 +3,4 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in geny.gemspec
4
4
  gemspec
5
5
 
6
+ gem "coveralls", require: false
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Geny [![Build Status](https://travis-ci.org/rzane/geny.svg?branch=master)](https://travis-ci.org/rzane/geny)
1
+ # Geny [![Build Status](https://travis-ci.org/rzane/geny.svg?branch=master)](https://travis-ci.org/rzane/geny) [![Coverage Status](https://coveralls.io/repos/github/rzane/geny/badge.svg?branch=master)](https://coveralls.io/github/rzane/geny?branch=master)
2
2
 
3
3
  A tool for building code generators.
4
4
 
data/Rakefile CHANGED
@@ -1,6 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
2
 
3
+ require "coveralls/rake/task"
4
+ Coveralls::RakeTask.new
5
+
6
+ require "rspec/core/rake_task"
4
7
  RSpec::Core::RakeTask.new(:spec)
5
8
 
6
- task :default => :spec
9
+ task default: :spec
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Geny
2
- VERSION = "2.1.4"
2
+ VERSION = "2.2.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.1.4
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-15 00:00:00.000000000 Z
11
+ date: 2019-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: argy