adsense_crawler_for_private 1.2.0 → 2.0.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 (39) hide show
  1. checksums.yaml +5 -5
  2. data/lib/adsense_crawler_for_private/version.rb +1 -1
  3. data/lib/adsense_crawler_for_private.rb +2 -2
  4. metadata +21 -89
  5. data/test/adsense_crawler_for_private_test.rb +0 -7
  6. data/test/dummy/Rakefile +0 -7
  7. data/test/dummy/app/controllers/application_controller.rb +0 -3
  8. data/test/dummy/app/controllers/main_controller.rb +0 -29
  9. data/test/dummy/app/helpers/application_helper.rb +0 -2
  10. data/test/dummy/config/application.rb +0 -52
  11. data/test/dummy/config/boot.rb +0 -10
  12. data/test/dummy/config/database.yml +0 -26
  13. data/test/dummy/config/environment.rb +0 -5
  14. data/test/dummy/config/environments/development.rb +0 -32
  15. data/test/dummy/config/environments/production.rb +0 -60
  16. data/test/dummy/config/environments/test.rb +0 -45
  17. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  18. data/test/dummy/config/initializers/inflections.rb +0 -10
  19. data/test/dummy/config/initializers/mime_types.rb +0 -5
  20. data/test/dummy/config/initializers/secret_token.rb +0 -7
  21. data/test/dummy/config/initializers/session_store.rb +0 -8
  22. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  23. data/test/dummy/config/locales/en.yml +0 -5
  24. data/test/dummy/config/routes.rb +0 -6
  25. data/test/dummy/config/secrets.yml +0 -22
  26. data/test/dummy/config.ru +0 -4
  27. data/test/dummy/db/development.sqlite3 +0 -0
  28. data/test/dummy/db/schema.rb +0 -16
  29. data/test/dummy/db/test.sqlite3 +0 -0
  30. data/test/dummy/log/development.log +0 -444
  31. data/test/dummy/log/test.log +0 -15367
  32. data/test/dummy/public/404.html +0 -26
  33. data/test/dummy/public/422.html +0 -26
  34. data/test/dummy/public/500.html +0 -26
  35. data/test/dummy/public/favicon.ico +0 -0
  36. data/test/dummy/script/rails +0 -6
  37. data/test/integration/adsense_crawler_for_private/filtering_helper_test.rb +0 -88
  38. data/test/integration/adsense_crawler_for_private/login_test.rb +0 -85
  39. data/test/test_helper.rb +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ced4e397a7523dada49fd5b86c484e70f0f2257b
4
- data.tar.gz: f2a27e9dccb682c4c4a71ca961ad5eebce1d8e90
2
+ SHA256:
3
+ metadata.gz: a532748033705035cb946d08238df568db77d3419e1a9650e951b15f188119dc
4
+ data.tar.gz: 0dbba2b3b402d64c740fcb0610f15cabc666cea53f25f340d8c482bf4abc5990
5
5
  SHA512:
6
- metadata.gz: b21da71e195c679df2abc15640955997c4aa152ddf01900cad0d2a8ec1221467ff7705a14356c115780d02bbb929d2a398fc008284e49fcc3766d054d51ea4c7
7
- data.tar.gz: 74a71fb1d6fc972b9f5286760420393c06f408d47e3a1a2517b94d86b95a7b2af989175cef2a3ea9c86605f6a189a5c34f6d61fcb0be8f0d1f40eb4795c5d1ce
6
+ metadata.gz: 629bbeeb0256baaa8c0533f5b6b95d7630d2692895c58c0575f534bb69445737b05fbefc0419cf883d1032c7dc712fc1ad94804f419f10d5a5bbe78726de38ad
7
+ data.tar.gz: 97402a2cc21d59fd15022da716edb1212a08c02dcc9ff238c32794341698105dab10df31d675919f4dcd4bb3f0f6e3c5c19aa2fcadef9b4ee41fe00a1615c8f0
@@ -1,3 +1,3 @@
1
1
  module AdsenseCrawlerForPrivate
2
- VERSION = "1.2.0"
2
+ VERSION = "2.0.0"
3
3
  end
@@ -32,14 +32,14 @@ module AdsenseCrawlerForPrivate
32
32
  unless login_ok
33
33
  info_str = "login_check wasn't ok, even though cookie was found."
34
34
  info_str += "warning: ip was not accepted" unless self.ip_check(request)
35
-
35
+
36
36
  self.logger.warn info_str
37
37
 
38
38
  cookies.delete(AdsenseCrawlerForPrivate.cookie_name)
39
39
  end
40
40
  end
41
41
  end
42
-
42
+
43
43
  return login_ok
44
44
  end
45
45
 
metadata CHANGED
@@ -1,57 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adsense_crawler_for_private
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olli Huotari
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2018-03-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '7.1'
19
+ - - "<"
18
20
  - !ruby/object:Gem::Version
19
- version: '5.0'
21
+ version: '9'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
- - - "~>"
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '7.1'
29
+ - - "<"
25
30
  - !ruby/object:Gem::Version
26
- version: '5.0'
31
+ version: '9'
27
32
  - !ruby/object:Gem::Dependency
28
33
  name: sqlite3
29
34
  requirement: !ruby/object:Gem::Requirement
30
35
  requirements:
31
36
  - - ">="
32
37
  - !ruby/object:Gem::Version
33
- version: '0'
38
+ version: '1.4'
34
39
  type: :development
35
40
  prerelease: false
36
41
  version_requirements: !ruby/object:Gem::Requirement
37
42
  requirements:
38
43
  - - ">="
39
44
  - !ruby/object:Gem::Version
40
- version: '0'
45
+ version: '1.4'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: mocha
43
48
  requirement: !ruby/object:Gem::Requirement
44
49
  requirements:
45
- - - "~>"
50
+ - - ">="
46
51
  - !ruby/object:Gem::Version
47
- version: '0.9'
52
+ version: '2.1'
48
53
  type: :development
49
54
  prerelease: false
50
55
  version_requirements: !ruby/object:Gem::Requirement
51
56
  requirements:
52
- - - "~>"
57
+ - - ">="
53
58
  - !ruby/object:Gem::Version
54
- version: '0.9'
59
+ version: '2.1'
55
60
  description: Easy way to enable AdSense crawler to login and see private or custom
56
61
  pages in your rails application. Basically one custom login filter. Gem enables
57
62
  you to easily slightly increase revenues from Google AdSense/AdWords. It makes it
@@ -74,45 +79,9 @@ files:
74
79
  - lib/adsense_crawler_for_private/engine.rb
75
80
  - lib/adsense_crawler_for_private/version.rb
76
81
  - lib/tasks/adsense_crawler_for_private_tasks.rake
77
- - test/adsense_crawler_for_private_test.rb
78
- - test/dummy/Rakefile
79
- - test/dummy/app/controllers/application_controller.rb
80
- - test/dummy/app/controllers/main_controller.rb
81
- - test/dummy/app/helpers/application_helper.rb
82
- - test/dummy/config.ru
83
- - test/dummy/config/application.rb
84
- - test/dummy/config/boot.rb
85
- - test/dummy/config/database.yml
86
- - test/dummy/config/environment.rb
87
- - test/dummy/config/environments/development.rb
88
- - test/dummy/config/environments/production.rb
89
- - test/dummy/config/environments/test.rb
90
- - test/dummy/config/initializers/backtrace_silencers.rb
91
- - test/dummy/config/initializers/inflections.rb
92
- - test/dummy/config/initializers/mime_types.rb
93
- - test/dummy/config/initializers/secret_token.rb
94
- - test/dummy/config/initializers/session_store.rb
95
- - test/dummy/config/initializers/wrap_parameters.rb
96
- - test/dummy/config/locales/en.yml
97
- - test/dummy/config/routes.rb
98
- - test/dummy/config/secrets.yml
99
- - test/dummy/db/development.sqlite3
100
- - test/dummy/db/schema.rb
101
- - test/dummy/db/test.sqlite3
102
- - test/dummy/log/development.log
103
- - test/dummy/log/test.log
104
- - test/dummy/public/404.html
105
- - test/dummy/public/422.html
106
- - test/dummy/public/500.html
107
- - test/dummy/public/favicon.ico
108
- - test/dummy/script/rails
109
- - test/integration/adsense_crawler_for_private/filtering_helper_test.rb
110
- - test/integration/adsense_crawler_for_private/login_test.rb
111
- - test/test_helper.rb
112
82
  homepage: https://github.com/holli/adsense_crawler_for_private/
113
83
  licenses: []
114
84
  metadata: {}
115
- post_install_message:
116
85
  rdoc_options: []
117
86
  require_paths:
118
87
  - lib
@@ -120,52 +89,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
89
  requirements:
121
90
  - - ">="
122
91
  - !ruby/object:Gem::Version
123
- version: '0'
92
+ version: '3.1'
124
93
  required_rubygems_version: !ruby/object:Gem::Requirement
125
94
  requirements:
126
95
  - - ">="
127
96
  - !ruby/object:Gem::Version
128
97
  version: '0'
129
98
  requirements: []
130
- rubyforge_project:
131
- rubygems_version: 2.6.14
132
- signing_key:
99
+ rubygems_version: 4.0.20
133
100
  specification_version: 4
134
101
  summary: Easy way to enable adsense crawler to login and see private or custom pages.
135
102
  Basically one custom login filter.
136
- test_files:
137
- - test/test_helper.rb
138
- - test/adsense_crawler_for_private_test.rb
139
- - test/integration/adsense_crawler_for_private/filtering_helper_test.rb
140
- - test/integration/adsense_crawler_for_private/login_test.rb
141
- - test/dummy/db/schema.rb
142
- - test/dummy/db/test.sqlite3
143
- - test/dummy/db/development.sqlite3
144
- - test/dummy/public/500.html
145
- - test/dummy/public/422.html
146
- - test/dummy/public/favicon.ico
147
- - test/dummy/public/404.html
148
- - test/dummy/config.ru
149
- - test/dummy/log/test.log
150
- - test/dummy/log/development.log
151
- - test/dummy/Rakefile
152
- - test/dummy/script/rails
153
- - test/dummy/app/controllers/application_controller.rb
154
- - test/dummy/app/controllers/main_controller.rb
155
- - test/dummy/app/helpers/application_helper.rb
156
- - test/dummy/config/environments/production.rb
157
- - test/dummy/config/environments/test.rb
158
- - test/dummy/config/environments/development.rb
159
- - test/dummy/config/routes.rb
160
- - test/dummy/config/boot.rb
161
- - test/dummy/config/secrets.yml
162
- - test/dummy/config/locales/en.yml
163
- - test/dummy/config/environment.rb
164
- - test/dummy/config/database.yml
165
- - test/dummy/config/application.rb
166
- - test/dummy/config/initializers/backtrace_silencers.rb
167
- - test/dummy/config/initializers/session_store.rb
168
- - test/dummy/config/initializers/wrap_parameters.rb
169
- - test/dummy/config/initializers/inflections.rb
170
- - test/dummy/config/initializers/secret_token.rb
171
- - test/dummy/config/initializers/mime_types.rb
103
+ test_files: []
@@ -1,7 +0,0 @@
1
- require './test/test_helper'
2
-
3
- class AdsenseCrawlerForPrivateTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, AdsenseCrawlerForPrivate
6
- end
7
- end
data/test/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env rake
2
- # Add your own tasks in files placed in lib/tasks ending in .rake,
3
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
-
5
- require File.expand_path('../config/application', __FILE__)
6
-
7
- Dummy::Application.load_tasks
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,29 +0,0 @@
1
- class MainController < ApplicationController
2
-
3
- before_action :adsense_crawler_private_specific_page, :only => :forbidden_render
4
- before_action :redirect_if_not_logged, :only => :forbidden_render
5
-
6
-
7
- def normal_render
8
- #debugger
9
- render :plain => 'this is rendered normally'
10
- end
11
-
12
- def forbidden_render
13
- render :plain => 'never used'
14
- end
15
-
16
- protected
17
-
18
- def redirect_if_not_logged
19
- redirect_to "http://www.you-were-not-logged-in.inv"
20
- end
21
-
22
- def adsense_crawler_private_specific_page
23
- if AdsenseCrawlerForPrivate.login_check(cookies, request)
24
- render :plain => "private render for crawler"
25
- return false
26
- end
27
- end
28
-
29
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,52 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- # This is a custom way of disable activerecord database, used instead of default "require 'rails/all'"
4
- # see http://stackoverflow.com/questions/2212709/remove-activerecord-in-rails-3-beta for more info
5
- #require "action_controller/railtie"
6
- #require "action_mailer/railtie"
7
- #require "active_resource/railtie"
8
- #require "sprockets/railtie"
9
-
10
- require 'rails/all'
11
-
12
- Bundler.require
13
- require "adsense_crawler_for_private"
14
-
15
- module Dummy
16
- class Application < Rails::Application
17
- # Settings in config/environments/* take precedence over those specified here.
18
- # Application configuration should go into files in config/initializers
19
- # -- all .rb files in that directory are automatically loaded.
20
-
21
- # Custom directories with classes and modules you want to be autoloadable.
22
- # config.autoload_paths += %W(#{config.root}/extras)
23
-
24
- # Only load the plugins named here, in the order given (default is alphabetical).
25
- # :all can be used as a placeholder for all plugins not explicitly named.
26
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
27
-
28
- # Activate observers that should always be running.
29
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
30
-
31
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
32
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
33
- # config.time_zone = 'Central Time (US & Canada)'
34
-
35
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
36
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
37
- # config.i18n.default_locale = :de
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
-
45
- # Enable the asset pipeline
46
- config.assets.enabled = true
47
-
48
- # Version of your assets, change this if you want to expire all your assets
49
- config.assets.version = '1.0'
50
- end
51
- end
52
-
@@ -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,26 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
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
- # Do not set this db to the same as development or production.
15
- test:
16
- adapter: sqlite3
17
- # database: ":memory:"
18
- database: db/test.sqlite3
19
- pool: 5
20
- timeout: 5000
21
-
22
- production:
23
- adapter: sqlite3
24
- database: db/production.sqlite3
25
- pool: 5
26
- 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,32 +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 web server 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_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send
17
- config.action_mailer.raise_delivery_errors = false
18
-
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
- # Do not compress assets
26
- config.assets.compress = false
27
-
28
- # Expands the lines which load the assets
29
- config.assets.debug = true
30
-
31
- config.eager_load = false
32
- end
@@ -1,60 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
6
-
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
10
-
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
12
- config.serve_static_assets = false
13
-
14
- # Compress JavaScripts and CSS
15
- config.assets.compress = true
16
-
17
- # Don't fallback to assets pipeline if a precompiled asset is missed
18
- config.assets.compile = false
19
-
20
- # Generate digests for assets URLs
21
- config.assets.digest = true
22
-
23
- # Defaults to Rails.root.join("public/assets")
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
- # Use a different logger for distributed setups
37
- # config.logger = SyslogLogger.new
38
-
39
- # Use a different cache store in production
40
- # config.cache_store = :mem_cache_store
41
-
42
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
43
- # config.action_controller.asset_host = "http://assets.example.com"
44
-
45
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
46
- # config.assets.precompile += %w( search.js )
47
-
48
- # Disable delivery errors, bad email addresses will be ignored
49
- # config.action_mailer.raise_delivery_errors = false
50
-
51
- # Enable threaded mode
52
- # config.threadsafe!
53
-
54
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
55
- # the I18n.default_locale when a translation can not be found)
56
- config.i18n.fallbacks = true
57
-
58
- # Send deprecation notices to registered listeners
59
- config.active_support.deprecation = :notify
60
- end
@@ -1,45 +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
- # Configure static asset server for tests with Cache-Control for performance
11
- #if Rails.version.to_f < 4.2
12
- config.public_file_server.enabled = false
13
-
14
- #config.static_cache_control = "public, max-age=3600"
15
- config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
16
-
17
- # Log error messages when you accidentally call methods on nil
18
- config.whiny_nils = true
19
-
20
- # Show full error reports and disable caching
21
- config.consider_all_requests_local = true
22
- config.action_controller.perform_caching = false
23
-
24
- # Raise exceptions instead of rendering exception templates
25
- config.action_dispatch.show_exceptions = false
26
-
27
- # Disable request forgery protection in test environment
28
- config.action_controller.allow_forgery_protection = false
29
-
30
- # Tell Action Mailer not to deliver emails to the real world.
31
- # The :test delivery method accumulates sent emails in the
32
- # ActionMailer::Base.deliveries array.
33
- config.action_mailer.delivery_method = :test
34
-
35
- # Use SQL instead of Active Record's schema dumper when creating the test database.
36
- # This is necessary if your schema can't be completely dumped by the schema dumper,
37
- # like if you have constraints or database-specific column types
38
- # config.active_record.schema_format = :sql
39
-
40
- # Print deprecation notices to the stderr
41
- config.active_support.deprecation = :stderr
42
-
43
- config.eager_load = false
44
- config.active_support.test_order = :random
45
- 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 = '555a820ccb5f5b46a5ed1411dfd571861eaafb9ee1abe59032a5eb7558f5672396d7b83221059ff43822a3e01b544782987b293656ad726cd4723672583510be'
@@ -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,14 +0,0 @@
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
@@ -1,5 +0,0 @@
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"
@@ -1,6 +0,0 @@
1
- Rails.application.routes.draw do
2
- get "normal_render", :controller => "main"
3
- get "forbidden_render", :controller => "main"
4
-
5
- mount AdsenseCrawlerForPrivate::Engine => "/adsense_crawler_for_private"
6
- end
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: 2f27d866330c869a1776a0fae46509c39183c2f8395bf4c37dca319b4bb5cdba8574d1b70994831c5791c0f646935a6db7be14e1c0be82d994148e10e8f6bdd4
15
-
16
- test:
17
- secret_key_base: a4ad8b210ae43305955732fcf9046d87424f0a376df13a8067c4bf0197cf27b8578f9b0c6fc0f32e02130d72d88bded2e8d5f054aebc8c29278700a658d29b10
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
data/test/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
Binary file
@@ -1,16 +0,0 @@
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 that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 0) do
15
-
16
- end
File without changes