blacksand 2.2.2.1 → 2.3.0

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: 85cea919a0385fa796cd17228e35f52c161c26d3
4
- data.tar.gz: b1ccce8a35f8f38e7bec370076514114039c0bf7
3
+ metadata.gz: df2f22e7f167937074f2c7076a5d5094238b5ea2
4
+ data.tar.gz: b457ab9c47ee7641fba04b03f1d723feb14b9789
5
5
  SHA512:
6
- metadata.gz: 4d5b6c433265729b8c4cfb79ca62bf7ae82ea49c0ae5f9dc74fd31a50132c8e08d6cd5c57a4d2df38da8070fb9e63b4e434ce1c3fb876df5fb76b051b4e87048
7
- data.tar.gz: 9ef5b174ade89dae9315047d766b8df215e4eb91701922f1f99be49af6dcf98cbadcc516310de33a04ea8e92b292bc5d1725e70258f0ca6970e839022e6610c6
6
+ metadata.gz: cf617391fd30df099a5aede13eb77732a678803d66169bfa18db468aa6cd92ff8ad386fa700309a43a146eabb491eb7916451308a23f4f43575938a73d710efa
7
+ data.tar.gz: e4e27591fd4391e8dcedcb1a94299f4a88b2bf3b9fcb2a708f40ba1d7e4bac230103ca6300509aab8406639cfdea37c4728d3b17f0ec290fc52191eb077afdf8
@@ -1,5 +1,6 @@
1
1
  module Blacksand
2
2
  class BaseUploader < ::CarrierWave::Uploader::Base
3
+ # TODO: may be optional
3
4
  include ::CarrierWave::MiniMagick
4
5
 
5
6
  def self.storage_from_config
@@ -8,7 +9,6 @@ module Blacksand
8
9
 
9
10
  storage storage_from_config
10
11
 
11
- # TODO: config store_dir prefix
12
12
  def store_dir
13
13
  "#{Blacksand.carrierwave_store_dir_prefix}/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
14
14
  end
@@ -21,7 +21,9 @@
21
21
  <% if false && can?(:create, User) %>
22
22
  <li><a href="<%= users_path %>">用户</a></li>
23
23
  <% end %>
24
- <li><a href="<%= main_app.root_path %>">回首页<span class="sr-only">(current)</span></a></li>
24
+ <% if main_app.methods.include?(:root_path) %>
25
+ <li><a href="<%= main_app.root_path %>">回首页<span class="sr-only">(current)</span></a></li>
26
+ <% end %>
25
27
  </ul>
26
28
 
27
29
  <ul class="nav navbar-nav navbar-right">
@@ -30,7 +30,7 @@ zh-CN:
30
30
  prototype: 原型
31
31
  blacksand/page:
32
32
  title: 标题
33
- en_name: 英文名
33
+ en_name: 标识
34
34
  content: 内容
35
35
  parent: 父页面
36
36
  template: 模板
@@ -14,6 +14,8 @@ module Blacksand
14
14
 
15
15
  mattr_accessor :site_id
16
16
  mattr_accessor :site_name
17
+
18
+ # DEPRECATED: to be deleted
17
19
  mattr_accessor :root_path
18
20
 
19
21
  mattr_accessor :carrierwave_storage
@@ -1,7 +1,7 @@
1
1
  require 'rails'
2
2
  require 'carrierwave'
3
- require 'carrierwave-qiniu'
4
3
  require 'rails_kindeditor'
4
+ # TODO: may be optional
5
5
  require 'mini_magick'
6
6
  require 'kaminari'
7
7
  require 'bootstrap-kaminari-views'
@@ -1,3 +1,3 @@
1
1
  module Blacksand
2
- VERSION = "2.2.2.1"
2
+ VERSION = "2.3.0"
3
3
  end
@@ -8,7 +8,11 @@ module Blacksand
8
8
  create_file("config/initializers/blacksand.rb", <<-RUBY)
9
9
  Blacksand.site_id = 'site id'
10
10
  Blacksand.site_name = 'site name'
11
- Blacksand.root_path = 'root path'
11
+
12
+ # Config carrierwave
13
+ #
14
+ # Blacksand.carrierwave_storage = :file # or :qiniu
15
+ # Blacksand.carrierwave_store_dir_prefix = "uploads" # NOTICE: Kindeditor need config their own configuration
12
16
 
13
17
  # Setup authentication to be run as a before filter
14
18
  # @example Devise admin
@@ -16,9 +20,6 @@ Blacksand.root_path = 'root path'
16
20
  # authenticate_admin!
17
21
  # end
18
22
 
19
- # Blacksand.carrierwave_storage = :file
20
- # Blacksand.carrierwave_store_dir_prefix = 'uploads' # NOTICE: Kindeditor need config by their api
21
-
22
23
  # Page caching
23
24
  # Blacksand.page_caching = false
24
25
  RUBY
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacksand
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bastengao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-23 00:00:00.000000000 Z
11
+ date: 2017-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -58,20 +58,6 @@ dependencies:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
- - !ruby/object:Gem::Dependency
62
- name: carrierwave-qiniu
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: 0.2.6
68
- type: :runtime
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: 0.2.6
75
61
  - !ruby/object:Gem::Dependency
76
62
  name: kaminari
77
63
  requirement: !ruby/object:Gem::Requirement
@@ -534,7 +520,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
534
520
  version: '0'
535
521
  requirements: []
536
522
  rubyforge_project:
537
- rubygems_version: 2.5.2
523
+ rubygems_version: 2.6.11
538
524
  signing_key:
539
525
  specification_version: 4
540
526
  summary: CMS base on Rails Engine.