rspec-prof 0.0.5 → 0.0.7

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: 26f3a8e22db632b711465efbd8bc47e46dcbe251
4
- data.tar.gz: 24530cc7e79466c2648eafdaf41b6b297fb74a8b
3
+ metadata.gz: 2e623e50aafeb958780958e999a99a435f581d52
4
+ data.tar.gz: 18853d469bdc1b3d9df7436a9dbe0df1c6dc706c
5
5
  SHA512:
6
- metadata.gz: f220900d131fe4ee5ce7e94f7d4780f3257131981525be86a84d9ee68ec2e4472f398f34b4764997cb8d2802469bef67bbc61876f863516dd74e9f8eb47fd065
7
- data.tar.gz: d4d0f629641abe1aef1d60bd712b47e7a0fe210506a5e23250f2122bbf0880b419e3a233cecbe94d991a9859b0be51b4a7c5716e9eab5b5e1535675440f4e644
6
+ metadata.gz: e0d8f08aaa9b5c194eaa0a362b3832c2bec0386099d0fc6753732c6c1972010116631ae91a901d85545e531084c49d4d5eb9c3742196b4236281a82c448c7b99
7
+ data.tar.gz: dfb694cc81710de646f12f263bbccce4b2233ed723f1e54cbdf93d5698b6f11a72bcfa1703ca8e670abd6bbb6e2ec6347f9562a04d9dbd82e09c04e092478d7e
@@ -1,3 +1,3 @@
1
1
  rvm:
2
- - 2.0.0
3
- - ruby-head
2
+ - 2.2
3
+ - 2.3
@@ -1,59 +1,72 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-prof (0.0.5)
5
- rspec
4
+ rspec-prof (0.0.7)
5
+ rspec (~> 3.0)
6
6
  ruby-prof
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- aruba (0.5.3)
12
- childprocess (>= 0.3.6)
13
- cucumber (>= 1.1.1)
14
- rspec-expectations (>= 2.7.0)
11
+ aruba (0.14.2)
12
+ childprocess (~> 0.5.6)
13
+ contracts (~> 0.9)
14
+ cucumber (>= 1.3.19)
15
+ ffi (~> 1.9.10)
16
+ rspec-expectations (>= 2.99)
17
+ thor (~> 0.19)
15
18
  builder (3.2.2)
16
- childprocess (0.3.9)
19
+ childprocess (0.5.9)
17
20
  ffi (~> 1.0, >= 1.0.11)
18
- coveralls (0.7.0)
19
- multi_json (~> 1.3)
20
- rest-client
21
- simplecov (>= 0.7)
22
- term-ansicolor
23
- thor
24
- cucumber (1.3.8)
21
+ contracts (0.14.0)
22
+ coveralls (0.8.15)
23
+ json (>= 1.8, < 3)
24
+ simplecov (~> 0.12.0)
25
+ term-ansicolor (~> 1.3)
26
+ thor (~> 0.19.1)
27
+ tins (>= 1.6.0, < 2)
28
+ cucumber (2.4.0)
25
29
  builder (>= 2.1.2)
30
+ cucumber-core (~> 1.5.0)
31
+ cucumber-wire (~> 0.0.1)
26
32
  diff-lcs (>= 1.1.3)
27
- gherkin (~> 2.12.1)
33
+ gherkin (~> 4.0)
28
34
  multi_json (>= 1.7.5, < 2.0)
29
- multi_test (>= 0.0.2)
30
- diff-lcs (1.2.4)
31
- ffi (1.9.3)
32
- gherkin (2.12.2)
33
- multi_json (~> 1.3)
34
- mime-types (2.0)
35
- multi_json (1.8.2)
36
- multi_test (0.0.2)
37
- rake (10.1.0)
38
- rest-client (1.6.7)
39
- mime-types (>= 1.16)
40
- rspec (2.14.1)
41
- rspec-core (~> 2.14.0)
42
- rspec-expectations (~> 2.14.0)
43
- rspec-mocks (~> 2.14.0)
44
- rspec-core (2.14.7)
45
- rspec-expectations (2.14.3)
46
- diff-lcs (>= 1.1.3, < 2.0)
47
- rspec-mocks (2.14.4)
48
- ruby-prof (0.13.0)
49
- simplecov (0.7.1)
50
- multi_json (~> 1.0)
51
- simplecov-html (~> 0.7.1)
52
- simplecov-html (0.7.1)
53
- term-ansicolor (1.2.2)
54
- tins (~> 0.8)
55
- thor (0.18.1)
56
- tins (0.12.0)
35
+ multi_test (>= 0.1.2)
36
+ cucumber-core (1.5.0)
37
+ gherkin (~> 4.0)
38
+ cucumber-wire (0.0.1)
39
+ diff-lcs (1.2.5)
40
+ docile (1.1.5)
41
+ ffi (1.9.14)
42
+ gherkin (4.0.0)
43
+ json (2.0.2)
44
+ multi_json (1.12.1)
45
+ multi_test (0.1.2)
46
+ rake (11.2.2)
47
+ rspec (3.5.0)
48
+ rspec-core (~> 3.5.0)
49
+ rspec-expectations (~> 3.5.0)
50
+ rspec-mocks (~> 3.5.0)
51
+ rspec-core (3.5.3)
52
+ rspec-support (~> 3.5.0)
53
+ rspec-expectations (3.5.0)
54
+ diff-lcs (>= 1.2.0, < 2.0)
55
+ rspec-support (~> 3.5.0)
56
+ rspec-mocks (3.5.0)
57
+ diff-lcs (>= 1.2.0, < 2.0)
58
+ rspec-support (~> 3.5.0)
59
+ rspec-support (3.5.0)
60
+ ruby-prof (0.16.2)
61
+ simplecov (0.12.0)
62
+ docile (~> 1.1.0)
63
+ json (>= 1.8, < 3)
64
+ simplecov-html (~> 0.10.0)
65
+ simplecov-html (0.10.0)
66
+ term-ansicolor (1.3.2)
67
+ tins (~> 1.0)
68
+ thor (0.19.1)
69
+ tins (1.12.0)
57
70
 
