brightcontent-pages 2.0.10 → 2.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,23 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightcontent-pages (2.0.10)
4
+ brightcontent-pages (2.0.11)
5
5
  awesome_nested_set
6
- brightcontent-attachments (= 2.0.10)
7
- brightcontent-core (= 2.0.10)
6
+ brightcontent-attachments (= 2.0.11)
7
+ brightcontent-core (= 2.0.11)
8
8
 
9
9
  PATH
10
10
  remote: ../attachments
11
11
  specs:
12
- brightcontent-attachments (2.0.10)
13
- brightcontent-core (= 2.0.10)
12
+ brightcontent-attachments (2.0.11)
13
+ brightcontent-core (= 2.0.11)
14
14
  jquery-fileupload-rails
15
15
  paperclip
16
16
 
17
17
  PATH
18
18
  remote: ../core
19
19
  specs:
20
- brightcontent-core (2.0.10)
20
+ brightcontent-core (2.0.11)
21
21
  bcrypt-ruby
22
22
  bootstrap-wysihtml5-rails
23
23
  has_scope
@@ -8,7 +8,7 @@ module Brightcontent
8
8
  end
9
9
 
10
10
  def form_fields
11
- %w{name parent_id body attachments}
11
+ %w{name parent_id hidden body attachments}
12
12
  end
13
13
 
14
14
  end
@@ -1,7 +1,6 @@
1
1
  module Brightcontent
2
2
  class Page < ActiveRecord::Base
3
- attr_accessible :body, :name, :parent_id
4
-
3
+ attr_accessible :body, :name, :parent_id, :hidden
5
4
  acts_as_nested_set
6
5
  include Brightcontent::Attachable
7
6
 
@@ -1 +1 @@
1
- <%= "—" * item.depth %> <%= item.name %>
1
+ <%= "—" * item.depth %> <%= item.name %> <% if item.hidden? %><span class="badge">Hidden</span><% end %>
@@ -0,0 +1,5 @@
1
+ class AddHiddenToPages < ActiveRecord::Migration
2
+ def change
3
+ add_column :brightcontent_pages, :hidden, :boolean
4
+ end
5
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20121228111704) do
14
+ ActiveRecord::Schema.define(:version => 20130105141633) do
15
15
 
16
16
  create_table "brightcontent_admin_users", :force => true do |t|
17
17
  t.string "email"
@@ -44,6 +44,7 @@ ActiveRecord::Schema.define(:version => 20121228111704) do
44
44
  t.integer "parent_id"
45
45
  t.datetime "created_at", :null => false
46
46
  t.datetime "updated_at", :null => false
47
+ t.boolean "hidden"
47
48
  end
48
49
 
49
50
  add_index "brightcontent_pages", ["slug"], :name => "index_brightcontent_pages_on_slug"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 2.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-04 00:00:00.000000000 Z
12
+ date: 2013-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: brightcontent-core
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.0.10
21
+ version: 2.0.11
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.0.10
29
+ version: 2.0.11
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: brightcontent-attachments
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: 2.0.10
37
+ version: 2.0.11
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: 2.0.10
45
+ version: 2.0.11
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: awesome_nested_set
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -158,6 +158,7 @@ files:
158
158
  - brightcontent-pages.gemspec
159
159
  - config/routes.rb
160
160
  - db/migrate/20121207132810_create_brightcontent_pages.rb
161
+ - db/migrate/20130105141633_add_hidden_to_pages.rb
161
162
  - lib/brightcontent-pages.rb
162
163
  - lib/brightcontent/pages.rb
163
164
  - lib/brightcontent/pages/engine.rb
@@ -225,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
225
226
  version: '0'
226
227
  segments:
227
228
  - 0
228
- hash: -4003714928450945011
229
+ hash: 18281700371062306
229
230
  required_rubygems_version: !ruby/object:Gem::Requirement
230
231
  none: false
231
232
  requirements:
@@ -234,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
235
  version: '0'
235
236
  segments:
236
237
  - 0
237
- hash: -4003714928450945011
238
+ hash: 18281700371062306
238
239
  requirements: []
239
240
  rubyforge_project:
240
241
  rubygems_version: 1.8.24