authlogic_facebook_shim 0.3.3 → 0.5.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 (59) hide show
  1. data/Gemfile +4 -0
  2. data/Gemfile.lock +113 -0
  3. data/README.rdoc +8 -1
  4. data/Rakefile +39 -20
  5. data/authlogic_facebook_shim.gemspec +22 -19
  6. data/lib/authlogic_facebook_shim/adapters/koala_adapter.rb +12 -9
  7. data/lib/authlogic_facebook_shim/railtie.rb +19 -0
  8. data/lib/authlogic_facebook_shim/session/adapter.rb +23 -0
  9. data/lib/authlogic_facebook_shim/session/config.rb +1 -1
  10. data/lib/authlogic_facebook_shim/session/facebook.rb +3 -4
  11. data/lib/authlogic_facebook_shim/session.rb +4 -0
  12. data/lib/authlogic_facebook_shim/version.rb +3 -0
  13. data/lib/authlogic_facebook_shim.rb +6 -9
  14. data/test/dummy/app/controllers/application_controller.rb +3 -0
  15. data/test/dummy/app/helpers/application_helper.rb +2 -0
  16. data/test/{rails_root → dummy}/app/models/user.rb +1 -0
  17. data/test/{rails_root → dummy}/app/models/user_session.rb +0 -0
  18. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  19. data/test/dummy/config/application.rb +49 -0
  20. data/test/dummy/config/boot.rb +10 -0
  21. data/test/dummy/config/database.yml +6 -0
  22. data/test/dummy/config/environment.rb +5 -0
  23. data/test/dummy/config/environments/development.rb +27 -0
  24. data/test/dummy/config/environments/test.rb +37 -0
  25. data/test/{rails_root → dummy}/config/facebook.yml +0 -0
  26. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  27. data/test/dummy/config/initializers/inflections.rb +10 -0
  28. data/test/dummy/config/initializers/mime_types.rb +5 -0
  29. data/test/dummy/config/initializers/secret_token.rb +7 -0
  30. data/test/dummy/config/initializers/session_store.rb +8 -0
  31. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  32. data/test/dummy/config/locales/en.yml +5 -0
  33. data/test/dummy/config/routes.rb +2 -0
  34. data/test/dummy/config.ru +4 -0
  35. data/test/{rails_root → dummy}/db/migrate/20101217000008_create_users.rb +0 -0
  36. data/test/{rails_root → dummy}/db/seeds.rb +0 -0
  37. data/test/dummy/log/test.log +1386 -0
  38. data/test/test_helper.rb +20 -20
  39. data/test/units/adapters/koala_adapter_test.rb +202 -146
  40. data/test/units/session/config_test.rb +110 -108
  41. data/test/units/session/facebook_test.rb +175 -156
  42. metadata +123 -155
  43. data/VERSION +0 -1
  44. data/test/rails_root/app/controllers/application_controller.rb +0 -10
  45. data/test/rails_root/app/helpers/application_helper.rb +0 -3
  46. data/test/rails_root/config/boot.rb +0 -110
  47. data/test/rails_root/config/database.yml +0 -10
  48. data/test/rails_root/config/environment.rb +0 -31
  49. data/test/rails_root/config/environments/development.rb +0 -0
  50. data/test/rails_root/config/environments/test.rb +0 -0
  51. data/test/rails_root/config/initializers/authlogic_facebook_koala.rb +0 -5
  52. data/test/rails_root/config/initializers/new_rails_defaults.rb +0 -21
  53. data/test/rails_root/config/initializers/session_store.rb +0 -15
  54. data/test/rails_root/config/locales/en.yml +0 -5
  55. data/test/rails_root/config/routes.rb +0 -43
  56. data/test/rails_root/log/test.log +0 -1137
  57. data/test/rails_root/script/console +0 -3
  58. data/test/rails_root/script/dbconsole +0 -3
  59. data/test/rails_root/script/generate +0 -3
metadata CHANGED
@@ -1,218 +1,186 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: authlogic_facebook_shim
3
- version: !ruby/object:Gem::Version
4
- hash: 21
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 3
10
- version: 0.3.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - James McCarthy
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2010-05-27 00:00:00 +01:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-11-26 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: authlogic
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2156316240 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 13
30
- segments:
31
- - 2
32
- - 1
33
- - 3
34
- version: 2.1.3
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
35
22
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rails
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2156316240
25
+ - !ruby/object:Gem::Dependency
26
+ name: rails
27
+ requirement: &2156315740 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
29
+ requirements:
43
30
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 9
46
- segments:
47
- - 2
48
- - 3
49
- - 5
50
- version: 2.3.5
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
51
33
  type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: flexmock
