rack_direct 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. data/Rakefile +9 -0
  2. data/lib/rack_direct/service.rb +7 -1
  3. data/lib/rack_direct/version.rb +1 -1
  4. data/test/backend/README +243 -0
  5. data/test/backend/Rakefile +10 -0
  6. data/test/backend/app/controllers/application_controller.rb +10 -0
  7. data/test/backend/app/controllers/reverses_controller.rb +2 -0
  8. data/test/backend/app/helpers/application_helper.rb +3 -0
  9. data/test/backend/app/helpers/reverses_helper.rb +2 -0
  10. data/test/backend/app/models/reverse.rb +2 -0
  11. data/test/backend/config/boot.rb +110 -0
  12. data/test/backend/config/database.yml +22 -0
  13. data/test/backend/config/environment.rb +41 -0
  14. data/test/backend/config/environments/development.rb +17 -0
  15. data/test/backend/config/environments/production.rb +28 -0
  16. data/test/backend/config/environments/test.rb +28 -0
  17. data/test/backend/config/initializers/backtrace_silencers.rb +7 -0
  18. data/test/backend/config/initializers/inflections.rb +10 -0
  19. data/test/backend/config/initializers/mime_types.rb +5 -0
  20. data/test/backend/config/initializers/new_rails_defaults.rb +21 -0
  21. data/test/backend/config/initializers/session_store.rb +15 -0
  22. data/test/backend/config/locales/en.yml +5 -0
  23. data/test/backend/config/routes.rb +45 -0
  24. data/test/backend/db/development.sqlite3 +0 -0
  25. data/test/backend/db/migrate/20100625231422_create_reverses.rb +12 -0
  26. data/test/backend/db/schema.rb +19 -0
  27. data/test/backend/db/seeds.rb +7 -0
  28. data/test/backend/doc/README_FOR_APP +2 -0
  29. data/test/backend/log/development.log +73 -0
  30. data/test/backend/log/production.log +0 -0
  31. data/test/backend/log/server.log +0 -0
  32. data/test/backend/log/test.log +0 -0
  33. data/test/backend/public/404.html +30 -0
  34. data/test/backend/public/422.html +30 -0
  35. data/test/backend/public/500.html +30 -0
  36. data/test/backend/public/favicon.ico +0 -0
  37. data/test/backend/public/images/rails.png +0 -0
  38. data/test/backend/public/index.html +275 -0
  39. data/test/backend/public/javascripts/application.js +2 -0
  40. data/test/backend/public/javascripts/controls.js +963 -0
  41. data/test/backend/public/javascripts/dragdrop.js +973 -0
  42. data/test/backend/public/javascripts/effects.js +1128 -0
  43. data/test/backend/public/javascripts/prototype.js +4320 -0
  44. data/test/backend/public/robots.txt +5 -0
  45. data/test/backend/script/about +4 -0
  46. data/test/backend/script/console +3 -0
  47. data/test/backend/script/dbconsole +3 -0
  48. data/test/backend/script/destroy +3 -0
  49. data/test/backend/script/generate +3 -0
  50. data/test/backend/script/performance/benchmarker +3 -0
  51. data/test/backend/script/performance/profiler +3 -0
  52. data/test/backend/script/plugin +3 -0
  53. data/test/backend/script/runner +3 -0
  54. data/test/backend/script/server +3 -0
  55. data/test/backend/test/fixtures/reverses.yml +7 -0
  56. data/test/backend/test/functional/reverses_controller_test.rb +8 -0
  57. data/test/backend/test/performance/browsing_test.rb +9 -0
  58. data/test/backend/test/test_helper.rb +38 -0
  59. data/test/backend/test/unit/helpers/reverses_helper_test.rb +4 -0
  60. data/test/backend/test/unit/reverse_test.rb +8 -0
  61. data/test/frontend/README +243 -0
  62. data/test/frontend/Rakefile +10 -0
  63. data/test/frontend/app/controllers/application_controller.rb +10 -0
  64. data/test/frontend/app/helpers/application_helper.rb +3 -0
  65. data/test/frontend/config/boot.rb +110 -0
  66. data/test/frontend/config/database.yml +22 -0
  67. data/test/frontend/config/environment.rb +41 -0
  68. data/test/frontend/config/environments/development.rb +17 -0
  69. data/test/frontend/config/environments/production.rb +28 -0
  70. data/test/frontend/config/environments/test.rb +28 -0
  71. data/test/frontend/config/initializers/backtrace_silencers.rb +7 -0
  72. data/test/frontend/config/initializers/inflections.rb +10 -0
  73. data/test/frontend/config/initializers/mime_types.rb +5 -0
  74. data/test/frontend/config/initializers/new_rails_defaults.rb +21 -0
  75. data/test/frontend/config/initializers/session_store.rb +15 -0
  76. data/test/frontend/config/locales/en.yml +5 -0
  77. data/test/frontend/config/routes.rb +43 -0
  78. data/test/frontend/db/seeds.rb +7 -0
  79. data/test/frontend/doc/README_FOR_APP +2 -0
  80. data/test/frontend/log/development.log +0 -0
  81. data/test/frontend/log/production.log +0 -0
  82. data/test/frontend/log/server.log +0 -0
  83. data/test/frontend/log/test.log +0 -0
  84. data/test/frontend/public/404.html +30 -0
  85. data/test/frontend/public/422.html +30 -0
  86. data/test/frontend/public/500.html +30 -0
  87. data/test/frontend/public/favicon.ico +0 -0
  88. data/test/frontend/public/images/rails.png +0 -0
  89. data/test/frontend/public/index.html +275 -0
  90. data/test/frontend/public/javascripts/application.js +2 -0
  91. data/test/frontend/public/javascripts/controls.js +963 -0
  92. data/test/frontend/public/javascripts/dragdrop.js +973 -0
  93. data/test/frontend/public/javascripts/effects.js +1128 -0
  94. data/test/frontend/public/javascripts/prototype.js +4320 -0
  95. data/test/frontend/public/robots.txt +5 -0
  96. data/test/frontend/script/about +4 -0
  97. data/test/frontend/script/console +3 -0
  98. data/test/frontend/script/dbconsole +3 -0
  99. data/test/frontend/script/destroy +3 -0
  100. data/test/frontend/script/generate +3 -0
  101. data/test/frontend/script/performance/benchmarker +3 -0
  102. data/test/frontend/script/performance/profiler +3 -0
  103. data/test/frontend/script/plugin +3 -0
  104. data/test/frontend/script/runner +3 -0
  105. data/test/frontend/script/server +3 -0
  106. data/test/frontend/test/performance/browsing_test.rb +9 -0
  107. data/test/frontend/test/test_helper.rb +38 -0
  108. metadata +109 -20
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
4
+ require 'commands/about'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/console'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/dbconsole'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/destroy'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/generate'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../../config/boot', __FILE__)
3
+ require 'commands/performance/benchmarker'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../../config/boot', __FILE__)
3
+ require 'commands/performance/profiler'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/runner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/server'
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+ require 'performance_test_help'
3
+
4
+ # Profiling results for each test method are written to tmp/performance.
5
+ class BrowsingTest < ActionController::PerformanceTest
6
+ def test_homepage
7
+ get '/'
8
+ end
9
+ end
@@ -0,0 +1,38 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
+ require 'test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Transactional fixtures accelerate your tests by wrapping each test method
7
+ # in a transaction that's rolled back on completion. This ensures that the
8
+ # test database remains unchanged so your fixtures don't have to be reloaded
9
+ # between every test method. Fewer database queries means faster tests.
10
+ #
11
+ # Read Mike Clark's excellent walkthrough at
12
+ # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
+ #
14
+ # Every Active Record database supports transactions except MyISAM tables
15
+ # in MySQL. Turn off transactional fixtures in this case; however, if you
16
+ # don't care one way or the other, switching from MyISAM to InnoDB tables
17
+ # is recommended.
18
+ #
19
+ # The only drawback to using transactional fixtures is when you actually
20
+ # need to test transactions. Since your test is bracketed by a transaction,
21
+ # any transactions started in your code will be automatically rolled back.
22
+ self.use_transactional_fixtures = true
23
+
24
+ # Instantiated fixtures are slow, but give you @david where otherwise you
25
+ # would need people(:david). If you don't want to migrate your existing
26
+ # test cases which use the @david style and don't mind the speed hit (each
27
+ # instantiated fixtures translates to a database query per test method),
28
+ # then set this back to true.
29
+ self.use_instantiated_fixtures = false
30
+
31
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
32
+ #
33
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
34
+ # -- they do not yet inherit this setting
35
+ fixtures :all
36
+
37
+ # Add more helper methods to be used by all tests here...
38
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_direct
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 12
10
- version: 0.1.12
9
+ - 13
10
+ version: 0.1.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Sharon
@@ -17,23 +17,8 @@ cert_chain: []
17
17
 
