bootswatch_rails 3.2.0.6 → 3.2.0.7

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: f6a54686faadd2437f11022775b8576a65dd4db6
4
- data.tar.gz: 2bff2c7b5dcd811048bf33df4b3a029b7cff6579
3
+ metadata.gz: 50512531e441f2bb338d5d2088dd9f21dd3d8d8a
4
+ data.tar.gz: 83845e120bdaef0e6f1f22cb2282eb2b1f1a4185
5
5
  SHA512:
6
- metadata.gz: 239e699fc376fcdfbf0340a2465173eca8949e3e91908c4d899156a9b5aeada1bd3ab189ca11f417995fd5648364c48ed1c277340b0a630c7117a243e38974c3
7
- data.tar.gz: d5cb72490e9a1865e59c00d9b2ae6da03f5b107c89f73fa6e049e71f4a45c80db1f23fba29e66a3da0643dcbca5d3477e22173a38bda846ab82da17f8d95c5a3
6
+ metadata.gz: cd25e163470352337e43f9e006c50c0a479be6423342f05afeb91aac03e0fea40fe68c60211cca8a6bcb3854c0a7e08f72f458484b0bd4eb0cbaf6818d2e81b9
7
+ data.tar.gz: 4a4f95fdc21edf2b15fff0b59c5e86180eaed063c74de584c5e9335b9086f4964a18916b54980e04779f149b4b047cf02c19f3b9e3bf3a434d99df2e989f48d9
@@ -1,5 +1,5 @@
1
1
  module BootswatchRails
2
- VERSION = "3.2.0.6"
2
+ VERSION = "3.2.0.7"
3
3
  THEMES = [:amelia, :cerulean, :cosmo, :custom, :cyborg, :darkly, :flatly, :journal, :lumen, :paper, :readable, :sandstone, :simplex, :slate, :spacelab, :superhero, :united, :yeti]
4
4
  DEFAULT = 1
5
5
  end
@@ -18,9 +18,17 @@ module BootswatchRails
18
18
  end
19
19
 
20
20
  def add_to_view
21
+ file = "app/views/#{table_name}/index.html.erb"
22
+ columns.each do |column|
23
+ gsub_file file, /(#{name}\.#{column})/, "raw(\\1)"
24
+ end
25
+ file = "app/views/#{table_name}/show.html.erb"
26
+ columns.each do |column|
27
+ gsub_file file, /(@#{name}\.#{column})/, "raw(\\1)"
28
+ end
21
29
  file = "app/views/#{table_name}/_form.html.erb"
22
30
  columns.each do |column|
23
- gsub_file file, /(input :#{column}) /, "\\1, input_html: { class: 'cleditor' } "
31
+ gsub_file file, /(:#{column}) /, "\\1, input_html: { class: 'cleditor' } "
24
32
  end
25
33
  end
26
34
  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.6
4
+ version: 3.2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volker Wiegand