Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated assets for buildpacks

- Added ruby version to Gemfiles
- Added auto-config for ruby and node as server no longer does autoconfig for Node and Ruby
- Added gem files since we don't allow ruby without them
- Added package.json since we don't allow node without them
- Added (sometimes) $stdout.sync = true when ruby apps were missing logs

- Deleted all autoconfig disabled test assets (disabled_by_file, disabled_by_gem, disabled_by_module)
as server no longer does autoconfig for Node and Ruby
- Deleted vendored gems
- Deleted node_dependencies test assets since npm version > 1.2.1 seemed to conflict with
node 0.4 and otherwise npm-shrinkwrap is ignored

- Locked down node versions
  • Loading branch information...
commit 601c3dcce9ed8384d0a48e7933641e9e99805ec4 1 parent 73047ff
Jennifer Hickey and Tim Labeeuw authored
Showing with 167 additions and 2,561 deletions.
  1. +4 −0 node/app_node_service/package.json
  2. +4 −0 node/app_node_version/package.json
  3. +2 −0  node/node_autoconfig/app.js
  4. +2 −1  node/node_autoconfig/package.json
  5. +0 −27 node/node_autoconfig_disabled_by_file/app.js
  6. +0 −1  node/node_autoconfig_disabled_by_file/cloudfoundry.json
  7. +0 −46 node/node_autoconfig_disabled_by_file/npm-shrinkwrap.json
  8. +0 −11 node/node_autoconfig_disabled_by_file/package.json
  9. +0 −28 node/node_autoconfig_disabled_by_module/app.js
  10. +0 −49 node/node_autoconfig_disabled_by_module/npm-shrinkwrap.json
  11. +0 −12 node/node_autoconfig_disabled_by_module/package.json
  12. +0 −17 node/node_dependencies04/app.js
  13. +0 −31 node/node_dependencies04/npm-shrinkwrap.json
  14. +0 −8 node/node_dependencies04/package.json
  15. +4 −0 node/node_dependencies06/package.json
  16. +2 −1  node/node_dependencies08/app.js
  17. +4 −0 node/node_dependencies08/package.json
  18. +2 −1  node/node_git/app.js
  19. +4 −0 node/node_imagemagick/package.json
  20. +3 −0  rack/app_rack_service/Gemfile
  21. +5 −1 rack/app_rack_service_autoconfig/Gemfile
  22. +4 −0 rack/app_rack_service_autoconfig/Gemfile.lock
  23. +1 −0  rack/app_rack_service_autoconfig/app.rb
  24. +0 −11 rack/autoconfig_disabled_by_file/Gemfile
  25. +0 −35 rack/autoconfig_disabled_by_file/Gemfile.lock
  26. +0 −40 rack/autoconfig_disabled_by_file/app.rb
  27. +0 −5 rack/autoconfig_disabled_by_file/config.ru
  28. +0 −1  rack/autoconfig_disabled_by_file/config/cloudfoundry.yml
  29. +0 −11 rack/autoconfig_disabled_by_gem/Gemfile
  30. +0 −30 rack/autoconfig_disabled_by_gem/Gemfile.lock
  31. +0 −40 rack/autoconfig_disabled_by_gem/app.rb
  32. +0 −5 rack/autoconfig_disabled_by_gem/config.ru
  33. +1 −0  rack/autoconfig_ruby19/Gemfile
  34. +4 −0 rack/autoconfig_ruby19/Gemfile.lock
  35. +1 −0  rack/autoconfig_ruby19/app.rb
  36. +2 −1  rails3/app_rails_service_autoconfig/Gemfile
  37. +4 −0 rails3/app_rails_service_autoconfig/Gemfile.lock
  38. +1 −0  rails3/app_rails_service_autoconfig/config/initializers/autoconfig.rb
  39. +2 −2 rails3/app_rails_version/Gemfile
  40. +2 −2 rails3/app_rails_version/Gemfile.lock
  41. +0 −11 rails3/autoconfig_disabled_by_file/Gemfile
  42. +0 −101 rails3/autoconfig_disabled_by_file/Gemfile.lock
  43. +0 −256 rails3/autoconfig_disabled_by_file/README
  44. +0 −7 rails3/autoconfig_disabled_by_file/Rakefile
  45. +0 −3  rails3/autoconfig_disabled_by_file/app/controllers/application_controller.rb
  46. +0 −29 rails3/autoconfig_disabled_by_file/app/controllers/service_controller.rb
  47. +0 −2  rails3/autoconfig_disabled_by_file/app/helpers/application_helper.rb
  48. +0 −2  rails3/autoconfig_disabled_by_file/app/helpers/root_helper.rb
  49. +0 −2  rails3/autoconfig_disabled_by_file/app/models/data_value.rb
  50. +0 −5 rails3/autoconfig_disabled_by_file/app/models/mongo_data_value.rb
  51. +0 −11 rails3/autoconfig_disabled_by_file/app/views/layouts/application.html.erb
  52. +0 −5 rails3/autoconfig_disabled_by_file/app/views/root/index.html.erb
  53. +0 −4 rails3/autoconfig_disabled_by_file/config.ru
  54. +0 −42 rails3/autoconfig_disabled_by_file/config/application.rb
  55. +0 −13 rails3/autoconfig_disabled_by_file/config/boot.rb
  56. +0 −1  rails3/autoconfig_disabled_by_file/config/cloudfoundry.yml
  57. +0 −12 rails3/autoconfig_disabled_by_file/config/database.yml
  58. +0 −5 rails3/autoconfig_disabled_by_file/config/environment.rb
  59. +0 −25 rails3/autoconfig_disabled_by_file/config/environments/development.rb
  60. +0 −49 rails3/autoconfig_disabled_by_file/config/environments/production.rb
  61. +0 −35 rails3/autoconfig_disabled_by_file/config/environments/test.rb
  62. +0 −7 rails3/autoconfig_disabled_by_file/config/initializers/backtrace_silencers.rb
  63. +0 −10 rails3/autoconfig_disabled_by_file/config/initializers/inflections.rb
  64. +0 −5 rails3/autoconfig_disabled_by_file/config/initializers/mime_types.rb
  65. +0 −7 rails3/autoconfig_disabled_by_file/config/initializers/secret_token.rb
  66. +0 −8 rails3/autoconfig_disabled_by_file/config/initializers/session_store.rb
  67. +0 −5 rails3/autoconfig_disabled_by_file/config/locales/en.yml
  68. +0 −62 rails3/autoconfig_disabled_by_file/config/routes.rb
  69. +0 −13 rails3/autoconfig_disabled_by_file/db/migrate/20110513200739_create_data_values.rb
  70. +0 −22 rails3/autoconfig_disabled_by_file/db/schema.rb
  71. +0 −7 rails3/autoconfig_disabled_by_file/db/seeds.rb
  72. 0  rails3/autoconfig_disabled_by_file/lib/tasks/.gitkeep
  73. +0 −26 rails3/autoconfig_disabled_by_file/public/404.html
  74. +0 −26 rails3/autoconfig_disabled_by_file/public/422.html
  75. +0 −26 rails3/autoconfig_disabled_by_file/public/500.html
  76. 0  rails3/autoconfig_disabled_by_file/public/favicon.ico
  77. BIN  rails3/autoconfig_disabled_by_file/public/images/rails.png
  78. 0  rails3/autoconfig_disabled_by_file/public/javascripts/.gitkeep
  79. 0  rails3/autoconfig_disabled_by_file/public/javascripts/application.js
  80. +0 −5 rails3/autoconfig_disabled_by_file/public/robots.txt
  81. 0  rails3/autoconfig_disabled_by_file/public/stylesheets/.gitkeep
  82. +0 −6 rails3/autoconfig_disabled_by_file/script/rails
  83. +0 −14 rails3/autoconfig_disabled_by_file/test/functional/root_controller_test.rb
  84. +0 −9 rails3/autoconfig_disabled_by_file/test/performance/browsing_test.rb
  85. +0 −13 rails3/autoconfig_disabled_by_file/test/test_helper.rb
  86. +0 −4 rails3/autoconfig_disabled_by_file/test/unit/helpers/root_helper_test.rb
  87. +0 −12 rails3/autoconfig_disabled_by_file/test/unit/widget_test.rb
  88. +0 −12 rails3/autoconfig_disabled_by_gem/Gemfile
  89. +0 −103 rails3/autoconfig_disabled_by_gem/Gemfile.lock
  90. +0 −256 rails3/autoconfig_disabled_by_gem/README
  91. +0 −7 rails3/autoconfig_disabled_by_gem/Rakefile
  92. +0 −3  rails3/autoconfig_disabled_by_gem/app/controllers/application_controller.rb
  93. +0 −29 rails3/autoconfig_disabled_by_gem/app/controllers/service_controller.rb
  94. +0 −2  rails3/autoconfig_disabled_by_gem/app/helpers/application_helper.rb
  95. +0 −2  rails3/autoconfig_disabled_by_gem/app/helpers/root_helper.rb
  96. +0 −2  rails3/autoconfig_disabled_by_gem/app/models/data_value.rb
  97. +0 −5 rails3/autoconfig_disabled_by_gem/app/models/mongo_data_value.rb
  98. +0 −11 rails3/autoconfig_disabled_by_gem/app/views/layouts/application.html.erb
  99. +0 −5 rails3/autoconfig_disabled_by_gem/app/views/root/index.html.erb
  100. +0 −4 rails3/autoconfig_disabled_by_gem/config.ru
  101. +0 −42 rails3/autoconfig_disabled_by_gem/config/application.rb
  102. +0 −13 rails3/autoconfig_disabled_by_gem/config/boot.rb
  103. +0 −12 rails3/autoconfig_disabled_by_gem/config/database.yml
  104. +0 −5 rails3/autoconfig_disabled_by_gem/config/environment.rb
  105. +0 −25 rails3/autoconfig_disabled_by_gem/config/environments/development.rb
  106. +0 −49 rails3/autoconfig_disabled_by_gem/config/environments/production.rb
  107. +0 −35 rails3/autoconfig_disabled_by_gem/config/environments/test.rb
  108. +0 −7 rails3/autoconfig_disabled_by_gem/config/initializers/backtrace_silencers.rb
  109. +0 −10 rails3/autoconfig_disabled_by_gem/config/initializers/inflections.rb
  110. +0 −5 rails3/autoconfig_disabled_by_gem/config/initializers/mime_types.rb
  111. +0 −7 rails3/autoconfig_disabled_by_gem/config/initializers/secret_token.rb
  112. +0 −8 rails3/autoconfig_disabled_by_gem/config/initializers/session_store.rb
  113. +0 −5 rails3/autoconfig_disabled_by_gem/config/locales/en.yml
  114. +0 −62 rails3/autoconfig_disabled_by_gem/config/routes.rb
  115. +0 −13 rails3/autoconfig_disabled_by_gem/db/migrate/20110513200739_create_data_values.rb
  116. +0 −22 rails3/autoconfig_disabled_by_gem/db/schema.rb
  117. +0 −7 rails3/autoconfig_disabled_by_gem/db/seeds.rb
  118. 0  rails3/autoconfig_disabled_by_gem/lib/tasks/.gitkeep
  119. +0 −26 rails3/autoconfig_disabled_by_gem/public/404.html
  120. +0 −26 rails3/autoconfig_disabled_by_gem/public/422.html
  121. +0 −26 rails3/autoconfig_disabled_by_gem/public/500.html
  122. 0  rails3/autoconfig_disabled_by_gem/public/favicon.ico
  123. BIN  rails3/autoconfig_disabled_by_gem/public/images/rails.png
  124. 0  rails3/autoconfig_disabled_by_gem/public/javascripts/.gitkeep
  125. 0  rails3/autoconfig_disabled_by_gem/public/javascripts/application.js
  126. +0 −5 rails3/autoconfig_disabled_by_gem/public/robots.txt
  127. 0  rails3/autoconfig_disabled_by_gem/public/stylesheets/.gitkeep
  128. +0 −6 rails3/autoconfig_disabled_by_gem/script/rails
  129. +0 −14 rails3/autoconfig_disabled_by_gem/test/functional/root_controller_test.rb
  130. +0 −9 rails3/autoconfig_disabled_by_gem/test/performance/browsing_test.rb
  131. +0 −13 rails3/autoconfig_disabled_by_gem/test/test_helper.rb
  132. +0 −4 rails3/autoconfig_disabled_by_gem/test/unit/helpers/root_helper_test.rb
  133. +0 −12 rails3/autoconfig_disabled_by_gem/test/unit/widget_test.rb
  134. BIN  rails3/dbrails_app/vendor/cache/abstract-1.0.0.gem
  135. BIN  rails3/dbrails_app/vendor/cache/actionmailer-3.0.5.gem
  136. BIN  rails3/dbrails_app/vendor/cache/actionpack-3.0.5.gem
  137. BIN  rails3/dbrails_app/vendor/cache/activemodel-3.0.5.gem
  138. BIN  rails3/dbrails_app/vendor/cache/activerecord-3.0.5.gem
  139. BIN  rails3/dbrails_app/vendor/cache/activeresource-3.0.5.gem
  140. BIN  rails3/dbrails_app/vendor/cache/activesupport-3.0.5.gem
  141. BIN  rails3/dbrails_app/vendor/cache/arel-2.0.9.gem
  142. BIN  rails3/dbrails_app/vendor/cache/builder-2.1.2.gem
  143. BIN  rails3/dbrails_app/vendor/cache/daemons-1.1.2.gem
  144. BIN  rails3/dbrails_app/vendor/cache/erubis-2.6.6.gem
  145. BIN  rails3/dbrails_app/vendor/cache/eventmachine-0.12.10.gem
  146. BIN  rails3/dbrails_app/vendor/cache/i18n-0.5.0.gem
  147. BIN  rails3/dbrails_app/vendor/cache/mail-2.2.15.gem
  148. BIN  rails3/dbrails_app/vendor/cache/mime-types-1.16.gem
  149. BIN  rails3/dbrails_app/vendor/cache/mysql2-0.2.7.gem
  150. BIN  rails3/dbrails_app/vendor/cache/polyglot-0.3.1.gem
  151. BIN  rails3/dbrails_app/vendor/cache/rack-1.2.1.gem
  152. BIN  rails3/dbrails_app/vendor/cache/rack-mount-0.6.13.gem
  153. BIN  rails3/dbrails_app/vendor/cache/rack-test-0.5.7.gem
  154. BIN  rails3/dbrails_app/vendor/cache/rails-3.0.5.gem
  155. BIN  rails3/dbrails_app/vendor/cache/railties-3.0.5.gem
  156. BIN  rails3/dbrails_app/vendor/cache/rake-0.8.7.gem
  157. BIN  rails3/dbrails_app/vendor/cache/thin-1.2.11.gem
  158. BIN  rails3/dbrails_app/vendor/cache/thor-0.14.6.gem
  159. BIN  rails3/dbrails_app/vendor/cache/treetop-1.4.9.gem
  160. BIN  rails3/dbrails_app/vendor/cache/tzinfo-0.3.24.gem
  161. BIN  rails3/dbrails_broken_app/vendor/cache/abstract-1.0.0.gem
  162. BIN  rails3/dbrails_broken_app/vendor/cache/actionmailer-3.0.5.gem
  163. BIN  rails3/dbrails_broken_app/vendor/cache/actionpack-3.0.5.gem
  164. BIN  rails3/dbrails_broken_app/vendor/cache/activemodel-3.0.5.gem
  165. BIN  rails3/dbrails_broken_app/vendor/cache/activerecord-3.0.5.gem
  166. BIN  rails3/dbrails_broken_app/vendor/cache/activeresource-3.0.5.gem
  167. BIN  rails3/dbrails_broken_app/vendor/cache/activesupport-3.0.5.gem
  168. BIN  rails3/dbrails_broken_app/vendor/cache/arel-2.0.9.gem
  169. BIN  rails3/dbrails_broken_app/vendor/cache/builder-2.1.2.gem
  170. BIN  rails3/dbrails_broken_app/vendor/cache/daemons-1.1.2.gem
  171. BIN  rails3/dbrails_broken_app/vendor/cache/erubis-2.6.6.gem
  172. BIN  rails3/dbrails_broken_app/vendor/cache/eventmachine-0.12.10.gem
  173. BIN  rails3/dbrails_broken_app/vendor/cache/i18n-0.5.0.gem
  174. BIN  rails3/dbrails_broken_app/vendor/cache/mail-2.2.15.gem
  175. BIN  rails3/dbrails_broken_app/vendor/cache/mime-types-1.16.gem
  176. BIN  rails3/dbrails_broken_app/vendor/cache/polyglot-0.3.1.gem
  177. BIN  rails3/dbrails_broken_app/vendor/cache/rack-1.2.1.gem
  178. BIN  rails3/dbrails_broken_app/vendor/cache/rack-mount-0.6.13.gem
  179. BIN  rails3/dbrails_broken_app/vendor/cache/rack-test-0.5.7.gem
  180. BIN  rails3/dbrails_broken_app/vendor/cache/rails-3.0.5.gem
  181. BIN  rails3/dbrails_broken_app/vendor/cache/railties-3.0.5.gem
  182. BIN  rails3/dbrails_broken_app/vendor/cache/rake-0.8.7.gem
  183. BIN  rails3/dbrails_broken_app/vendor/cache/thin-1.2.11.gem
  184. BIN  rails3/dbrails_broken_app/vendor/cache/thor-0.14.6.gem
  185. BIN  rails3/dbrails_broken_app/vendor/cache/treetop-1.4.9.gem
  186. BIN  rails3/dbrails_broken_app/vendor/cache/tzinfo-0.3.24.gem
  187. +1 −1  rails3/rails_console_test_app/config.ru
  188. +1 −0  sinatra/amqp_autoconfig/Gemfile
  189. +4 −0 sinatra/amqp_autoconfig/Gemfile.lock
  190. +1 −0  sinatra/amqp_autoconfig/app.rb
  191. +2 −1  sinatra/app_sinatra_service_autoconfig/Gemfile
  192. +4 −0 sinatra/app_sinatra_service_autoconfig/Gemfile.lock
  193. +3 −0  sinatra/app_sinatra_service_autoconfig/app.rb
  194. +4 −2 sinatra/app_sinatra_service_quota/main.rb
  195. +0 −10 sinatra/autoconfig_disabled_by_file/Gemfile
  196. +0 −28 sinatra/autoconfig_disabled_by_file/Gemfile.lock
  197. +0 −38 sinatra/autoconfig_disabled_by_file/app.rb
  198. +0 −1  sinatra/autoconfig_disabled_by_file/config/cloudfoundry.yml
  199. +0 −11 sinatra/autoconfig_disabled_by_gem/Gemfile
  200. +0 −30 sinatra/autoconfig_disabled_by_gem/Gemfile.lock
  201. +0 −38 sinatra/autoconfig_disabled_by_gem/app.rb
  202. +1 −0  sinatra/autoconfig_unsupported_carrot_version/Gemfile
  203. +4 −3 sinatra/autoconfig_unsupported_carrot_version/Gemfile.lock
  204. +1 −0  sinatra/autoconfig_unsupported_carrot_version/app.rb
  205. +1 −0  sinatra/autoconfig_unsupported_versions/Gemfile
  206. +4 −0 sinatra/autoconfig_unsupported_versions/Gemfile.lock
  207. +1 −0  sinatra/autoconfig_unsupported_versions/app.rb
  208. +2 −0  sinatra/broken_app/Gemfile
  209. +13 −0 sinatra/broken_app/Gemfile.lock
  210. BIN  sinatra/broken_gem_app/vendor/cache/broken-0.0.1.gem
  211. BIN  sinatra/couchdb_app/vendor/cache/couchrest-1.1.2.gem
  212. BIN  sinatra/couchdb_app/vendor/cache/json-1.7.3.gem
  213. BIN  sinatra/couchdb_app/vendor/cache/mime-types-1.18.gem
  214. BIN  sinatra/couchdb_app/vendor/cache/multi_json-1.0.4.gem
  215. BIN  sinatra/couchdb_app/vendor/cache/rack-1.4.1.gem
  216. BIN  sinatra/couchdb_app/vendor/cache/rack-protection-1.2.0.gem
  217. BIN  sinatra/couchdb_app/vendor/cache/rest-client-1.6.7.gem
  218. BIN  sinatra/couchdb_app/vendor/cache/sinatra-1.3.2.gem
  219. BIN  sinatra/couchdb_app/vendor/cache/tilt-1.3.3.gem
  220. BIN  sinatra/elasticsearch_app/vendor/cache/json-1.6.7.gem
  221. BIN  sinatra/elasticsearch_app/vendor/cache/mime-types-1.18.gem
  222. BIN  sinatra/elasticsearch_app/vendor/cache/rack-1.4.1.gem
  223. BIN  sinatra/elasticsearch_app/vendor/cache/rack-protection-1.2.0.gem
  224. BIN  sinatra/elasticsearch_app/vendor/cache/rest-client-1.6.7.gem
  225. BIN  sinatra/elasticsearch_app/vendor/cache/sinatra-1.3.2.gem
  226. BIN  sinatra/elasticsearch_app/vendor/cache/tilt-1.3.3.gem
  227. BIN  sinatra/env_test_app/vendor/cache/json-1.5.1.gem
  228. BIN  sinatra/env_test_app/vendor/cache/rack-1.2.2.gem
  229. BIN  sinatra/env_test_app/vendor/cache/sinatra-1.2.1.gem
  230. BIN  sinatra/env_test_app/vendor/cache/tilt-1.2.2.gem
  231. +3 −0  sinatra/gem_groups/Gemfile
  232. +3 −0  sinatra/hello_vcap/Gemfile
  233. +17 −0 sinatra/hello_vcap/Gemfile.lock
  234. BIN  sinatra/memcached_app/vendor/cache/dalli-2.0.3.gem
  235. BIN  sinatra/memcached_app/vendor/cache/json-1.7.0.gem
  236. BIN  sinatra/memcached_app/vendor/cache/rack-1.4.1.gem
  237. BIN  sinatra/memcached_app/vendor/cache/rack-protection-1.2.0.gem
  238. BIN  sinatra/memcached_app/vendor/cache/sinatra-1.3.2.gem
  239. BIN  sinatra/memcached_app/vendor/cache/tilt-1.3.3.gem
  240. +2 −0  sinatra/modified_simple_app/Gemfile
  241. +17 −0 sinatra/modified_simple_app/Gemfile.lock
  242. BIN  sinatra/neo4j_app/vendor/cache/crack-0.1.8.gem
  243. BIN  sinatra/neo4j_app/vendor/cache/httparty-0.7.7.gem
  244. BIN  sinatra/neo4j_app/vendor/cache/json-1.5.1.gem
  245. BIN  sinatra/neo4j_app/vendor/cache/neography-0.0.13.gem
  246. BIN  sinatra/neo4j_app/vendor/cache/rack-1.2.2.gem
  247. BIN  sinatra/neo4j_app/vendor/cache/sinatra-1.2.6.gem
  248. BIN  sinatra/neo4j_app/vendor/cache/tilt-1.3.gem
  249. BIN  sinatra/redis_lb_app/vendor/cache/json-1.5.1.gem
  250. BIN  sinatra/redis_lb_app/vendor/cache/rack-1.2.2.gem
  251. BIN  sinatra/redis_lb_app/vendor/cache/redis-2.2.0.gem
  252. BIN  sinatra/redis_lb_app/vendor/cache/sinatra-1.2.1.gem
  253. BIN  sinatra/redis_lb_app/vendor/cache/tilt-1.2.2.gem
  254. +4 −0 standalone/node_app/package.json
  255. +2 −1  standalone/ruby_autoconfig/Gemfile
  256. +4 −0 standalone/ruby_autoconfig/Gemfile.lock
  257. +1 −0  standalone/ruby_autoconfig/app.rb
  258. +0 −11 standalone/ruby_autoconfig_disabled_by_file/Gemfile
  259. +0 −35 standalone/ruby_autoconfig_disabled_by_file/Gemfile.lock
  260. +0 −38 standalone/ruby_autoconfig_disabled_by_file/app.rb
  261. +0 −1  standalone/ruby_autoconfig_disabled_by_file/config/cloudfoundry.yml
  262. +0 −11 standalone/ruby_autoconfig_disabled_by_gem/Gemfile
  263. +0 −30 standalone/ruby_autoconfig_disabled_by_gem/Gemfile.lock
  264. +0 −38 standalone/ruby_autoconfig_disabled_by_gem/app.rb
  265. +1 −0  standalone/simple_ruby_app/Gemfile
  266. +8 −0 standalone/simple_ruby_app/Gemfile.lock
