brightcontent-pages 2.1.4 → 2.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e574030e876841da0171f08c438323d65f838c71
4
- data.tar.gz: 62691d335eed8a2c959d6b1485361dce0ec044bc
3
+ metadata.gz: 7277923e1db623d4b0afbc32c50e100df97c4105
4
+ data.tar.gz: e6db3a4c952dbff64038cda203cfc1285f7aa18a
5
5
  SHA512:
6
- metadata.gz: 993c782a5b480e0a99929f46af83f6cef59b0266d318a2959b94ee619baf5fccf27c65a57a9a2ebf42d9bf7785886edf64fc0e6b24bfcee2df9d8507d257811e
7
- data.tar.gz: 112ba355146d612278b33412bd42b64de98dbd2345e85695b7fc2f97c1cdbca6bf6d61f12f8434624a5bf0ea1f460919bba9b4660afa61740ee3fb66ce5daa4e
6
+ metadata.gz: 8ef7a0c01e312dd10235823754efbd6d42074ebee3bcb3137bc06ac408943a026b98268900719779f64be125942781c8c19d6ddec13b29e248ab33bc80813e70
7
+ data.tar.gz: 6836125b625b8fcb0f04c8fcf81c623be49e9dd5817f71f0d630b5d6e93ae70fd8effdd6b6f89dd754d4cb62ca2c106272bc34f4620ac7a577f27beacbe0b8a4
@@ -8,9 +8,15 @@ class CreateBrightcontentPages < ActiveRecord::Migration
8
8
  t.integer :lft
9
9
  t.integer :rgt
10
10
  t.integer :parent_id
11
+ t.boolean :hidden, default: false, null: false
11
12
 
12
13
  t.timestamps
13
14
  end
15
+
14
16
  add_index :brightcontent_pages, :slug
15
17
  end
18
+
19
+ def down
20
+ drop_table :brightcontent_pages
21
+ end
16
22
  end
@@ -50,6 +50,15 @@ module Dummy
50
50
 
51
51
  # Version of your assets, change this if you want to expire all your assets
52
52
  config.assets.version = '1.0'
53
+
54
+ # Share migrations of Brightcontent core and attachments
55
+ Brightcontent::Engine.paths["db/migrate"].expanded.each do |expanded_path|
56
+ config.paths["db/migrate"] << expanded_path
57
+ end
58
+
59
+ Brightcontent::Attachments::Engine.paths["db/migrate"].expanded.each do |expanded_path|
60
+ config.paths["db/migrate"] << expanded_path
61
+ end
53
62
  end
54
63
  end
55
64
 
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.1.4
4
+ version: 2.1.5
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: 2014-10-13 00:00:00.000000000 Z
11
+ date: 2014-12-18 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.1.4
19
+ version: 2.1.5
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.1.4
26
+ version: 2.1.5
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.1.4
33
+ version: 2.1.5
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.1.4
40
+ version: 2.1.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: awesome_nested_set
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -192,8 +192,6 @@ files:
192
192
  - config/locales/brightcontent_pages.nl.yml
193
193
  - config/routes.rb
194
194
  - db/migrate/20121207132810_create_brightcontent_pages.rb
195
- - db/migrate/20130105141633_add_hidden_to_pages.rb
196
- - db/migrate/20130105142936_add_default_hidden_to_pages.rb
197
195
  - lib/brightcontent-pages.rb
198
196
  - lib/brightcontent/pages.rb
199
197
  - lib/brightcontent/pages/engine.rb
@@ -234,9 +232,6 @@ files:
234
232
  - spec/dummy/config/initializers/wrap_parameters.rb
235
233
  - spec/dummy/config/locales/en.yml
236
234
  - spec/dummy/config/routes.rb
237
- - spec/dummy/db/migrate/20121206121725_create_brightcontent_admin_users.rb
238
- - spec/dummy/db/migrate/20121228111704_create_attachments.brightcontent_attachments_engine.rb
239
- - spec/dummy/db/migrate/20140227110824_add_position_to_attachments.brightcontent_attachments_engine.rb
240
235
  - spec/dummy/lib/assets/.gitkeep
241
236
  - spec/dummy/public/404.html
242
237
  - spec/dummy/public/422.html
@@ -307,9 +302,6 @@ test_files:
307
302
  - spec/dummy/config/initializers/wrap_parameters.rb
308
303
  - spec/dummy/config/locales/en.yml
309
304
  - spec/dummy/config/routes.rb
310
- - spec/dummy/db/migrate/20121206121725_create_brightcontent_admin_users.rb
311
- - spec/dummy/db/migrate/20121228111704_create_attachments.brightcontent_attachments_engine.rb
312
- - spec/dummy/db/migrate/20140227110824_add_position_to_attachments.brightcontent_attachments_engine.rb
313
305
  - spec/dummy/lib/assets/.gitkeep
314
306
  - spec/dummy/public/404.html
315
307
  - spec/dummy/public/422.html
@@ -1,5 +0,0 @@
1
- class AddHiddenToPages < ActiveRecord::Migration
2
- def change
3
- add_column :brightcontent_pages, :hidden, :boolean
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddDefaultHiddenToPages < ActiveRecord::Migration
2
- def change
3
- change_column :brightcontent_pages, :hidden, :boolean, default: false, null: false
4
- end
5
- end
@@ -1,12 +0,0 @@
1
- class CreateBrightcontentAdminUsers < ActiveRecord::Migration
2
- def change
3
- create_table :brightcontent_admin_users do |t|
4
- t.string :email
5
- t.string :password_digest
6
-
7
- t.timestamps
8
- end
9
-
10
- Brightcontent::AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password')
11
- end
12
- end
@@ -1,20 +0,0 @@
1
- # This migration comes from brightcontent_attachments_engine (originally 20121222172513)
2
- class CreateAttachments < ActiveRecord::Migration
3
- def self.up
4
- create_table :brightcontent_attachments do |t|
5
- t.integer :attachable_id
6
- t.string :attachable_type
7
- t.string :asset_file_name
8
- t.string :asset_content_type
9
- t.integer :asset_file_size
10
- t.datetime :asset_updated_at
11
- t.timestamps
12
- end
13
- add_index :brightcontent_attachments, :attachable_id
14
- add_index :brightcontent_attachments, :attachable_type
15
- end
16
-
17
- def self.down
18
- drop_table :brightcontent_attachments
19
- end
20
- end
@@ -1,6 +0,0 @@
1
- # This migration comes from brightcontent_attachments_engine (originally 20140203140819)
2
- class AddPositionToAttachments < ActiveRecord::Migration
3
- def change
4
- add_column :brightcontent_attachments, :position, :integer
5
- end
6
- end