show_code 0.1.5 → 0.1.6

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: 216188dab49abd9b3c09fcec1b710e151bfdfc42
4
- data.tar.gz: b5a13deb1dcd082b445544a5ce3541e13abb4f06
3
+ metadata.gz: 917027002bceb30270e19f1419fc1cb1e0d58f42
4
+ data.tar.gz: a6eef9368dc7ee9b58c571386f25fa615d857fa8
5
5
  SHA512:
6
- metadata.gz: 68853a23d8e89bec95e8606521b81283de9d0238a663bfb972bd1564f1c159c39ed78b2a08a3f7d9218037ecc29d3c8c65e35b5f7a470d27117bfd2cf8e6f809
7
- data.tar.gz: 2c8da73e0559bd8309f967e1c9b0706a2665a914f46761b4bcd966163275aee4be1b94596c9fcba1ab44de2102e5f25d6bbff5381de288099a66ed38e67cec17
6
+ metadata.gz: 3b2d93838f1183ef011ce36cfe6c19d8aac52cf332ef0333b365f2d3202e017a9721875d33dbc032092e5ff0a7804a902f9113ef13b758058ebafe652254136f
7
+ data.tar.gz: cdfa8bde87f2dce7c2cbf6547054f3188f0787e96d83bc3190794251f46f86301661c1fa303a1babeeb5d064399e01a8c8277db6b2a8f3998eda5215ed502b4f
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Show Code ##
2
2
 
3
- show_code provides a quick way to show ruby method source codes in terminal.
3
+ show_code provides an easy way to show your ruby method source codes in terminal.
4
4
 
5
5
  ![show_code_example](https://user-images.githubusercontent.com/10070670/27630537-617eb7a0-5c28-11e7-90b8-e76b147dec2e.png)
6
6
 
@@ -21,7 +21,7 @@ You will be able use show_code in `rails c` or `irb`.
21
21
  require "show_code" # just when use irb
22
22
  ShowCode method_object
23
23
  # or
24
- ShowCode method_string
24
+ ShowCode 'YourClassOrModule.your_method'
25
25
  ```
26
26
 
27
27
  ### Examples ###
@@ -48,7 +48,7 @@ ShowCode.open 'ShowCode::Code.new.greet'
48
48
  ```
49
49
 
50
50
  ### TODO ###
51
- - Add more statistic analysis in output
51
+ - Add more statistic analysis for output
52
52
 
53
53
  ### License ###
54
54
  Released under the [MIT](http://opensource.org/licenses/MIT) license. See LICENSE file for details.
@@ -49,7 +49,7 @@ module ShowCode
49
49
  line_number = line - 1
50
50
  output.split("\n").map do |loc|
51
51
  line_number += 1
52
- "\e[33m%i\e[0m #{loc}" % line_number
52
+ "\e[33m#{line_number}\e[0m #{loc}"
53
53
  end.join("\n")
54
54
  end
55
55
 
@@ -1,3 +1,3 @@
1
1
  module ShowCode
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: show_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - cenxky
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-28 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coderay