social_stream-ostatus 1.1.1 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -0
  3. data/app/assets/images/logos/medium/remote_subject.png +0 -0
  4. data/app/assets/images/logos/small/remote_subject.png +0 -0
  5. data/app/assets/images/logos/small/site.png +0 -0
  6. data/app/views/remote_subjects/_show.html.erb +6 -5
  7. data/db/migrate/20120905145030_create_social_stream_ostatus.rb +13 -7
  8. data/lib/social_stream/ostatus/version.rb +1 -1
  9. data/social_stream-ostatus.gemspec +1 -1
  10. metadata +9 -42
  11. data/app/assets/images/logos/actor/remote_subject.png +0 -0
  12. data/app/assets/images/logos/contact/remote_subject.png +0 -0
  13. data/app/assets/images/logos/original/remote_subject.png +0 -0
  14. data/app/assets/images/logos/profile/remote_subject.png +0 -0
  15. data/db/migrate/20120918194708_create_actor_keys.rb +0 -18
  16. data/spec/dummy/Rakefile +0 -7
  17. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  18. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  19. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  20. data/spec/dummy/config/application.rb +0 -45
  21. data/spec/dummy/config/boot.rb +0 -10
  22. data/spec/dummy/config/database.yml +0 -22
  23. data/spec/dummy/config/environment.rb +0 -5
  24. data/spec/dummy/config/environments/development.rb +0 -26
  25. data/spec/dummy/config/environments/production.rb +0 -49
  26. data/spec/dummy/config/environments/test.rb +0 -35
  27. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  28. data/spec/dummy/config/initializers/inflections.rb +0 -10
  29. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  30. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  31. data/spec/dummy/config/initializers/session_store.rb +0 -8
  32. data/spec/dummy/config/locales/en.yml +0 -5
  33. data/spec/dummy/config/routes.rb +0 -58
  34. data/spec/dummy/config.ru +0 -4
  35. data/spec/dummy/public/404.html +0 -26
  36. data/spec/dummy/public/422.html +0 -26
  37. data/spec/dummy/public/500.html +0 -26
  38. data/spec/dummy/public/favicon.ico +0 -0
  39. data/spec/dummy/public/javascripts/application.js +0 -2
  40. data/spec/dummy/public/javascripts/controls.js +0 -965
  41. data/spec/dummy/public/javascripts/dragdrop.js +0 -974
  42. data/spec/dummy/public/javascripts/effects.js +0 -1123
  43. data/spec/dummy/public/javascripts/prototype.js +0 -6001
  44. data/spec/dummy/public/javascripts/rails.js +0 -191
  45. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  46. data/spec/dummy/script/rails +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3973a3269309c45f21fa2e73efdec59d03b4f7b
4
- data.tar.gz: a4822a5b678c40f504eea701d63d8bf62307fdd8
3
+ metadata.gz: a46796a730893ba71a0e41ca26f016f8f8fca0b3
4
+ data.tar.gz: 3a5e36ee99a03bc25220377b401313368b5723e1
5
5
  SHA512:
6
- metadata.gz: 38d8b53f6074cf1b7f526928f11ebf8e3e017843ca567d13579e0a9e744cae6bac110c62cd43016bc8debb9b9ce7d3574b75728d0894468855e546257416cf3a
7
- data.tar.gz: 72d8c9ed284c18b47375c70f6ff912d415419b33c79277c79d1980d8c4e6dfb4119785c70107618156fd42ce4d9138fa735f0f05eb579078377eed1ecb8ff793
6
+ metadata.gz: ed4f35d9fc482e2511e3fd4a27f7a9188f978be361a5b0385f447a3a891d065b653a7a6c4e13b8fc947ed5f92d325f708a7dc7663a736588ac88d951f990f86f
7
+ data.tar.gz: 3de0aa81669e9d84cef5b419afc2ea9dbbf0f58f5faa4d77b586f89de28f7afd8927a43b5cb8c3ea2e087153fac77da2336e52cbf530219a73124096ba908435
data/Rakefile CHANGED
@@ -16,6 +16,8 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
16
16
  rdoc.rdoc_files.include('lib/**/*.rb')
17
17
  end
18
18
 
19
+ Bundler::GemHelper.install_tasks
20
+
19
21
  # Modify this gem's tags
20
22
  class Bundler::GemHelper
21
23
  def version_tag
@@ -1,6 +1,7 @@
1
- <% toolbar :profile, subject: @remote_subject %>
1
+ <section id="remote_subjects">
2
+ <%= render partial: 'toolbar/profile', locals: { subject: @remote_subject } %>
2
3
 
