bootstrap-wysihtml5-rails 0.3.1.6 → 0.3.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,18 +12,26 @@ task 'update' do
12
12
  system("git clone git://github.com/jhollingworth/bootstrap-wysihtml5.git")
13
13
 
14
14
  system("cp #{origin_src_path}/bootstrap-wysihtml5.css #{dest_css_path}/core.css")
15
- system("cp #{origin_src_path}/bootstrap-wysihtml5.js #{dest_javascript_path}/core.js")
15
+ # system("cp #{origin_src_path}/bootstrap-wysihtml5.js #{dest_javascript_path}/core.js")
16
16
 
17
17
  Dir.foreach("bootstrap-wysihtml5/src/locales") do |file|
18
18
  unless file == '.' || file == '..'
19
19
  abbreviated_file_name = file.gsub('bootstrap-wysihtml5.', '')
20
20
  system("cp #{origin_src_path}/locales/#{file} #{dest_javascript_path}/locales/#{abbreviated_file_name}")
21
21
  end
22
- end
22
+ end
23
+
24
+ core_file = File.read("#{origin_src_path}/bootstrap-wysihtml5.js")
25
+ original_string = /stylesheets: \[".\/lib\/css\/wysiwyg-color.css"\]/
26
+ objective_string = 'stylesheets: ["/assets/bootstrap-wysihtml5/wysiwyg-color.css"]'
27
+ replaced = core_file.gsub(original_string, objective_string)
28
+
29
+ File.open("#{dest_javascript_path}/core.js", "w") { |file| file.puts replaced }
23
30
 
24
31
  system("cp #{origin_lib_path}/js/wysihtml5-0.3.0.js #{dest_javascript_path}/wysihtml5.js")
25
32
  system("cp #{origin_lib_path}/css/wysiwyg-color.css #{dest_css_path}/wysiwyg-color.css")
26
33
 
34
+
27
35
  system("git status")
28
36
  end
29
37
 
@@ -1,5 +1,5 @@
1
1
  module BootstrapWysihtml5Rails
2
2
  module Rails
3
- VERSION = "0.3.1.6"
3
+ VERSION = "0.3.1.7"
4
4
  end
5
5
  end
@@ -401,7 +401,7 @@
401
401
  "div": 1
402
402
  }
403
403
  },
404
- stylesheets: ["./lib/css/wysiwyg-color.css"], // (path_to_project/lib/css/wysiwyg-color.css)
404
+ stylesheets: ["/assets/bootstrap-wysihtml5/wysiwyg-color.css"], // (path_to_project/lib/css/wysiwyg-color.css)
405
405
  locale: "en"
406
406
  };
407
407
 
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.1.6
4
+ version: 0.3.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-08 00:00:00.000000000 Z
12
+ date: 2012-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  segments:
105
105
  - 0
106
- hash: -3082524895478545602
106
+ hash: 4572557464909679415
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: -3082524895478545602
115
+ hash: 4572557464909679415
116
116
  requirements: []
117
117
  rubyforge_project:
118
118
  rubygems_version: 1.8.24