58
71
  PLATFORMS
59
72
  ruby
@@ -65,3 +78,6 @@ DEPENDENCIES
65
78
  rake
66
79
  rspec-prof!
67
80
  simplecov
81
+
82
+ BUNDLED WITH
83
+ 1.12.5
@@ -7,7 +7,7 @@ Before do |scenario|
7
7
  SimpleCov.start do
8
8
  root "#{File.expand_path('../..', File.dirname(__FILE__))}"
9
9
  coverage_dir 'coverage'
10
- SimpleCov.command_name #{scenario.title.inspect}
10
+ SimpleCov.command_name #{scenario.name.inspect}
11
11
  filters.clear
12
12
  add_filter { |f| !f.filename['rspec-prof'] }
13
13
  end
@@ -45,25 +45,27 @@ class RSpecProf
45
45
  FileUtils.mkdir_p File.dirname(filename)
46
46
  File.open(filename, "w") do |f|
47
47
  printer = RSpecProf.printer_class.new(result)
48
- printer.print f
48
+ printer.print(f, :min_percent => 1)
49
49
  end
50
50
  end
51
51
  end
52
52
 
53
53
  RSpec.configure do |config|
54
- config.before(:all) do
54
+ profiler = nil
55
+
56
+ config.before(:suite) do
55
57
  unless ['all', 'each', ''].include?(ENV['RSPEC_PROFILE'].to_s)
56
58
  raise "ENV['RSPEC_PROFILE'] should be blank, 'all' or 'each', but was '#{ENV['RSPEC_PROFILE']}'"
57
59
  end
58
60
 
59
61
  if ENV['RSPEC_PROFILE'] == 'all'
60
- @profiler = RSpecProf.new.start
62
+ profiler = RSpecProf.new.start
61
63
  end
62
64
  end
63
65
 
64
- config.after(:all) do
66
+ config.after(:suite) do
65
67
  if ENV['RSPEC_PROFILE'] == 'all'
66
- @profiler.save_to "profiles/all.html"
68
+ profiler.save_to "#{RSpecProf.output_dir}/all.#{RSpecProf.file_extension}"
67
69
  end
68
70
  end
69
71
 
@@ -17,8 +17,8 @@ class RSpecProf
17
17
  end
18
18
 
19
19
  def path_for metadata
20
- if metadata[:example_group]
21
- File.join(path_for(metadata[:example_group], metadata[:description]))
20
+ if metadata[:parent_example_group]
21
+ File.join(path_for(metadata[:parent_example_group]), metadata[:description])
22
22
  else
23
23
  metadata[:description]
24
24
  end
@@ -3,11 +3,11 @@
3
3
  Gem::Specification.new do |s|
4
4
  s.licenses = [ 'MIT' ]
5
5
  s.name = "rspec-prof"
6
- s.version = "0.0.5"
6
+ s.version = "0.0.7"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Colin MacKenzie IV"]
10
- s.date = "2011-11-04"
10
+ s.date = "2011-08-27"
11
11
  s.description = "Integrates ruby-prof with RSpec, allowing you to easily profile your RSpec examples."
12
12
  s.email = "sinisterchipmunk@gmail.com"
13
13
  s.extra_rdoc_files = [
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.summary = "Integrates ruby-prof with RSpec, allowing you to easily profile your RSpec examples."
22
22
  s.test_files = `git ls-files -- features/`.split("\n")
23
23
 
24
- s.add_runtime_dependency 'rspec'
24
+ s.add_runtime_dependency 'rspec', '~> 3.0'
25
25
  s.add_runtime_dependency 'ruby-prof'
26
26
  s.add_development_dependency 'cucumber'
27
27
  s.add_development_dependency 'aruba'
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-prof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin MacKenzie IV
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2011-11-04 00:00:00.000000000 Z
11
+ date: 2011-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby-prof
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cucumber
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: aruba
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: Integrates ruby-prof with RSpec, allowing you to easily profile your
@@ -117,9 +117,9 @@ extra_rdoc_files:
117
117
  - LICENSE
118
118
  - README.rdoc
119
119
  files:
120
- - .document
121
- - .gitignore
122
- - .travis.yml
120
+ - ".document"
121
+ - ".gitignore"
122
+ - ".travis.yml"
123
123
  - Gemfile
124
124
  - Gemfile.lock
125
125
  - LICENSE
@@ -145,17 +145,17 @@ require_paths:
145
145
  - lib
146
146
  required_ruby_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - '>='
148
+ - - ">="
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - '>='
153
+ - - ">="
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.1.11
158
+ rubygems_version: 2.5.1
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Integrates ruby-prof with RSpec, allowing you to easily profile your RSpec