3
- <%= render partial: "activities/index",
4
- locals: { activities: @remote_subject.wall(:profile, for: current_subject).
5
- page(params[:page]),
6
- owner: @remote_subject } %>
4
+ <%= render partial: "activities/index",
5
+ locals: { section: @remote_subject,
6
+ owner: @remote_subject } %>
7
+ </section>
@@ -1,6 +1,15 @@
1
1
  class CreateSocialStreamOstatus < ActiveRecord::Migration
2
2
 
3
- def self.up
3
+ def change
4
+ create_table :actor_keys do |t|
5
+ t.integer :actor_id
6
+ t.binary :key_der
7
+
8
+ t.timestamps
9
+ end
10
+
11
+ add_index "actor_keys", "actor_id"
12
+
4
13
  create_table :remote_subjects, :force => true do |t|
5
14
  t.integer :actor_id
6
15
  t.string :webfinger_id
@@ -9,12 +18,9 @@ class CreateSocialStreamOstatus < ActiveRecord::Migration
9
18
  end
10
19
 
11
20
  add_index "remote_subjects", "actor_id"
21
+
22
+ add_foreign_key "actor_keys", "actors", :name => "actor_keys_on_actor_id"
23
+
12
24
  add_foreign_key "remote_subjects", "actors", :name => "remote_subjects_on_actor_id"
13
25
  end
14
-
15
- def self.down
16
- remove_foreign_key "remote_subjects", :name => "remote_subjects_on_actor_id"
17
- drop_table :remote_subjects
18
- end
19
-
20
26
  end
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Ostatus
3
- VERSION = "1.1.1".freeze
3
+ VERSION = "2.0.0.beta1".freeze
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
 
14
14
  # Gem dependencies
15
- s.add_runtime_dependency('social_stream-base', '~> 1.1.8')
15
+ s.add_runtime_dependency('social_stream-base', '~> 2.0.0.beta1')
16
16
  s.add_runtime_dependency('proudhon','>= 0.3.6')
17
17
  s.add_runtime_dependency('nokogiri','> 1.4.4')
18
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-ostatus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Tapiador
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-30 00:00:00.000000000 Z
12
+ date: 2013-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: social_stream-base
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: 1.1.8
20
+ version: 2.0.0.beta1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: 1.1.8
27
+ version: 2.0.0.beta1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: proudhon
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -134,10 +134,9 @@ files:
134
134
  - MIT-LICENSE
135
135
  - README.rdoc
136
136
  - Rakefile
137
- - app/assets/images/logos/actor/remote_subject.png
138
- - app/assets/images/logos/contact/remote_subject.png
139
- - app/assets/images/logos/original/remote_subject.png
140
- - app/assets/images/logos/profile/remote_subject.png
137
+ - app/assets/images/logos/medium/remote_subject.png
138
+ - app/assets/images/logos/small/remote_subject.png
139
+ - app/assets/images/logos/small/site.png
141
140
  - app/controllers/host_meta_controller.rb
142
141
  - app/controllers/pshb_controller.rb
143
142
  - app/controllers/remote_subjects_controller.rb
@@ -157,7 +156,6 @@ files:
157
156
  - config/locales/en.yml
158
157
  - config/routes.rb
159
158
  - db/migrate/20120905145030_create_social_stream_ostatus.rb
160
- - db/migrate/20120918194708_create_actor_keys.rb
161
159
  - lib/generators/social_stream/ostatus/install_generator.rb
162
160
  - lib/generators/social_stream/ostatus/templates/initializer.rb
163
161
  - lib/social_stream-ostatus.rb
@@ -177,37 +175,6 @@ files:
177
175
  - spec/controllers/host_meta_controller_spec.rb
178
176
  - spec/controllers/remote_subjects_controller_spec.rb
179
177
  - spec/controllers/webfinger_controller_spec.rb
