bootstrap-wysihtml5-rails 0.3.3.5 → 0.3.3.6

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: 66b5008e6993084a1586b95e0cb07b572ab78e09
4
- data.tar.gz: 709b3fc82709a64d54ae9ccc402cdff15358c090
3
+ metadata.gz: 4ffa2e47bf33d44cb21cd309bb3ccc61a32e9917
4
+ data.tar.gz: 0730f8888188473aeeba961687bbf64a773b44e3
5
5
  SHA512:
6
- metadata.gz: 2dbfd4d88a488d7c2029b26aa261ea96faf6a0703cc226399d6f7164b395cd06e1b3f86425dbe5058ea1a8ae07740f137cf131d6090d435416ff45c9a95ab181
7
- data.tar.gz: 8525d75f899bae9f7a94ab1e17f828f10575a7797ae1841758b7650bd0e0ea1cd8e015c2c9cfe081808381edc365de660b1640c2839c8903e43333f4e1d53660
6
+ metadata.gz: d4aafc8717209ac58080c527410a722240f16169e7d1cb2e28b3b9787a0d425128f335fa3d64c341c24e479ec8fe5863002eb30ec6aac1de458ffa6c80ea0888
7
+ data.tar.gz: e1382d039de23669c31bf6b0dbdf6b25575047a91fcf981d27fdfe17baa3f10c35b842ac95985477016aa0530a658a186bc03fe5d6da4e1d5607f96227e607af
data/README.md CHANGED
@@ -28,7 +28,7 @@ gem 'bootstrap-wysihtml5-rails'
28
28
  or you can install from latest build;
29
29
 
30
30
  ``` ruby
31
- gem 'bootstrap-wysihtml5-rails', :git => 'git://github.com/Nerian/bootstrap-wysihtml5-rails.git'
31
+ gem 'bootstrap-wysihtml5-rails', github: 'nerian/bootstrap-wysihtml5-rails'
32
32
  ```
33
33
  and run `bundle install`.
34
34
 
data/Rakefile CHANGED
@@ -5,6 +5,24 @@ require 'json'
5
5
  BASE_FOLDER = 'bower_components/bootstrap3-wysihtml5-bower/dist'
6
6
  WYSIHTMLX = 'bower_components/wysihtml5x/dist'
7
7
  HANDLEBARS = 'bower_components/handlebars'
8
+ COLORS = '"._wysihtml5-temp { display: none; }",
9
+ ".wysiwyg-color-black {color: black;}",
10
+ ".wysiwyg-color-silver {color: silver;}",
11
+ ".wysiwyg-color-gray {color: gray;}",
12
+ ".wysiwyg-color-white {color: white;}",
13
+ ".wysiwyg-color-maroon {color: maroon;}",
14
+ ".wysiwyg-color-red {color: red;}",
15
+ ".wysiwyg-color-purple {color: purple;}",
16
+ ".wysiwyg-color-fuchsia {color: fuchsia;}",
17
+ ".wysiwyg-color-green {color: green;}",
18
+ ".wysiwyg-color-lime {color: lime;}",
19
+ ".wysiwyg-color-olive {color: olive;}",
20
+ ".wysiwyg-color-yellow {color: yellow;}",
21
+ ".wysiwyg-color-navy {color: navy;}",
22
+ ".wysiwyg-color-blue {color: blue;}",
23
+ ".wysiwyg-color-teal {color: teal;}",
24
+ ".wysiwyg-color-aqua {color: aqua;}",
25
+ ".wysiwyg-color-orange {color: orange;}",'
8
26
 
9
27
  def copy_locales
10
28
  Dir["#{BASE_FOLDER}/locales/*"].each do |file|
@@ -50,6 +68,11 @@ task 'update' do
50
68
  file = file.gsub('<input value=\"http://\" class=\"bootstrap-wysihtml5-insert-image-url form-control\">', '<input value=\"http://\" class=\"bootstrap-wysihtml5-insert-image-url form-control\" data-wysihtml5-dialog-field=\"src\">')
51
69
  File.write(file_path, file)
52
70
 
71
+ file_path = 'vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5x-toolbar.js'
72
+ file = File.read(file_path)
73
+ file = file.gsub('"._wysihtml5-temp { display: none; }",', COLORS)
74
+ File.write(file_path, file)
75
+
53
76
  print_version
54
77
  end
55
78
 
@@ -65,4 +88,4 @@ task :publish => :build do
65
88
  system("git tag -a #{version} -m 'Release #{version}' ") unless tags.include?(version)
66
89
  system("gem push bootstrap-wysihtml5-rails-#{version}.gem")
67
90
  system("git push --follow-tags")
68
- end
91
+ end
@@ -1,5 +1,5 @@
1
1
  module BootstrapWysihtml5Rails
2
2
  module Rails
3
- VERSION = "0.3.3.5"
3
+ VERSION = "0.3.3.6"
4
4
  end
5
5
  end
@@ -12291,6 +12291,23 @@ wysihtml5.views.View = Base.extend(
12291
12291
  "body { height: 100%; padding: 1px 0 0 0; margin: -1px 0 0 0; }",
12292
12292
  "body > p:first-child { margin-top: 0; }",
12293
12293
  "._wysihtml5-temp { display: none; }",
12294
+ ".wysiwyg-color-black {color: black;}",
12295
+ ".wysiwyg-color-silver {color: silver;}",
12296
+ ".wysiwyg-color-gray {color: gray;}",
12297
+ ".wysiwyg-color-white {color: white;}",
12298
+ ".wysiwyg-color-maroon {color: maroon;}",
12299
+ ".wysiwyg-color-red {color: red;}",
12300
+ ".wysiwyg-color-purple {color: purple;}",
12301
+ ".wysiwyg-color-fuchsia {color: fuchsia;}",
12302
+ ".wysiwyg-color-green {color: green;}",
12303
+ ".wysiwyg-color-lime {color: lime;}",
12304
+ ".wysiwyg-color-olive {color: olive;}",
12305
+ ".wysiwyg-color-yellow {color: yellow;}",
12306
+ ".wysiwyg-color-navy {color: navy;}",
12307
+ ".wysiwyg-color-blue {color: blue;}",
12308
+ ".wysiwyg-color-teal {color: teal;}",
12309
+ ".wysiwyg-color-aqua {color: aqua;}",
12310
+ ".wysiwyg-color-orange {color: orange;}",
12294
12311
  wysihtml5.browser.isGecko ?
12295
12312
  "body.placeholder { color: graytext !important; }" :
12296
12313
  "body.placeholder { color: #a9a9a9 !important; }",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-wysihtml5-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3.5
4
+ version: 0.3.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Rodríguez-Baltanás Díaz