bootswatch_rails 3.2.0.27 → 3.2.0.28

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: 57f25cb2adf0e144da5b1e3b5645d6e6ea607e25
4
- data.tar.gz: 2bdc687b10d7667e380844c2d86e27233ec5344a
3
+ metadata.gz: b7d25377ba78c1cb1b03ca7f2f102fa042280a0c
4
+ data.tar.gz: 52ea0223eabd5ad66b13102e91f477fe71c0876e
5
5
  SHA512:
6
- metadata.gz: ab89841df5b7abd1509fb16b228ae9a9c110c2dee5a9f770b4bbf4a3c1b7720adc2b914da0a3eba15fcf8becc4cc111126a0ec77b85f028bf93d3bfc0a763d6a
7
- data.tar.gz: 6e6dbf8a3480afba84f39a0d9fdfd2852e94060d7dd340cd6667e958a6ade0ac1cdaf2ef7e4f0b932badab5ff66293c7617fa2dc69b2d3496a36db825e108192
6
+ metadata.gz: b2ef6feb88eaf070ff232d4a027aa15613a31c316004139fd21ccf92ffb8f022ba28fc5fe391dc05fb6def0ce1947e5b1d15e247f3a7dbdafa67041bf7e97419
7
+ data.tar.gz: a28b4ec3f5e30438173486b308437787f3259d77932a0e3e899496a43185cca1b46c108e2d2bb2a3533b5d2720c65bb2df62018ec9c7e307316955f98d7ecdfc
data/Makefile CHANGED
@@ -11,12 +11,14 @@ rel: build
11
11
  vim lib/bootswatch_rails/version.rb
12
12
  git commit -a
13
13
  sudo gem uninstall bootswatch_rails --all
14
+ rake build
14
15
  rake release
15
16
  sudo rake install
16
17
 
17
18
  install: build
18
19
  git commit -a
19
20
  sudo gem uninstall bootswatch_rails --all
21
+ rake build
20
22
  sudo rake install
21
23
 
22
24
  build:
@@ -1,6 +1,6 @@
1
1
  module BootswatchRails
2
2
  BOOTSTRAP = "3.2.0"
3
- VERSION = "3.2.0.27"
3
+ VERSION = "3.2.0.28"
4
4
 
5
5
  THEMES = [:amelia, :cerulean, :cosmo, :custom, :cyborg, :darkly, :flatly, :journal, :lumen, :paper, :readable, :sandstone, :simplex, :slate, :spacelab, :superhero, :united, :yeti]
6
6
  DEFAULT = 1
@@ -6,6 +6,8 @@ module BootswatchRails
6
6
  desc: 'Activate turbolinks (off by default)'
7
7
  class_option :gmaps, type: :boolean, default: false,
8
8
  desc: 'Include Google Maps (requires gmaps4rails and underscore-rails)'
9
+ class_option :leaflet, type: :boolean, default: false,
10
+ desc: 'Include Leaflet JS (requires leaflet-rails and related gems)'
9
11
  source_root File.expand_path("../templates", __FILE__)
10
12
 
11
13
  def update_application_controller
@@ -47,6 +49,31 @@ module BootswatchRails
47
49
  end
48
50
  end
49
51
 
52
+ def add_leaflet
53
+ return unless options.leaflet?
54
+ file = "app/assets/javascripts/application.js"
55
+ inject_into_file file, after: /require jquery_ujs.*$/ do
56
+ [
57
+ "",
58
+ "//= require leaflet",
59
+ "//= require leaflet.makimarkers",
60
+ "//= require leaflet.geodesic"
61
+ ].join("\n")
62
+ end
63
+ file = "app/assets/stylesheets/application.css"
64
+ prepend_to_file file do
65
+ [
66
+ "//= depend_on_asset \"layers.png\"",
67
+ "//= depend_on_asset \"layers-2x.png\"",
68
+ "",
69
+ ""
70
+ ].join("\n")
71
+ end
72
+ inject_into_file file, after: /require_tree \..*$/ do
73
+ "\n *= require leaflet"
74
+ end
75
+ end
76
+
50
77
  def remove_turbolinks
51
78
  return if options.turbolinks?
52
79
  # comment_lines "Gemfile", /gem 'turbolinks/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootswatch_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0.27
4
+ version: 3.2.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volker Wiegand
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-14 00:00:00.000000000 Z
11
+ date: 2014-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties