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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0969e3a7700558cf69260522c20100d907a5cc31
4
- data.tar.gz: 53a1d124005d5f18283da21f74a165638f978e62
3
+ metadata.gz: 1ff950f99ef9fb628b1a03ff46b201f033b8f9a6
4
+ data.tar.gz: c7364a815fd22182ca59ff290695973f8a4f7e50
5
5
  SHA512:
6
- metadata.gz: e675c22d0910c75ae25e6b72e062da797d6c757d225371c4b8945fd1b0b89f00f49e90c35595f6611b469edd8fdd66907c8301ba5c81833eb0f7a927d6de41fe
7
- data.tar.gz: bdd4c48a58bb5eb08bd9b4975cd1a5b59b9c95c0523a930f96cca121bb66e033d3231f57ddb3d5e0f6363227292756920c6bb2a52586e20408d50f04739f1554
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.name == "Tag Focus"
25
- = f.input :image, label: "Background image"
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|
@@ -1,3 +1,3 @@
1
1
  module Virgo
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
@@ -1016,3 +1016,13 @@ Processing by Virgo::PostsController#rss as HTML
1016
1016
  Virgo::User Load (1.0ms) 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
+ Virgo::Post Load (2.3ms) SELECT "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 [["post_type", "post"], ["status", "published"], ["live", "t"]]
1024
+ Virgo::Site Load (0.7ms) SELECT "virgo_sites".* FROM "virgo_sites" ORDER BY "virgo_sites"."id" ASC LIMIT 1
1025
+ Virgo::Post Load (0.8ms) SELECT "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 [["post_type", "post"], ["status", "published"], ["live", "t"]]
1026
+ Virgo::User Load (0.9ms) 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.14
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