brightcontent-pages 2.4.6 → 2.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.
- checksums.yaml +5 -5
- data/db/migrate/20121207132810_create_brightcontent_pages.rb +1 -1
- data/spec/dummy/app/controllers/pages_controller.rb +1 -1
- data/spec/dummy/config/application.rb +2 -1
- data/spec/dummy/db/schema.rb +50 -0
- data/spec/lib/brightcontent/pages/path_constraint_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -0
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1fb244e566e6800e7092ace05d2d071f578c67fb70518411f42d4b02fe0005a2
|
4
|
+
data.tar.gz: 498d87cb0ab59d2bd64c338cfcfd301b4d13e1fbeae2ae850a08109b152d4315
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cec777716f3c63574a567152953ff89c1b3b69428011082686ac40f8f70c131c001775d949709941e3d67151459dc385f07c8aa3b7770c74b6bf16548a92c5a
|
7
|
+
data.tar.gz: 6fb6665e26cdcf8119f021317d847d9d086a54fdb494351eac28c196d98a640543034f642a62b6202bbee3e835e34ca1a10354730cdbf368ffc6a392e74e06c5
|
@@ -20,6 +20,7 @@ module Dummy
|
|
20
20
|
|
21
21
|
# Activate observers that should always be running.
|
22
22
|
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
23
|
+
config.active_record.sqlite3&.represent_boolean_as_integer = true
|
23
24
|
|
24
25
|
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
25
26
|
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
@@ -47,7 +48,7 @@ module Dummy
|
|
47
48
|
config.assets.enabled = true
|
48
49
|
|
49
50
|
# config.i18n.enforce_available_locales = true
|
50
|
-
config.active_record.raise_in_transactional_callbacks = true
|
51
|
+
# config.active_record.raise_in_transactional_callbacks = true
|
51
52
|
|
52
53
|
# Version of your assets, change this if you want to expire all your assets
|
53
54
|
config.assets.version = '1.0'
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 2012_12_22_172513) do
|
14
|
+
|
15
|
+
create_table "brightcontent_admin_users", force: :cascade do |t|
|
16
|
+
t.string "email"
|
17
|
+
t.string "password_digest"
|
18
|
+
t.datetime "created_at"
|
19
|
+
t.datetime "updated_at"
|
20
|
+
end
|
21
|
+
|
22
|
+
create_table "brightcontent_attachments", force: :cascade do |t|
|
23
|
+
t.integer "attachable_id"
|
24
|
+
t.string "attachable_type"
|
25
|
+
t.string "asset_file_name"
|
26
|
+
t.string "asset_content_type"
|
27
|
+
t.integer "asset_file_size"
|
28
|
+
t.datetime "asset_updated_at"
|
29
|
+
t.integer "position"
|
30
|
+
t.datetime "created_at"
|
31
|
+
t.datetime "updated_at"
|
32
|
+
t.index ["attachable_id"], name: "index_brightcontent_attachments_on_attachable_id"
|
33
|
+
t.index ["attachable_type"], name: "index_brightcontent_attachments_on_attachable_type"
|
34
|
+
end
|
35
|
+
|
36
|
+
create_table "brightcontent_pages", force: :cascade do |t|
|
37
|
+
t.string "name"
|
38
|
+
t.text "body"
|
39
|
+
t.string "slug"
|
40
|
+
t.integer "depth"
|
41
|
+
t.integer "lft"
|
42
|
+
t.integer "rgt"
|
43
|
+
t.integer "parent_id"
|
44
|
+
t.boolean "hidden", default: false, null: false
|
45
|
+
t.datetime "created_at"
|
46
|
+
t.datetime "updated_at"
|
47
|
+
t.index ["slug"], name: "index_brightcontent_pages_on_slug"
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
@@ -18,11 +18,11 @@ module Brightcontent
|
|
18
18
|
|
19
19
|
it 'returns true if path is existing' do
|
20
20
|
request = double(:request, path: '/existing')
|
21
|
-
expect(subject.matches?(request)).to
|
21
|
+
expect(subject.matches?(request)).to eq true
|
22
22
|
end
|
23
23
|
it 'returns false if path is non-existing' do
|
24
24
|
request = double(:request, path: '/nonexisting')
|
25
|
-
expect(subject.matches?(request)).to
|
25
|
+
expect(subject.matches?(request)).to eq false
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brightcontent-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Developers at Brightin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brightcontent-core
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.5.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: brightcontent-attachments
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.5.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.5.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: awesome_nested_set
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
162
162
|
- spec/dummy/config/locales/en.yml
|
163
163
|
- spec/dummy/config/routes.rb
|
164
|
+
- spec/dummy/db/schema.rb
|
164
165
|
- spec/dummy/lib/assets/.gitkeep
|
165
166
|
- spec/dummy/public/404.html
|
166
167
|
- spec/dummy/public/422.html
|
@@ -195,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
196
|
version: '0'
|
196
197
|
requirements: []
|
197
198
|
rubyforge_project:
|
198
|
-
rubygems_version: 2.
|
199
|
+
rubygems_version: 2.7.6
|
199
200
|
signing_key:
|
200
201
|
specification_version: 4
|
201
202
|
summary: Pages resource for brightcontent
|
@@ -232,6 +233,7 @@ test_files:
|
|
232
233
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
233
234
|
- spec/dummy/config/locales/en.yml
|
234
235
|
- spec/dummy/config/routes.rb
|
236
|
+
- spec/dummy/db/schema.rb
|
235
237
|
- spec/dummy/lib/assets/.gitkeep
|
236
238
|
- spec/dummy/public/404.html
|
237
239
|
- spec/dummy/public/422.html
|