ksk 0.4.2 → 0.4.3

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: e4280e250943c172e3184080c915dc46e6ad5aa5
4
- data.tar.gz: 8659f490105dec1cc16d4709942e6b29b850d158
3
+ metadata.gz: 47d5c6de9bd37e3a3159ae6489b2a878dea863be
4
+ data.tar.gz: 2190816e04c6f442b2d8cd0c9def23b2994221d3
5
5
  SHA512:
6
- metadata.gz: bb794423710a63ebfbc62192e8f91890634abebb84392e00daba98ef8fa7991a9387a7d14eb1669331e4018c6c1766f94a819d7425e9212b3a73ccff4225be99
7
- data.tar.gz: 4939e39ee0fe7335ea6681431a722652034d09f8eb9d9cffa050efddc725188e0df90ddd4f787c54677acef633fbaaa5d5aef0273f69415c224a6cbb155df5b5
6
+ metadata.gz: aa0127043be295103cab559e03082970bc5997fb5036cb0e654bd06af68347ec5d714e9c661496948e146f72c6e291bf177736f908937484b3147cca0ceb1157
7
+ data.tar.gz: b78de6efb71e86b7b9bd66bf284878baa80c1e689678b051b6bfe274dd52a14676c56eeee4c48438156085706d36e5468860e1a012915893984ffda3038b42ae
@@ -29,7 +29,7 @@ GEM
29
29
  tzinfo (~> 1.1)
30
30
  addressable (2.3.6)
31
31
  arel (5.0.1.20140414130214)
32
- bhf (0.9.4)
32
+ bhf (0.9.7)
33
33
  haml-rails (~> 0.4)
34
34
  kaminari (~> 0.16)
35
35
  rails (~> 4)
@@ -144,7 +144,7 @@ GEM
144
144
  shoulda-context (1.2.1)
145
145
  shoulda-matchers (2.6.1)
146
146
  activesupport (>= 3.0.0)
147
- simplecov (0.8.2)
147
+ simplecov (0.9.0)
148
148
  docile (~> 1.1.0)
149
149
  multi_json
150
150
  simplecov-html (~> 0.8.0)
