rblineprof-browser 0.1.0 → 1.0.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: 8c210b47e2059c0fb01a0624957daf520d104854
4
- data.tar.gz: bbc100bf4f2909409b691d582d84e9aacfb00e06
3
+ metadata.gz: b6c7856aa333e6252a0d7d98ac46b8e7aba4989d
4
+ data.tar.gz: 15cca1c31b690453281c09d0e38446d869aee595
5
5
  SHA512:
6
- metadata.gz: 02b55f2872f27be516a04b32b163bfb10c4fcab4a2697b34436685f95c8764130dee4fe29669b46f68cae791654538a8cafec6a8cb2024cb6c0fa79fba5582c1
7
- data.tar.gz: 35177710b6525eb5e22f60425e584c852d94177d3b1c782163779bfdfca963fa596bead64d07b16130047079a2da98506d05cf9e9a91fcbd71e91448056989e8
6
+ metadata.gz: 50a922aa80eb813f9d556f0786d95aff371d5cc73f6d0c13ad6ead0087172d6faad29df0dd3cc1dbd1080f951a7a562590db1a2eef587a0d2e5ed34b6d848c3e
7
+ data.tar.gz: c72ef4ebc6881c2a352a50186c7247a4740394f6dcb89192be0739cbb3472b0eb3f9975f16e8b6d2f302a9cf1daded6d7859f2f3d42ceb4c31bc4527d60999cd
@@ -0,0 +1,3 @@
1
+ # Version 1.0.0 - February 25, 2016
2
+
3
+ * Alphabetize the filenames in the list (thanks @amonat!)
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/[USERNAME]/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.
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Rblineprof
2
2
  class Browser
3
- VERSION = "0.1.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
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: 0.1.0
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: 2015-10-22 00:00:00.000000000 Z
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