virgo 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/virgo/admin/page_modules/edit_subject.haml +4 -4
- data/app/views/virgo/common/_fb_api.html.erb +0 -8
- data/db/migrate/create_virgo_schema.rb +1 -0
- data/lib/virgo/version.rb +1 -1
- data/spec/dummy/log/development.log +10 -0
- metadata +1 -3
- data/spec/dummy/tmp/pids/server.pid +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ff950f99ef9fb628b1a03ff46b201f033b8f9a6
|
4
|
+
data.tar.gz: c7364a815fd22182ca59ff290695973f8a4f7e50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1731f668348175749b3e0401f5d57fc49c7bb7a049924325b0125f68fda1879cc873cb446545345d02e249267371792ae9ed49198bf42a4fc5b80fe3a9d02d8d
|
7
|
+
data.tar.gz: d7559fcb825bb4a2927f10f654f01c0b29f1a8e37e7ecc8114efa6edf99abc4a56bd32d8358cdd776705fc26c97266206445c0e4dd21ad4f643e5bbcd3a6e304
|
@@ -1,11 +1,11 @@
|
|
1
1
|
- content_for :site_settings_content do
|
2
2
|
= simple_form_for @page_module, url: admin_edit_page_module_subject_path(@page_module) do |f|
|
3
3
|
- if @page_module.name == "Tag Focus"
|
4
|
-
= hidden_field_tag 'page_module[subject_type]', 'Tag'
|
4
|
+
= hidden_field_tag 'page_module[subject_type]', 'Virgo::Tag'
|
5
5
|
= f.input :subject_id, as: :select, collection: Virgo::Tag.order(name: :asc)
|
6
6
|
- else
|
7
7
|
= f.input :subject_headline, as: :string, input_html: {id: 'page-module-subject-select', data: {autocomplete_uri: options_admin_posts_path}}
|
8
|
-
= hidden_field_tag 'page_module[subject_type]', 'Post'
|
8
|
+
= hidden_field_tag 'page_module[subject_type]', 'Virgo::Post'
|
9
9
|
= f.hidden_field :subject_id
|
10
10
|
|
11
11
|
- if @page_module.can_set_posts?
|
@@ -21,8 +21,8 @@
|
|
21
21
|
|
22
22
|
.clear
|
23
23
|
|
24
|
-
- if @page_module.
|
25
|
-
= f.input :image, label: "
|
24
|
+
- if @page_module.has_image
|
25
|
+
= f.input :image, label: "Image"
|
26
26
|
- if @page_module.image.present?
|
27
27
|
.form-group
|
28
28
|
%label
|
@@ -16,15 +16,7 @@
|
|
16
16
|
fjs.parentNode.insertBefore(js, fjs);
|
17
17
|
}(document, 'script', 'facebook-jssdk'));
|
18
18
|
</script>
|
19
|
-
|
20
19
|
<div id="fb-root"></div>
|
21
|
-
<script>(function(d, s, id) {
|
22
|
-
var js, fjs = d.getElementsByTagName(s)[0];
|
23
|
-
if (d.getElementById(id)) return;
|
24
|
-
js = d.createElement(s); js.id = id;
|
25
|
-
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3&appId=<%= Rails.application.secrets.facebook_app_id %>";
|
26
|
-
fjs.parentNode.insertBefore(js, fjs);
|
27
|
-
}(document, 'script', 'facebook-jssdk'));</script>
|
28
20
|
<% else %>
|
29
21
|
<script> window.fb_api_disabled = true </script>
|
30
22
|
<% end %>
|
@@ -75,6 +75,7 @@ class CreateVirgoSchema < ActiveRecord::Migration
|
|
75
75
|
t.string "image"
|
76
76
|
t.boolean "can_set_posts", default: false
|
77
77
|
t.boolean "hidden_from_admins", default: false
|
78
|
+
t.boolean "has_image", default: false
|
78
79
|
end
|
79
80
|
|
80
81
|
create_table "virgo_post_categories" do |t|
|
data/lib/virgo/version.rb
CHANGED
@@ -1016,3 +1016,13 @@ Processing by Virgo::PostsController#rss as HTML
|
|
1016
1016
|
[1m[35mVirgo::User Load (1.0ms)[0m SELECT "virgo_users".* FROM "virgo_users" WHERE "virgo_users"."id" = $1 LIMIT 1 [["id", 1]]
|
1017
1017
|
Rendered virgo/posts/rss.xml.builder (5052.4ms)
|
1018
1018
|
Completed 200 OK in 5083ms (Views: 5048.4ms | ActiveRecord: 12.2ms)
|
1019
|
+
|
1020
|
+
|
1021
|
+
Started GET "/feed.xml" for 127.0.0.1 at 2015-08-18 11:47:32 -0400
|
1022
|
+
Processing by Virgo::PostsController#rss as HTML
|
1023
|
+
[1m[36mVirgo::Post Load (2.3ms)[0m [1mSELECT "virgo_posts".* FROM "virgo_posts" WHERE "virgo_posts"."post_type" = $1 AND "virgo_posts"."status" = $2 AND "virgo_posts"."live" = $3 AND ("virgo_posts"."publish_at" IS NOT NULL) ORDER BY "virgo_posts"."publish_at" DESC LIMIT 1[0m [["post_type", "post"], ["status", "published"], ["live", "t"]]
|
1024
|
+
[1m[35mVirgo::Site Load (0.7ms)[0m SELECT "virgo_sites".* FROM "virgo_sites" ORDER BY "virgo_sites"."id" ASC LIMIT 1
|
1025
|
+
[1m[36mVirgo::Post Load (0.8ms)[0m [1mSELECT "virgo_posts".* FROM "virgo_posts" WHERE "virgo_posts"."post_type" = $1 AND "virgo_posts"."status" = $2 AND "virgo_posts"."live" = $3 AND ("virgo_posts"."publish_at" IS NOT NULL) ORDER BY "virgo_posts"."publish_at" DESC LIMIT 5[0m [["post_type", "post"], ["status", "published"], ["live", "t"]]
|
1026
|
+
[1m[35mVirgo::User Load (0.9ms)[0m SELECT "virgo_users".* FROM "virgo_users" WHERE "virgo_users"."id" = $1 LIMIT 1 [["id", 1]]
|
1027
|
+
Rendered virgo/posts/rss.xml.builder (1051.7ms)
|
1028
|
+
Completed 200 OK in 1079ms (Views: 1045.7ms | ActiveRecord: 13.2ms)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: virgo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Zaillian
|
@@ -1821,7 +1821,6 @@ files:
|
|
1821
1821
|
- spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zeRsCQdz20xxICNU7qZ1jkFRtHxoZuaKtT2ofDfX3YA.cache
|
1822
1822
|
- spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zgyjoZRbk7YYDy-MB2r26Wkkkdx3DlBq_Lh7mqrw6I4.cache
|
1823
1823
|
- spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zzOiMlAx_HKchZe0g2rRCvcexJqE3b8KLHA-Rz6yA50.cache
|
1824
|
-
- spec/dummy/tmp/pids/server.pid
|
1825
1824
|
- spec/factories.rb
|
1826
1825
|
- spec/features/admin/post_management_spec.rb
|
1827
1826
|
- spec/features/admin/slideshow_management_spec.rb
|
@@ -2734,7 +2733,6 @@ test_files:
|
|
2734
2733
|
- spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zzOiMlAx_HKchZe0g2rRCvcexJqE3b8KLHA-Rz6yA50.cache
|
2735
2734
|
- spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ZzVs2-WitJfYhBJWfV0czoaeeSfvX01W6sFPFHpnNlQ.cache
|
2736
2735
|
- spec/dummy/tmp/cache/B6E/500/r-virgo%2Fpost-your-first-post
|
2737
|
-
- spec/dummy/tmp/pids/server.pid
|
2738
2736
|
- spec/factories.rb
|
2739
2737
|
- spec/features/admin/post_management_spec.rb
|
2740
2738
|
- spec/features/admin/slideshow_management_spec.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
78596
|