ruby-edit 0.1.1 → 0.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: b42098c6f29c7923cba0db3a0543d8fda5c3baa4
4
- data.tar.gz: 499992f989cfe645b3a36f9d07f4fa147a786625
3
+ metadata.gz: b8ce0b6ad8fbdda4911586a085a0254a4bb03847
4
+ data.tar.gz: ff638bfbc7891d379ed818078862698bc097b717
5
5
  SHA512:
6
- metadata.gz: 397bbadef327eaa22b3b981c1cfae1dcb750f39e25513c7845aba45eea568f1828274f3b685c12e38ba0f7739aba365108de08191e0827e93b4d8782948fcdc9
7
- data.tar.gz: 04fd417aec9e0e23d09e4877c2d75ff56c88e8d9aec67a86ea41345a57bf4f91846d1f110e02441996a5285617c970fd82ae823d77ee32b0ed44ebcb81937e44
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.1.1)
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.4)
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)
@@ -9,7 +9,6 @@ require 'ruby_edit/writer'
9
9
 
10
10
  module RubyEdit
11
11
  module Commands
12
- # TODO: Write an integration spec for this
13
12
  class Edit
14
13
  def initialize(options)
15
14
  @grep = RubyEdit::Grep.new(options)
@@ -11,7 +11,7 @@ module RubyEdit
11
11
  end
12
12
 
13
13
  def execute(output: $stdout)
14
- @result = @grep.search
14
+ @result = @grep.search(output: output)
15
15
  output.puts 'OK'
16
16
  end
17
17
  end
@@ -10,7 +10,7 @@ module RubyEdit
10
10
  end
11
11
 
12
12
  def editor
13
- @config.fetch(:editor).to_sym
13
+ @config.fetch(:editor)&.to_sym || :vim
14
14
  end
15
15
 
16
16
  def editor=(editor)
@@ -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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyEdit
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.0'
5
5
  end
6
6
 
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.1.1
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-12 00:00:00.000000000 Z
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.6.11
408
+ rubygems_version: 2.5.2
409
409
  signing_key:
410
410
  specification_version: 4
411
411
  summary: Edit grep results in one file