lalala 4.1.0.dev.316 → 4.1.0.dev.318

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 070871a64114d813c0f6a5372323bd28ef167c33
4
- data.tar.gz: 6193eed2022e3ad22837b864a239dcfb3079ab0f
3
+ metadata.gz: 90d746cae3543059befc304bc0b773caf69df033
4
+ data.tar.gz: d9040701cc8bca4b4c48bdac5e9783b94c3749f4
5
5
  SHA512:
6
- metadata.gz: b8bdcf3a923a4814d87c6f13b75cbf81fbb830f7eaf6bbfcef66e7878950768f40a79334dd0cf673c28eaf8ea781c61e51ea818cfe3dea727c274621d105a7e8
7
- data.tar.gz: 1da4864290987e9dd87907a1597a296bf64206093a2768b76b5fcc5796541bc5b514faf03b389136e25d83ee77968220446f691def437f95ce38b7824edc7aea
6
+ metadata.gz: 3f142729c02d2e228a0bcf15507f9bfe4b01545881c9b672030b469af6e8ccc2e5fc126c8dcb059aab4178d792f0d2fb351d9679cbcb0260fed1ee6ecef84f56
7
+ data.tar.gz: 12eea2f56f1eb2cf465cd596c1d390a34e7b8075c2cfc39938d39932e929df2f29fe5ebef414a5504e60fdb3c63984259b04d175fecdbb72577242afefc521f8
@@ -1,6 +1,6 @@
1
1
  module Lalala
2
2
  VERSION = "4.1.0"
3
- BUILD = "316"
3
+ BUILD = "318"
4
4
 
5
5
  if BUILD != ("{{BUILD_NUMBER" + "}}") # prevent sed replacement (see script/ci)
6
6
  BUILD_VERSION = "#{VERSION}.dev.#{BUILD}"
@@ -1,6 +1,5 @@
1
1
  class Article < ActiveRecord::Base
2
- attr_accessible :body, :title, :category, :tag_ids,
3
- :images, :downloads, :poster_image
2
+ attr_accessible :body, :title, :category, :tag_ids
4
3
 
5
4
  # Translations
6
5
  translates :title, :body
@@ -9,9 +8,9 @@ class Article < ActiveRecord::Base
9
8
  markdown :body
10
9
 
11
10
  # Assets
12
- has_one_asset :poster_image, :images
13
- has_many_assets :images, :images
14
- has_many_assets :downloads, :downloads
11
+ has_one_asset :poster_image, "images"
12
+ has_many_assets :images, "images"
13
+ has_many_assets :downloads, "downloads"
15
14
 
16
15
  # Validations
17
16
  validates :title, presence: true
@@ -5,7 +5,7 @@ class ApplicationPage < Lalala::Page
5
5
  # translates :body
6
6
 
7
7
  # All page associations should be placed here:
8
- has_many_assets :images, :images
8
+ has_many_assets :images, "images"
9
9
 
10
10
  markdown :body, tables: true, link_schemes: {
11
11
  "youtube" => Lalala::Markdown::Handlers::YouTube.new(width: 520, height: 292),
@@ -0,0 +1,6 @@
1
+ <% Article.all.each do |a| %>
2
+ <article>
3
+ <h1><%= a.title %></h1>
4
+ <%= a.body_html %>
5
+ </article>
6
+ <% end %>
@@ -1,4 +1,6 @@
1
1
  Dummy::Application.routes.draw do
2
+ get '/articles', to: 'pages#articles'
3
+
2
4
  pages :media, to: 'pages#media'
3
5
  pages :application, to: 'pages#show'
4
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lalala
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0.dev.316
4
+ version: 4.1.0.dev.318
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Menke
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2014-03-06 00:00:00.000000000 Z
16
+ date: 2014-03-07 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: activeadmin
@@ -1504,6 +1504,7 @@ files:
1504
1504
  - test/dummy/app/pages/media_page.rb
1505
1505
  - test/dummy/app/views/admin/_stats.html.erb
1506
1506
  - test/dummy/app/views/layouts/application.html.erb
1507
+ - test/dummy/app/views/pages/articles.html.erb
1507
1508
  - test/dummy/app/views/pages/media.html.erb
1508
1509
  - test/dummy/config.ru
1509
1510
  - test/dummy/config/application.rb
@@ -1607,6 +1608,7 @@ test_files:
1607
1608
  - test/dummy/app/pages/media_page.rb
1608
1609
  - test/dummy/app/views/admin/_stats.html.erb
1609
1610
  - test/dummy/app/views/layouts/application.html.erb
1611
+ - test/dummy/app/views/pages/articles.html.erb
1610
1612
  - test/dummy/app/views/pages/media.html.erb
1611
1613
  - test/dummy/config.ru
1612
1614
  - test/dummy/config/application.rb