180
- - spec/dummy/Rakefile
181
- - spec/dummy/app/controllers/application_controller.rb
182
- - spec/dummy/app/helpers/application_helper.rb
183
- - spec/dummy/app/views/layouts/application.html.erb
184
- - spec/dummy/config.ru
185
- - spec/dummy/config/application.rb
186
- - spec/dummy/config/boot.rb
187
- - spec/dummy/config/database.yml
188
- - spec/dummy/config/environment.rb
189
- - spec/dummy/config/environments/development.rb
190
- - spec/dummy/config/environments/production.rb
191
- - spec/dummy/config/environments/test.rb
192
- - spec/dummy/config/initializers/backtrace_silencers.rb
193
- - spec/dummy/config/initializers/inflections.rb
194
- - spec/dummy/config/initializers/mime_types.rb
195
- - spec/dummy/config/initializers/secret_token.rb
196
- - spec/dummy/config/initializers/session_store.rb
197
- - spec/dummy/config/locales/en.yml
198
- - spec/dummy/config/routes.rb
199
- - spec/dummy/public/404.html
200
- - spec/dummy/public/422.html
201
- - spec/dummy/public/500.html
202
- - spec/dummy/public/favicon.ico
203
- - spec/dummy/public/javascripts/application.js
204
- - spec/dummy/public/javascripts/controls.js
205
- - spec/dummy/public/javascripts/dragdrop.js
206
- - spec/dummy/public/javascripts/effects.js
207
- - spec/dummy/public/javascripts/prototype.js
208
- - spec/dummy/public/javascripts/rails.js
209
- - spec/dummy/public/stylesheets/.gitkeep
210
- - spec/dummy/script/rails
211
178
  - spec/factories/remote_subject.rb
212
179
  - spec/integration/navigation_spec.rb
213
180
  - spec/models/actor_key_spec.rb
@@ -230,9 +197,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
230
197
  version: '0'
231
198
  required_rubygems_version: !ruby/object:Gem::Requirement
232
199
  requirements:
233
- - - '>='
200
+ - - '>'
234
201
  - !ruby/object:Gem::Version
235
- version: '0'
202
+ version: 1.3.1
236
203
  requirements: []
237
204
  rubyforge_project:
238
205
  rubygems_version: 2.0.0
