push_type_core 0.1.0.beta3 → 0.1.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 +4 -4
- data/app/models/concerns/push_type/{field_store.rb → customizable.rb} +1 -1
- data/app/models/concerns/push_type/publishable.rb +43 -0
- data/app/models/concerns/push_type/templatable.rb +10 -8
- data/app/models/push_type/node.rb +3 -37
- data/app/models/push_type/user.rb +1 -1
- data/lib/generators/push_type/dummy/dummy_generator.rb +0 -1
- data/lib/generators/push_type/install/install_generator.rb +4 -2
- data/lib/push_type/core.rb +1 -1
- data/lib/push_type/field_type.rb +13 -4
- data/lib/push_type/testing/common_rake.rb +3 -3
- data/lib/push_type/testing/setup.rb +2 -1
- data/lib/push_type/testing/support/test_page.rb +2 -0
- data/test/dummy/config/secrets.yml +2 -2
- data/test/dummy/db/migrate/{20141205213452_create_push_type_users.push_type.rb → 20150102204403_create_push_type_users.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20141205213453_create_push_type_nodes.push_type.rb → 20150102204404_create_push_type_nodes.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20141205213454_create_push_type_node_hierarchies.push_type.rb → 20150102204405_create_push_type_node_hierarchies.push_type.rb} +0 -0
- data/test/dummy/db/migrate/{20141205213455_create_push_type_assets.push_type.rb → 20150102204406_create_push_type_assets.push_type.rb} +0 -0
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/log/test.log +1088 -908
- data/test/dummy/tmp/generators/app/models/home_page.rb +10 -0
- data/test/dummy/tmp/generators/app/views/nodes/home_page.html.erb +3 -0
- data/test/lib/generators/push_type/install_generator_test.rb +19 -0
- data/test/lib/generators/push_type/node_generator_test.rb +17 -0
- data/test/lib/push_type/core_test.rb +47 -0
- data/test/lib/push_type/field_type_test.rb +61 -0
- data/test/models/concerns/push_type/customizable_test.rb +30 -0
- data/test/models/concerns/push_type/nestable_test.rb +45 -0
- data/test/models/concerns/push_type/publishable_test.rb +74 -0
- data/test/models/concerns/push_type/templatable_test.rb +33 -0
- data/test/models/concerns/push_type/trashable_test.rb +32 -0
- data/test/models/push_type/node_test.rb +0 -65
- metadata +37 -13
@@ -0,0 +1,19 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
require "generators/push_type/install/install_generator"
|
3
|
+
|
4
|
+
module PushType
|
5
|
+
describe InstallGenerator do
|
6
|
+
tests InstallGenerator
|
7
|
+
destination Rails.root.join('tmp/generators')
|
8
|
+
|
9
|
+
before :all do
|
10
|
+
prepare_destination
|
11
|
+
FileUtils.mkdir Rails.root.join('tmp/generators/config')
|
12
|
+
FileUtils.cp Rails.root.join('config/routes.rb'), Rails.root.join('tmp/generators/config/')
|
13
|
+
run_generator ['--no-migrate']
|
14
|
+
end
|
15
|
+
|
16
|
+
it { assert_file 'config/initializers/push_type.rb', %r{PushType.setup do |config|} }
|
17
|
+
it { assert_file 'config/routes.rb', %r{mount_push_type} }
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
require "generators/push_type/node/node_generator"
|
3
|
+
|
4
|
+
module PushType
|
5
|
+
describe NodeGenerator do
|
6
|
+
tests NodeGenerator
|
7
|
+
destination Rails.root.join('tmp/generators')
|
8
|
+
|
9
|
+
before :all do
|
10
|
+
prepare_destination
|
11
|
+
run_generator ['home_page']
|
12
|
+
end
|
13
|
+
|
14
|
+
it { assert_file 'app/models/home_page.rb', %r{class HomePage < PushType::Node} }
|
15
|
+
it { assert_file 'app/views/nodes/home_page.html.erb', %r{<h1><%= @node.title %></h1>} }
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
module PushType
|
4
|
+
describe ::PushType do
|
5
|
+
|
6
|
+
describe '.config' do
|
7
|
+
subject { PushType.config }
|
8
|
+
it { subject.must_be_instance_of Rails::Engine::Configuration }
|
9
|
+
it { subject.root_node_types.wont_be_nil }
|
10
|
+
it { subject.home_node.wont_be_nil }
|
11
|
+
end
|
12
|
+
|
13
|
+
describe '.root_node_types' do
|
14
|
+
subject { PushType.root_node_types }
|
15
|
+
describe 'defaults' do
|
16
|
+
before { PushType.config.root_node_types = :all }
|
17
|
+
it { subject.must_be_instance_of Array }
|
18
|
+
it { subject.must_equal ['page', 'test_page'] }
|
19
|
+
end
|
20
|
+
describe 'specified single value' do
|
21
|
+
before { PushType.config.root_node_types = :page }
|
22
|
+
it { subject.must_equal ['page'] }
|
23
|
+
end
|
24
|
+
describe 'specified array with nonsense values' do
|
25
|
+
before { PushType.config.root_node_types = [:page, :test_page, :foo, :bar] }
|
26
|
+
it { subject.must_equal ['page', 'test_page'] }
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe '.node_types_from_list' do
|
31
|
+
subject { PushType.node_types_from_list list }
|
32
|
+
describe ':all' do
|
33
|
+
let(:list) { :all }
|
34
|
+
it { subject.must_equal ['page', 'test_page'] }
|
35
|
+
end
|
36
|
+
describe 'false' do
|
37
|
+
let(:list) { false }
|
38
|
+
it { subject.must_equal [] }
|
39
|
+
end
|
40
|
+
describe 'specified array with nonsense values' do
|
41
|
+
let(:list) { [:page, :foo] }
|
42
|
+
it { subject.must_equal ['page'] }
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
module PushType
|
4
|
+
describe FieldType do
|
5
|
+
|
6
|
+
let(:field) { PushType::FieldType.new :foo, opts }
|
7
|
+
let(:val) { '1' }
|
8
|
+
|
9
|
+
describe 'default' do
|
10
|
+
let(:opts) { {} }
|
11
|
+
it { field.name.must_equal 'foo' }
|
12
|
+
it { field.kind.must_equal 'field' }
|
13
|
+
it { field.template.must_equal 'default' }
|
14
|
+
it { field.label.must_equal 'Foo' }
|
15
|
+
it { field.html_options.must_equal({}) }
|
16
|
+
it { field.form_helper.must_equal :text_field }
|
17
|
+
it { field.column_class.must_equal nil }
|
18
|
+
it { field.to_json(val).must_equal '1' }
|
19
|
+
it { field.from_json(val).must_equal '1' }
|
20
|
+
end
|
21
|
+
|
22
|
+
describe 'with options' do
|
23
|
+
let(:opts) { { template: 'my_template', label: 'Bar', html_options: { some: 'opts' }, form_helper: :number_field, colspan: 2 } }
|
24
|
+
it { field.name.must_equal 'foo' }
|
25
|
+
it { field.kind.must_equal 'field' }
|
26
|
+
it { field.template.must_equal opts[:template] }
|
27
|
+
it { field.label.must_equal opts[:label] }
|
28
|
+
it { field.html_options.must_equal opts[:html_options] }
|
29
|
+
it { field.form_helper.must_equal opts[:form_helper] }
|
30
|
+
it { field.column_class.must_equal 'medium-6' }
|
31
|
+
it { field.to_json(val).must_equal '1' }
|
32
|
+
it { field.from_json(val).must_equal '1' }
|
33
|
+
end
|
34
|
+
|
35
|
+
describe DateField do
|
36
|
+
let(:field) { PushType::DateField.new :foo }
|
37
|
+
let(:val) { Date.today.to_s }
|
38
|
+
it { field.form_helper.must_equal :date_field }
|
39
|
+
it { field.from_json(val).must_be_instance_of Date }
|
40
|
+
end
|
41
|
+
|
42
|
+
describe NumberField do
|
43
|
+
let(:field) { PushType::NumberField.new :foo }
|
44
|
+
it { field.form_helper.must_equal :number_field }
|
45
|
+
it { field.from_json(val).must_equal 1 }
|
46
|
+
it { field.to_json(val).must_equal 1 }
|
47
|
+
end
|
48
|
+
|
49
|
+
describe TextField do
|
50
|
+
let(:field) { PushType::TextField.new :foo }
|
51
|
+
it { field.form_helper.must_equal :text_area }
|
52
|
+
end
|
53
|
+
|
54
|
+
describe RichTextField do
|
55
|
+
let(:field) { PushType::RichTextField.new :foo }
|
56
|
+
it { field.form_helper.must_equal :text_area }
|
57
|
+
it { field.html_options[:class].must_equal 'froala' }
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
module PushType
|
4
|
+
describe Customizable do
|
5
|
+
|
6
|
+
let(:page) { TestPage.new }
|
7
|
+
let(:fields) { page.fields }
|
8
|
+
|
9
|
+
it { TestPage.fields.must_be_instance_of ActiveSupport::OrderedHash }
|
10
|
+
it { fields.must_be_instance_of ActiveSupport::OrderedHash }
|
11
|
+
|
12
|
+
describe '.field' do
|
13
|
+
before :all do
|
14
|
+
TestPage.instance_variable_set '@fields', ActiveSupport::OrderedHash.new
|
15
|
+
TestPage.field :foo
|
16
|
+
TestPage.field :bar, :text
|
17
|
+
TestPage.field :baz, validates: { presence: true }
|
18
|
+
TestPage.field :qux, :rich_text, validates: { presence: true }
|
19
|
+
end
|
20
|
+
|
21
|
+
it { fields[:foo].must_be_instance_of StringField }
|
22
|
+
it { fields[:bar].must_be_instance_of TextField }
|
23
|
+
it { fields[:baz].must_be_instance_of StringField }
|
24
|
+
it { TestPage.validators_on(:baz).map(&:class).must_include ActiveRecord::Validations::PresenceValidator }
|
25
|
+
it { fields[:qux].must_be_instance_of RichTextField }
|
26
|
+
it { TestPage.validators_on(:qux).map(&:class).must_include ActiveRecord::Validations::PresenceValidator }
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
module PushType
|
4
|
+
describe Nestable do
|
5
|
+
|
6
|
+
# Reset to default
|
7
|
+
before(:all) { PushType.config.root_node_types = :all }
|
8
|
+
|
9
|
+
let(:page) { TestPage.new }
|
10
|
+
let(:roots) { PushType.root_node_types }
|
11
|
+
|
12
|
+
describe '.has_child_nodes' do
|
13
|
+
describe 'defaults' do
|
14
|
+
before { TestPage.instance_variable_set '@child_node_types', nil }
|
15
|
+
it { TestPage.child_node_types.must_equal roots }
|
16
|
+
it { page.child_node_types.must_equal roots }
|
17
|
+
end
|
18
|
+
|
19
|
+
describe 'when none' do
|
20
|
+
before { TestPage.has_child_nodes false }
|
21
|
+
it { TestPage.child_node_types.must_equal [] }
|
22
|
+
it { page.child_node_types.must_equal [] }
|
23
|
+
end
|
24
|
+
|
25
|
+
describe 'when all' do
|
26
|
+
before { TestPage.has_child_nodes :all }
|
27
|
+
it { TestPage.child_node_types.must_equal roots }
|
28
|
+
it { page.child_node_types.must_equal roots }
|
29
|
+
end
|
30
|
+
|
31
|
+
describe 'when specific' do
|
32
|
+
before { TestPage.has_child_nodes :page }
|
33
|
+
it { TestPage.child_node_types.must_equal ['page'] }
|
34
|
+
it { page.child_node_types.must_equal ['page'] }
|
35
|
+
end
|
36
|
+
|
37
|
+
describe 'when nonsense' do
|
38
|
+
before { TestPage.has_child_nodes :foo, :bar }
|
39
|
+
it { TestPage.child_node_types.must_equal [] }
|
40
|
+
it { page.child_node_types.must_equal [] }
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
module PushType
|
4
|
+
class PublishableTest < ActiveSupport::TestCase
|
5
|
+
|
6
|
+
let(:node) { Node.new }
|
7
|
+
|
8
|
+
describe '.published' do
|
9
|
+
let(:nodes) { PushType::Node.published }
|
10
|
+
let(:new_node!) { FactoryGirl.create :published_node, attributes }
|
11
|
+
before { @count = nodes.count }
|
12
|
+
describe 'without published status' do
|
13
|
+
it { proc { FactoryGirl.create :node }.wont_change 'nodes.count' }
|
14
|
+
end
|
15
|
+
describe 'with published_at dates in the future' do
|
16
|
+
let(:attributes) { { published_at: 1.day.from_now } }
|
17
|
+
it { proc { new_node! }.wont_change 'nodes.count' }
|
18
|
+
end
|
19
|
+
describe 'with published_at dates in the past' do
|
20
|
+
let(:attributes) { { published_at: 2.days.ago } }
|
21
|
+
it { proc { new_node! }.must_change 'nodes.count', 1 }
|
22
|
+
end
|
23
|
+
describe 'with published_to dates in the future' do
|
24
|
+
let(:attributes) { { published_at: 2.days.ago, published_to: 1.day.from_now } }
|
25
|
+
it { proc { new_node! }.must_change 'nodes.count', 1 }
|
26
|
+
end
|
27
|
+
describe 'with published_to dates in the past' do
|
28
|
+
let(:attributes) { { published_at: 2.days.ago, published_to: 1.day.ago } }
|
29
|
+
it { proc { new_node! }.wont_change 'nodes.count' }
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe '#set_default_status' do
|
34
|
+
it { node.status.must_equal 'draft' }
|
35
|
+
end
|
36
|
+
|
37
|
+
describe '#status' do
|
38
|
+
let(:draft) { FactoryGirl.create :node }
|
39
|
+
let(:published) { FactoryGirl.create :published_node }
|
40
|
+
let(:scheduled) { FactoryGirl.create :published_node, published_at: 1.day.from_now }
|
41
|
+
let(:expired) { FactoryGirl.create :published_node, published_at: 2.days.ago, published_to: 1.day.ago }
|
42
|
+
it { draft.must_be :draft? }
|
43
|
+
it { draft.wont_be :published? }
|
44
|
+
it { draft.wont_be :scheduled? }
|
45
|
+
it { draft.wont_be :expired? }
|
46
|
+
it { published.wont_be :draft? }
|
47
|
+
it { published.must_be :published? }
|
48
|
+
it { published.wont_be :scheduled? }
|
49
|
+
it { published.wont_be :expired? }
|
50
|
+
it { scheduled.wont_be :draft? }
|
51
|
+
it { scheduled.wont_be :published? }
|
52
|
+
it { scheduled.must_be :scheduled? }
|
53
|
+
it { scheduled.wont_be :expired? }
|
54
|
+
it { expired.wont_be :draft? }
|
55
|
+
it { expired.wont_be :published? }
|
56
|
+
it { expired.wont_be :scheduled? }
|
57
|
+
it { expired.must_be :expired? }
|
58
|
+
end
|
59
|
+
|
60
|
+
describe '#set_published_at' do
|
61
|
+
describe 'when publishing' do
|
62
|
+
let(:node) { FactoryGirl.create :node }
|
63
|
+
before { node.update_attribute :status, Node.statuses[:published] }
|
64
|
+
it { node.published_at.wont_be_nil }
|
65
|
+
end
|
66
|
+
describe 'when publishing' do
|
67
|
+
let(:node) { FactoryGirl.create :published_node }
|
68
|
+
before { node.update_attribute :status, Node.statuses[:draft] }
|
69
|
+
it { node.published_at.must_be_nil }
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
74
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
module PushType
|
4
|
+
describe Templatable do
|
5
|
+
|
6
|
+
let(:page) { TestPage.new }
|
7
|
+
|
8
|
+
describe '.template' do
|
9
|
+
describe 'defaults' do
|
10
|
+
before do
|
11
|
+
# Set class instance variables to nil
|
12
|
+
TestPage.instance_variable_set '@template_name', nil
|
13
|
+
TestPage.instance_variable_set '@template_opts', nil
|
14
|
+
end
|
15
|
+
before { page.template.must_equal 'nodes/test_page' }
|
16
|
+
before { page.template_args.must_equal ['nodes/test_page', {}] }
|
17
|
+
end
|
18
|
+
|
19
|
+
describe 'set template' do
|
20
|
+
before { TestPage.template :foo }
|
21
|
+
before { page.template.must_equal 'nodes/foo' }
|
22
|
+
end
|
23
|
+
|
24
|
+
describe 'set template with args' do
|
25
|
+
before { TestPage.template :foo, layout: 'my_layout' }
|
26
|
+
before { page.template.must_equal 'nodes/foo' }
|
27
|
+
before { page.template_args.must_equal ['nodes/foo', { layout: 'my_layout' }] }
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
module PushType
|
4
|
+
describe Trashable do
|
5
|
+
|
6
|
+
describe 'query scopes' do
|
7
|
+
it { PushType::Node.respond_to?(:trashed).must_equal true }
|
8
|
+
it { PushType::Node.respond_to?(:not_trash).must_equal true }
|
9
|
+
end
|
10
|
+
|
11
|
+
describe '#trashed?' do
|
12
|
+
describe 'when not trash' do
|
13
|
+
let(:page) { FactoryGirl.create :node }
|
14
|
+
it { page.trashed?.must_equal false }
|
15
|
+
describe '#trash!' do
|
16
|
+
before { page.trash! }
|
17
|
+
it { page.trashed?.must_equal true }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe 'when trash' do
|
22
|
+
let(:page) { FactoryGirl.create :node, deleted_at: Time.zone.now }
|
23
|
+
it { page.trashed?.must_equal true }
|
24
|
+
describe '#restore!' do
|
25
|
+
before { page.restore! }
|
26
|
+
it { page.trashed?.must_equal false }
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
@@ -11,54 +11,6 @@ module PushType
|
|
11
11
|
node.must_be :valid?
|
12
12
|
end
|
13
13
|
|
14
|
-
describe '.published' do
|
15
|
-
let(:nodes) { PushType::Node.published }
|
16
|
-
let(:new_node!) { FactoryGirl.create :published_node, attributes }
|
17
|
-
before { @count = nodes.count }
|
18
|
-
describe 'without published status' do
|
19
|
-
it { proc { FactoryGirl.create :node }.wont_change 'nodes.count' }
|
20
|
-
end
|
21
|
-
describe 'with published_at dates in the future' do
|
22
|
-
let(:attributes) { { published_at: 1.day.from_now } }
|
23
|
-
it { proc { new_node! }.wont_change 'nodes.count' }
|
24
|
-
end
|
25
|
-
describe 'with published_at dates in the past' do
|
26
|
-
let(:attributes) { { published_at: 2.days.ago } }
|
27
|
-
it { proc { new_node! }.must_change 'nodes.count', 1 }
|
28
|
-
end
|
29
|
-
describe 'with published_to dates in the future' do
|
30
|
-
let(:attributes) { { published_at: 2.days.ago, published_to: 1.day.from_now } }
|
31
|
-
it { proc { new_node! }.must_change 'nodes.count', 1 }
|
32
|
-
end
|
33
|
-
describe 'with published_to dates in the past' do
|
34
|
-
let(:attributes) { { published_at: 2.days.ago, published_to: 1.day.ago } }
|
35
|
-
it { proc { new_node! }.wont_change 'nodes.count' }
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
describe '#status' do
|
40
|
-
let(:draft) { FactoryGirl.create :node }
|
41
|
-
let(:published) { FactoryGirl.create :published_node }
|
42
|
-
let(:scheduled) { FactoryGirl.create :published_node, published_at: 1.day.from_now }
|
43
|
-
let(:expired) { FactoryGirl.create :published_node, published_at: 2.days.ago, published_to: 1.day.ago }
|
44
|
-
it { draft.must_be :draft? }
|
45
|
-
it { draft.wont_be :published? }
|
46
|
-
it { draft.wont_be :scheduled? }
|
47
|
-
it { draft.wont_be :expired? }
|
48
|
-
it { published.wont_be :draft? }
|
49
|
-
it { published.must_be :published? }
|
50
|
-
it { published.wont_be :scheduled? }
|
51
|
-
it { published.wont_be :expired? }
|
52
|
-
it { scheduled.wont_be :draft? }
|
53
|
-
it { scheduled.wont_be :published? }
|
54
|
-
it { scheduled.must_be :scheduled? }
|
55
|
-
it { scheduled.wont_be :expired? }
|
56
|
-
it { expired.wont_be :draft? }
|
57
|
-
it { expired.wont_be :published? }
|
58
|
-
it { expired.wont_be :scheduled? }
|
59
|
-
it { expired.must_be :expired? }
|
60
|
-
end
|
61
|
-
|
62
14
|
describe '#permalink' do
|
63
15
|
before do
|
64
16
|
%w(one two three).each { |slug| @node = FactoryGirl.create :node, slug: slug, parent: @node }
|
@@ -66,22 +18,5 @@ module PushType
|
|
66
18
|
it { @node.permalink.must_equal 'one/two/three' }
|
67
19
|
end
|
68
20
|
|
69
|
-
describe '#default_values' do
|
70
|
-
it { node.status.must_equal 'draft' }
|
71
|
-
end
|
72
|
-
|
73
|
-
describe '#set_published_at' do
|
74
|
-
describe 'when publishing' do
|
75
|
-
let(:node) { FactoryGirl.create :node }
|
76
|
-
before { node.update_attribute :status, Node.statuses[:published] }
|
77
|
-
it { node.published_at.wont_be_nil }
|
78
|
-
end
|
79
|
-
describe 'when publishing' do
|
80
|
-
let(:node) { FactoryGirl.create :published_node }
|
81
|
-
before { node.update_attribute :status, Node.statuses[:draft] }
|
82
|
-
it { node.published_at.must_be_nil }
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
21
|
end
|
87
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: push_type_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Russell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -126,8 +126,9 @@ files:
|
|
126
126
|
- app/fields/push_type/string_field.rb
|
127
127
|
- app/fields/push_type/text_field.rb
|
128
128
|
- app/helpers/push_type/application_helper.rb
|
129
|
-
- app/models/concerns/push_type/
|
129
|
+
- app/models/concerns/push_type/customizable.rb
|
130
130
|
- app/models/concerns/push_type/nestable.rb
|
131
|
+
- app/models/concerns/push_type/publishable.rb
|
131
132
|
- app/models/concerns/push_type/templatable.rb
|
132
133
|
- app/models/concerns/push_type/trashable.rb
|
133
134
|
- app/models/push_type/asset.rb
|
@@ -158,6 +159,7 @@ files:
|
|
158
159
|
- lib/push_type/testing/factories.rb
|
159
160
|
- lib/push_type/testing/setup.rb
|
160
161
|
- lib/push_type/testing/support/expectations.rb
|
162
|
+
- lib/push_type/testing/support/test_page.rb
|
161
163
|
- lib/push_type_core.rb
|
162
164
|
- lib/tasks/push_type_tasks.rake
|
163
165
|
- test/controllers/push_type/front_end_controller_test.rb
|
@@ -193,10 +195,10 @@ files:
|
|
193
195
|
- test/dummy/config/locales/en.yml
|
194
196
|
- test/dummy/config/routes.rb
|
195
197
|
- test/dummy/config/secrets.yml
|
196
|
-
- test/dummy/db/migrate/
|
197
|
-
- test/dummy/db/migrate/
|
198
|
-
- test/dummy/db/migrate/
|
199
|
-
- test/dummy/db/migrate/
|
198
|
+
- test/dummy/db/migrate/20150102204403_create_push_type_users.push_type.rb
|
199
|
+
- test/dummy/db/migrate/20150102204404_create_push_type_nodes.push_type.rb
|
200
|
+
- test/dummy/db/migrate/20150102204405_create_push_type_node_hierarchies.push_type.rb
|
201
|
+
- test/dummy/db/migrate/20150102204406_create_push_type_assets.push_type.rb
|
200
202
|
- test/dummy/db/schema.rb
|
201
203
|
- test/dummy/db/seeds.rb
|
202
204
|
- test/dummy/log/test.log
|
@@ -205,10 +207,21 @@ files:
|
|
205
207
|
- test/dummy/public/500.html
|
206
208
|
- test/dummy/public/favicon.ico
|
207
209
|
- test/dummy/public/robots.txt
|
210
|
+
- test/dummy/tmp/generators/app/models/home_page.rb
|
211
|
+
- test/dummy/tmp/generators/app/views/nodes/home_page.html.erb
|
208
212
|
- test/files/audio.m3u
|
209
213
|
- test/files/document.pdf
|
210
214
|
- test/files/image.png
|
211
215
|
- test/files/video.mp4
|
216
|
+
- test/lib/generators/push_type/install_generator_test.rb
|
217
|
+
- test/lib/generators/push_type/node_generator_test.rb
|
218
|
+
- test/lib/push_type/core_test.rb
|
219
|
+
- test/lib/push_type/field_type_test.rb
|
220
|
+
- test/models/concerns/push_type/customizable_test.rb
|
221
|
+
- test/models/concerns/push_type/nestable_test.rb
|
222
|
+
- test/models/concerns/push_type/publishable_test.rb
|
223
|
+
- test/models/concerns/push_type/templatable_test.rb
|
224
|
+
- test/models/concerns/push_type/trashable_test.rb
|
212
225
|
- test/models/push_type/asset_test.rb
|
213
226
|
- test/models/push_type/node_test.rb
|
214
227
|
- test/models/push_type/user_test.rb
|
@@ -228,9 +241,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
228
241
|
version: '0'
|
229
242
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
243
|
requirements:
|
231
|
-
- - "
|
244
|
+
- - ">="
|
232
245
|
- !ruby/object:Gem::Version
|
233
|
-
version:
|
246
|
+
version: '0'
|
234
247
|
requirements: []
|
235
248
|
rubyforge_project:
|
236
249
|
rubygems_version: 2.4.5
|
@@ -269,10 +282,10 @@ test_files:
|
|
269
282
|
- test/dummy/config/routes.rb
|
270
283
|
- test/dummy/config/secrets.yml
|
271
284
|
- test/dummy/config.ru
|
272
|
-
- test/dummy/db/migrate/
|
273
|
-
- test/dummy/db/migrate/
|
274
|
-
- test/dummy/db/migrate/
|
275
|
-
- test/dummy/db/migrate/
|
285
|
+
- test/dummy/db/migrate/20150102204403_create_push_type_users.push_type.rb
|
286
|
+
- test/dummy/db/migrate/20150102204404_create_push_type_nodes.push_type.rb
|
287
|
+
- test/dummy/db/migrate/20150102204405_create_push_type_node_hierarchies.push_type.rb
|
288
|
+
- test/dummy/db/migrate/20150102204406_create_push_type_assets.push_type.rb
|
276
289
|
- test/dummy/db/schema.rb
|
277
290
|
- test/dummy/db/seeds.rb
|
278
291
|
- test/dummy/log/test.log
|
@@ -283,10 +296,21 @@ test_files:
|
|
283
296
|
- test/dummy/public/robots.txt
|
284
297
|
- test/dummy/Rakefile
|
285
298
|
- test/dummy/README.rdoc
|
299
|
+
- test/dummy/tmp/generators/app/models/home_page.rb
|
300
|
+
- test/dummy/tmp/generators/app/views/nodes/home_page.html.erb
|
286
301
|
- test/files/audio.m3u
|
287
302
|
- test/files/document.pdf
|
288
303
|
- test/files/image.png
|
289
304
|
- test/files/video.mp4
|
305
|
+
- test/lib/generators/push_type/install_generator_test.rb
|
306
|
+
- test/lib/generators/push_type/node_generator_test.rb
|
307
|
+
- test/lib/push_type/core_test.rb
|
308
|
+
- test/lib/push_type/field_type_test.rb
|
309
|
+
- test/models/concerns/push_type/customizable_test.rb
|
310
|
+
- test/models/concerns/push_type/nestable_test.rb
|
311
|
+
- test/models/concerns/push_type/publishable_test.rb
|
312
|
+
- test/models/concerns/push_type/templatable_test.rb
|
313
|
+
- test/models/concerns/push_type/trashable_test.rb
|
290
314
|
- test/models/push_type/asset_test.rb
|
291
315
|
- test/models/push_type/node_test.rb
|
292
316
|
- test/models/push_type/user_test.rb
|