18
18
  date: 2010-06-09 00:00:00 -07:00
19
19
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: rack
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - "="
28
- - !ruby/object:Gem::Version
29
- hash: 21
30
- segments:
31
- - 1
32
- - 0
33
- - 1
34
- version: 1.0.1
35
- type: :runtime
36
- version_requirements: *id001
20
+ dependencies: []
21
+
37
22
  description: |
38
23
  RackDirect allows you to easily perform integration tests between multiple Rails websites, by launching your ActiveResource services in a standalone process and communicating with them via stdio instead of over a socket.
39
24
 
@@ -54,6 +39,110 @@ files:
54
39
  - lib/rack_direct/version.rb
55
40
  - lib/rack_direct.rb
56
41
  - Rakefile
42
+ - test/backend/app/controllers/application_controller.rb
43
+ - test/backend/app/controllers/reverses_controller.rb
44
+ - test/backend/app/helpers/application_helper.rb
45
+ - test/backend/app/helpers/reverses_helper.rb
46
+ - test/backend/app/models/reverse.rb
47
+ - test/backend/config/boot.rb
48
+ - test/backend/config/database.yml
49
+ - test/backend/config/environment.rb
50
+ - test/backend/config/environments/development.rb
51
+ - test/backend/config/environments/production.rb
52
+ - test/backend/config/environments/test.rb
53
+ - test/backend/config/initializers/backtrace_silencers.rb
54
+ - test/backend/config/initializers/inflections.rb
55
+ - test/backend/config/initializers/mime_types.rb
56
+ - test/backend/config/initializers/new_rails_defaults.rb
57
+ - test/backend/config/initializers/session_store.rb
58
+ - test/backend/config/locales/en.yml
59
+ - test/backend/config/routes.rb
60
+ - test/backend/db/development.sqlite3
61
+ - test/backend/db/migrate/20100625231422_create_reverses.rb
62
+ - test/backend/db/schema.rb
63
+ - test/backend/db/seeds.rb
64
+ - test/backend/doc/README_FOR_APP
65
+ - test/backend/log/development.log
66
+ - test/backend/log/production.log
67
+ - test/backend/log/server.log
68
+ - test/backend/log/test.log
69
+ - test/backend/public/404.html
70
+ - test/backend/public/422.html
71
+ - test/backend/public/500.html
72
+ - test/backend/public/favicon.ico
73
+ - test/backend/public/images/rails.png
74
+ - test/backend/public/index.html
75
+ - test/backend/public/javascripts/application.js
76
+ - test/backend/public/javascripts/controls.js
77
+ - test/backend/public/javascripts/dragdrop.js
78
+ - test/backend/public/javascripts/effects.js
79
+ - test/backend/public/javascripts/prototype.js
80
+ - test/backend/public/robots.txt
81
+ - test/backend/Rakefile
82
+ - test/backend/README
83
+ - test/backend/script/about
84
+ - test/backend/script/console
85
+ - test/backend/script/dbconsole
86
+ - test/backend/script/destroy
87
+ - test/backend/script/generate
88
+ - test/backend/script/performance/benchmarker
89
+ - test/backend/script/performance/profiler
90
+ - test/backend/script/plugin
91
+ - test/backend/script/runner
92
+ - test/backend/script/server
93
+ - test/backend/test/fixtures/reverses.yml
94
+ - test/backend/test/functional/reverses_controller_test.rb
95
+ - test/backend/test/performance/browsing_test.rb
96
+ - test/backend/test/test_helper.rb
97
+ - test/backend/test/unit/helpers/reverses_helper_test.rb
98
+ - test/backend/test/unit/reverse_test.rb
99
+ - test/frontend/app/controllers/application_controller.rb
100
+ - test/frontend/app/helpers/application_helper.rb
101
+ - test/frontend/config/boot.rb
102
+ - test/frontend/config/database.yml
103
+ - test/frontend/config/environment.rb
104
+ - test/frontend/config/environments/development.rb
105
+ - test/frontend/config/environments/production.rb
106
+ - test/frontend/config/environments/test.rb
107
+ - test/frontend/config/initializers/backtrace_silencers.rb
108
+ - test/frontend/config/initializers/inflections.rb
109
+ - test/frontend/config/initializers/mime_types.rb
110
+ - test/frontend/config/initializers/new_rails_defaults.rb
111
+ - test/frontend/config/initializers/session_store.rb
112
+ - test/frontend/config/locales/en.yml
113
+ - test/frontend/config/routes.rb
114
+ - test/frontend/db/seeds.rb
115
+ - test/frontend/doc/README_FOR_APP
116
+ - test/frontend/log/development.log
117
+ - test/frontend/log/production.log
118
+ - test/frontend/log/server.log
119
+ - test/frontend/log/test.log
120
+ - test/frontend/public/404.html
121
+ - test/frontend/public/422.html
122
+ - test/frontend/public/500.html
123
+ - test/frontend/public/favicon.ico
124
+ - test/frontend/public/images/rails.png
125
+ - test/frontend/public/index.html
126
+ - test/frontend/public/javascripts/application.js
127
+ - test/frontend/public/javascripts/controls.js
128
+ - test/frontend/public/javascripts/dragdrop.js
129
+ - test/frontend/public/javascripts/effects.js
130
+ - test/frontend/public/javascripts/prototype.js
131
+ - test/frontend/public/robots.txt
132
+ - test/frontend/Rakefile
133
+ - test/frontend/README
134
+ - test/frontend/script/about
135
+ - test/frontend/script/console
136
+ - test/frontend/script/dbconsole
137
+ - test/frontend/script/destroy
138
+ - test/frontend/script/generate
139
+ - test/frontend/script/performance/benchmarker
140
+ - test/frontend/script/performance/profiler
141
+ - test/frontend/script/plugin
142
+ - test/frontend/script/runner
143
+ - test/frontend/script/server
144
+ - test/frontend/test/performance/browsing_test.rb
145
+ - test/frontend/test/test_helper.rb
57
146
  has_rdoc: true
58
147
  homepage: http://floatplane.us/
59
148
  licenses: []