@@ -1,18 +0,0 @@
1
- class CreateActorKeys < ActiveRecord::Migration
2
- def up
3
- create_table :actor_keys do |t|
4
- t.integer :actor_id
5
- t.binary :key_der
6
-
7
- t.timestamps
8
- end
9
-
10
- add_index "actor_keys", "actor_id"
11
- add_foreign_key "actor_keys", "actors", :name => "actor_keys_on_actor_id"
12
- end
13
-
14
- def down
15
- remove_foreign_key "actor_keys", :name => "actor_keys_on_actor_id"
16
- drop_table :actor_keys
17
- end
18
- end
data/spec/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
- require 'rake'
6
-
7
- Dummy::Application.load_tasks
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag :all %>
6
- <%= javascript_include_tag :defaults %>
7
- <%= csrf_meta_tag %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,45 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require "active_model/railtie"
4
- require "active_record/railtie"
5
- require "action_controller/railtie"
6
- require "action_view/railtie"
7
- require "action_mailer/railtie"
8
-
9
- Bundler.require
10
- require "social_stream-ostatus"
11
-
12
- module Dummy
13
- class Application < Rails::Application
14
- # Settings in config/environments/* take precedence over those specified here.
15
- # Application configuration should go into files in config/initializers
16
- # -- all .rb files in that directory are automatically loaded.
17
-
18
- # Custom directories with classes and modules you want to be autoloadable.
19
- # config.autoload_paths += %W(#{config.root}/extras)
20
-
21
- # Only load the plugins named here, in the order given (default is alphabetical).
22
- # :all can be used as a placeholder for all plugins not explicitly named.
23
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
24
-
25
- # Activate observers that should always be running.
26
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
27
-
28
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
29
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
30
- # config.time_zone = 'Central Time (US & Canada)'
31
-
32
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
33
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34
- # config.i18n.default_locale = :de
35
-
36
- # JavaScript files you want as :defaults (application.js is always included).
37
- # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
38
-
39
- # Configure the default encoding used in templates for Ruby 1.9.
40
- config.encoding = "utf-8"
41
-
42
- # Configure sensitive parameters which will be filtered from the log file.
43
- config.filter_parameters += [:password]
44
- end
45
- end
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
6
- require 'bundler'
7
- Bundler.setup
8
- end
9
-
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,22 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- development:
4
- adapter: sqlite3
5
- database: db/development.sqlite3
6
- pool: 5
7
- timeout: 5000
8
-
9
- # Warning: The database defined as "test" will be erased and
10
- # re-generated from your development database when you run "rake".
11
- # Do not set this db to the same as development or production.
12
- test:
13
- adapter: sqlite3
14
- database: db/test.sqlite3
15
- pool: 5
16
- timeout: 5000
17
-
18
- production:
19
- adapter: sqlite3
20
- database: db/production.sqlite3
21
- pool: 5
22
- timeout: 5000
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
@@ -1,26 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the webserver when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.consider_all_requests_local = true
14
- config.action_view.debug_rjs = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Don't care if the mailer can't send
18
- config.action_mailer.raise_delivery_errors = false
19
-
20
- # Print deprecation notices to the Rails logger
21
- config.active_support.deprecation = :log
22
-
23
- # Only use best-standards-support built into browsers
24
- config.action_dispatch.best_standards_support = :builtin
25
- end
26
-
@@ -1,49 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The production environment is meant for finished, "live" apps.
5
- # Code is not reloaded between requests
6
- config.cache_classes = true
7
-
8
- # Full error reports are disabled and caching is turned on
9
- config.consider_all_requests_local = false
10
- config.action_controller.perform_caching = true
11
-
12
- # Specifies the header that your server uses for sending files
13
- config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
-
15
- # For nginx:
16
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
-
18
- # If you have no front-end server that supports something like X-Sendfile,
19
- # just comment this out and Rails will serve the files
20
-
21
- # See everything in the log (default is :info)
22
- # config.log_level = :debug
23
-
24
- # Use a different logger for distributed setups
25
- # config.logger = SyslogLogger.new
26
-
27
- # Use a different cache store in production
28
- # config.cache_store = :mem_cache_store
29
-
30
- # Disable Rails's static asset server
31
- # In production, Apache or nginx will already do this
32
- config.serve_static_assets = false
33
-
34
- # Enable serving of images, stylesheets, and javascripts from an asset server
35
- # config.action_controller.asset_host = "http://assets.example.com"
36
-
37
- # Disable delivery errors, bad email addresses will be ignored
38
- # config.action_mailer.raise_delivery_errors = false
39
-
40
- # Enable threaded mode
41
- # config.threadsafe!
42
-
43
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
- # the I18n.default_locale when a translation can not be found)
45
- config.i18n.fallbacks = true
46
-
47
- # Send deprecation notices to registered listeners
48
- config.active_support.deprecation = :notify
49
- end
@@ -1,35 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Log error messages when you accidentally call methods on nil.
11
- config.whiny_nils = true
12
-
13
- # Show full error reports and disable caching
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Raise exceptions instead of rendering exception templates
18
- config.action_dispatch.show_exceptions = false
19
-
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
22
-
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
- config.action_mailer.delivery_method = :test
27
-
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
32
-
33
- # Print deprecation notices to the stderr
34
- config.active_support.deprecation = :stderr
35
- end
@@ -1,7 +0,0 @@
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!
@@ -1,10 +0,0 @@
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
@@ -1,5 +0,0 @@
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
@@ -1,7 +0,0 @@
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 = 'f35b275e23443d2cc17e30447c7c0e24e8c54d25008aea422cb537b67bea51142a39e16d7715673b4936b0a5f8c1ef41f9b812b9c2fbb3163e15de2d215726a1'
@@ -1,8 +0,0 @@
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
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
@@ -1,58 +0,0 @@
1
- Dummy::Application.routes.draw do
2
- # The priority is based upon order of creation:
3
- # first created -> highest priority.
4
-
5
- # Sample of regular route:
6
- # match 'products/:id' => 'catalog#view'
7
- # Keep in mind you can assign values other than :controller and :action
8
-
9
- # Sample of named route:
10
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
- # This route can be invoked with purchase_url(:id => product.id)
12
-
13
- # Sample resource route (maps HTTP verbs to controller actions automatically):
14
- # resources :products
15
-
16
- # Sample resource route with options:
17
- # resources :products do
18
- # member do
19
- # get 'short'
20
- # post 'toggle'
21
- # end
22
- #
23
- # collection do
24
- # get 'sold'
25
- # end
26
- # end
27
-
28
- # Sample resource route with sub-resources:
29
- # resources :products do
30
- # resources :comments, :sales
31
- # resource :seller
32
- # end
33
-
34
- # Sample resource route with more complex sub-resources
35
- # resources :products do
36
- # resources :comments
37
- # resources :sales do
38
- # get 'recent', :on => :collection
39
- # end
40
- # end
41
-
42
- # Sample resource route within a namespace:
43
- # namespace :admin do
44
- # # Directs /admin/products/* to Admin::ProductsController
45
- # # (app/controllers/admin/products_controller.rb)
46
- # resources :products
47
- # end
48
-
49
- # You can have the root of your site routed with "root"
50
- # just remember to delete public/index.html.
51
- # root :to => "welcome#index"
52
-
53
- # See how all your routes lay out with "rake routes"
54
-
55
- # This is a legacy wild controller route that's not recommended for RESTful applications.
56
- # Note: This route will make all actions in every controller accessible via GET requests.
57
- # match ':controller(/:action(/:id(.:format)))'
58
- end
data/spec/dummy/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
@@ -1,26 +0,0 @@
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>
@@ -1,26 +0,0 @@
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>