bootswatch_rails 3.2.0.17 → 3.2.0.18

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: a08a7b70454fbdce69f29304b5a4c35c6fd0f903
4
- data.tar.gz: b357d2874119849512a8b545f4ef54fce0aad2d6
3
+ metadata.gz: 29ce9aa5cfd01e9db3ef3264d12d11b28f1bbc59
4
+ data.tar.gz: a2427350366eea750162979dc73d39fde7ed3eaa
5
5
  SHA512:
6
- metadata.gz: 497999cd1254ddb0699386a914e9759917415738aee11912675729dfd2e1bf1d5c9fec93270e66ac0548943d9f950a194c784731623d6a6a56c86003eafa5f82
7
- data.tar.gz: efc4516538abc92511b2d58a74b24f117ee7f65451f3e56d4b956cfaaf773c76ed29bf73f792b96d19996759f24ceec481e29b54d4adebba5e2303808552e3ac
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($_precompile $_themes_css)/" $_engine >/tmp/engine.tmp
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(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)
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.17"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootswatch_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0.17
4
+ version: 3.2.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volker Wiegand