ruby-edit 0.1.1 → 0.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/Gemfile.lock +2 -2
- data/lib/ruby_edit/commands/edit.rb +0 -1
- data/lib/ruby_edit/commands/grep.rb +1 -1
- data/lib/ruby_edit/configuration.rb +1 -1
- data/lib/ruby_edit/source_file.rb +4 -4
- data/lib/ruby_edit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8ce0b6ad8fbdda4911586a085a0254a4bb03847
|
4
|
+
data.tar.gz: ff638bfbc7891d379ed818078862698bc097b717
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aec4d33402fb366d9a58fba203ae883ee902a66f7a9a8d1c5c813d673f95c6bdb53be1e39af094db3c9d85bcecbc8df94f02f24567c5fe9556a53663d7fa09c
|
7
|
+
data.tar.gz: 166b3018553d5d2a2773d4890de21375c060cd1896ac80e8826624f287c62b1ca9cd03befbe60f64ed6fc23833eb0a97c264df11474cc1b08bd15882f91680c5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby-edit (0.
|
4
|
+
ruby-edit (0.2.0)
|
5
5
|
pastel (~> 0.7.2)
|
6
6
|
thor (~> 0.20.0)
|
7
7
|
tty-color (~> 0.4.2)
|
@@ -111,7 +111,7 @@ GEM
|
|
111
111
|
tty-cursor (~> 0.5.0)
|
112
112
|
tty-screen (~> 0.6.4)
|
113
113
|
wisper (~> 2.0.0)
|
114
|
-
tty-screen (0.6.
|
114
|
+
tty-screen (0.6.5)
|
115
115
|
tty-spinner (0.8.0)
|
116
116
|
tty-cursor (>= 0.5.0)
|
117
117
|
tty-table (0.10.0)
|
@@ -4,12 +4,12 @@ require 'ruby_edit/command'
|
|
4
4
|
|
5
5
|
module RubyEdit
|
6
6
|
class SourceFile < RubyEdit::Command
|
7
|
-
def populate(content)
|
8
|
-
generator.create_file(RubyEdit::SOURCE_FILE_LOCATION, content, force: true)
|
7
|
+
def populate(content, **options)
|
8
|
+
generator.create_file(RubyEdit::SOURCE_FILE_LOCATION, content, force: true, **options)
|
9
9
|
end
|
10
10
|
|
11
|
-
def delete
|
12
|
-
generator.remove_file(RubyEdit::SOURCE_FILE_LOCATION)
|
11
|
+
def delete(**options)
|
12
|
+
generator.remove_file(RubyEdit::SOURCE_FILE_LOCATION, **options)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
data/lib/ruby_edit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-edit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- finn-francis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pastel
|
@@ -405,7 +405,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
405
405
|
version: '0'
|
406
406
|
requirements: []
|
407
407
|
rubyforge_project:
|
408
|
-
rubygems_version: 2.
|
408
|
+
rubygems_version: 2.5.2
|
409
409
|
signing_key:
|
410
410
|
specification_version: 4
|
411
411
|
summary: Edit grep results in one file
|