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 +4 -4
- data/app/uploaders/blacksand/base_uploader.rb +1 -1
- data/app/views/layouts/blacksand/_navbar.html.erb +3 -1
- data/config/locales/zh-CN.yml +1 -1
- data/lib/blacksand.rb +2 -0
- data/lib/blacksand/engine.rb +1 -1
- data/lib/blacksand/version.rb +1 -1
- data/lib/generators/blacksand/install_generator.rb +5 -4
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df2f22e7f167937074f2c7076a5d5094238b5ea2
|
4
|
+
data.tar.gz: b457ab9c47ee7641fba04b03f1d723feb14b9789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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">
|
data/config/locales/zh-CN.yml
CHANGED
data/lib/blacksand.rb
CHANGED
data/lib/blacksand/engine.rb
CHANGED
data/lib/blacksand/version.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
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.
|
523
|
+
rubygems_version: 2.6.11
|
538
524
|
signing_key:
|
539
525
|
specification_version: 4
|
540
526
|
summary: CMS base on Rails Engine.
|