bootswatch_rails 3.2.0.15 → 3.2.0.16
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/generate.sh +37 -32
- data/lib/bootswatch_rails/engine.rb +1 -1
- data/lib/bootswatch_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8754883204486de32732f5b61e93d273f99a25ca
|
4
|
+
data.tar.gz: f5ad100626e274799716a9587841a7afa22850a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64d0b28dbf78e30db15491dcf466ef4395c5401678012d22ce826ecc76a7197c7bbc33ce224792c38a8fe8a30b78048c10e1ff1fe3887f7f6ba3c7b39547dcac
|
7
|
+
data.tar.gz: 7c9d06ac6182e81d1a45194aad13da60deb310befffe1a8a7b28df9a3dea02c0984e811a2e29baf0a52b218fbacef7558b0dcf86783fbe77aff602517ddb2080
|
data/generate.sh
CHANGED
@@ -10,6 +10,42 @@
|
|
10
10
|
# Exit on error
|
11
11
|
set -e
|
12
12
|
|
13
|
+
if [ -s cleditor/jquery.cleditor.js ] ; then
|
14
|
+
_src="cleditor/jquery.cleditor.js"
|
15
|
+
_dst="vendor/assets/javascripts/jquery.cleditor.js"
|
16
|
+
sed -e 's/\r//g' $_src >/tmp/cleditor.tmp
|
17
|
+
if cmp -s /tmp/cleditor.tmp $_dst ; then
|
18
|
+
rm -f /tmp/cleditor.tmp
|
19
|
+
else
|
20
|
+
echo "edit: $_dst"
|
21
|
+
mv /tmp/cleditor.tmp $_dst
|
22
|
+
fi
|
23
|
+
|
24
|
+
_src="cleditor/jquery.cleditor.css"
|
25
|
+
_dst="vendor/assets/stylesheets/jquery.cleditor.css"
|
26
|
+
sed -e 's/\r//g' -e 's%images/%/assets/%g' $_src >/tmp/cleditor.tmp
|
27
|
+
if cmp -s /tmp/cleditor.tmp $_dst ; then
|
28
|
+
rm -f /tmp/cleditor.tmp
|
29
|
+
else
|
30
|
+
echo "edit: $_dst"
|
31
|
+
mv /tmp/cleditor.tmp $_dst
|
32
|
+
fi
|
33
|
+
|
34
|
+
for _file in toolbar.gif buttons.gif ; do
|
35
|
+
_src="cleditor/images/$_file"
|
36
|
+
_dst="vendor/assets/images/$_file"
|
37
|
+
if ! cmp -s $_src $_dst ; then
|
38
|
+
echo "copy: $_src"
|
39
|
+
cp $_src $_dst
|
40
|
+
fi
|
41
|
+
done
|
42
|
+
|
43
|
+
_precompile="toolbar.gif buttons.gif bootstrap.js"
|
44
|
+
else
|
45
|
+
_precompile="bootstrap.js"
|
46
|
+
fi
|
47
|
+
|
48
|
+
|
13
49
|
git submodule foreach git pull
|
14
50
|
|
15
51
|
_assets="vendor/assets"
|
@@ -47,7 +83,7 @@ done
|
|
47
83
|
_engine="lib/bootswatch_rails/engine.rb"
|
48
84
|
if [ -s $_engine ] ; then
|
49
85
|
rm -f /tmp/engine.tmp
|
50
|
-
sed -e "/assets.precompile/s/=.*/= %w(
|
86
|
+
sed -e "/assets.precompile/s/=.*/= %w($_precompile $_themes_css)/" $_engine >/tmp/engine.tmp
|
51
87
|
if cmp -s /tmp/engine.tmp $_engine ; then
|
52
88
|
rm -f /tmp/engine.tmp
|
53
89
|
else
|
@@ -78,36 +114,5 @@ for _file in bootswatch/fonts/*.* ; do
|
|
78
114
|
fi
|
79
115
|
done
|
80
116
|
|
81
|
-
if [ -s cleditor/jquery.cleditor.js ] ; then
|
82
|
-
_src="cleditor/jquery.cleditor.js"
|
83
|
-
_dst="vendor/assets/javascripts/jquery.cleditor.js"
|
84
|
-
sed -e 's/\r//g' $_src >/tmp/cleditor.tmp
|
85
|
-
if cmp -s /tmp/cleditor.tmp $_dst ; then
|
86
|
-
rm -f /tmp/cleditor.tmp
|
87
|
-
else
|
88
|
-
echo "edit: $_dst"
|
89
|
-
mv /tmp/cleditor.tmp $_dst
|
90
|
-
fi
|
91
|
-
|
92
|
-
_src="cleditor/jquery.cleditor.css"
|
93
|
-
_dst="vendor/assets/stylesheets/jquery.cleditor.css"
|
94
|
-
sed -e 's/\r//g' -e 's%images/%/assets/%g' $_src >/tmp/cleditor.tmp
|
95
|
-
if cmp -s /tmp/cleditor.tmp $_dst ; then
|
96
|
-
rm -f /tmp/cleditor.tmp
|
97
|
-
else
|
98
|
-
echo "edit: $_dst"
|
99
|
-
mv /tmp/cleditor.tmp $_dst
|
100
|
-
fi
|
101
|
-
|
102
|
-
for _file in toolbar.gif buttons.gif ; do
|
103
|
-
_src="cleditor/images/$_file"
|
104
|
-
_dst="vendor/assets/images/$_file"
|
105
|
-
if ! cmp -s $_src $_dst ; then
|
106
|
-
echo "copy: $_src"
|
107
|
-
cp $_src $_dst
|
108
|
-
fi
|
109
|
-
done
|
110
|
-
fi
|
111
|
-
|
112
117
|
exit 0
|
113
118
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module BootswatchRails
|
2
2
|
class Engine < Rails::Engine
|
3
3
|
initializer "BootswatchRails themes" do |app|
|
4
|
-
app.config.assets.precompile += %w(bootstrap.js amelia.css cerulean.css cosmo.css custom.css cyborg.css darkly.css flatly.css journal.css lumen.css paper.css readable.css sandstone.css simplex.css slate.css spacelab.css superhero.css united.css yeti.css)
|
4
|
+
app.config.assets.precompile += %w(toolbar.gif buttons.gif bootstrap.js amelia.css cerulean.css cosmo.css custom.css cyborg.css darkly.css flatly.css journal.css lumen.css paper.css readable.css sandstone.css simplex.css slate.css spacelab.css superhero.css united.css yeti.css)
|
5
5
|
app.config.assets.paths << File.expand_path('../../../vendor/assets/fonts', __FILE__)
|
6
6
|
end
|
7
7
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module BootswatchRails
|
2
2
|
BOOTSTRAP = "3.2.0"
|
3
|
-
VERSION = "3.2.0.
|
3
|
+
VERSION = "3.2.0.16"
|
4
4
|
THEMES = [:amelia, :cerulean, :cosmo, :custom, :cyborg, :darkly, :flatly, :journal, :lumen, :paper, :readable, :sandstone, :simplex, :slate, :spacelab, :superhero, :united, :yeti]
|
5
5
|
DEFAULT = 1
|
6
6
|
end
|