rails-asset-jqgrid 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/.gitignore +5 -0
  2. data/Gemfile +73 -0
  3. data/README.md +22 -0
  4. data/Rakefile +18 -0
  5. data/lib/rails-asset-jqgrid.rb +10 -0
  6. data/lib/rails-asset-jqgrid/engine.rb +9 -0
  7. data/lib/rails-asset-jqgrid/version.rb +7 -0
  8. data/rails-asset-jqgrid.gemspec +26 -0
  9. data/spec/dummy/.gitignore +15 -0
  10. data/spec/dummy/.rspec +1 -0
  11. data/spec/dummy/Guardfile +49 -0
  12. data/spec/dummy/README +261 -0
  13. data/spec/dummy/Rakefile +7 -0
  14. data/spec/dummy/app/assets/images/rails.png +0 -0
  15. data/spec/dummy/app/assets/javascripts/application.js +7 -0
  16. data/spec/dummy/app/assets/javascripts/home.js.coffee +3 -0
  17. data/spec/dummy/app/assets/javascripts/jqgrid.arraydata.js.coffee +124 -0
  18. data/spec/dummy/app/assets/stylesheets/application.css +4 -0
  19. data/spec/dummy/app/assets/stylesheets/home.css.scss +3 -0
  20. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  21. data/spec/dummy/app/controllers/home_controller.rb +5 -0
  22. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  23. data/spec/dummy/app/helpers/home_helper.rb +2 -0
  24. data/spec/dummy/app/mailers/.gitkeep +0 -0
  25. data/spec/dummy/app/models/.gitkeep +0 -0
  26. data/spec/dummy/app/views/home/index.html.haml +4 -0
  27. data/spec/dummy/app/views/layouts/application.html.erb +15 -0
  28. data/spec/dummy/config.ru +4 -0
  29. data/spec/dummy/config/application.rb +63 -0
  30. data/spec/dummy/config/boot.rb +10 -0
  31. data/spec/dummy/config/cucumber.yml +8 -0
  32. data/spec/dummy/config/database.yml +28 -0
  33. data/spec/dummy/config/environment.rb +5 -0
  34. data/spec/dummy/config/environments/development.rb +30 -0
  35. data/spec/dummy/config/environments/production.rb +60 -0
  36. data/spec/dummy/config/environments/test.rb +39 -0
  37. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/spec/dummy/config/initializers/generators.rb +2 -0
  39. data/spec/dummy/config/initializers/inflections.rb +10 -0
  40. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  41. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  42. data/spec/dummy/config/initializers/session_store.rb +8 -0
  43. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  44. data/spec/dummy/config/locales/en.yml +5 -0
  45. data/spec/dummy/config/routes.rb +60 -0
  46. data/spec/dummy/db/schema.rb +16 -0
  47. data/spec/dummy/db/seeds.rb +7 -0
  48. data/spec/dummy/doc/README_FOR_APP +2 -0
  49. data/spec/dummy/features/support/env.rb +56 -0
  50. data/spec/dummy/lib/assets/.gitkeep +0 -0
  51. data/spec/dummy/lib/tasks/.gitkeep +0 -0
  52. data/spec/dummy/lib/tasks/cucumber.rake +65 -0
  53. data/spec/dummy/log/.gitkeep +0 -0
  54. data/spec/dummy/public/404.html +26 -0
  55. data/spec/dummy/public/422.html +26 -0
  56. data/spec/dummy/public/500.html +26 -0
  57. data/spec/dummy/public/favicon.ico +0 -0
  58. data/spec/dummy/public/robots.txt +5 -0
  59. data/spec/dummy/script/cucumber +10 -0
  60. data/spec/dummy/script/rails +6 -0
  61. data/spec/dummy/spec/controllers/home_controller_spec.rb +12 -0
  62. data/spec/dummy/spec/helpers/home_helper_spec.rb +15 -0
  63. data/spec/dummy/spec/spec_helper.rb +32 -0
  64. data/spec/dummy/spec/views/home/index.html.haml_spec.rb +5 -0
  65. data/spec/dummy/vendor/assets/stylesheets/.gitkeep +0 -0
  66. data/spec/dummy/vendor/plugins/.gitkeep +0 -0
  67. data/spec/jqgrid_spec.rb +7 -0
  68. data/spec/spec_helper.rb +4 -0
  69. data/vendor/assets/javascripts/i18n/grid.locale-ar.js +126 -0
  70. data/vendor/assets/javascripts/i18n/grid.locale-bg.js +132 -0
  71. data/vendor/assets/javascripts/i18n/grid.locale-bg1251.js +132 -0
  72. data/vendor/assets/javascripts/i18n/grid.locale-cat.js +128 -0
  73. data/vendor/assets/javascripts/i18n/grid.locale-cn.js +132 -0
  74. data/vendor/assets/javascripts/i18n/grid.locale-cs.js +128 -0
  75. data/vendor/assets/javascripts/i18n/grid.locale-da.js +128 -0
  76. data/vendor/assets/javascripts/i18n/grid.locale-de.js +133 -0
  77. data/vendor/assets/javascripts/i18n/grid.locale-el.js +126 -0
  78. data/vendor/assets/javascripts/i18n/grid.locale-en.js +128 -0
  79. data/vendor/assets/javascripts/i18n/grid.locale-es.js +128 -0
  80. data/vendor/assets/javascripts/i18n/grid.locale-fa.js +145 -0
  81. data/vendor/assets/javascripts/i18n/grid.locale-fi.js +128 -0
  82. data/vendor/assets/javascripts/i18n/grid.locale-fr.js +126 -0
  83. data/vendor/assets/javascripts/i18n/grid.locale-gl.js +126 -0
  84. data/vendor/assets/javascripts/i18n/grid.locale-he.js +127 -0
  85. data/vendor/assets/javascripts/i18n/grid.locale-hu.js +129 -0
  86. data/vendor/assets/javascripts/i18n/grid.locale-is.js +126 -0
  87. data/vendor/assets/javascripts/i18n/grid.locale-it.js +1 -0
  88. data/vendor/assets/javascripts/i18n/grid.locale-ja.js +155 -0
  89. data/vendor/assets/javascripts/i18n/grid.locale-lt.js +128 -0
  90. data/vendor/assets/javascripts/i18n/grid.locale-mne.js +128 -0
  91. data/vendor/assets/javascripts/i18n/grid.locale-nl.js +149 -0
  92. data/vendor/assets/javascripts/i18n/grid.locale-no.js +1 -0
  93. data/vendor/assets/javascripts/i18n/grid.locale-pl.js +127 -0
  94. data/vendor/assets/javascripts/i18n/grid.locale-pt-br.js +127 -0
  95. data/vendor/assets/javascripts/i18n/grid.locale-pt.js +125 -0
  96. data/vendor/assets/javascripts/i18n/grid.locale-ro.js +139 -0
  97. data/vendor/assets/javascripts/i18n/grid.locale-ru.js +127 -0
  98. data/vendor/assets/javascripts/i18n/grid.locale-sk.js +127 -0
  99. data/vendor/assets/javascripts/i18n/grid.locale-sr.js +128 -0
  100. data/vendor/assets/javascripts/i18n/grid.locale-sv.js +127 -0
  101. data/vendor/assets/javascripts/i18n/grid.locale-th.js +128 -0
  102. data/vendor/assets/javascripts/i18n/grid.locale-tr.js +126 -0
  103. data/vendor/assets/javascripts/i18n/grid.locale-ua.js +127 -0
  104. data/vendor/assets/javascripts/jqgrid-ar.js +5 -0
  105. data/vendor/assets/javascripts/jqgrid-bg.js +5 -0
  106. data/vendor/assets/javascripts/jqgrid-bg1251.js +5 -0
  107. data/vendor/assets/javascripts/jqgrid-cat.js +5 -0
  108. data/vendor/assets/javascripts/jqgrid-cn.js +5 -0
  109. data/vendor/assets/javascripts/jqgrid-cs.js +5 -0
  110. data/vendor/assets/javascripts/jqgrid-da.js +5 -0
  111. data/vendor/assets/javascripts/jqgrid-de.js +5 -0
  112. data/vendor/assets/javascripts/jqgrid-el.js +5 -0
  113. data/vendor/assets/javascripts/jqgrid-en.js +5 -0
  114. data/vendor/assets/javascripts/jqgrid-es.js +5 -0
  115. data/vendor/assets/javascripts/jqgrid-fa.js +5 -0
  116. data/vendor/assets/javascripts/jqgrid-fi.js +5 -0
  117. data/vendor/assets/javascripts/jqgrid-fr.js +5 -0
  118. data/vendor/assets/javascripts/jqgrid-gl.js +5 -0
  119. data/vendor/assets/javascripts/jqgrid-he.js +5 -0
  120. data/vendor/assets/javascripts/jqgrid-hu.js +5 -0
  121. data/vendor/assets/javascripts/jqgrid-is.js +5 -0
  122. data/vendor/assets/javascripts/jqgrid-it.js +5 -0
  123. data/vendor/assets/javascripts/jqgrid-ja.js +5 -0
  124. data/vendor/assets/javascripts/jqgrid-lt.js +5 -0
  125. data/vendor/assets/javascripts/jqgrid-mne.js +5 -0
  126. data/vendor/assets/javascripts/jqgrid-nl.js +5 -0
  127. data/vendor/assets/javascripts/jqgrid-no.js +5 -0
  128. data/vendor/assets/javascripts/jqgrid-pl.js +5 -0
  129. data/vendor/assets/javascripts/jqgrid-pt-br.js +5 -0
  130. data/vendor/assets/javascripts/jqgrid-pt.js +5 -0
  131. data/vendor/assets/javascripts/jqgrid-ro.js +5 -0
  132. data/vendor/assets/javascripts/jqgrid-ru.js +5 -0
  133. data/vendor/assets/javascripts/jqgrid-sk.js +5 -0
  134. data/vendor/assets/javascripts/jqgrid-sr.js +5 -0
  135. data/vendor/assets/javascripts/jqgrid-sv.js +5 -0
  136. data/vendor/assets/javascripts/jqgrid-th.js +5 -0
  137. data/vendor/assets/javascripts/jqgrid-tr.js +5 -0
  138. data/vendor/assets/javascripts/jqgrid-ua.js +5 -0
  139. data/vendor/assets/javascripts/jqgrid.js +5 -0
  140. data/vendor/assets/javascripts/jquery.jqGrid.min.js +487 -0
  141. data/vendor/assets/stylesheets/jqgrid.css +3 -0
  142. data/vendor/assets/stylesheets/ui.jqgrid.css +136 -0
  143. metadata +237 -0
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,2 @@
1
+ Rails.application.config.generators do |g|
2
+ end
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'acfb6f57559fb67c4f2c857409e58598ad7dde519c4359d38a79ff7fcac4b61c200230b3b0efb393b4362f53880796d654c35f32fa51c687a5d01d57be6d5baa'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,60 @@
1
+ Dummy::Application.routes.draw do
2
+ root :to => "home#index"
3
+
4
+ # The priority is based upon order of creation:
5
+ # first created -> highest priority.
6
+
7
+ # Sample of regular route:
8
+ # match 'products/:id' => 'catalog#view'
9
+ # Keep in mind you can assign values other than :controller and :action
10
+
11
+ # Sample of named route:
12
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
13
+ # This route can be invoked with purchase_url(:id => product.id)
14
+
15
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
16
+ # resources :products
17
+
18
+ # Sample resource route with options:
19
+ # resources :products do
20
+ # member do
21
+ # get 'short'
22
+ # post 'toggle'
23
+ # end
24
+ #
25
+ # collection do
26
+ # get 'sold'
27
+ # end
28
+ # end
29
+
30
+ # Sample resource route with sub-resources:
31
+ # resources :products do
32
+ # resources :comments, :sales
33
+ # resource :seller
34
+ # end
35
+
36
+ # Sample resource route with more complex sub-resources
37
+ # resources :products do
38
+ # resources :comments
39
+ # resources :sales do
40
+ # get 'recent', :on => :collection
41
+ # end
42
+ # end
43
+
44
+ # Sample resource route within a namespace:
45
+ # namespace :admin do
46
+ # # Directs /admin/products/* to Admin::ProductsController
47
+ # # (app/controllers/admin/products_controller.rb)
48
+ # resources :products
49
+ # end
50
+
51
+ # You can have the root of your site routed with "root"
52
+ # just remember to delete public/index.html.
53
+ # root :to => 'welcome#index'
54
+
55
+ # See how all your routes lay out with "rake routes"
56
+
57
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
58
+ # Note: This route will make all actions in every controller accessible via GET requests.
59
+ # match ':controller(/:action(/:id(.:format)))'
60
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 0) do
15
+
16
+ end
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
+ # Mayor.create(name: 'Emanuel', city: cities.first)
@@ -0,0 +1,2 @@
1
+ Use this README file to introduce your application and point to useful places in the API for learning more.
2
+ Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
@@ -0,0 +1,56 @@
1
+ # IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
2
+ # It is recommended to regenerate this file in the future when you upgrade to a
3
+ # newer version of cucumber-rails. Consider adding your own code to a new file
4
+ # instead of editing this one. Cucumber will automatically load all features/**/*.rb
5
+ # files.
6
+
7
+ require 'cucumber/rails'
8
+
9
+ # Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
10
+ # order to ease the transition to Capybara we set the default here. If you'd
11
+ # prefer to use XPath just remove this line and adjust any selectors in your
12
+ # steps to use the XPath syntax.
13
+ Capybara.default_selector = :css
14
+
15
+ # By default, any exception happening in your Rails application will bubble up
16
+ # to Cucumber so that your scenario will fail. This is a different from how
17
+ # your application behaves in the production environment, where an error page will
18
+ # be rendered instead.
19
+ #
20
+ # Sometimes we want to override this default behaviour and allow Rails to rescue
21
+ # exceptions and display an error page (just like when the app is running in production).
22
+ # Typical scenarios where you want to do this is when you test your error pages.
23
+ # There are two ways to allow Rails to rescue exceptions:
24
+ #
25
+ # 1) Tag your scenario (or feature) with @allow-rescue
26
+ #
27
+ # 2) Set the value below to true. Beware that doing this globally is not
28
+ # recommended as it will mask a lot of errors for you!
29
+ #
30
+ ActionController::Base.allow_rescue = false
31
+
32
+ # Remove/comment out the lines below if your app doesn't have a database.
33
+ # For some databases (like MongoDB and CouchDB) you may need to use :truncation instead.
34
+ begin
35
+ DatabaseCleaner.strategy = :transaction
36
+ rescue NameError
37
+ raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
38
+ end
39
+
40
+ # You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios.
41
+ # See the DatabaseCleaner documentation for details. Example:
42
+ #
43
+ # Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do
44
+ # DatabaseCleaner.strategy = :truncation, {:except => %w[widgets]}
45
+ # end
46
+ #
47
+ # Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do
48
+ # DatabaseCleaner.strategy = :transaction
49
+ # end
50
+ #
51
+
52
+ # Possible values are :truncation and :transaction
53
+ # The :transaction strategy is faster, but might give you threading problems.
54
+ # See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
55
+ Cucumber::Rails::Database.javascript_strategy = :truncation
56
+
File without changes
File without changes
@@ -0,0 +1,65 @@
1
+ # IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
2
+ # It is recommended to regenerate this file in the future when you upgrade to a
3
+ # newer version of cucumber-rails. Consider adding your own code to a new file
4
+ # instead of editing this one. Cucumber will automatically load all features/**/*.rb
5
+ # files.
6
+
7
+
8
+ unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
9
+
10
+ vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
11
+ $LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
12
+
13
+ begin
14
+ require 'cucumber/rake/task'
15
+
16
+ namespace :cucumber do
17
+ Cucumber::Rake::Task.new({:ok => 'db:test:prepare'}, 'Run features that should pass') do |t|
18
+ t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
19
+ t.fork = true # You may get faster startup if you set this to false
20
+ t.profile = 'default'
21
+ end
22
+
23
+ Cucumber::Rake::Task.new({:wip => 'db:test:prepare'}, 'Run features that are being worked on') do |t|
24
+ t.binary = vendored_cucumber_bin
25
+ t.fork = true # You may get faster startup if you set this to false
26
+ t.profile = 'wip'
27
+ end
28
+
29
+ Cucumber::Rake::Task.new({:rerun => 'db:test:prepare'}, 'Record failing features and run only them if any exist') do |t|
30
+ t.binary = vendored_cucumber_bin
31
+ t.fork = true # You may get faster startup if you set this to false
32
+ t.profile = 'rerun'
33
+ end
34
+
35
+ desc 'Run all features'
36
+ task :all => [:ok, :wip]
37
+
38
+ task :statsetup do
39
+ require 'rails/code_statistics'
40
+ ::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
41
+ ::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
42
+ end
43
+ end
44
+ desc 'Alias for cucumber:ok'
45
+ task :cucumber => 'cucumber:ok'
46
+
47
+ task :default => :cucumber
48
+
49
+ task :features => :cucumber do
50
+ STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
51
+ end
52
+
53
+ # In case we don't have ActiveRecord, append a no-op task that we can depend upon.
54
+ task 'db:test:prepare' do
55
+ end
56
+
57
+ task :stats => 'cucumber:statsetup'
58
+ rescue LoadError
59
+ desc 'cucumber rake task not available (cucumber not installed)'
60
+ task :cucumber do
61
+ abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
62
+ end
63
+ end
64
+
65
+ end
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -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,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
4
+ if vendored_cucumber_bin
5
+ load File.expand_path(vendored_cucumber_bin)
6
+ else
7
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
8
+ require 'cucumber'
9
+ load Cucumber::BINARY
10
+ end
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe HomeController do
4
+
5
+ describe "GET 'index'" do
6
+ it "returns http success" do
7
+ get 'index'
8
+ response.should be_success
9
+ end
10
+ end
11
+
12
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ # Specs in this file have access to a helper object that includes
4
+ # the HomeHelper. For example:
5
+ #
6
+ # describe HomeHelper do
7
+ # describe "string concat" do
8
+ # it "concats two strings with spaces" do
9
+ # helper.concat_strings("this","that").should == "this that"
10
+ # end
11
+ # end
12
+ # end
13
+ describe HomeHelper do
14
+ pending "add some examples to (or delete) #{__FILE__}"
15
+ end
@@ -0,0 +1,32 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] ||= 'test'
3
+ require File.expand_path("../../config/environment", __FILE__)
4
+ require 'rspec/rails'
5
+ require 'rspec/autorun'
6
+
7
+ # Requires supporting ruby files with custom matchers and macros, etc,
8
+ # in spec/support/ and its subdirectories.
9
+ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
10
+
11
+ RSpec.configure do |config|
12
+ # == Mock Framework
13
+ #
14
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
15
+ #
16
+ # config.mock_with :mocha
17
+ # config.mock_with :flexmock
18
+ # config.mock_with :rr
19
+
20
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
21
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
22
+
23
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
24
+ # examples within a transaction, remove the following line or assign false
25
+ # instead of true.
26
+ config.use_transactional_fixtures = true
27
+
28
+ # If true, the base class of anonymous controllers will be inferred
29
+ # automatically. This will be the default behavior in future versions of
30
+ # rspec-rails.
31
+ config.infer_base_class_for_anonymous_controllers = false
32
+ end