55
34
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2156315740
36
+ - !ruby/object:Gem::Dependency
37
+ name: minitest
38
+ requirement: &2156315280 !ruby/object:Gem::Requirement
57
39
  none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
- version: "0"
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '2'
65
44
  type: :development
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- name: shoulda
69
45
  prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *2156315280
47
+ - !ruby/object:Gem::Dependency
48
+ name: override
49
+ requirement: &2156314900 !ruby/object:Gem::Requirement
71
50
  none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
79
55
  type: :development
80
- version_requirements: *id004
81
- - !ruby/object:Gem::Dependency
82
- name: sqlite3-ruby
83
56
  prerelease: false
84
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *2156314900
58
+ - !ruby/object:Gem::Dependency
59
+ name: sqlite3
60
+ requirement: &2156314440 !ruby/object:Gem::Requirement
85
61
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- hash: 3
90
- segments:
91
- - 0
92
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
93
66
  type: :development
94
- version_requirements: *id005
95
- - !ruby/object:Gem::Dependency
96
- name: test-unit
97
67
  prerelease: false
98
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *2156314440
69
+ - !ruby/object:Gem::Dependency
70
+ name: koala
71
+ requirement: &2156314020 !ruby/object:Gem::Requirement
99
72
  none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- hash: 3
104
- segments:
105
- - 0
106
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
107
77
  type: :development
108
- version_requirements: *id006
109
- description: Authlogic plugin to support Facebook OAuth2 javascript sessions. Currently requires koala but is easily extended for other facebook gems
78
+ prerelease: false
79
+ version_requirements: *2156314020
80
+ description: Authlogic extension to support Facebook OAuth2 javascript sessions. Currently
81
+ requires koala but is easily extended for other facebook api wrappers.
110
82
  email: james2mccarthy@gmail.com
111
83
  executables: []
112
-
113
84
  extensions: []
114
-
115
- extra_rdoc_files:
85
+ extra_rdoc_files:
116
86
  - LICENSE
117
87
  - README.rdoc
118
- files:
88
+ files:
119
89
  - authlogic_facebook_shim.gemspec
90
+ - Gemfile
91
+ - Gemfile.lock
120
92
  - init.rb
121
93
  - lib/authlogic_facebook_shim/acts_as_authentic.rb
122
94
  - lib/authlogic_facebook_shim/adapters/koala_adapter.rb
95
+ - lib/authlogic_facebook_shim/railtie.rb
123
96
  - lib/authlogic_facebook_shim/session/adapter.rb
124
97
  - lib/authlogic_facebook_shim/session/config.rb
125
98
  - lib/authlogic_facebook_shim/session/facebook.rb
126
99
  - lib/authlogic_facebook_shim/session.rb
100
+ - lib/authlogic_facebook_shim/version.rb
127
101
  - lib/authlogic_facebook_shim.rb
128
102
  - LICENSE
129
103
  - rails/init.rb
130
104
  - Rakefile
131
105
  - README.rdoc
132
- - test/rails_root/app/controllers/application_controller.rb
133
- - test/rails_root/app/helpers/application_helper.rb
134
- - test/rails_root/app/models/user.rb
135
- - test/rails_root/app/models/user_session.rb
136
- - test/rails_root/config/boot.rb
137
- - test/rails_root/config/database.yml
138
- - test/rails_root/config/environment.rb
139
- - test/rails_root/config/environments/development.rb
140
- - test/rails_root/config/environments/test.rb
141
- - test/rails_root/config/facebook.yml
142
- - test/rails_root/config/initializers/authlogic_facebook_koala.rb
143
- - test/rails_root/config/initializers/new_rails_defaults.rb
144
- - test/rails_root/config/initializers/session_store.rb
145
- - test/rails_root/config/locales/en.yml
146
- - test/rails_root/config/routes.rb
147
- - test/rails_root/db/migrate/20101217000008_create_users.rb
148
- - test/rails_root/db/seeds.rb
149
- - test/rails_root/log/test.log
150
- - test/rails_root/script/console
151
- - test/rails_root/script/dbconsole
152
- - test/rails_root/script/generate
106
+ - test/dummy/app/controllers/application_controller.rb
107
+ - test/dummy/app/helpers/application_helper.rb
108
+ - test/dummy/app/models/user.rb
109
+ - test/dummy/app/models/user_session.rb
110
+ - test/dummy/app/views/layouts/application.html.erb
111
+ - test/dummy/config/application.rb
112
+ - test/dummy/config/boot.rb
113
+ - test/dummy/config/database.yml
114
+ - test/dummy/config/environment.rb
115
+ - test/dummy/config/environments/development.rb
116
+ - test/dummy/config/environments/test.rb
117
+ - test/dummy/config/facebook.yml
118
+ - test/dummy/config/initializers/backtrace_silencers.rb
119
+ - test/dummy/config/initializers/inflections.rb
120
+ - test/dummy/config/initializers/mime_types.rb
121
+ - test/dummy/config/initializers/secret_token.rb
122
+ - test/dummy/config/initializers/session_store.rb
123
+ - test/dummy/config/initializers/wrap_parameters.rb
124
+ - test/dummy/config/locales/en.yml
125
+ - test/dummy/config/routes.rb
126
+ - test/dummy/config.ru
127
+ - test/dummy/db/migrate/20101217000008_create_users.rb
128
+ - test/dummy/db/seeds.rb
129
+ - test/dummy/log/test.log
153
130
  - test/test_helper.rb