data/README.md CHANGED
@@ -6,7 +6,7 @@ Blog/Website management plugin for [bhf](http://antpaw.github.io/bhf/).
6
6
  ## Usage
7
7
 
8
8
  * The abstract [settings `.yml`](https://github.com/antpaw/ksk/tree/master/config/bhf/ksk.yml)
9
- ([learn how to use it in your own settings `.yml`](x))
9
+ ([learn how to use it in your own settings `.yml`](http://antpaw.github.io/bhf/#abstract_platform_settings))
10
10
  * Include this [concerns](https://github.com/antpaw/ksk/tree/master/app/models/concerns/ksk) to your models.
11
11
  * Use this [partials](https://github.com/antpaw/ksk/tree/master/app/views/bhf), for example to crop paperclip images.
12
12
 
data/Rakefile CHANGED
@@ -16,8 +16,8 @@ Jeweler::Tasks.new do |gem|
16
16
  gem.name = 'ksk'
17
17
  gem.homepage = 'http://github.com/antpaw/ksk'
18
18
  gem.licenses = 'MIT'
19
- gem.summary = 'CMS for bhf'
20
- gem.description = 'Fast and friendly'
19
+ gem.summary = 'Blog/Website management plugin for bhf'
20
+ gem.description = 'Blog/Website management plugin for bhf. Includes abstract settings .yml, model concerns and bhf view partials.'
21
21
  gem.email = 'anton.pawlik@gmail.com'
22
22
  gem.authors = ['Anton Pawlik']
23
23
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
@@ -4,7 +4,7 @@ module Ksk::Asset
4
4
  included do
5
5
  belongs_to :fileable, polymorphic: true
6
6
 
7
- default_scope -> { order('position ASC, created_at DESC') }
7
+ default_scope -> { order('position ASC, created_at ASC') }
8
8
 
9
9
  has_one :preview
10
10
  before_create :set_last_position
@@ -1,12 +1,12 @@
1
1
  :ruby
2
- def p_recursive_navi(navis, current_level = 0, max_level = 99, ul = 'ul', first_wrap = '')
2
+ def p_recursive_navi(navis, platform, current_level = 0, max_level = 99, ul = 'ul', first_wrap = '')
3
3
  a = "\n <#{ul}#{first_wrap}>\n"
4
4
  navis.each do |navi|
5
5
  x = link_to 'edit', edit_entry_path('navigation', navi), class: 'edit icon'
6
- y = link_to 'delete', entry_path('navigation', navi), method: :delete, confirm: t('bhf.helpers.promts.confirm'), class: 'delete icon'
6
+ y = link_to 'delete', entry_path('navigation', navi), method: :delete, confirm: t('bhf.helpers.promts.confirm', platform_title: platform.title_singular), class: 'delete icon'
7
7
  a += " <li id='navigation_#{navi.id}'><div><span class='title'>#{navi.title}</span> <span class='links'>#{x} #{y}</span></div>"
8
8
  if current_level <= max_level and navi.children.any?
9
- a += p_recursive_navi(navi.children, current_level+1, max_level, ul)
9
+ a += p_recursive_navi(navi.children, platform, current_level+1, max_level, ul)
10
10
  end
11
11
  a += "</li> "
12
12
  end
@@ -25,8 +25,8 @@
25
25
 
26
26
  .content_box
27
27
  .navi.js_tree_holder{data: {:'update-url' => ksk.sort_navigations_path}}
28
- = p_recursive_navi(Navigation.top_level, 0, 99, 'ol', ' class="multi_grid js_tree_list"').html_safe
28
+ = p_recursive_navi(Navigation.top_level, platform, 0, 99, 'ol', ' class="multi_grid js_tree_list"').html_safe
29
29
 
30
30
  .template_data.hide{data: {:'update-path' => ksk.navigations_path, :'prompt-question' => I18n.t('ksk.navigation_sort.prompt_question')}}
31
31
  = link_to 'edit', edit_entry_path('navigation', 'NAVIID'), class: 'edit icon'
32
- = link_to 'delete', entry_path('navigation', 'NAVIID'), method: :delete, data: {confirm: t('bhf.helpers.promts.confirm')}, class: 'delete icon'
32
+ = link_to 'delete', entry_path('navigation', 'NAVIID'), method: :delete, data: {confirm: t('bhf.helpers.promts.confirm', platform_title: platform.title_singular)}, class: 'delete icon'
@@ -2,17 +2,17 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: ksk 0.4.2 ruby lib
5
+ # stub: ksk 0.4.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "ksk"
9
- s.version = "0.4.2"
9
+ s.version = "0.4.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Anton Pawlik"]
14
- s.date = "2014-07-14"
15
- s.description = "Fast and friendly"
14
+ s.date = "2014-07-17"
15
+ s.description = "Blog/Website management plugin for bhf. Includes abstract settings .yml, model concerns and bhf view partials."
16
16
  s.email = "anton.pawlik@gmail.com"
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
@@ -59,7 +59,7 @@ Gem::Specification.new do |s|
59
59
  s.homepage = "http://github.com/antpaw/ksk"
60
60
  s.licenses = ["MIT"]
61
61
  s.rubygems_version = "2.2.2"
62
- s.summary = "CMS for bhf"
62
+ s.summary = "Blog/Website management plugin for bhf"
63
63
 
64
64
  if s.respond_to? :specification_version then
65
65
  s.specification_version = 4
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ksk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Pawlik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-14 00:00:00.000000000 Z
11
+ date: 2014-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bhf
@@ -122,7 +122,8 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0.8'
125
- description: Fast and friendly
125
+ description: Blog/Website management plugin for bhf. Includes abstract settings .yml,
126
+ model concerns and bhf view partials.
126
127
  email: anton.pawlik@gmail.com
127
128
  executables: []
128
129
  extensions: []
@@ -189,5 +190,5 @@ rubyforge_project:
189
190
  rubygems_version: 2.2.2
190
191
  signing_key:
191
192
  specification_version: 4
192
- summary: CMS for bhf
193
+ summary: Blog/Website management plugin for bhf
193
194
  test_files: []