bootswatch_rails 3.2.0.17 → 3.2.0.18
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 +34 -37
- 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: 29ce9aa5cfd01e9db3ef3264d12d11b28f1bbc59
|
4
|
+
data.tar.gz: a2427350366eea750162979dc73d39fde7ed3eaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff705ad93ad0f571b3d55e4d3ecb5adac954ea29c70345b13e3afdd3334e194f921b6d4fe2c420642da7583766f44a7be88d73bc540b801e150d8799f47073d5
|
7
|
+
data.tar.gz: 69053002107e89821b24d3696a02b7fb3b9bdf2879b8e16265a0efb2964aee7ca0285a8f6ae809dc453d173f9dee23be580dda468d90454107b8e11dd48969a4
|
data/generate.sh
CHANGED
@@ -10,47 +10,12 @@
|
|
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
|
-
|
49
13
|
git submodule foreach git pull
|
50
14
|
|
51
15
|
_assets="vendor/assets"
|
52
16
|
for _dir in fonts images javascripts stylesheets ; do
|
53
17
|
mkdir -p $_assets/$_dir
|
18
|
+
touch $_assets/$_dir/.gitkeep
|
54
19
|
done
|
55
20
|
|
56
21
|
_themes_css=""
|
@@ -83,7 +48,7 @@ done
|
|
83
48
|
_engine="lib/bootswatch_rails/engine.rb"
|
84
49
|
if [ -s $_engine ] ; then
|
85
50
|
rm -f /tmp/engine.tmp
|
86
|
-
sed -e "/assets.precompile/s/=.*/= %w(
|
51
|
+
sed -e "/assets.precompile/s/=.*/= %w(bootstrap.js $_themes_css)/" $_engine >/tmp/engine.tmp
|
87
52
|
if cmp -s /tmp/engine.tmp $_engine ; then
|
88
53
|
rm -f /tmp/engine.tmp
|
89
54
|
else
|
@@ -114,5 +79,37 @@ for _file in bootswatch/fonts/*.* ; do
|
|
114
79
|
fi
|
115
80
|
done
|
116
81
|
|
82
|
+
|
83
|
+
if [ -s cleditor/jquery.cleditor.js ] ; then
|
84
|
+
_src="cleditor/jquery.cleditor.js"
|
85
|
+
_dst="vendor/assets/javascripts/jquery.cleditor.js"
|
86
|
+
sed -e 's/\r//g' $_src >/tmp/cleditor.tmp
|
87
|
+
if cmp -s /tmp/cleditor.tmp $_dst ; then
|
88
|
+
rm -f /tmp/cleditor.tmp
|
89
|
+
else
|
90
|
+
echo "edit: $_dst"
|
91
|
+
mv /tmp/cleditor.tmp $_dst
|
92
|
+
fi
|
93
|
+
|
94
|
+
_src="cleditor/jquery.cleditor.css"
|
95
|
+
_dst="vendor/assets/stylesheets/jquery.cleditor.css"
|
96
|
+
sed -e 's/\r//g' -e 's%images/%/assets/%g' $_src >/tmp/cleditor.tmp
|
97
|
+
if cmp -s /tmp/cleditor.tmp $_dst ; then
|
98
|
+
rm -f /tmp/cleditor.tmp
|
99
|
+
else
|
100
|
+
echo "edit: $_dst"
|
101
|
+
mv /tmp/cleditor.tmp $_dst
|
102
|
+
fi
|
103
|
+
|
104
|
+
for _file in toolbar.gif buttons.gif ; do
|
105
|
+
_src="cleditor/images/$_file"
|
106
|
+
_dst="vendor/assets/images/$_file"
|
107
|
+
if ! cmp -s $_src $_dst ; then
|
108
|
+
echo "copy: $_src"
|
109
|
+
cp $_src $_dst
|
110
|
+
fi
|
111
|
+
done
|
112
|
+
fi
|
113
|
+
|
117
114
|
exit 0
|
118
115
|
|
@@ -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(
|
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)
|
5
5
|
app.config.assets.paths << File.expand_path('../../../vendor/assets/fonts', __FILE__)
|
6
6
|
app.config.assets.paths << File.expand_path('../../../vendor/assets/images', __FILE__)
|
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.18"
|
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
|