154
131
  - test/units/adapters/koala_adapter_test.rb
155
132
  - test/units/session/config_test.rb
156
133
  - test/units/session/facebook_test.rb
157
- - VERSION
158
- has_rdoc: true
159
134
  homepage: http://github.com/james2m/authlogic_facebook_shim
160
135
  licenses: []
161
-
162
136
  post_install_message:
163
- rdoc_options:
137
+ rdoc_options:
164
138
  - --charset=UTF-8
165
- require_paths:
139
+ require_paths:
166
140
  - lib
167
- required_ruby_version: !ruby/object:Gem::Requirement
141
+ required_ruby_version: !ruby/object:Gem::Requirement
168
142
  none: false
169
- requirements:
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- hash: 3
173
- segments:
174
- - 0
175
- version: "0"
176
- required_rubygems_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ! '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
177
148
  none: false
178
- requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- hash: 31
182
- segments:
183
- - 1
184
- - 2
185
- - 0
186
- version: 1.2.0
149
+ requirements:
150
+ - - ! '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
187
153
  requirements: []
188
-
189
154
  rubyforge_project:
190
- rubygems_version: 1.4.2
155
+ rubygems_version: 1.8.6
191
156
  signing_key:
192
157
  specification_version: 3
193
- summary: Authlogic plugin to support Facebook Javascript OAuth2 Sessions.
194
- test_files:
195
- - test/rails_root/app/controllers/application_controller.rb
196
- - test/rails_root/app/helpers/application_helper.rb
197
- - test/rails_root/app/models/user.rb
198
- - test/rails_root/app/models/user_session.rb
199
- - test/rails_root/config/boot.rb
200
- - test/rails_root/config/database.yml
201
- - test/rails_root/config/environment.rb
202
- - test/rails_root/config/environments/development.rb
203
- - test/rails_root/config/environments/test.rb
204
- - test/rails_root/config/facebook.yml
205
- - test/rails_root/config/initializers/authlogic_facebook_koala.rb
206
- - test/rails_root/config/initializers/new_rails_defaults.rb
207
- - test/rails_root/config/initializers/session_store.rb
208
- - test/rails_root/config/locales/en.yml
209
- - test/rails_root/config/routes.rb
210
- - test/rails_root/db/migrate/20101217000008_create_users.rb
211
- - test/rails_root/db/seeds.rb
212
- - test/rails_root/log/test.log
213
- - test/rails_root/script/console
214
- - test/rails_root/script/dbconsole
215
- - test/rails_root/script/generate
158
+ summary: Authlogic extension to support Facebook Javascript OAuth2 Sessions.
159
+ test_files:
160
+ - test/dummy/app/controllers/application_controller.rb
161
+ - test/dummy/app/helpers/application_helper.rb
162
+ - test/dummy/app/models/user.rb
163
+ - test/dummy/app/models/user_session.rb
164
+ - test/dummy/app/views/layouts/application.html.erb
165
+ - test/dummy/config/application.rb
166
+ - test/dummy/config/boot.rb
167
+ - test/dummy/config/database.yml
168
+ - test/dummy/config/environment.rb
169
+ - test/dummy/config/environments/development.rb
170
+ - test/dummy/config/environments/test.rb
171
+ - test/dummy/config/facebook.yml
172
+ - test/dummy/config/initializers/backtrace_silencers.rb
173
+ - test/dummy/config/initializers/inflections.rb
174
+ - test/dummy/config/initializers/mime_types.rb
175
+ - test/dummy/config/initializers/secret_token.rb
176
+ - test/dummy/config/initializers/session_store.rb
177
+ - test/dummy/config/initializers/wrap_parameters.rb
178
+ - test/dummy/config/locales/en.yml
179
+ - test/dummy/config/routes.rb
180
+ - test/dummy/config.ru
181
+ - test/dummy/db/migrate/20101217000008_create_users.rb
182
+ - test/dummy/db/seeds.rb
183
+ - test/dummy/log/test.log
216
184
  - test/test_helper.rb
