rails-perftest 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: da19c0ca237ad8cb825991af265c338b2ed7e818
4
+ data.tar.gz: bf9bc9fef0d44b135e5a9d90684f2b1065898b8f
5
+ SHA512:
6
+ metadata.gz: 18b018be3b94c3df0bb9487682033f5d1897d76e1e9495708e4c05c75ec5a27a516b1f980bc83c0658713b84966e9c9b3c471922a9df9f688fc329c9c5a2865f
7
+ data.tar.gz: 732c232645fb1d453fe929979eeff23099c1e85e4f5e8d7456b89e26bb063cba62cedbcb2d9b81f8da034fbcac76361c3ccb859a0bfd762ee71baa28f3c8616f
data/Gemfile CHANGED
@@ -2,5 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in rails-perftest.gemspec
4
4
  gemspec
5
-
6
- gem 'rails', github: 'rails/rails', branch: 'master'
data/README.md CHANGED
@@ -31,6 +31,13 @@ Add this line to your application's Gemfile:
31
31
 
32
32
  gem 'rails-perftest'
33
33
 
34
+
35
+ If you want to benchmark/profile under MRI or REE, add this line as well:
36
+
37
+ gem 'ruby-prof'
38
+
39
+ Now run `bundle install` and you're ready to go.
40
+
34
41
  Performance Test Cases
35
42
  ----------------------
36
43
 
@@ -39,27 +46,6 @@ benchmarking and profiling the test code. With performance tests, you can
39
46
  determine where your application's memory or speed problems are coming from,
40
47
  and get a more in-depth picture of those problems.
41
48
 
42
- In a freshly generated Rails application, `test/performance/browsing_test.rb`
43
- contains an example of a performance test:
44
-
45
- ```ruby
46
- require 'test_helper'
47
- require 'rails/performance_test_help'
48
-
49
- class BrowsingTest < ActionDispatch::PerformanceTest
50
- # Refer to the documentation for all available options
51
- # self.profile_options = { runs: 5, metrics: [:wall_time, :memory],
52
- # output: 'tmp/performance', formats: [:flat] }
53
-
54
- test "homepage" do
55
- get '/'
56
- end
57
- end
58
- ```
59
-
60
- This example is a simple performance test case for profiling a GET request to
61
- the application's homepage.
62
-
63
49
  ### Generating Performance Tests
64
50
 
65
51
  Rails provides a generator called `performance_test` for creating new
@@ -521,17 +507,6 @@ alias gcrails='~/rubygc/bin/rails'
521
507
 
522
508
  Don't forget to use your aliases from now on.
523
509
 
524
- ### Using Ruby-Prof on MRI and REE
525
-
526
- Add Ruby-Prof to your applications' Gemfile if you want to benchmark/profile
527
- under MRI or REE:
528
-
529
- ```ruby
530
- gem 'ruby-prof'
531
- ```
532
-
533
- Now run `bundle install` and you're ready to go.
534
-
535
510
  Command Line Tools
536
511
  ------------------
537
512
 
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Perftest
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -17,10 +17,10 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_development_dependency 'ruby-prof', '>= 0.12.1'
19
19
  gem.add_development_dependency 'minitest', '>= 3'
20
- gem.add_development_dependency 'railties', '~> 4.0.0.beta'
21
- gem.add_development_dependency 'activerecord', '~> 4.0.0.beta'
22
- gem.add_development_dependency 'activemodel', '~> 4.0.0.beta'
23
- gem.add_development_dependency 'actionmailer', '~> 4.0.0.beta'
24
- gem.add_development_dependency 'actionpack', '~> 4.0.0.beta'
20
+ gem.add_development_dependency 'railties', '~> 4.0'
21
+ gem.add_development_dependency 'activerecord', '~> 4.0'
22
+ gem.add_development_dependency 'activemodel', '~> 4.0'
23
+ gem.add_development_dependency 'actionmailer', '~> 4.0'
24
+ gem.add_development_dependency 'actionpack', '~> 4.0'
25
25
  gem.add_development_dependency 'sqlite3', '~> 1.3'
26
26
  end
@@ -17,10 +17,10 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_development_dependency 'ruby-prof', '>= 0.12.1'
19
19
  gem.add_development_dependency 'minitest', '>= 3'
20
- gem.add_development_dependency 'railties', '~> 4.0.0.beta'
21
- gem.add_development_dependency 'activerecord', '~> 4.0.0.beta'
22
- gem.add_development_dependency 'activemodel', '~> 4.0.0.beta'
23
- gem.add_development_dependency 'actionmailer', '~> 4.0.0.beta'
24
- gem.add_development_dependency 'actionpack', '~> 4.0.0.beta'
20
+ gem.add_development_dependency 'railties', '~> 4.0'
21
+ gem.add_development_dependency 'activerecord', '~> 4.0'
22
+ gem.add_development_dependency 'activemodel', '~> 4.0'
23
+ gem.add_development_dependency 'actionmailer', '~> 4.0'
24
+ gem.add_development_dependency 'actionpack', '~> 4.0'
25
25
  gem.add_development_dependency 'sqlite3', '~> 1.3'
26
26
  end
metadata CHANGED
@@ -1,132 +1,116 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-perftest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Yves Senn
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-07 00:00:00.000000000 Z
11
+ date: 2013-07-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ruby-prof
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.12.1
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.12.1
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: minitest
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '3'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '3'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: railties
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
53
- version: 4.0.0.beta
47
+ version: '4.0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: 4.0.0.beta
54
+ version: '4.0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: activerecord
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
69
- version: 4.0.0.beta
61
+ version: '4.0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
77
- version: 4.0.0.beta
68
+ version: '4.0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: activemodel
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
85
- version: 4.0.0.beta
75
+ version: '4.0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
93
- version: 4.0.0.beta
82
+ version: '4.0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: actionmailer
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
101
- version: 4.0.0.beta
89
+ version: '4.0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
109
- version: 4.0.0.beta
96
+ version: '4.0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: actionpack
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ~>
116
102
  - !ruby/object:Gem::Version
117
- version: 4.0.0.beta
103
+ version: '4.0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ~>
124
109
  - !ruby/object:Gem::Version
125
- version: 4.0.0.beta
110
+ version: '4.0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: sqlite3
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ~>
132
116
  - !ruby/object:Gem::Version
@@ -134,7 +118,6 @@ dependencies:
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ~>
140
123
  - !ruby/object:Gem::Version
@@ -181,27 +164,26 @@ files:
181
164
  - test/performance_test.rb
182
165
  homepage: https://github.com/rails/rails-perftest
183
166
  licenses: []
167
+ metadata: {}
184
168
  post_install_message:
185
169
  rdoc_options: []
186
170
  require_paths:
187
171
  - lib
188
172
  required_ruby_version: !ruby/object:Gem::Requirement
189
- none: false
190
173
  requirements:
191
- - - ! '>='
174
+ - - '>='
192
175
  - !ruby/object:Gem::Version
193
176
  version: '0'
194
177
  required_rubygems_version: !ruby/object:Gem::Requirement
195
- none: false
196
178
  requirements:
197
- - - ! '>='
179
+ - - '>='
198
180
  - !ruby/object:Gem::Version
199
181
  version: '0'
200
182
  requirements: []
201
183
  rubyforge_project:
202
- rubygems_version: 1.8.23
184
+ rubygems_version: 2.0.3
203
185
  signing_key:
204
- specification_version: 3
186
+ specification_version: 4
205
187
  summary: ActionDispatch::PerformanceTest, ActiveSupport::Testing::Performance extracted
206
188
  from Rails.
207
189
  test_files: