simple-constraints 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/simple/constraints/version.rb +1 -1
- data/spec/dummy/config/application.rb +1 -8
- data/spec/dummy/config/environments/development.rb +2 -6
- data/spec/dummy/config/environments/production.rb +2 -0
- data/spec/dummy/config/environments/test.rb +2 -6
- data/spec/dummy/config/initializers/secret_token.rb +1 -0
- data/spec/dummy/config/routes.rb +2 -2
- data/spec/dummy/log/test.log +0 -1
- metadata +11 -21
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c74d181e58df0b7bcaf53e4a56c2cda33680dfdc
|
4
|
+
data.tar.gz: a1d1c880206e2fc5df18b5bf26b98a468adee97c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d14b93ac6bb3be983f15c86f4be5b88dcd971f889acfa4b65d68fe42ab343964599dbe272a5ec5c8a42a01120b5a581a69038795ab61544fc0ea5eda1df4b0af
|
7
|
+
data.tar.gz: 6b1915c19a1dfe114a2c772b30b81a939b256ed6324ab4a653cfd92e5f85e87dc6ddd4c835f4eb364799c27c08531868af66af3ed202270e707e7a565a34ae22
|
@@ -4,11 +4,10 @@ require 'rails/all'
|
|
4
4
|
require 'active_record/railtie'
|
5
5
|
require 'action_controller/railtie'
|
6
6
|
require 'action_mailer/railtie'
|
7
|
-
require 'active_resource/railtie'
|
8
7
|
require 'sprockets/railtie'
|
9
8
|
|
10
9
|
Bundler.require
|
11
|
-
require "simple"
|
10
|
+
require "simple/constraints"
|
12
11
|
|
13
12
|
module Dummy
|
14
13
|
class Application < Rails::Application
|
@@ -48,12 +47,6 @@ module Dummy
|
|
48
47
|
# like if you have constraints or database-specific column types
|
49
48
|
# config.active_record.schema_format = :sql
|
50
49
|
|
51
|
-
# Enforce whitelist mode for mass assignment.
|
52
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
53
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
54
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
55
|
-
config.active_record.whitelist_attributes = true
|
56
|
-
|
57
50
|
# Enable the asset pipeline
|
58
51
|
config.assets.enabled = true
|
59
52
|
|
@@ -6,9 +6,6 @@ Dummy::Application.configure do
|
|
6
6
|
# since you don't have to restart the web server when you make code changes.
|
7
7
|
config.cache_classes = false
|
8
8
|
|
9
|
-
# Log error messages when you accidentally call methods on nil.
|
10
|
-
config.whiny_nils = true
|
11
|
-
|
12
9
|
# Show full error reports and disable caching
|
13
10
|
config.consider_all_requests_local = true
|
14
11
|
config.action_controller.perform_caching = false
|
@@ -22,9 +19,6 @@ Dummy::Application.configure do
|
|
22
19
|
# Only use best-standards-support built into browsers
|
23
20
|
config.action_dispatch.best_standards_support = :builtin
|
24
21
|
|
25
|
-
# Raise exception on mass assignment protection for Active Record models
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
-
|
28
22
|
# Log the query plan for queries taking more than this (works
|
29
23
|
# with SQLite, MySQL, and PostgreSQL)
|
30
24
|
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
@@ -34,4 +28,6 @@ Dummy::Application.configure do
|
|
34
28
|
|
35
29
|
# Expands the lines which load the assets
|
36
30
|
config.assets.debug = true
|
31
|
+
|
32
|
+
config.eager_load = false
|
37
33
|
end
|
@@ -11,9 +11,6 @@ Dummy::Application.configure do
|
|
11
11
|
config.serve_static_assets = true
|
12
12
|
config.static_cache_control = "public, max-age=3600"
|
13
13
|
|
14
|
-
# Log error messages when you accidentally call methods on nil
|
15
|
-
config.whiny_nils = true
|
16
|
-
|
17
14
|
# Show full error reports and disable caching
|
18
15
|
config.consider_all_requests_local = true
|
19
16
|
config.action_controller.perform_caching = false
|
@@ -29,9 +26,8 @@ Dummy::Application.configure do
|
|
29
26
|
# ActionMailer::Base.deliveries array.
|
30
27
|
config.action_mailer.delivery_method = :test
|
31
28
|
|
32
|
-
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
-
|
35
29
|
# Print deprecation notices to the stderr
|
36
30
|
config.active_support.deprecation = :stderr
|
31
|
+
|
32
|
+
config.eager_load = false
|
37
33
|
end
|
@@ -5,3 +5,4 @@
|
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
7
|
Dummy::Application.config.secret_token = 'fb532cdbf0058da2b9c805ec904eb625100ac0e9398ce9d95b238f5189542da64a71e992a3752196bd96b64e180735c7fa322f6970a3134d5fb8ac99ed01d79a'
|
8
|
+
Dummy::Application.config.secret_key_base = '904eb625100ac0e9398ce9d95b238f5189542da64a71e992a37521'
|
data/spec/dummy/config/routes.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
Dummy::Application.routes.draw do
|
2
2
|
|
3
3
|
subdomain only: 'blog' do
|
4
|
-
root to: 'application#blog'
|
4
|
+
root to: 'application#blog', as: :blog_root
|
5
5
|
end
|
6
6
|
|
7
7
|
subdomain except: 'www' do
|
8
|
-
root to: 'application#subdomain'
|
8
|
+
root to: 'application#subdomain', as: :www_root
|
9
9
|
end
|
10
10
|
|
11
11
|
root to: 'application#index'
|
data/spec/dummy/log/test.log
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-constraints
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Chris Mytton
|
@@ -10,24 +9,22 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-12-27 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rails
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.2.
|
20
|
+
version: 3.2.0
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
25
|
+
- - '>='
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version: 3.2.
|
27
|
+
version: 3.2.0
|
31
28
|
description: Adds routing constraints to the host application
|
32
29
|
email:
|
33
30
|
- paul@simpleweb.co.uk
|
@@ -76,33 +73,26 @@ files:
|
|
76
73
|
- spec/spec_helper.rb
|
77
74
|
homepage: https://github.com/simpleweb/simple-constraints
|
78
75
|
licenses: []
|
76
|
+
metadata: {}
|
79
77
|
post_install_message:
|
80
78
|
rdoc_options: []
|
81
79
|
require_paths:
|
82
80
|
- lib
|
83
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
-
none: false
|
85
82
|
requirements:
|
86
|
-
- -
|
83
|
+
- - '>='
|
87
84
|
- !ruby/object:Gem::Version
|
88
85
|
version: '0'
|
89
|
-
segments:
|
90
|
-
- 0
|
91
|
-
hash: 4596880479353924767
|
92
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
87
|
requirements:
|
95
|
-
- -
|
88
|
+
- - '>='
|
96
89
|
- !ruby/object:Gem::Version
|
97
90
|
version: '0'
|
98
|
-
segments:
|
99
|
-
- 0
|
100
|
-
hash: 4596880479353924767
|
101
91
|
requirements: []
|
102
92
|
rubyforge_project:
|
103
|
-
rubygems_version:
|
93
|
+
rubygems_version: 2.0.14
|
104
94
|
signing_key:
|
105
|
-
specification_version:
|
95
|
+
specification_version: 4
|
106
96
|
summary: Rails routing constraints utilities
|
107
97
|
test_files:
|
108
98
|
- spec/dummy/app/assets/javascripts/application.js
|