read_source 0.2.2 → 0.2.3

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: 1e2b9a4bf7b96355cb4ca92c1c5cba7eb95afbe4
4
- data.tar.gz: 357675e49290e47b79d7cfc1531fa1b4c40da0be
3
+ metadata.gz: 336cda1615c6ad734c6d8078a3a7841de8641a33
4
+ data.tar.gz: 7fa35d043f09e885bb887fff8a7f3300a7fb38c9
5
5
  SHA512:
6
- metadata.gz: 936410346fcd4c0f8a4f2cf081b40b0b3beb9170ba5db17cb7b13b09712668ef166c7ad97024a65eedc3a64c022ab8385f0891c4a7808e14be85558eaec0e873
7
- data.tar.gz: dd3f670c46f70bed6da723f31f04d565cd53179d9f6e59d47185d4b1ce5d21c9760d24247887c45d8a2b0066a883ed2f63351fb7deaf7da8fd79b24235183942
6
+ metadata.gz: d1156c517b8f865fcaed3bc66bf36d35073b579591349dbaf75b9c934f139abe24b7f7f0f5c5905277800a8a67b0f6daf6463689dceed6e3b11a42fb4eda8dfa
7
+ data.tar.gz: 8d51cd63a5e7c72679dba678618b914d0cba0d09a95dcab08001fa63d13989f8e49f019fb54c470e60b2276cc5d8330bf3424be6ff72412fc2bda871ba7c60cd
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.1
5
- before_install: gem install bundler -v 1.13.6
4
+ - 2.4.0
5
+ before_install: gem install bundler -v 1.13.7
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # ReadSource
2
+ [![Gem Version](https://badge.fury.io/rb/read_source.svg)](https://badge.fury.io/rb/read_source)
3
+ [![Build Status](https://travis-ci.org/danielpclark/read_source.svg?branch=master)](https://travis-ci.org/danielpclark/read_source)
4
+ [![SayThanks.io](https://img.shields.io/badge/SayThanks.io-%E2%98%BC-1EAEDB.svg)](https://saythanks.io/to/danielpclark)
2
5
 
3
6
  Haha! This little gem was a distraction from my duties but I had to make it.
4
7
 
@@ -1,3 +1,3 @@
1
1
  module ReadSource
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -1,9 +1,12 @@
1
+ # TODO: Save irb history if in irb session.
2
+
1
3
  module ReadSource
2
4
  module VimSource
3
- def vim
5
+ def vim servername=nil
4
6
  file, line_num = send :source_location
5
7
  read_only = !!/#{ENV["GEM_HOME"]}/.match(file) ? "-M" : ""
6
- exec("vim %s +%s %s" % [read_only, line_num, file]) if file
8
+ remote = "#{('--servername ' + servername.to_s) if servername} --remote-silent"
9
+ exec("vim #{remote} %s +%s %s" % [read_only, line_num, file]) if file
7
10
  end
8
11
  end
9
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: read_source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark