rblineprof-browser 0.1.0 → 1.0.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/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/lib/rblineprof/browser.rb +6 -6
- data/lib/rblineprof/browser/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6c7856aa333e6252a0d7d98ac46b8e7aba4989d
|
|
4
|
+
data.tar.gz: 15cca1c31b690453281c09d0e38446d869aee595
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50a922aa80eb813f9d556f0786d95aff371d5cc73f6d0c13ad6ead0087172d6faad29df0dd3cc1dbd1080f951a7a562590db1a2eef587a0d2e5ed34b6d848c3e
|
|
7
|
+
data.tar.gz: c72ef4ebc6881c2a352a50186c7247a4740394f6dcb89192be0739cbb3472b0eb3f9975f16e8b6d2f302a9cf1daded6d7859f2f3d42ceb4c31bc4527d60999cd
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -36,7 +36,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
36
36
|
|
|
37
37
|
## Contributing
|
|
38
38
|
|
|
39
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/nbudin/rblineprof-browser. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
## License
|
data/lib/rblineprof/browser.rb
CHANGED
|
@@ -11,7 +11,7 @@ module Rblineprof
|
|
|
11
11
|
profile = lineprof(regex, &block)
|
|
12
12
|
new(profile)
|
|
13
13
|
end
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
def self.profile_and_browse(regex = /./, &block)
|
|
16
16
|
from_lineprof(regex, &block).browse
|
|
17
17
|
end
|
|
@@ -45,22 +45,22 @@ module Rblineprof
|
|
|
45
45
|
puts "Filenames:"
|
|
46
46
|
profile.keys.sort.map { |fn| " - #{fn}" }.each { |line| puts line }
|
|
47
47
|
end
|
|
48
|
-
|
|
48
|
+
|
|
49
49
|
def browse
|
|
50
50
|
done = false
|
|
51
51
|
while !done do
|
|
52
52
|
highline.choose do |menu|
|
|
53
53
|
menu.prompt = "Choose a file to view the profile of: "
|
|
54
|
-
|
|
55
|
-
profile.keys.each do |filename|
|
|
54
|
+
|
|
55
|
+
profile.keys.sort.each do |filename|
|
|
56
56
|
menu.choice(filename) { print_profile(filename) }
|
|
57
57
|
end
|
|
58
|
-
|
|
58
|
+
|
|
59
59
|
menu.choice("Quit") { done = true }
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
|
-
|
|
63
|
+
|
|
64
64
|
private
|
|
65
65
|
def highline
|
|
66
66
|
@highline ||= HighLine.new
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rblineprof-browser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nat Budin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rblineprof
|
|
@@ -103,6 +103,7 @@ extra_rdoc_files: []
|
|
|
103
103
|
files:
|
|
104
104
|
- ".gitignore"
|
|
105
105
|
- ".travis.yml"
|
|
106
|
+
- CHANGELOG.md
|
|
106
107
|
- CODE_OF_CONDUCT.md
|
|
107
108
|
- Gemfile
|
|
108
109
|
- LICENSE.txt
|
|
@@ -133,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
134
|
version: '0'
|
|
134
135
|
requirements: []
|
|
135
136
|
rubyforge_project:
|
|
136
|
-
rubygems_version: 2.4.5
|
|
137
|
+
rubygems_version: 2.4.5.1
|
|
137
138
|
signing_key:
|
|
138
139
|
specification_version: 4
|
|
139
140
|
summary: An easy way to profile slow code in your Ruby console
|