217
185
  - test/units/adapters/koala_adapter_test.rb
218
186
  - test/units/session/config_test.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.3.0
@@ -1,10 +0,0 @@
1
- # Filters added to this controller apply to all controllers in the application.
2
- # Likewise, all the methods added will be available for all controllers.
3
-
4
- class ApplicationController < ActionController::Base
5
- helper :all # include all helpers, all the time
6
- protect_from_forgery # See ActionController::RequestForgeryProtection for details
7
-
8
- # Scrub sensitive parameters from your log
9
- # filter_parameter_logging :password
10
- end
@@ -1,3 +0,0 @@
1
- # Methods added to this helper will be available to all templates in the application.
2
- module ApplicationHelper
3
- end
@@ -1,110 +0,0 @@
1
- # Don't change this file!
2
- # Configure your app in config/environment.rb and config/environments/*.rb
3
-
4
- RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
5
-
6
- module Rails
7
- class << self
8
- def boot!
9
- unless booted?
10
- preinitialize
11
- pick_boot.run
12
- end
13
- end
14
-
15
- def booted?
16
- defined? Rails::Initializer
17
- end
18
-
19
- def pick_boot
20
- (vendor_rails? ? VendorBoot : GemBoot).new
21
- end
22
-
23
- def vendor_rails?
24
- File.exist?("#{RAILS_ROOT}/vendor/rails")
25
- end
26
-
27
- def preinitialize
28
- load(preinitializer_path) if File.exist?(preinitializer_path)
29
- end
30
-
31
- def preinitializer_path
32
- "#{RAILS_ROOT}/config/preinitializer.rb"
33
- end
34
- end
35
-
36
- class Boot
37
- def run
38
- load_initializer
39
- Rails::Initializer.run(:set_load_path)
40
- end
41
- end
42
-
43
- class VendorBoot < Boot
44
- def load_initializer
45
- require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
46
- Rails::Initializer.run(:install_gem_spec_stubs)
47
- Rails::GemDependency.add_frozen_gem_path
48
- end
49
- end
50
-
51
- class GemBoot < Boot
52
- def load_initializer
53
- self.class.load_rubygems
54
- load_rails_gem
55
- require 'initializer'
56
- end
57
-
58
- def load_rails_gem
59
- if version = self.class.gem_version
60
- gem 'rails', version
61
- else
62
- gem 'rails'
63
- end
64
- rescue Gem::LoadError => load_error
65
- $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
66
- exit 1
67
- end
68
-
69
- class << self
70
- def rubygems_version
71
- Gem::RubyGemsVersion rescue nil
72
- end
73
-
74
- def gem_version
75
- if defined? RAILS_GEM_VERSION
76
- RAILS_GEM_VERSION
77
- elsif ENV.include?('RAILS_GEM_VERSION')
78
- ENV['RAILS_GEM_VERSION']
79
- else
80
- parse_gem_version(read_environment_rb)
81
- end
82
- end
83
-
84
- def load_rubygems
85
- min_version = '1.3.2'
86
- require 'rubygems'
87
- unless rubygems_version >= min_version
88
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
89
- exit 1
90
- end
91
-
92
- rescue LoadError
93
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
94
- exit 1
95
- end
96
-
97
- def parse_gem_version(text)
98
- $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
99
- end
100
-
101
- private
102
- def read_environment_rb
103
- File.read("#{RAILS_ROOT}/config/environment.rb")
104
- end
105
- end
106
- end
107
- end
108
-
109
- # All that for this:
110
- Rails.boot!
@@ -1,10 +0,0 @@
1
- development:
2
- :adapter: sqlite3
3
- :database: ":memory:"
4
- pool: 5
5
- timeout: 5000
6
- test:
7
- :adapter: sqlite3
8
- :database: ":memory:"
9
- pool: 5
10
- timeout: 5000
@@ -1,31 +0,0 @@
1
- RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
2
-
3
- # Bootstrap the Rails environment, frameworks, and default configuration
4
- require File.join(File.dirname(__FILE__), 'boot')
5
-
6
- Rails::Initializer.run do |config|
7
- # config.load_paths += %W( #{RAILS_ROOT}/extras )
8
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
9
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
10
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
11
- # config.i18n.default_locale = :de
12
- # config.active_record.schema_format = :sql
13
-
14
- config.gem "authlogic"
15
- config.gem 'flexmock'
16
- config.gem "koala"
17
- config.gem "shoulda"
18
- config.gem "test-unit", :lib => "test/unit"
19
-
20
- config.frameworks -= [ :active_resource, :action_mailer ]
21
- config.log_level = :debug
22
- config.cache_classes = false
23
- config.whiny_nils = true
24
- config.action_controller.consider_all_requests_local = true
25
- config.action_controller.perform_caching = false
26
- config.action_view.cache_template_loading = true
27
- config.action_controller.allow_forgery_protection = false
28
- config.action_mailer.delivery_method = :test
29
- config.time_zone = 'UTC'
30
-
31
- end
File without changes
File without changes
@@ -1,5 +0,0 @@
1
- afk_path = File.join(File.dirname(__FILE__), *%w(.. .. .. ..))
2
- afk_lib_path = File.join(afk_path, "lib")
3
-
4
- $LOAD_PATH.unshift(afk_lib_path)
5
- load File.join(afk_path, "init.rb")
@@ -1,21 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # These settings change the behavior of Rails 2 apps and will be defaults
4
- # for Rails 3. You can remove this initializer when Rails 3 is released.
5
-
6
- if defined?(ActiveRecord)
7
- # Include Active Record class name as root for JSON serialized output.
8
- ActiveRecord::Base.include_root_in_json = true
9
-
10
- # Store the full class name (including module namespace) in STI type column.
11
- ActiveRecord::Base.store_full_sti_class = true
12
- end
13
-
14
- ActionController::Routing.generate_best_match = false
15
-
16
- # Use ISO 8601 format for JSON serialized times and dates.
17
- ActiveSupport.use_standard_json_time_format = true
18
-
19
- # Don't escape HTML entities in JSON, leave that for the #json_escape helper.
20
- # if you're including raw json in an HTML page.
21
- ActiveSupport.escape_html_entities_in_json = false
@@ -1,15 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying cookie session data integrity.
4
- # If you change this key, all old sessions 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
- ActionController::Base.session = {
8
- :key => '_rails_root_session',
9
- :secret => '4deb5b6e05377d982fa6ef37582c0be6de39e1473cc99a4a0f32fd61ec735cd9e86276b2c25fc781e7df8cd6afdc819208f7f497a755e217bff75728d05f543b'
10
- }
11
-
12
- # Use the database for sessions instead of the cookie-based default,
13
- # which shouldn't be used to store highly confidential information
14
- # (create the session table with "rake db:sessions:create")
15
- # ActionController::Base.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,43 +0,0 @@
1
- ActionController::Routing::Routes.draw do |map|
2
- # The priority is based upon order of creation: first created -> highest priority.
3
-
4
- # Sample of regular route:
5
- # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
6
- # Keep in mind you can assign values other than :controller and :action
7
-
8
- # Sample of named route:
9
- # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
10
- # This route can be invoked with purchase_url(:id => product.id)
11
-
12
- # Sample resource route (maps HTTP verbs to controller actions automatically):
13
- # map.resources :products
14
-
15
- # Sample resource route with options:
16
- # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
17
-
18
- # Sample resource route with sub-resources:
19
- # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
20
-
21
- # Sample resource route with more complex sub-resources
22
- # map.resources :products do |products|
23
- # products.resources :comments
24
- # products.resources :sales, :collection => { :recent => :get }
25
- # end
26
-
27
- # Sample resource route within a namespace:
28
- # map.namespace :admin do |admin|
29
- # # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
30
- # admin.resources :products
31
- # end
32
-
33
- # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
34
- # map.root :controller => "welcome"
35
-
36
- # See how all your routes lay out with "rake routes"
37
-
38
- # Install the default routes as the lowest priority.
39
- # Note: These default routes make all actions in every controller accessible via GET requests. You should
40
- # consider removing or commenting them out if you're using named routes and resources.
41
- map.connect ':controller/:action/:id'
42
- map.connect ':controller/:action/:id.:format'
43
- end