lineprof 0.1.1 → 0.1.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
- SHA1:
3
- metadata.gz: 068d92a8e134b51fdb78e66e6c7364a8351fa7b7
4
- data.tar.gz: a5745996dce9e47c7b232c627054726e7ba0f89b
2
+ SHA256:
3
+ metadata.gz: e30ca9d26dc00232e2f8d8d60717aadf85a9e5e7e206396fd1b1256df562370c
4
+ data.tar.gz: 7f0efe08e0661f935b25c21d28faa22631c22d1261961259567d50eae3af830d
5
5
  SHA512:
6
- metadata.gz: 7bc9864ac9470bab131b4f83b271f4068885b5b4649cad093af208c89b5a14dc4aacabd308378a68ff8a0821dc63dd70049a82c968b3ef178d1a72a3c34747b8
7
- data.tar.gz: 345eb06123850fbb9f7091029e159250881000dc51034466e58c04a57db9714235d29d2d38753455b7cfa9bf7dd75c9838026aa3c8fe483aaceafd9b9fc00d33
6
+ metadata.gz: f33f16724a16e90faddb85fce1f16824f567136547862ec5a83330d1cb113effd64a991b1b0ec9c116a552ed228a4768f975f356cea98656b83a3a5a010302e1
7
+ data.tar.gz: 58369557fcfed870b53fa7744140d33e6e006811729e6e1c021dcc7b2569bce3a1693441b0d123f12d514ea715b989c660228ec2a02b2a9236bc7aec4e145191
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Change Log
2
+
3
+ ## [v0.1.1](https://github.com/k0kubun/lineprof/tree/v0.1.1) (2015-09-12)
4
+ [Full Changelog](https://github.com/k0kubun/lineprof/compare/v0.1.0...v0.1.1)
5
+
6
+ ## [v0.1.0](https://github.com/k0kubun/lineprof/tree/v0.1.0) (2015-09-07)
7
+ [Full Changelog](https://github.com/k0kubun/lineprof/compare/v0.0.1...v0.1.0)
8
+
9
+ ## [v0.0.1](https://github.com/k0kubun/lineprof/tree/v0.0.1) (2015-03-09)
10
+
11
+
12
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/lib/lineprof.rb CHANGED
@@ -18,7 +18,14 @@ class Lineprof
18
18
  private
19
19
 
20
20
  def caller_filename(caller_lines)
21
- caller_lines.first.split(':').first || DEFAULT_PATTERN
21
+ filename = caller_lines.first.split(':').first
22
+
23
+ if filename
24
+ # Don't add \A because filename may not be an absolute path
25
+ /#{Regexp.escape(filename)}\z/
26
+ else
27
+ DEFAULT_PATTERN
28
+ end
22
29
  end
23
30
 
24
31
  def format(result)
@@ -1,3 +1,3 @@
1
1
  class Lineprof
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lineprof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-12 00:00:00.000000000 Z
11
+ date: 2021-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rblineprof
@@ -88,6 +88,7 @@ extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
90
  - ".gitignore"
91
+ - CHANGELOG.md
91
92
  - Gemfile
92
93
  - LICENSE.txt
93
94
  - README.md
@@ -116,8 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
117
  - !ruby/object:Gem::Version
117
118
  version: '0'
118
119
  requirements: []
119
- rubyforge_project:
120
- rubygems_version: 2.4.5.1
120
+ rubygems_version: 3.1.6
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Easy-to-use line profiler for Ruby.