dummy_performance_tests 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Dummy performance tests
2
2
 
3
- "Dummy performance tests" uses the routes generated by [dummy\_routes](http://github.com/goncalossilva/dummy_routes) to generate performance tests for your Rails 3 application.
3
+ "Dummy performance tests" uses the routes generated by [dummy\_urls](http://github.com/goncalossilva/dummy_urls) to generate performance tests for your Rails 3 application.
4
4
 
5
5
  ## Description
6
6
 
7
- "Dummy performance tests" generates performance tests for your Rails applications. It depends on the test routes generated by [dummy\_routes](http://github.com/goncalossilva/dummy_routes)
7
+ "Dummy performance tests" generates performance tests for your Rails applications. It depends on the test routes generated by [dummy\_urls](http://github.com/goncalossilva/dummy_urls)
8
8
 
9
9
  ## Installation
10
10
 
File without changes
@@ -19,7 +19,7 @@ module Dummy
19
19
  private
20
20
  def check_dummyfile
21
21
  if not File.exists? "#{options.output_folder}/Dummyfile"
22
- raise MissingDummyfile, "Could not find the Dummyfile. Did you forget to generate dummy data/routes or specified a different directory?"
22
+ raise MissingDummyfile, "Could not find the Dummyfile. Did you forget to generate dummy data/urls or specified a different directory?"
23
23
  end
24
24
 
25
25
  end
@@ -27,8 +27,8 @@ module Dummy
27
27
  def generate_and_write_performance_tests
28
28
  template "test_helper.rb", "#{options.output_folder}/performance/test_helper.rb"
29
29
 
30
- Dir["#{options.output_folder}/routes/*.yml"].each do |file|
31
- @routes = YAML.load_file file
30
+ Dir["#{options.output_folder}/urls/*.yml"].each do |file|
31
+ @urls = YAML.load_file file
32
32
  @model_name = File.basename(file).chomp(File.extname(file))
33
33
 
34
34
  template "dummy_performance_test.rb",
@@ -2,7 +2,7 @@ require File.expand_path('../test_helper', __FILE__)
2
2
  require 'rails/performance_test_help'
3
3
 
4
4
  class <%= @model_name.camelcase %>Test < ActionDispatch::PerformanceTest
5
- <% @routes.each do |request, data| %>
5
+ <% @urls.each do |request, data| %>
6
6
  def test_<%= request %>
7
7
  <%= data["type"] %>_via_redirect "<%= data['url'] %>"<%= (", " + data["params"].inspect) if data["params"] %>
8
8
  end
metadata CHANGED
@@ -1,117 +1,87 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: dummy_performance_tests
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 9
8
- - 1
9
- version: 0.9.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.2
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
12
- - "Gon\xC3\xA7alo Silva"
7
+ authors:
8
+ - Goncalo Silva
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-08-23 00:00:00 +01:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-09-03 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: dummy_data
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70220731442880 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 9
31
- version: "0.9"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0.9'
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: dummy_routes
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70220731442880
25
+ - !ruby/object:Gem::Dependency
26
+ name: dummy_urls
27
+ requirement: &70220731550980 !ruby/object:Gem::Requirement
38
28
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- segments:
43
- - 0
44
- - 9
45
- version: "0.9"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0.9'
46
33
  type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: rails
50
34
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70220731550980
36
+ - !ruby/object:Gem::Dependency
37
+ name: rails
38
+ requirement: &70220735714000 !ruby/object:Gem::Requirement
52
39
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- segments:
57
- - 3
58
- - 0
59
- - 0
60
- - beta
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
61
43
  version: 3.0.0.beta
62
44
  type: :runtime
63
- version_requirements: *id003
64
- description: Generates dummy performance tests for Rails 3 applications by using the data generated by dummy_data and dummy_routes
65
- email:
45
+ prerelease: false
46
+ version_requirements: *70220735714000
47
+ description: Generates dummy performance tests for Rails 3 applications by using the
48
+ data generated by dummy_data and dummy_urls
49
+ email:
66
50
  - goncalossilva@gmail.com
67
51
  executables: []
68
-
69
52
  extensions: []
70
-
71
53
  extra_rdoc_files: []
72
-
73
- files:
54
+ files:
74
55
  - lib/dummy_performance_tests.rb
75
56
  - lib/generators/performance/performance_tests_generator.rb
76
57
  - lib/generators/performance/templates/dummy_performance_test.rb
77
58
  - lib/generators/performance/templates/test_helper.rb
78
59
  - lib/generators/performance/templates/dummy_performance.rake
79
60
  - LICENSE
80
- - README.md
81
61
  - CHANGELOG.md
82
- has_rdoc: true
83
- homepage: http://github.com/goncalossilva/dummy_routes
62
+ - README.md
63
+ homepage: http://github.com/goncalossilva/dummy_performance_tests
84
64
  licenses: []
85
-
86
65
  post_install_message:
87
66
  rdoc_options: []
88
-
89
- require_paths:
67
+ require_paths:
90
68
  - lib
91
- required_ruby_version: !ruby/object:Gem::Requirement
69
+ required_ruby_version: !ruby/object:Gem::Requirement
92
70
  none: false
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- segments:
97
- - 0
98
- version: "0"
99
- required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ! '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
76
  none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- segments:
105
- - 1
106
- - 3
107
- - 7
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
108
80
  version: 1.3.7
109
81
  requirements: []
110
-
111
82
  rubyforge_project: dummy_performance_tests
112
- rubygems_version: 1.3.7
83
+ rubygems_version: 1.8.6
113
84
  signing_key:
114
85
  specification_version: 3
115
86
  summary: Generates dummy performance tests for Rails 3 applications
116
87
  test_files: []
117
-