spina 0.6.19 → 0.6.20

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.

Potentially problematic release.


This version of spina might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f6ca6fa19e39664f8f5b06f79f1d6c8f852f385
4
- data.tar.gz: 8ed035920af8bc46f98f831a6ea419c31c58c03a
3
+ metadata.gz: 1739d514819ce868a83fa8ba5c050c1ad5d78534
4
+ data.tar.gz: d28e47f54a10eb52f39c3b3f1f6b2444bdfc0346
5
5
  SHA512:
6
- metadata.gz: 6b085f36a8fe87354e51801c5e6288ebf9920c9373e4e83d510f004af575bf79fe2bf51602814ba00c99e2595432a879911c59c50bc576cac5704b9e361d6cd6
7
- data.tar.gz: e4efdf4653d416a77e946287c1695c5ec1463d0d34ed787f138bac3d4f874178903c0094e20c2eb8e6992d474b9621480988d6025ab9f43c63411b4363ee9900
6
+ metadata.gz: 132219698cc50adbb871fe12400831a3c580da75dbf142a23a2d2a9268e1e145e626839cd0cd38b30819f5bf5dfb0d2e01bced9f3fa5fd619c490e9cd7905a82
7
+ data.tar.gz: 3b77225751842bce8abf7073c680fb2bd0f1d81e6781dcde50eb5a2df6461ed55473878e2f49fbd7d273e024d82fafa6a789f99630166b4074d3ff65e2dd86c1
@@ -3,5 +3,6 @@
3
3
  %td.nowrap= number_to_human_size(attachment.file.size)
4
4
  %td.nowrap
5
5
  %small= l attachment.created_at, format: '%d %B %Y %H:%M'
6
+ %td= attachment.file.try(:url)
6
7
  %td.nowrap
7
8
  = link_to t('spina.delete'), "#", class: 'button button-link button-danger button-small', data: {confirm: t('spina.delete_confirmation', subject: attachment.name)}
@@ -9,9 +9,9 @@
9
9
  %th= Spina::Attachment.human_attribute_name(:name)
10
10
  %th= Spina::Attachment.human_attribute_name(:size)
11
11
  %th= Spina::Attachment.human_attribute_name(:created_at)
12
- %th
12
+ %th{colspan: 2}
13
13
  %tr
14
- %td{colspan: 4}
14
+ %td{colspan: 5}
15
15
  = form_for [spina, :admin, @attachment], html: {multipart: true, class: "new_document"} do |f|
16
16
  = f.file_field :file, data: {customfileinput: true}
17
17
 
@@ -0,0 +1,7 @@
1
+ module Spina
2
+ module Configurable
3
+ include ::ActiveSupport::Configurable
4
+
5
+ config_accessor :title, :page_parts, :view_templates, :layout_parts, :custom_pages, :plugins, :structures
6
+ end
7
+ end
data/lib/spina/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Spina
2
- VERSION = "0.6.19"
2
+ VERSION = "0.6.20"
3
3
  end
@@ -4,9 +4,7 @@ end
4
4
 
5
5
  module Spina
6
6
  module DefaultTheme
7
- include ActiveSupport::Configurable
8
-
9
- config_accessor :title, :page_parts, :view_templates, :layout_parts, :custom_pages, :plugins, :structures
7
+ include Spina::Configurable
10
8
 
11
9
  self.title = "Default theme"
12
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.19
4
+ version: 0.6.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bram Jetten
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-21 00:00:00.000000000 Z
12
+ date: 2015-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -527,6 +527,7 @@ files:
527
527
  - db/migrate/20150402144347_create_structures.rb
528
528
  - db/seeds.rb
529
529
  - lib/spina.rb
530
+ - lib/spina/configurable.rb
530
531
  - lib/spina/engine.rb
531
532
  - lib/spina/plugin.rb
532
533
  - lib/spina/theme.rb