ruby-openid 2.2.3 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +11 -0
  3. data/README.md +1 -2
  4. data/examples/rails_openid/Gemfile +41 -0
  5. data/examples/rails_openid/README.rdoc +261 -0
  6. data/examples/rails_openid/Rakefile +4 -7
  7. data/examples/rails_openid/app/assets/images/rails.png +0 -0
  8. data/examples/rails_openid/app/assets/javascripts/application.js +15 -0
  9. data/examples/rails_openid/app/assets/stylesheets/application.css +13 -0
  10. data/examples/rails_openid/app/controllers/application_controller.rb +3 -0
  11. data/examples/rails_openid/app/controllers/consumer_controller.rb +1 -0
  12. data/examples/rails_openid/app/helpers/application_helper.rb +0 -1
  13. data/examples/rails_openid/app/views/consumer/{index.rhtml → index.html.erb} +0 -0
  14. data/examples/rails_openid/app/views/layouts/{server.rhtml → server.html.erb} +4 -2
  15. data/examples/rails_openid/app/views/login/{index.rhtml → index.html.erb} +0 -0
  16. data/examples/rails_openid/app/views/server/{decide.rhtml → decide.html.erb} +1 -0
  17. data/examples/rails_openid/config.ru +4 -0
  18. data/examples/rails_openid/config/application.rb +62 -0
  19. data/examples/rails_openid/config/boot.rb +4 -17
  20. data/examples/rails_openid/config/database.yml +15 -64
  21. data/examples/rails_openid/config/environment.rb +4 -53
  22. data/examples/rails_openid/config/environments/development.rb +32 -14
  23. data/examples/rails_openid/config/environments/production.rb +61 -13
  24. data/examples/rails_openid/config/environments/test.rb +33 -15
  25. data/examples/rails_openid/config/initializers/backtrace_silencers.rb +7 -0
  26. data/examples/rails_openid/config/initializers/inflections.rb +15 -0
  27. data/examples/rails_openid/config/initializers/mime_types.rb +5 -0
  28. data/examples/rails_openid/config/initializers/rails_root.rb +1 -0
  29. data/examples/rails_openid/config/initializers/secret_token.rb +7 -0
  30. data/examples/rails_openid/config/initializers/session_store.rb +8 -0
  31. data/examples/rails_openid/config/initializers/wrap_parameters.rb +14 -0
  32. data/examples/rails_openid/config/locales/en.yml +5 -0
  33. data/examples/rails_openid/config/routes.rb +65 -18
  34. data/examples/rails_openid/db/development.sqlite3 +0 -0
  35. data/examples/rails_openid/db/seeds.rb +7 -0
  36. data/examples/rails_openid/doc/README_FOR_APP +1 -1
  37. data/examples/rails_openid/log/development.log +2052 -0
  38. data/examples/rails_openid/public/404.html +23 -5
  39. data/examples/rails_openid/public/422.html +26 -0
  40. data/examples/rails_openid/public/500.html +22 -5
  41. data/examples/rails_openid/public/javascripts/application.js +2 -0
  42. data/examples/rails_openid/public/javascripts/controls.js +586 -373
  43. data/examples/rails_openid/public/javascripts/dragdrop.js +575 -186
  44. data/examples/rails_openid/public/javascripts/effects.js +763 -489
  45. data/examples/rails_openid/public/javascripts/prototype.js +3420 -885
  46. data/examples/rails_openid/public/robots.txt +5 -1
  47. data/examples/rails_openid/script/rails +6 -0
  48. data/examples/rails_openid/test/performance/browsing_test.rb +12 -0
  49. data/examples/rails_openid/test/test_helper.rb +7 -22
  50. data/lib/openid/association.rb +1 -1
  51. data/lib/openid/consumer/checkid_request.rb +1 -1
  52. data/lib/openid/consumer/discovery.rb +1 -1
  53. data/lib/openid/consumer/html_parse.rb +3 -1
  54. data/lib/openid/consumer/idres.rb +1 -1
  55. data/lib/openid/extensions/ax.rb +2 -3
  56. data/lib/openid/extensions/ui.rb +3 -3
  57. data/lib/openid/extras.rb +2 -2
  58. data/lib/openid/server.rb +2 -2
  59. data/lib/openid/store/memory.rb +1 -2
  60. data/lib/openid/store/nonce.rb +1 -1
  61. data/lib/openid/trustroot.rb +1 -1
  62. data/lib/openid/util.rb +2 -2
  63. data/lib/openid/version.rb +1 -1
  64. data/lib/openid/yadis/xrds.rb +1 -1
  65. data/test/test_accept.rb +20 -21
  66. data/test/test_association.rb +4 -8
  67. data/test/test_associationmanager.rb +1 -1
  68. data/test/test_ax.rb +0 -1
  69. data/test/test_checkid_request.rb +7 -8
  70. data/test/test_dh.rb +1 -1
  71. data/test/test_discover.rb +7 -8
  72. data/test/test_extension.rb +1 -1
  73. data/test/test_fetchers.rb +7 -11
  74. data/test/test_filters.rb +0 -4
  75. data/test/test_idres.rb +5 -5
  76. data/test/test_kvpost.rb +0 -1
  77. data/test/test_message.rb +10 -11
  78. data/test/test_parsehtml.rb +0 -1
  79. data/test/test_server.rb +11 -30
  80. data/test/test_stores.rb +2 -2
  81. data/test/test_trustroot.rb +1 -1
  82. data/test/test_urinorm.rb +1 -1
  83. data/test/test_xrds.rb +1 -1
  84. data/test/test_yadis_discovery.rb +0 -2
  85. metadata +34 -33
  86. data/examples/rails_openid/app/controllers/application.rb +0 -4
  87. data/examples/rails_openid/script/about +0 -3
  88. data/examples/rails_openid/script/breakpointer +0 -3
  89. data/examples/rails_openid/script/console +0 -3
  90. data/examples/rails_openid/script/destroy +0 -3
  91. data/examples/rails_openid/script/generate +0 -3
  92. data/examples/rails_openid/script/performance/benchmarker +0 -3
  93. data/examples/rails_openid/script/performance/profiler +0 -3
  94. data/examples/rails_openid/script/plugin +0 -3
  95. data/examples/rails_openid/script/process/reaper +0 -3
  96. data/examples/rails_openid/script/process/spawner +0 -3
  97. data/examples/rails_openid/script/process/spinner +0 -3
  98. data/examples/rails_openid/script/runner +0 -3
  99. data/examples/rails_openid/script/server +0 -3