View
4 node/app_node_service/package.json
@@ -0,0 +1,4 @@
+{
+ "name" : "app_node_service",
+ "version" : "0.1.0"
+}
View
4 node/app_node_version/package.json
@@ -0,0 +1,4 @@
+{
+ "name" : "app_node_version",
+ "version" : "0.1.0"
+}
View
2  node/node_autoconfig/app.js
@@ -1,3 +1,5 @@
+require("cf-autoconfig");
+
var port = 3000;
var serviceConfig = {
View
3  node/node_autoconfig/package.json
@@ -6,6 +6,7 @@
"pg" : "0.6.18",
"redis" : "0.7.2",
"mongodb" : "1.0.2",
- "amqp" : "0.1.3"
+ "amqp" : "0.1.3",
+ "cf-autoconfig" : "0.1.0"
}
}
View
27 node/node_autoconfig_disabled_by_file/app.js
@@ -1,27 +0,0 @@
-var port = process.env.VCAP_APP_PORT || 3000;
-
-require("http").createServer(function (req, res) {
- var params = require("url").parse(req.url);
- var matches = params.pathname.match(/\/service\/([^\/]*)\/([^\/]*)/);
- if (matches) {
- var serviceName = matches[1];
- var serviceKey = matches[2];
- switch (serviceName) {
- case "redis" :
- if (serviceKey === "connection") {
- try {
- var client = require("redis").createClient(6379, "127.0.0.1");
-
- client.on("error", function (err) {
- res.end(err.message.replace(/\s/g, "").substr(0, 37));
- client.quit();
- });
- } catch (e) {}
- }
- break;
- }
- }
- else {
- res.end("hello from node");
- }
-}).listen(port);
View
1  node/node_autoconfig_disabled_by_file/cloudfoundry.json
@@ -1 +0,0 @@
-{ "cfAutoconfig" : false }
View
46 node/node_autoconfig_disabled_by_file/npm-shrinkwrap.json
@@ -1,46 +0,0 @@
-{
- "name": "node_autoconfig",
- "version": "0.1.0",
- "dependencies": {
- "mysql": {
- "version": "0.9.6",
- "dependencies": {
- "hashish": {
- "version": "0.0.4",
- "dependencies": {
- "traverse": {
- "version": "0.6.3"
- }
- }
- }
- }
- },
- "pg": {
- "version": "0.6.18",
- "dependencies": {
- "generic-pool": {
- "version": "1.0.9"
- }
- }
- },
- "redis": {
- "version": "0.7.2",
- "dependencies": {
- "hiredis": {
- "version": "0.1.14"
- }
- }
- },
- "mongodb": {
- "version": "1.0.2",
- "dependencies": {
- "bson": {
- "version": "0.0.6"
- }
- }
- },
- "amqp": {
- "version": "0.1.3"
- }
- }
-}
View
11 node/node_autoconfig_disabled_by_file/package.json
@@ -1,11 +0,0 @@
-{
- "name" : "node_autoconfig",
- "version" : "0.1.0",
- "dependencies" : {
- "mysql" : "0.9.6",
- "pg" : "0.6.18",
- "redis" : "0.7.2",
- "mongodb" : "1.0.2",
- "amqp" : "0.1.3"
- }
-}
View
28 node/node_autoconfig_disabled_by_module/app.js
@@ -1,28 +0,0 @@
-var app = require("cf-runtime").CloudApp;
-var port = app.port || 3000;
-
-require("http").createServer(function (req, res) {
- var params = require("url").parse(req.url);
- var matches = params.pathname.match(/\/service\/([^\/]*)\/([^\/]*)/);
- if (matches) {
- var serviceName = matches[1];
- var serviceKey = matches[2];
- switch (serviceName) {
- case "redis" :
- if (serviceKey === "connection") {
- try {
- var client = require("redis").createClient(6379, "127.0.0.1");
-
- client.on("error", function (err) {
- res.end(err.message.replace(/\s/g, "").substr(0, 37));
- client.quit();
- });
- } catch (e) {}
- }
- break;
- }
- }
- else {
- res.end("hello from node");
- }
-}).listen(port);
View
49 node/node_autoconfig_disabled_by_module/npm-shrinkwrap.json
@@ -1,49 +0,0 @@
-{
- "name": "node_autoconfig",
- "version": "0.1.0",
- "dependencies": {
- "mysql": {
- "version": "0.9.6",
- "dependencies": {
- "hashish": {
- "version": "0.0.4",
- "dependencies": {
- "traverse": {
- "version": "0.6.3"
- }
- }
- }
- }
- },
- "pg": {
- "version": "0.6.18",
- "dependencies": {
- "generic-pool": {
- "version": "1.0.9"
- }
- }
- },
- "redis": {
- "version": "0.7.2",
- "dependencies": {
- "hiredis": {
- "version": "0.1.14"
- }
- }
- },
- "mongodb": {
- "version": "1.0.2",
- "dependencies": {
- "bson": {
- "version": "0.0.6"
- }
- }
- },
- "amqp": {
- "version": "0.1.3"
- },
- "cf-runtime": {
- "version": "0.0.1"
- }
- }
-}
View
12 node/node_autoconfig_disabled_by_module/package.json
@@ -1,12 +0,0 @@
-{
- "name" : "node_autoconfig",
- "version" : "0.1.0",
- "dependencies" : {
- "mysql" : "0.9.6",
- "pg" : "0.6.18",
- "redis" : "0.7.2",
- "mongodb" : "1.0.2",
- "amqp" : "0.1.3",
- "cf-runtime" : ""
- }
-}
View
17 node/node_dependencies04/app.js
@@ -1,17 +0,0 @@
-var app = require("express").createServer();
-var bcrypt = require("bcrypt"); // native dependency
-
-app.get("/", function(req, res) {
- var salt = bcrypt.gen_salt_sync(10);
- var hash = bcrypt.encrypt_sync("B4c0/\/", salt);
- if (bcrypt.compare_sync("B4c0/\/", hash))
- res.send("hello from express");
- else
- res.send("");
-});
-
-var port = process.env.VCAP_APP_PORT || 3000;
-
-app.listen(port, function () {
- console.log("Express server started on port %s", app.address().port);
-});
View
31 node/node_dependencies04/npm-shrinkwrap.json
@@ -1,31 +0,0 @@
-{
- "name": "node-dependencies04",
- "version": "0.1.0",
- "dependencies": {
- "express": {
- "version": "2.5.9",
- "dependencies": {
- "connect": {
- "version": "1.8.7",
- "dependencies": {
- "formidable": {
- "version": "1.0.9"
- }
- }
- },
- "mime": {
- "version": "1.2.4"
- },
- "qs": {
- "version": "0.4.2"
- },
- "mkdirp": {
- "version": "0.3.0"
- }
- }
- },
- "bcrypt": {
- "version": "0.4.1"
- }
- }
-}
View
8 node/node_dependencies04/package.json
@@ -1,8 +0,0 @@
-{
- "name" : "node-dependencies04",
- "version" : "0.1.0",
- "dependencies" : {
- "express" : "",
- "bcrypt" : ""
- }
-}
View
4 node/node_dependencies06/package.json
@@ -4,5 +4,9 @@
"dependencies" : {
"express" : "2.5.x",
"bcrypt" : ""
+ },
+ "engines": {
+ "node": "0.6.8",
+ "npm": "1.1.1"
}
}
View
3  node/node_dependencies08/app.js
@@ -2,6 +2,7 @@
// which depends on node-gyp
var bcrypt = require("bcrypt");
+var port = process.env.VCAP_APP_PORT || 3000;
require("http").createServer(function(req, res) {
var salt = bcrypt.genSaltSync(10);
@@ -10,4 +11,4 @@ require("http").createServer(function(req, res) {
res.end("hello from node-gyp");
else
res.end("");
-}).listen(3000);
+}).listen(port);
View
4 node/node_dependencies08/package.json
@@ -3,5 +3,9 @@
"version" : "0.1.0",
"dependencies" : {
"bcrypt" : "0.7.x"
+ },
+ "engines": {
+ "node": "0.8.x",
+ "npm": ">= 1.1.2"
}
}
View
3  node/node_git/app.js
@@ -1,4 +1,5 @@
var semver = require("semver");
+var port = process.env.VCAP_APP_PORT || 3000;
require("http").createServer(function(req, res) {
if (semver.satisfies("1.2.3", "1.x || >=2.5.0 || 5.0.0 - 7.2.3")) {
@@ -7,4 +8,4 @@ require("http").createServer(function(req, res) {
else {
res.end("something is wrong");
}
-}).listen(3000);
+}).listen(port);
View
4 node/node_imagemagick/package.json
@@ -0,0 +1,4 @@
+{
+ "name" : "node-imagemagick",
+ "version" : "0.0.1"
+}
View
3  rack/app_rack_service/Gemfile
@@ -1,6 +1,9 @@
source "http://rubygems.org"
# Without any bound services, app runs on sqlite3
#.. but may also be staged with mysql
+
+ruby "1.8.7"
+
gem 'mysql2'
gem 'mongo'
gem 'redis'
View
6 rack/app_rack_service_autoconfig/Gemfile
@@ -1,6 +1,9 @@
source "http://rubygems.org"
# Without any bound services, app runs on sqlite3
#.. but may also be staged with mysql
+
+ruby "1.8.7"
+
gem 'mysql2'
gem 'mongo'
gem 'redis'
@@ -8,4 +11,5 @@ gem 'sinatra'
gem 'json'
gem 'carrot'
gem 'pg'
-gem 'aws-s3'
+gem 'aws-s3'
+gem "cf-autoconfig"
View
4 rack/app_rack_service_autoconfig/Gemfile.lock
@@ -8,6 +8,9 @@ GEM
bson (1.2.4)
builder (3.1.4)
carrot (1.2.0)
+ cf-autoconfig (0.1.0)
+ cf-runtime (= 0.1.1)
+ cf-runtime (0.1.1)
json (1.4.6)
mime-types (1.19)
mongo (1.2.4)
@@ -28,6 +31,7 @@ PLATFORMS
DEPENDENCIES
aws-s3
carrot
+ cf-autoconfig
json
mongo
mysql2
View
1  rack/app_rack_service_autoconfig/app.rb
@@ -7,6 +7,7 @@
require 'uri'
require 'pg'
require 'aws/s3'
+require "cfautoconfig"
class RackAutoConfigApp < Sinatra::Base
get '/env' do
View
11 rack/autoconfig_disabled_by_file/Gemfile
@@ -1,11 +0,0 @@
-source "http://rubygems.org"
-# Without any bound services, app runs on sqlite3
-#.. but may also be staged with mysql
-gem 'mysql2'
-gem 'mongo'
-gem 'redis'
-gem 'sinatra'
-gem 'json'
-gem 'carrot'
-gem 'pg'
-gem 'thin'
View
35 rack/autoconfig_disabled_by_file/Gemfile.lock
@@ -1,35 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- bson (1.2.4)
- carrot (0.8.1)
- daemons (1.1.8)
- eventmachine (0.12.10)
- json (1.4.6)
- mongo (1.2.4)
- bson (>= 1.2.4)
- mysql2 (0.3.2)
- pg (0.11.0)
- rack (1.2.2)
- redis (1.0.7)
- sinatra (1.2.6)
- rack (~> 1.1)
- tilt (>= 1.2.2, < 2.0)
- thin (1.3.1)
- daemons (>= 1.0.9)
- eventmachine (>= 0.12.6)
- rack (>= 1.0.0)
- tilt (1.3)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- carrot
- json
- mongo
- mysql2
- pg
- redis
- sinatra
- thin
View
40 rack/autoconfig_disabled_by_file/app.rb
@@ -1,40 +0,0 @@
-require 'sinatra'
-require 'redis'
-require 'json'
-require 'mongo'
-require 'mysql2'
-require 'carrot'
-require 'uri'
-require 'pg'
-
-class RackAutoConfigApp < Sinatra::Base
-get '/env' do
- ENV['VCAP_SERVICES']
-end
-
-get '/' do
- 'hello from sinatra'
-end
-
-get '/crash' do
- Process.kill("KILL", Process.pid)
-end
-
-get '/service/redis/connection' do
- begin
- redis = load_redis
- redis[:host] + ':' + redis[:port]
- rescue Exception => e
- e.message.gsub(/\s+/, "")
- end
-end
-
-not_found do
- 'This is nowhere to be found.'
-end
-
-
-def load_redis
- Redis.new({:host => '127.0.0.1', :port => 6379, :password => 'testpw'})
-end
-end
View
5 rack/autoconfig_disabled_by_file/config.ru
@@ -1,5 +0,0 @@
-require 'app'
-
-use Rack::ShowExceptions
-run Rack::URLMap.new \
- "/" => RackAutoConfigApp.new
View
1  rack/autoconfig_disabled_by_file/config/cloudfoundry.yml
@@ -1 +0,0 @@
-autoconfig: false
View
11 rack/autoconfig_disabled_by_gem/Gemfile
@@ -1,11 +0,0 @@
-source "http://rubygems.org"
-# Without any bound services, app runs on sqlite3
-#.. but may also be staged with mysql
-gem 'mysql2'
-gem 'mongo'
-gem 'redis'
-gem 'sinatra'
-gem 'json'
-gem 'carrot'
-gem 'pg'
-gem 'cf-runtime'
View
30 rack/autoconfig_disabled_by_gem/Gemfile.lock
@@ -1,30 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- bson (1.2.4)
- carrot (0.8.1)
- cf-runtime (0.0.1)
- json (1.4.6)
- mongo (1.2.4)
- bson (>= 1.2.4)
- mysql2 (0.3.2)
- pg (0.11.0)
- rack (1.2.2)
- redis (1.0.7)
- sinatra (1.2.6)
- rack (~> 1.1)
- tilt (>= 1.2.2, < 2.0)
- tilt (1.3)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- carrot
- cf-runtime
- json
- mongo
- mysql2
- pg
- redis
- sinatra
View
40 rack/autoconfig_disabled_by_gem/app.rb
@@ -1,40 +0,0 @@
-require 'sinatra'
-require 'redis'
-require 'json'
-require 'mongo'
-require 'mysql2'
-require 'carrot'
-require 'uri'
-require 'pg'
-
-class RackAutoConfigApp < Sinatra::Base
-get '/env' do
- ENV['VCAP_SERVICES']
-end
-
-get '/' do
- 'hello from sinatra'
-end
-
-get '/crash' do
- Process.kill("KILL", Process.pid)
-end
-
-get '/service/redis/connection' do
- begin
- redis = load_redis
- redis[:host] + ':' + redis[:port]
- rescue Exception => e
- e.message.gsub(/\s+/, "")
- end
-end
-
-not_found do
- 'This is nowhere to be found.'
-end
-
-
-def load_redis
- Redis.new({:host => '127.0.0.1', :port => 6379, :password => 'testpw'})
-end
-end
View
5 rack/autoconfig_disabled_by_gem/config.ru
@@ -1,5 +0,0 @@
-require 'app'
-
-use Rack::ShowExceptions
-run Rack::URLMap.new \
- "/" => RackAutoConfigApp.new
View
1  rack/autoconfig_ruby19/Gemfile
@@ -5,3 +5,4 @@ gem 'sinatra'
gem 'json_pure'
gem 'redis'
gem 'thin'
+gem "cf-autoconfig"
View
4 rack/autoconfig_ruby19/Gemfile.lock
@@ -1,6 +1,9 @@
GEM
remote: http://rubygems.org/
specs:
+ cf-autoconfig (0.1.0)
+ cf-runtime (= 0.1.1)
+ cf-runtime (0.1.1)
daemons (1.1.8)
eventmachine (0.12.10)
json_pure (1.6.3)
@@ -22,6 +25,7 @@ PLATFORMS
ruby
DEPENDENCIES
+ cf-autoconfig
json_pure
redis
sinatra
View
1  rack/autoconfig_ruby19/app.rb
@@ -2,6 +2,7 @@
require 'redis'
require 'json'
require 'uri'
+require 'cfautoconfig'
class RackAutoConfigApp < Sinatra::Base
get '/env' do
View
3  rails3/app_rails_service_autoconfig/Gemfile
@@ -9,4 +9,5 @@ gem 'mongo'
gem 'mongo_mapper'
gem 'carrot'
gem 'pg'
-gem 'aws-s3'
+gem 'aws-s3'
+gem "cf-autoconfig"
View
4 rails3/app_rails_service_autoconfig/Gemfile.lock
@@ -36,6 +36,9 @@ GEM
bson (1.2.4)
builder (2.1.2)
carrot (1.2.0)
+ cf-autoconfig (0.1.0)
+ cf-runtime (= 0.1.1)
+ cf-runtime (0.1.1)
daemons (1.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
@@ -96,6 +99,7 @@ PLATFORMS
DEPENDENCIES
aws-s3
carrot
+ cf-autoconfig
json
mongo
mongo_mapper
View
1  rails3/app_rails_service_autoconfig/config/initializers/autoconfig.rb
@@ -0,0 +1 @@
+require "cfautoconfig"
View
4 rails3/app_rails_version/Gemfile
@@ -5,10 +5,10 @@ gem 'rails', '3.1.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
-gem 'sqlite3'
-
gem 'json'
+gem "mysql2"
+
# Gems used only for assets and not required
# in production environments by default.
group :assets do
View
4 rails3/app_rails_version/Gemfile.lock
@@ -53,6 +53,7 @@ GEM
treetop (~> 1.4.8)
mime-types (1.17.2)
multi_json (1.1.0)
+ mysql2 (0.3.11)
polyglot (0.3.3)
rack (1.3.6)
rack-cache (1.2)
@@ -91,7 +92,6 @@ GEM
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
- sqlite3 (1.3.5)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
@@ -109,7 +109,7 @@ DEPENDENCIES
coffee-rails (~> 3.1.1)
jquery-rails
json
+ mysql2
rails (= 3.1.3)
sass-rails (~> 3.1.5)
- sqlite3
uglifier (>= 1.0.3)
View
11 rails3/autoconfig_disabled_by_file/Gemfile
@@ -1,11 +0,0 @@
-source "http://rubygems.org"
-gem 'rails', '~> 3.0.5'
-gem 'sqlite3'
-gem 'mysql2'
-gem 'thin'
-gem 'json'
-gem 'redis'
-gem 'mongo'
-gem 'mongo_mapper'
-gem 'carrot'
-gem 'pg'
View
101 rails3/autoconfig_disabled_by_file/Gemfile.lock
@@ -1,101 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- abstract (1.0.0)
- actionmailer (3.0.6)
- actionpack (= 3.0.6)
- mail (~> 2.2.15)
- actionpack (3.0.6)
- activemodel (= 3.0.6)
- activesupport (= 3.0.6)
- builder (~> 2.1.2)
- erubis (~> 2.6.6)
- i18n (~> 0.5.0)
- rack (~> 1.2.1)
- rack-mount (~> 0.6.14)
- rack-test (~> 0.5.7)
- tzinfo (~> 0.3.23)
- activemodel (3.0.6)
- activesupport (= 3.0.6)
- builder (~> 2.1.2)
- i18n (~> 0.5.0)
- activerecord (3.0.6)
- activemodel (= 3.0.6)
- activesupport (= 3.0.6)
- arel (~> 2.0.2)
- tzinfo (~> 0.3.23)
- activeresource (3.0.6)
- activemodel (= 3.0.6)
- activesupport (= 3.0.6)
- activesupport (3.0.6)
- arel (2.0.9)
- bson (1.2.4)
- builder (2.1.2)
- carrot (0.8.1)
- daemons (1.1.2)
- erubis (2.6.6)
- abstract (>= 1.0.0)
- eventmachine (0.12.10)
- i18n (0.5.0)
- json (1.5.1)
- mail (2.2.15)
- activesupport (>= 2.3.6)
- i18n (>= 0.4.0)
- mime-types (~> 1.16)
- treetop (~> 1.4.8)
- mime-types (1.16)
- mongo (1.2.4)
- bson (>= 1.2.4)
- mongo_mapper (0.9.0)
- activemodel (~> 3.0.0)
- activesupport (~> 3.0.0)
- plucky (~> 0.3.6)
- mysql2 (0.2.7)
- pg (0.11.0)
- plucky (0.3.7)
- mongo (~> 1.1)
- polyglot (0.3.1)
- rack (1.2.2)
- rack-mount (0.6.14)
- rack (>= 1.0.0)
- rack-test (0.5.7)
- rack (>= 1.0)
- rails (3.0.6)
- actionmailer (= 3.0.6)
- actionpack (= 3.0.6)
- activerecord (= 3.0.6)
- activeresource (= 3.0.6)
- activesupport (= 3.0.6)
- bundler (~> 1.0)
- railties (= 3.0.6)
- railties (3.0.6)
- actionpack (= 3.0.6)
- activesupport (= 3.0.6)
- rake (>= 0.8.7)
- thor (~> 0.14.4)
- rake (0.8.7)
- redis (2.2.0)
- sqlite3 (1.3.3)
- thin (1.2.11)
- daemons (>= 1.0.9)
- eventmachine (>= 0.12.6)
- rack (>= 1.0.0)
- thor (0.14.6)
- treetop (1.4.9)
- polyglot (>= 0.3.1)
- tzinfo (0.3.26)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- carrot
- json
- mongo
- mongo_mapper
- mysql2
- pg
- rails (~> 3.0.5)
- redis
- sqlite3
- thin
View
256 rails3/autoconfig_disabled_by_file/README
@@ -1,256 +0,0 @@
-== Welcome to Rails
-
-Rails is a web-application framework that includes everything needed to create
-database-backed web applications according to the Model-View-Control pattern.
-
-This pattern splits the view (also called the presentation) into "dumb"
-templates that are primarily responsible for inserting pre-built data in between
-HTML tags. The model contains the "smart" domain objects (such as Account,
-Product, Person, Post) that holds all the business logic and knows how to
-persist themselves to a database. The controller handles the incoming requests
-(such as Save New Account, Update Product, Show Post) by manipulating the model
-and directing data to the view.
-
-In Rails, the model is handled by what's called an object-relational mapping
-layer entitled Active Record. This layer allows you to present the data from
-database rows as objects and embellish these data objects with business logic
-methods. You can read more about Active Record in
-link:files/vendor/rails/activerecord/README.html.
-
-The controller and view are handled by the Action Pack, which handles both
-layers by its two parts: Action View and Action Controller. These two layers
-are bundled in a single package due to their heavy interdependence. This is
-unlike the relationship between the Active Record and Action Pack that is much
-more separate. Each of these packages can be used independently outside of
-Rails. You can read more about Action Pack in
-link:files/vendor/rails/actionpack/README.html.
-
-
-== Getting Started
-
-1. At the command prompt, create a new Rails application:
- <tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
-
-2. Change directory to <tt>myapp</tt> and start the web server:
- <tt>cd myapp; rails server</tt> (run with --help for options)
-
-3. Go to http://localhost:3000/ and you'll see:
- "Welcome aboard: You're riding Ruby on Rails!"
-
-4. Follow the guidelines to start developing your application. You can find
-the following resources handy:
-
-* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
-* Ruby on Rails Tutorial Book: http://www.railstutorial.org/
-
-
-== Debugging Rails
-
-Sometimes your application goes wrong. Fortunately there are a lot of tools that
-will help you debug it and get it back on the rails.
-
-First area to check is the application log files. Have "tail -f" commands
-running on the server.log and development.log. Rails will automatically display
-debugging and runtime information to these files. Debugging info will also be
-shown in the browser on requests from 127.0.0.1.
-
-You can also log your own messages directly into the log file from your code
-using the Ruby logger class from inside your controllers. Example:
-
- class WeblogController < ActionController::Base
- def destroy
- @weblog = Weblog.find(params[:id])
- @weblog.destroy
- logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
- end
- end
-
-The result will be a message in your log file along the lines of:
-
- Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
-
-More information on how to use the logger is at http://www.ruby-doc.org/core/
-
-Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
-several books available online as well:
-
-* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
-* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
-
-These two books will bring you up to speed on the Ruby language and also on
-programming in general.
-
-
-== Debugger
-
-Debugger support is available through the debugger command when you start your
-Mongrel or WEBrick server with --debugger. This means that you can break out of
-execution at any point in the code, investigate and change the model, and then,
-resume execution! You need to install ruby-debug to run the server in debugging
-mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
-
- class WeblogController < ActionController::Base
- def index
- @posts = Post.find(:all)
- debugger
- end
- end
-
-So the controller will accept the action, run the first line, then present you
-with a IRB prompt in the server window. Here you can do things like:
-
- >> @posts.inspect
- => "[#<Post:0x14a6be8
- @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
- #<Post:0x14a6620
- @attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
- >> @posts.first.title = "hello from a debugger"
- => "hello from a debugger"
-
-...and even better, you can examine how your runtime objects actually work:
-
- >> f = @posts.first
- => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
- >> f.
- Display all 152 possibilities? (y or n)
-
-Finally, when you're ready to resume execution, you can enter "cont".
-
-
-== Console
-
-The console is a Ruby shell, which allows you to interact with your
-application's domain model. Here you'll have all parts of the application
-configured, just like it is when the application is running. You can inspect
-domain models, change values, and save to the database. Starting the script
-without arguments will launch it in the development environment.
-
-To start the console, run <tt>rails console</tt> from the application
-directory.
-
-Options:
-
-* Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
- made to the database.
-* Passing an environment name as an argument will load the corresponding
- environment. Example: <tt>rails console production</tt>.
-
-To reload your controllers and models after launching the console run
-<tt>reload!</tt>
-
-More information about irb can be found at:
-link:http://www.rubycentral.com/pickaxe/irb.html
-
-
-== dbconsole
-
-You can go to the command line of your database directly through <tt>rails
-dbconsole</tt>. You would be connected to the database with the credentials
-defined in database.yml. Starting the script without arguments will connect you
-to the development database. Passing an argument will connect you to a different
-database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
-PostgreSQL and SQLite 3.
-
-== Description of Contents
-
-The default directory structure of a generated Ruby on Rails application:
-
- |-- app
- | |-- controllers
- | |-- helpers
- | |-- models
- | `-- views
- | `-- layouts
- |-- config
- | |-- environments
- | |-- initializers
- | `-- locales
- |-- db
- |-- doc
- |-- lib
- | `-- tasks
- |-- log
- |-- public
- | |-- images
- | |-- javascripts
- | `-- stylesheets
- |-- script
- | `-- performance
- |-- test
- | |-- fixtures
- | |-- functional
- | |-- integration
- | |-- performance
- | `-- unit
- |-- tmp
- | |-- cache
- | |-- pids
- | |-- sessions
- | `-- sockets
- `-- vendor
- `-- plugins
-
-app
- Holds all the code that's specific to this particular application.
-
-app/controllers
- Holds controllers that should be named like weblogs_controller.rb for
- automated URL mapping. All controllers should descend from
- ApplicationController which itself descends from ActionController::Base.
-
-app/models
- Holds models that should be named like post.rb. Models descend from
- ActiveRecord::Base by default.
-
-app/views
- Holds the template files for the view that should be named like
- weblogs/index.html.erb for the WeblogsController#index action. All views use
- eRuby syntax by default.
-
-app/views/layouts
- Holds the template files for layouts to be used with views. This models the
- common header/footer method of wrapping views. In your views, define a layout
- using the <tt>layout :default</tt> and create a file named default.html.erb.
- Inside default.html.erb, call <% yield %> to render the view using this
- layout.
-
-app/helpers
- Holds view helpers that should be named like weblogs_helper.rb. These are
- generated for you automatically when using generators for controllers.
- Helpers can be used to wrap functionality for your views into methods.
-
-config
- Configuration files for the Rails environment, the routing map, the database,
- and other dependencies.
-
-db
- Contains the database schema in schema.rb. db/migrate contains all the
- sequence of Migrations for your schema.
-
-doc
- This directory is where your application documentation will be stored when
- generated using <tt>rake doc:app</tt>
-
-lib
- Application specific libraries. Basically, any kind of custom code that
- doesn't belong under controllers, models, or helpers. This directory is in
- the load path.
-
-public
- The directory available for the web server. Contains subdirectories for
- images, stylesheets, and javascripts. Also contains the dispatchers and the
- default HTML files. This should be set as the DOCUMENT_ROOT of your web
- server.
-
-script
- Helper scripts for automation and generation.
-
-test
- Unit and functional tests along with fixtures. When using the rails generate
- command, template test files will be generated for you and placed in this
- directory.
-
-vendor
- External libraries that the application depends on. Also includes the plugins
- subdirectory. If the app has frozen rails, those gems also go here, under
- vendor/rails/. This directory is in the load path.
View
7 rails3/autoconfig_disabled_by_file/Rakefile
@@ -1,7 +0,0 @@
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-
-require File.expand_path('../config/application', __FILE__)
-require 'rake'
-
-Rails3::Application.load_tasks
View
3  rails3/autoconfig_disabled_by_file/app/controllers/application_controller.rb
@@ -1,3 +0,0 @@
-class ApplicationController < ActionController::Base
- protect_from_forgery
-end
View
29 rails3/autoconfig_disabled_by_file/app/controllers/service_controller.rb
@@ -1,29 +0,0 @@
-class ServiceController < ApplicationController
-
- def hello
- render :text => 'hello from rails'
- end
-
- def env
- render :text => ENV['VCAP_SERVICES']
- end
-
- def service
- value = ''
- if params[:service] == 'redis'
- begin
- client = redis_service
- value = client[params[:key]]
- rescue Exception => e
- value = e.message.gsub(/\s+/, "")
- end
- end
- render :text => value
- end
-
- private
- def redis_service
- Redis.new({:host => '127.0.0.1', :port => 6379, :password => 'mypass'})
- end
-
-end
View
2  rails3/autoconfig_disabled_by_file/app/helpers/application_helper.rb
@@ -1,2 +0,0 @@
-module ApplicationHelper
-end
View
2  rails3/autoconfig_disabled_by_file/app/helpers/root_helper.rb
@@ -1,2 +0,0 @@
-module RootHelper
-end
View
2  rails3/autoconfig_disabled_by_file/app/models/data_value.rb
@@ -1,2 +0,0 @@
-class DataValue < ActiveRecord::Base
-end
View
5 rails3/autoconfig_disabled_by_file/app/models/mongo_data_value.rb
@@ -1,5 +0,0 @@
-class MongoDataValue
- include MongoMapper::Document
- key :name, :type => String
- key :email, :type => String
-end
View
11 rails3/autoconfig_disabled_by_file/app/views/layouts/application.html.erb
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Rails3</title>
-</head>
-<body>
-
-<%= yield %>
-
-</body>
-</html>
View
5 rails3/autoconfig_disabled_by_file/app/views/root/index.html.erb
@@ -1,5 +0,0 @@
-<%- host = ENV['VCAP_APP_HOST'] %>
-<%- port = ENV['VCAP_APP_PORT'] %>
-<h1>
- Hello from VCAP! via: <%=host%>:<%=port%>
-</h1>
View
4 rails3/autoconfig_disabled_by_file/config.ru
@@ -1,4 +0,0 @@
-# This file is used by Rack-based servers to start the application.
-
-require ::File.expand_path('../config/environment', __FILE__)
-run Rails3::Application
View
42 rails3/autoconfig_disabled_by_file/config/application.rb
@@ -1,42 +0,0 @@
-require File.expand_path('../boot', __FILE__)
-
-require 'rails/all'
-
-# If you have a Gemfile, require the gems listed there, including any gems
-# you've limited to :test, :development, or :production.
-Bundler.require(:default, Rails.env) if defined?(Bundler)
-
-module Rails3
- class Application < Rails::Application
- # Settings in config/environments/* take precedence over those specified here.
- # Application configuration should go into files in config/initializers
- # -- all .rb files in that directory are automatically loaded.
-
- # Custom directories with classes and modules you want to be autoloadable.
- # config.autoload_paths += %W(#{config.root}/extras)
-
- # Only load the plugins named here, in the order given (default is alphabetical).
- # :all can be used as a placeholder for all plugins not explicitly named.
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
-
- # Activate observers that should always be running.
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
-
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
- # config.time_zone = 'Central Time (US & Canada)'
-
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
- # config.i18n.default_locale = :de
-
- # JavaScript files you want as :defaults (application.js is always included).
- config.action_view.javascript_expansions[:defaults] = %w()
-
- # Configure the default encoding used in templates for Ruby 1.9.
- config.encoding = "utf-8"
-
- # Configure sensitive parameters which will be filtered from the log file.
- config.filter_parameters += [:password]
- end
-end
View
13 rails3/autoconfig_disabled_by_file/config/boot.rb
@@ -1,13 +0,0 @@
-require 'rubygems'
-
-# Set up gems listed in the Gemfile.
-gemfile = File.expand_path('../../Gemfile', __FILE__)
-begin
- ENV['BUNDLE_GEMFILE'] = gemfile
- require 'bundler'
- Bundler.setup
-rescue Bundler::GemNotFound => e
- STDERR.puts e.message
- STDERR.puts "Try running `bundle install`."
- exit!
-end if File.exist?(gemfile)
View
1  rails3/autoconfig_disabled_by_file/config/cloudfoundry.yml
@@ -1 +0,0 @@
-autoconfig: false
View
12 rails3/autoconfig_disabled_by_file/config/database.yml
@@ -1,12 +0,0 @@
-test:
- adapter: sqlite3
- database: db/test.sqlite3
- encoding: utf8
-development:
- adapter: sqlite3
- database: db/dev.sqlite3
- encoding: utf8
-production:
- adapter: sqlite3
- database: db/prod.sqlite3
- encoding: utf8
View
5 rails3/autoconfig_disabled_by_file/config/environment.rb
@@ -1,5 +0,0 @@
-# Load the rails application
-require File.expand_path('../application', __FILE__)
-
-# Initialize the rails application
-Rails3::Application.initialize!
View
25 rails3/autoconfig_disabled_by_file/config/environments/development.rb
@@ -1,25 +0,0 @@
-Rails3::Application.configure do
- # Settings specified here will take precedence over those in config/environment.rb
-
- # In the development environment your application's code is reloaded on
- # every request. This slows down response time but is perfect for development
- # since you don't have to restart the webserver when you make code changes.
- config.cache_classes = false
-
- # Log error messages when you accidentally call methods on nil.
- config.whiny_nils = true
-
- # Show full error reports and disable caching
- config.consider_all_requests_local = true
- config.action_view.debug_rjs = true
- config.action_controller.perform_caching = false
-
- # Don't care if the mailer can't send
- config.action_mailer.raise_delivery_errors = false
-
- # Print deprecation notices to the Rails logger
- config.active_support.deprecation = :log
-
- # Only use best-standards-support built into browsers
- config.action_dispatch.best_standards_support = :builtin
-end
View
49 rails3/autoconfig_disabled_by_file/config/environments/production.rb
@@ -1,49 +0,0 @@
-Rails3::Application.configure do
- # Settings specified here will take precedence over those in config/environment.rb
-
- # The production environment is meant for finished, "live" apps.
- # Code is not reloaded between requests
- config.cache_classes = true
-
- # Full error reports are disabled and caching is turned on
- config.consider_all_requests_local = false
- config.action_controller.perform_caching = true
-
- # Specifies the header that your server uses for sending files
- config.action_dispatch.x_sendfile_header = "X-Sendfile"
-
- # For nginx:
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
-
- # If you have no front-end server that supports something like X-Sendfile,
- # just comment this out and Rails will serve the files
-
- # See everything in the log (default is :info)
- # config.log_level = :debug
-
- # Use a different logger for distributed setups
- # config.logger = SyslogLogger.new
-
- # Use a different cache store in production
- # config.cache_store = :mem_cache_store
-
- # Disable Rails's static asset server
- # In production, Apache or nginx will already do this
- config.serve_static_assets = false
-
- # Enable serving of images, stylesheets, and javascripts from an asset server
- # config.action_controller.asset_host = "http://assets.example.com"
-
- # Disable delivery errors, bad email addresses will be ignored
- # config.action_mailer.raise_delivery_errors = false
-
- # Enable threaded mode
- # config.threadsafe!
-
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
- # the I18n.default_locale when a translation can not be found)
- config.i18n.fallbacks = true
-
- # Send deprecation notices to registered listeners
- config.active_support.deprecation = :notify
-end
View
35 rails3/autoconfig_disabled_by_file/config/environments/test.rb
@@ -1,35 +0,0 @@
-Rails3::Application.configure do
- # Settings specified here will take precedence over those in config/environment.rb
-
- # The test environment is used exclusively to run your application's
- # test suite. You never need to work with it otherwise. Remember that
- # your test database is "scratch space" for the test suite and is wiped
- # and recreated between test runs. Don't rely on the data there!
- config.cache_classes = true
-
- # Log error messages when you accidentally call methods on nil.
- config.whiny_nils = true
-
- # Show full error reports and disable caching
- config.consider_all_requests_local = true
- config.action_controller.perform_caching = false
-
- # Raise exceptions instead of rendering exception templates
- config.action_dispatch.show_exceptions = false
-
- # Disable request forgery protection in test environment
- config.action_controller.allow_forgery_protection = false
-
- # Tell Action Mailer not to deliver emails to the real world.
- # The :test delivery method accumulates sent emails in the
- # ActionMailer::Base.deliveries array.
- config.action_mailer.delivery_method = :test
-
- # Use SQL instead of Active Record's schema dumper when creating the test database.
- # This is necessary if your schema can't be completely dumped by the schema dumper,
- # like if you have constraints or database-specific column types
- # config.active_record.schema_format = :sql
-
- # Print deprecation notices to the stderr
- config.active_support.deprecation = :stderr
-end
View
7 rails3/autoconfig_disabled_by_file/config/initializers/backtrace_silencers.rb
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-# Rails.backtrace_cleaner.remove_silencers!
View
10 rails3/autoconfig_disabled_by_file/config/initializers/inflections.rb
@@ -1,10 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format
-# (all these examples are active by default):
-# ActiveSupport::Inflector.inflections do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
-# inflect.uncountable %w( fish sheep )
-# end
View
5 rails3/autoconfig_disabled_by_file/config/initializers/mime_types.rb
@@ -1,5 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
-# Mime::Type.register_alias "text/html", :iphone
View
7 rails3/autoconfig_disabled_by_file/config/initializers/secret_token.rb
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Your secret key for verifying the integrity of signed cookies.
-# If you change this key, all old signed cookies will become invalid!
-# Make sure the secret is at least 30 characters and all random,
-# no regular words or you'll be exposed to dictionary attacks.
-Rails3::Application.config.secret_token = '95428acc913528bb7b924c0fb5fbb889581eead5e5221732a3115662ce352f7c05d57b52b44fb9518af07e45ddefe0bc5c218cb83958d720e9966ed86f74c36c'
View
8 rails3/autoconfig_disabled_by_file/config/initializers/session_store.rb
@@ -1,8 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-Rails3::Application.config.session_store :cookie_store, :key => '_rails3_session'
-
-# Use the database for sessions instead of the cookie-based default,
-# which shouldn't be used to store highly confidential information
-# (create the session table with "rake db:sessions:create")
-# Rails3::Application.config.session_store :active_record_store
View
5 rails3/autoconfig_disabled_by_file/config/locales/en.yml
@@ -1,5 +0,0 @@
-# Sample localization file for English. Add more files in this directory for other locales.
-# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
-
-en:
- hello: "Hello world"
View
62 rails3/autoconfig_disabled_by_file/config/routes.rb
@@ -1,62 +0,0 @@
-Rails3::Application.routes.draw do
- root :to => "service#hello"
- match '/crash' => 'service#crash'
- match '/env' => 'service#env'
- match '/service/:service/:key' => 'service#service', :via => [:get, :post]
- # The priority is based upon order of creation:
- # first created -> highest priority.
-
- # Sample of regular route:
- # match 'products/:id' => 'catalog#view'
- # Keep in mind you can assign values other than :controller and :action
-
- # Sample of named route:
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
- # This route can be invoked with purchase_url(:id => product.id)
-
- # Sample resource route (maps HTTP verbs to controller actions automatically):
- # resources :products
-
- # Sample resource route with options:
- # resources :products do
- # member do
- # get 'short'
- # post 'toggle'
- # end
- #
- # collection do
- # get 'sold'
- # end
- # end
-
- # Sample resource route with sub-resources:
- # resources :products do
- # resources :comments, :sales
- # resource :seller
- # end
-
- # Sample resource route with more complex sub-resources
- # resources :products do
- # resources :comments
- # resources :sales do
- # get 'recent', :on => :collection
- # end
- # end
-
- # Sample resource route within a namespace:
- # namespace :admin do
- # # Directs /admin/products/* to Admin::ProductsController
- # # (app/controllers/admin/products_controller.rb)
- # resources :products
- # end
-
- # You can have the root of your site routed with "root"
- # just remember to delete public/index.html.
- # root :to => "welcome#index"
-
- # See how all your routes lay out with "rake routes"
-
- # This is a legacy wild controller route that's not recommended for RESTful applications.
- # Note: This route will make all actions in every controller accessible via GET requests.
- # match ':controller(/:action(/:id(.:format)))'
-end
View
13 rails3/autoconfig_disabled_by_file/db/migrate/20110513200739_create_data_values.rb
@@ -1,13 +0,0 @@
-class CreateDataValues < ActiveRecord::Migration
- def self.up
- create_table :data_values do |t|
- t.string :key
- t.string :data_value
- t.timestamps
- end
- end
-
- def self.down
- drop_table :data_values
- end
-end
View
22 rails3/autoconfig_disabled_by_file/db/schema.rb
@@ -1,22 +0,0 @@
-# This file is auto-generated from the current state of the database. Instead
-# of editing this file, please use the migrations feature of Active Record to
-# incrementally modify your database, and then regenerate this schema definition.
-#
-# Note that this schema.rb definition is the authoritative source for your
-# database schema. If you need to create the application database on another
-# system, you should be using db:schema:load, not running all the migrations
-# from scratch. The latter is a flawed and unsustainable approach (the more migrations
-# you'll amass, the slower it'll run and the greater likelihood for issues).
-#
-# It's strongly recommended to check this file into your version control system.
-
-ActiveRecord::Schema.define(:version => 20101108182500) do
-
- create_table "data_values", :force => true do |t|
- t.string "key"
- t.string "data_value"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
-end
View
7 rails3/autoconfig_disabled_by_file/db/seeds.rb
@@ -1,7 +0,0 @@
-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
-#
-# Examples:
-#
-# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
-# Mayor.create(:name => 'Daley', :city => cities.first)
View
0  rails3/autoconfig_disabled_by_file/lib/tasks/.gitkeep
No changes.
View
26 rails3/autoconfig_disabled_by_file/public/404.html
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>The page you were looking for doesn't exist (404)</title>
- <style type="text/css">
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
- div.dialog {
- width: 25em;
- padding: 0 4em;
- margin: 4em auto 0 auto;
- border: 1px solid #ccc;
- border-right-color: #999;
- border-bottom-color: #999;
- }
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
- </style>
-</head>
-
-<body>
- <!-- This file lives in public/404.html -->
- <div class="dialog">
- <h1>The page you were looking for doesn't exist.</h1>
- <p>You may have mistyped the address or the page may have moved.</p>
- </div>
-</body>
-</html>
View
26 rails3/autoconfig_disabled_by_file/public/422.html
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>The change you wanted was rejected (422)</title>
- <style type="text/css">
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
- div.dialog {
- width: 25em;
- padding: 0 4em;
- margin: 4em auto 0 auto;
- border: 1px solid #ccc;
- border-right-color: #999;
- border-bottom-color: #999;
- }
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
- </style>
-</head>
-
-<body>
- <!-- This file lives in public/422.html -->
- <div class="dialog">
- <h1>The change you wanted was rejected.</h1>
- <p>Maybe you tried to change something you didn't have access to.</p>
- </div>
-</body>
-</html>
View
26 rails3/autoconfig_disabled_by_file/public/500.html
@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>We're sorry, but something went wrong (500)</title>
- <style type="text/css">
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
- div.dialog {
- width: 25em;
- padding: 0 4em;
- margin: 4em auto 0 auto;
- border: 1px solid #ccc;
- border-right-color: #999;
- border-bottom-color: #999;
- }
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
- </style>
-</head>
-
-<body>
- <!-- This file lives in public/500.html -->
- <div class="dialog">
- <h1>We're sorry, but something went wrong.</h1>
- <p>We've been notified about this issue and we'll take a look at it shortly.</p>
- </div>
-</body>
-</html>
View
0  rails3/autoconfig_disabled_by_file/public/favicon.ico
No changes.
View
BIN  rails3/autoconfig_disabled_by_file/public/images/rails.png
Deleted file not rendered
View
0  rails3/autoconfig_disabled_by_file/public/javascripts/.gitkeep
No changes.
View
0  rails3/autoconfig_disabled_by_file/public/javascripts/application.js
No changes.
View
5 rails3/autoconfig_disabled_by_file/public/robots.txt
@@ -1,5 +0,0 @@
-# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
-#
-# To ban all spiders from the entire site uncomment the next two lines:
-# User-Agent: *
-# Disallow: /
View
0  rails3/autoconfig_disabled_by_file/public/stylesheets/.gitkeep
No changes.
View
6 rails3/autoconfig_disabled_by_file/script/rails
@@ -1,6 +0,0 @@
-#!/usr/bin/env ruby
-# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
-
-APP_PATH = File.expand_path('../../config/application', __FILE__)
-require File.expand_path('../../config/boot', __FILE__)
-require 'rails/commands'
View
14 rails3/autoconfig_disabled_by_file/test/functional/root_controller_test.rb
@@ -1,14 +0,0 @@
-require 'test_helper'
-
-class RootControllerTest < ActionController::TestCase
- test "should get index" do
- get :index
- assert_response :success
- end
-
- test "should save a widget" do
- get :make_widget, :name => 'my widget'
- assert_response :success
- assert_equal 'Saved my widget', response.body
- end
-end
View
9 rails3/autoconfig_disabled_by_file/test/performance/browsing_test.rb
@@ -1,9 +0,0 @@
-require 'test_helper'
-require 'rails/performance_test_help'
-
-# Profiling results for each test method are written to tmp/performance.
-class BrowsingTest < ActionDispatch::PerformanceTest
- def test_homepage
- get '/'
- end
-end
View
13 rails3/autoconfig_disabled_by_file/test/test_helper.rb
@@ -1,13 +0,0 @@
-ENV["RAILS_ENV"] = "test"
-require File.expand_path('../../config/environment', __FILE__)
-require 'rails/test_help'
-
-class ActiveSupport::TestCase
- # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
- #
- # Note: You'll currently still have to declare fixtures explicitly in integration tests
- # -- they do not yet inherit this setting
- fixtures :all
-
- # Add more helper methods to be used by all tests here...
-end
View
4 rails3/autoconfig_disabled_by_file/test/unit/helpers/root_helper_test.rb
@@ -1,4 +0,0 @@
-require 'test_helper'
-
-class RootHelperTest < ActionView::TestCase
-end
View
12 rails3/autoconfig_disabled_by_file/test/unit/widget_test.rb
@@ -1,12 +0,0 @@
-require 'test_helper'
-
-class WidgetTest < ActiveSupport::TestCase
- def new_widget
- Widget.new :name => "test widget"
- end
-
- test "Widget creation" do
- assert new_widget.save, "expected a new widget to be valid"
- assert_equal 1, Widget.count
- end
-end
View
12 rails3/autoconfig_disabled_by_gem/Gemfile
@@ -1,12 +0,0 @@
-source "http://rubygems.org"
-gem 'rails', '~> 3.0.5'
-gem 'sqlite3'
-gem 'mysql2'
-gem 'thin'
-gem 'json'
-gem 'redis'
-gem 'mongo'
-gem 'mongo_mapper'
-gem 'carrot'
-gem 'pg'
-gem 'cf-runtime'
View
103 rails3/autoconfig_disabled_by_gem/Gemfile.lock
@@ -1,103 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- abstract (1.0.0)
- actionmailer (3.0.6)
- actionpack (= 3.0.6)
- mail (~> 2.2.15)
- actionpack (3.0.6)
- activemodel (= 3.0.6)
- activesupport (= 3.0.6)
- builder (~> 2.1.2)
- erubis (~> 2.6.6)
- i18n (~> 0.5.0)
- rack (~> 1.2.1)
- rack-mount (~> 0.6.14)
- rack-test (~> 0.5.7)
- tzinfo (~> 0.3.23)
- activemodel (3.0.6)
- activesupport (= 3.0.6)
- builder (~> 2.1.2)
- i18n (~> 0.5.0)
- activerecord (3.0.6)
- activemodel (= 3.0.6)
- activesupport (= 3.0.6)
- arel (~> 2.0.2)
- tzinfo (~> 0.3.23)
- activeresource (3.0.6)
- activemodel (= 3.0.6)
- activesupport (= 3.0.6)
- activesupport (3.0.6)
- arel (2.0.9)
- bson (1.2.4)
- builder (2.1.2)
- carrot (0.8.1)
- cf-runtime (0.0.1)
- daemons (1.1.2)
- erubis (2.6.6)
- abstract (>= 1.0.0)
- eventmachine (0.12.10)
- i18n (0.5.0)
- json (1.5.1)
- mail (2.2.15)
- activesupport (>= 2.3.6)
- i18n (>= 0.4.0)
- mime-types (~> 1.16)
- treetop (~> 1.4.8)
- mime-types (1.16)
- mongo (1.2.4)
- bson (>= 1.2.4)
- mongo_mapper (0.9.0)
- activemodel (~> 3.0.0)
- activesupport (~> 3.0.0)
- plucky (~> 0.3.6)
- mysql2 (0.2.7)
- pg (0.11.0)
- plucky (0.3.7)
- mongo (~> 1.1)
- polyglot (0.3.1)
- rack (1.2.2)
- rack-mount (0.6.14)
- rack (>= 1.0.0)
- rack-test (0.5.7)
- rack (>= 1.0)
- rails (3.0.6)
- actionmailer (= 3.0.6)
- actionpack (= 3.0.6)
- activerecord (= 3.0.6)
- activeresource (= 3.0.6)
- activesupport (= 3.0.6)
- bundler (~> 1.0)
- railties (= 3.0.6)
- railties (3.0.6)
- actionpack (=