pulitzer 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/pulitzer.js +13 -4
- data/app/controllers/pulitzer/content_elements_controller.rb +3 -17
- data/app/controllers/pulitzer/post_tags_controller.rb +8 -8
- data/app/controllers/pulitzer/posts_controller.rb +4 -2
- data/app/controllers/pulitzer/versions_controller.rb +13 -4
- data/app/helpers/pulitzer/posts_helper.rb +1 -5
- data/app/interactions/pulitzer/clone_version.rb +22 -3
- data/app/interactions/pulitzer/create_post_tag.rb +6 -8
- data/app/interactions/pulitzer/update_version_status.rb +5 -1
- data/app/models/pulitzer/content_element.rb +4 -3
- data/app/models/pulitzer/post.rb +17 -1
- data/app/models/pulitzer/version.rb +11 -1
- data/app/validators/pulitzer/content_element_validator.rb +24 -0
- data/app/views/pulitzer/content_elements/_form.html.erb +1 -1
- data/app/views/pulitzer/content_elements/_index.html.erb +20 -0
- data/app/views/pulitzer/content_elements/{index_processing.html.erb → _index_processing.html.erb} +0 -0
- data/app/views/pulitzer/content_elements/_new.html.erb +6 -6
- data/app/views/pulitzer/content_elements/_show.html.erb +1 -1
- data/app/views/pulitzer/content_elements/_show_wrapper.html.erb +2 -2
- data/app/views/pulitzer/post_tags/_new.html.erb +3 -3
- data/app/views/pulitzer/post_tags/_show.html.erb +3 -3
- data/app/views/pulitzer/post_tags/_show_wrapper.html.erb +1 -1
- data/app/views/pulitzer/posts/_show.html.erb +1 -1
- data/app/views/pulitzer/posts/edit.html.erb +10 -0
- data/app/views/pulitzer/versions/_edit.html.erb +41 -0
- data/app/views/pulitzer/versions/_form.html.erb +2 -9
- data/config/routes.rb +6 -2
- data/db/migrate/20160122204201_add_errors_to_version.rb +5 -0
- data/lib/pulitzer/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +3 -7
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +7574 -0
- data/spec/dummy/public/uploads/tmp/1453739521-68535-5576/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453739521-68535-5576/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453739521-68535-5576/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453739650-68698-8068/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453739650-68698-8068/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453739650-68698-8068/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453740957-70195-5923/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453740957-70195-5923/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453740957-70195-5923/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741054-70338-5984/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741054-70338-5984/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741054-70338-5984/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741100-70403-3570/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741100-70403-3570/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741100-70403-3570/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741119-70445-1368/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741119-70445-1368/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741119-70445-1368/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741152-70510-7020/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741152-70510-7020/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741152-70510-7020/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741165-70539-8838/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741165-70539-8838/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741165-70539-8838/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741192-70601-8114/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741192-70601-8114/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741192-70601-8114/thumb_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741252-70701-6629/cms_sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741252-70701-6629/sam_and_snow.jpg +0 -0
- data/spec/dummy/public/uploads/tmp/1453741252-70701-6629/thumb_sam_and_snow.jpg +0 -0
- data/spec/interactions/clone_version_spec.rb +2 -0
- data/spec/models/content_element_spec.rb +0 -2
- data/spec/models/version_spec.rb +1 -1
- metadata +130 -9
- data/app/views/pulitzer/content_elements/index.html.erb +0 -39
- data/app/views/pulitzer/posts/show.html.erb +0 -6
data/lib/pulitzer/version.rb
CHANGED
File without changes
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20160122204201) do
|
15
15
|
|
16
16
|
create_table "pulitzer_content_element_types", force: :cascade do |t|
|
17
17
|
t.string "name"
|
@@ -80,12 +80,8 @@ ActiveRecord::Schema.define(version: 20151118031237) do
|
|
80
80
|
t.datetime "updated_at", null: false
|
81
81
|
end
|
82
82
|
|
83
|
-
|
84
|
-
|
85
|
-
t.integer "post_id"
|
86
|
-
t.datetime "created_at", null: false
|
87
|
-
t.datetime "updated_at", null: false
|
88
|
-
end
|
83
|
+
# Could not dump table "pulitzer_versions" because of following NoMethodError
|
84
|
+
# undefined method `[]' for nil:NilClass
|
89
85
|
|
90
86
|
create_table "search_locations", force: :cascade do |t|
|
91
87
|
t.string "name"
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|