tryrb 1.0.0 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 312d018b8d11c953256d4d7635b14d025957f94a
4
- data.tar.gz: fc8d1b1ce32cdd7892c1bedb5117dd9bbe167f47
3
+ metadata.gz: a7252d4539cd37e1802b97cef43868e1c2c4ec3d
4
+ data.tar.gz: 86c19f2d675deb2b3b29f0edcaf5815a143286ec
5
5
  SHA512:
6
- metadata.gz: 70ee59a3790889c577a75c4e9f294e84abca90f03fbe803f53fbac129058975e5034df4f5e0ebdf8b3f2f5da49b234479dabc93c5d2592dbd93206ec0e9709f8
7
- data.tar.gz: fbd48602e5d8f3ec9884fc82212be8dfbd164234ddc9777de4c501295f1f63c1bc59824da6c35feb5f3993b5b583493824a583bc920e99a21dfe6ef52fb69424
6
+ metadata.gz: b19eb84f36fd761916f048f60e75a3a5e6e971475db75b17919226e5a63e54b36e795f3615d6420ef77a4a4d16df76c2292c3042399dbd123540b7da0a5cba16
7
+ data.tar.gz: 3f7dcfd287acd5b637498b0a97b488588dbe1e5768852d404ff8c61ef303e7112d997378bbcde8837651226bb5a88988531610bc17abe2ee50a052353a2a1dce
data/lib/tryrb/cli.rb CHANGED
@@ -7,7 +7,7 @@ module TryRb
7
7
  class << self
8
8
  attr_writer :config
9
9
  def start(args)
10
- system(@config.editor, fullpath(args[0]))
10
+ system([@config.editor, fullpath(args[0])] * ' ')
11
11
  end
12
12
 
13
13
  def fullpath(filename)
data/lib/tryrb/version.rb CHANGED
@@ -2,7 +2,7 @@ module TryRb
2
2
  class Version
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 0
5
+ PATCH = 2
6
6
  PRE = nil
7
7
 
8
8
  class << self
data/spec/cli_spec.rb CHANGED
@@ -7,13 +7,13 @@ describe TryRb::CLI do
7
7
  describe '::start' do
8
8
  it "should call system method with an editor" do
9
9
  TryRb::Config.instance.path = fixture_file_path('tryrbrc')
10
- expect(TryRb::CLI).to receive(:system).with('emacs', '~/tmp/foo/tryrb/20140101000000_filename.rb')
10
+ expect(TryRb::CLI).to receive(:system).with('emacs ~/tmp/foo/tryrb/20140101000000_filename.rb')
11
11
  TryRb::CLI.start(["filename"])
12
12
  end
13
13
 
14
14
  it "should call system method with right filepath and default editor" do
15
15
  TryRb::Config.instance.path = fixture_file_path('foorc')
16
- expect(TryRb::CLI).to receive(:system).with('mvim', '~/tmp/tryrb/20140101000000_filename.rb')
16
+ expect(TryRb::CLI).to receive(:system).with('mvim ~/tmp/tryrb/20140101000000_filename.rb')
17
17
  TryRb::CLI.start(["filename"])
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tryrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Han