@@ -0,0 +1,62 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ if defined?(Bundler)
6
+ # If you precompile assets before deploying to production, use this line
7
+ Bundler.require(*Rails.groups(:assets => %w(development test)))
8
+ # If you want your assets lazily compiled in production, use this line
9
+ # Bundler.require(:default, :assets, Rails.env)
10
+ end
11
+
12
+ module RailsOpenid
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
+ # Configure the default encoding used in templates for Ruby 1.9.
37
+ config.encoding = "utf-8"
38
+
39
+ # Configure sensitive parameters which will be filtered from the log file.
40
+ config.filter_parameters += [:password]
41
+
42
+ # Enable escaping HTML in JSON.
43
+ config.active_support.escape_html_entities_in_json = true
44
+
45
+ # Use SQL instead of Active Record's schema dumper when creating the database.
46
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
47
+ # like if you have constraints or database-specific column types
48
+ # config.active_record.schema_format = :sql
49
+
50
+ # Enforce whitelist mode for mass assignment.
51
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
52
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
53
+ # parameters by using an attr_accessible or attr_protected declaration.
54
+ config.active_record.whitelist_attributes = true
55
+
56
+ # Enable the asset pipeline
57
+ config.assets.enabled = true
58
+
59
+ # Version of your assets, change this if you want to expire all your assets
60
+ config.assets.version = '1.0'
61
+ end
62
+ end
@@ -1,19 +1,6 @@
1
- # Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb
1
+ require 'rubygems'
2
2
 
3
- unless defined?(RAILS_ROOT)
4
- root_path = File.join(File.dirname(__FILE__), '..')
5
- unless RUBY_PLATFORM =~ /mswin32/
6
- require 'pathname'
7
- root_path = Pathname.new(root_path).cleanpath(true).to_s
8
- end
9
- RAILS_ROOT = root_path
10
- end
3
+ # Set up gems listed in the Gemfile.
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
11
5
 
12
- if File.directory?("#{RAILS_ROOT}/vendor/rails")
13
- require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
14
- else
15
- require 'rubygems'
16
- require 'initializer'
17
- end
18
-
19
- Rails::Initializer.run(:set_load_path)
6
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -1,74 +1,25 @@
1
- # MySQL (default setup). Versions 4.1 and 5.0 are recommended.
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
2
3
  #
3
- # Get the fast C bindings:
4
- # gem install mysql
5
- # (on OS X: gem install mysql -- --include=/usr/local/lib)
6
- # And be sure to use new-style password hashing:
7
- # http://dev.mysql.com/doc/refman/5.0/en/old-client.html
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
8
6
  development:
9
7
  adapter: sqlite3
10
8
  database: db/development.sqlite3
11
-
12
- # Warning: The database defined as 'test' will be erased and
13
- # re-generated from your development database when you run 'rake'.
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
14
  # Do not set this db to the same as development or production.
15
15
  test:
16
16
  adapter: sqlite3
17
- database: ":memory:"
17
+ database: db/test.sqlite3
18
+ pool: 5
19
+ timeout: 5000
18
20
 
19
21
  production:
20
- adapter: mysql
21
- database: rails_server_production
22
- username: root
23
- password:
24
- socket: /path/to/your/mysql.sock
25
-
26
-
27
- # PostgreSQL versions 7.4 - 8.1
28
- #
29
- # Get the C bindings:
30
- # gem install postgres
31
- # or use the pure-Ruby bindings on Windows:
32
- # gem install postgres-pr
33
- postgresql_example:
34
- adapter: postgresql
35
- database: rails_server_development
36
- username: rails_server
37
- password:
38
-
39
- # Connect on a TCP socket. Omitted by default since the client uses a
40
- # domain socket that doesn't need configuration.
41
- #host: remote-database
42
- #port: 5432
43
-
44
- # Schema search path. The server defaults to $user,public
45
- #schema_search_path: myapp,sharedapp,public
46
-
47
- # Character set encoding. The server defaults to sql_ascii.
48
- #encoding: UTF8
49
-
50
- # Minimum log levels, in increasing order:
51
- # debug5, debug4, debug3, debug2, debug1,
52
- # info, notice, warning, error, log, fatal, or panic
53
- # The server defaults to notice.
54
- #min_messages: warning
55
-
56
-
57
- # SQLite version 2.x
58
- # gem install sqlite-ruby
59
- sqlite_example:
60
- adapter: sqlite
61
- database: db/development.sqlite2
62
-
63
-
64
- # SQLite version 3.x
65
- # gem install sqlite3-ruby
66
- sqlite3_example:
67
- adapter: sqlite3
68
- database: db/development.sqlite3
69
-
70
-
71
- # In-memory SQLite 3 database. Useful for tests.
72
- sqlite3_in_memory_example:
73
22
  adapter: sqlite3
74
- database: ":memory:"
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -1,54 +1,5 @@
1
- # Be sure to restart your web server when you modify this file.
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
2
3
 
3
- # Uncomment below to force Rails into production mode when
4
- # you don't control web/app server and can't set it the proper way
5
- # ENV['RAILS_ENV'] ||= 'production'
6
-
7
- # Bootstrap the Rails environment, frameworks, and default configuration
8
- require File.join(File.dirname(__FILE__), 'boot')
9
-
10
- Rails::Initializer.run do |config|
11
- # Settings in config/environments/* take precedence those specified here
12
-
13
- # Skip frameworks you're not going to use
14
- # config.frameworks -= [ :action_web_service, :action_mailer ]
15
-
16
- # Add additional load paths for your own custom dirs
17
- # config.load_paths += %W( #{RAILS_ROOT}/extras )
18
-
19
- # Force all environments to use the same logger level
20
- # (by default production uses :info, the others :debug)
21
- # config.log_level = :debug
22
-
23
- # Use the database for sessions instead of the file system
24
- # (create the session table with 'rake create_sessions_table')
25
- # config.action_controller.session_store = :active_record_store
26
-
27
- # Enable page/fragment caching by setting a file-based store
28
- # (remember to create the caching directory and make it readable to the application)
29
- # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache"
30
-
31
- # Activate observers that should always be running
32
- # config.active_record.observers = :cacher, :garbage_collector
33
-
34
- # Make Active Record use UTC-base instead of local time
35
- # config.active_record.default_timezone = :utc
36
-
37
- # Use Active Record's schema dumper instead of SQL when creating the test database
38
- # (enables use of different database adapters for development and test environments)
39
- # config.active_record.schema_format = :ruby
40
-
41
- # See Rails::Configuration for more options
42
- end
43
-
44
- # Add new inflection rules using the following format
45
- # (all these examples are active by default):
46
- # Inflector.inflections do |inflect|
47
- # inflect.plural /^(ox)$/i, '\1en'
48
- # inflect.singular /^(ox)en/i, '\1'
49
- # inflect.irregular 'person', 'people'
50
- # inflect.uncountable %w( fish sheep )
51
- # end
52
-
53
- # Include your application configuration below
54
- ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key] = '_session_id_2'
4
+ # Initialize the rails application
5
+ RailsOpenid::Application.initialize!
@@ -1,19 +1,37 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
1
+ RailsOpenid::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
2
3
 
3
- # In the development environment your application's code is reloaded on
4
- # every request. This slows down response time but is perfect for development
5
- # since you don't have to restart the webserver when you make code changes.
6
- config.cache_classes = false
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 web server when you make code changes.
7
+ config.cache_classes = false
7
8
 
8
- # Log error messages when you accidentally call methods on nil.
9
- config.whiny_nils = true
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
10
11
 
11
- # Enable the breakpoint server that script/breakpointer connects to
12
- config.breakpoint_server = true
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
13
15
 
14
- # Show full error reports and disable caching
15
- config.action_controller.consider_all_requests_local = true
16
- config.action_controller.perform_caching = false
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
17
18
 
18
- # Don't care if the mailer can't send
19
- config.action_mailer.raise_delivery_errors = false
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Raise exception on mass assignment protection for Active Record models
26
+ config.active_record.mass_assignment_sanitizer = :strict
27
+
28
+ # Log the query plan for queries taking more than this (works
29
+ # with SQLite, MySQL, and PostgreSQL)
30
+ config.active_record.auto_explain_threshold_in_seconds = 0.5
31
+
32
+ # Do not compress assets
33
+ config.assets.compress = false
34
+
35
+ # Expands the lines which load the assets
36
+ config.assets.debug = true
37
+ end
@@ -1,19 +1,67 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
1
+ RailsOpenid::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
2
3
 
3
- # The production environment is meant for finished, "live" apps.
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
6
 
7
- # Use a different logger for distributed setups
8
- # config.logger = SyslogLogger.new
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
9
10
 
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
10
13
 
11
- # Full error reports are disabled and caching is turned on
12
- config.action_controller.consider_all_requests_local = false
13
- config.action_controller.perform_caching = true
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
14
16
 
15
- # Enable serving of images, stylesheets, and javascripts from an asset server
16
- # config.action_controller.asset_host = "http://assets.example.com"
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
17
19
 
18
- # Disable delivery errors if you bad email addresses should just be ignored
19
- # config.action_mailer.raise_delivery_errors = false
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to nil and saved in location specified by config.assets.prefix
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Prepend all log lines with the following tags
37
+ # config.log_tags = [ :subdomain, :uuid ]
38
+
39
+ # Use a different logger for distributed setups
40
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
+
42
+ # Use a different cache store in production
43
+ # config.cache_store = :mem_cache_store
44
+
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
+ # config.action_controller.asset_host = "http://assets.example.com"
47
+
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
+ # config.assets.precompile += %w( search.js )
50
+
51
+ # Disable delivery errors, bad email addresses will be ignored
52
+ # config.action_mailer.raise_delivery_errors = false
53
+
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
57
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
+ # the I18n.default_locale when a translation can not be found)
59
+ config.i18n.fallbacks = true
60
+
61
+ # Send deprecation notices to registered listeners
62
+ config.active_support.deprecation = :notify
63
+
64
+ # Log the query plan for queries taking more than this (works
65
+ # with SQLite, MySQL, and PostgreSQL)
66
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+ end
@@ -1,19 +1,37 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
1
+ RailsOpenid::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
2
3
 
3
- # The test environment is used exclusively to run your application's
4
- # test suite. You never need to work with it otherwise. Remember that
5
- # your test database is "scratch space" for the test suite and is wiped
6
- # and recreated between test runs. Don't rely on the data there!
7
- config.cache_classes = true
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
8
9
 
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
11
13
 
12
- # Show full error reports and disable caching
13
- config.action_controller.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
15
16
 
16
- # Tell ActionMailer not to deliver emails to the real world.
17
- # The :test delivery method accumulates sent emails in the
18
- # ActionMailer::Base.deliveries array.
19
- config.action_mailer.delivery_method = :test
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ config.active_record.mass_assignment_sanitizer = :strict
34
+
35
+ # Print deprecation notices to the stderr
36
+ config.active_support.deprecation = :stderr
37
+ end
@@ -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,15 @@
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
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end