bootswatch_rails 3.2.0.28 → 3.2.0.29
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 +4 -4
- data/Makefile +1 -3
- data/lib/bootswatch_rails/version.rb +1 -1
- data/lib/generators/bootswatch_rails/install/install_generator.rb +0 -27
- data/lib/generators/bootswatch_rails/sorcery/templates/_form.html.erb +1 -1
- data/lib/generators/bootswatch_rails/sorcery/templates/index.html.erb +2 -2
- data/lib/generators/bootswatch_rails/sorcery/templates/show.html.erb +2 -2
- data/lib/generators/bootswatch_rails/sorcery/templates/sorcery.de.yml +1 -1
- data/lib/generators/bootswatch_rails/sorcery/templates/users_controller.rb +1 -1
- data/vendor/assets/stylesheets/darkly.css +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba4005850dc5bae3daadcef965e1bb1c9ca9f9a5
|
|
4
|
+
data.tar.gz: c37bd90f64b59cd11a6c9e3eb8ac2c8326106f3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c7ca9d42b1efa1d5e2345778e31fd5b0a718014747e96766f89e525703db425b6f1a678e157ecf79ad691f97bdab0592fc2cc16e7fecf83d38903cc21b90f3e
|
|
7
|
+
data.tar.gz: c8d2ed42e961f5fa8807198102a0ee166b2f96d1c96117c1ecefb782b3693b9a2a20c8c99a8452dd9316fa8b9ac76c412162c33f6110a0786725a59868852d0d
|
data/Makefile
CHANGED
|
@@ -11,15 +11,13 @@ 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
|
|
15
14
|
rake release
|
|
16
|
-
sudo rake install
|
|
17
15
|
|
|
18
16
|
install: build
|
|
19
17
|
git commit -a
|
|
20
18
|
sudo gem uninstall bootswatch_rails --all
|
|
21
|
-
rake build
|
|
22
19
|
sudo rake install
|
|
20
|
+
sudo rm -rf pkg
|
|
23
21
|
|
|
24
22
|
build:
|
|
25
23
|
test -d cleditor && git add cleditor || true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module BootswatchRails
|
|
2
2
|
BOOTSTRAP = "3.2.0"
|
|
3
|
-
VERSION = "3.2.0.
|
|
3
|
+
VERSION = "3.2.0.29"
|
|
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,8 +6,6 @@ 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)'
|
|
11
9
|
source_root File.expand_path("../templates", __FILE__)
|
|
12
10
|
|
|
13
11
|
def update_application_controller
|
|
@@ -49,31 +47,6 @@ module BootswatchRails
|
|
|
49
47
|
end
|
|
50
48
|
end
|
|
51
49
|
|
|
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
|
-
|
|
77
50
|
def remove_turbolinks
|
|
78
51
|
return if options.turbolinks?
|
|
79
52
|
# comment_lines "Gemfile", /gem 'turbolinks/
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<%%= f.input :active %>
|
|
26
26
|
<%%= f.input :password %>
|
|
27
27
|
<%%= f.input :password_confirmation %>
|
|
28
|
-
<%%- if current_<%= name %>.
|
|
28
|
+
<%%- if current_<%= name %>.sysadm and @<%= name %> != current_<%= name %> -%>
|
|
29
29
|
<%%= f.input :sysadm %>
|
|
30
30
|
<%%- end -%>
|
|
31
31
|
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
</td>
|
|
41
41
|
<td class="index-actions">
|
|
42
42
|
<%%= link_to t('actions.show'), <%= name %>, class: 'btn btn-default btn-xs' %>
|
|
43
|
-
<%%- if current_<%= name %>.
|
|
43
|
+
<%%- if current_<%= name %>.sysadm or <%= name %> == current_<%= name %> -%>
|
|
44
44
|
<br>
|
|
45
45
|
<%%= link_to t('actions.edit'), [:edit, <%= name %>], class: 'btn btn-default btn-xs' %>
|
|
46
46
|
<%%- end -%>
|
|
47
|
-
<%%- if current_<%= name %>.
|
|
47
|
+
<%%- if current_<%= name %>.sysadm and <%= name %> != current_<%= name %> -%>
|
|
48
48
|
<br>
|
|
49
49
|
<%%= link_to t('actions.destroy'), <%= name %>, method: :delete, data: { confirm: t('actions.confirm') }, class: 'btn btn-danger btn-xs' %>
|
|
50
50
|
<%%- end -%>
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
</tbody>
|
|
82
82
|
</table>
|
|
83
83
|
|
|
84
|
-
<%%- if current_<%= name %>.
|
|
84
|
+
<%%- if current_<%= name %>.sysadm or @<%= name %> == current_<%= name %> -%>
|
|
85
85
|
<%%= link_to t('actions.edit'), [:edit, @<%= name %>], class: 'btn btn-primary' %>
|
|
86
86
|
<%%= link_to t('actions.back.index'), <%= table_name %>_path, class: 'btn btn-default' %>
|
|
87
87
|
<%%- else -%>
|
|
88
88
|
<%%= link_to t('actions.back.index'), <%= table_name %>_path, class: 'btn btn-primary' %>
|
|
89
89
|
<%%- end -%>
|
|
90
|
-
<%%- if current_<%= name %>.
|
|
90
|
+
<%%- if current_<%= name %>.sysadm and @<%= name %> != current_<%= name %> -%>
|
|
91
91
|
<%%= link_to t('actions.destroy'), @<%= name %>, method: :delete, data: { confirm: t('actions.confirm') }, class: 'btn btn-danger' %>
|
|
92
92
|
<%%- end -%>
|
|
93
93
|
|
|
@@ -127,7 +127,7 @@ class <%= controller_name.camelize %> < ApplicationController
|
|
|
127
127
|
# DELETE /<%= table_name %>/1
|
|
128
128
|
# DELETE /<%= table_name %>/1.json
|
|
129
129
|
def destroy
|
|
130
|
-
if @<%= name %> == current_<%= name %> or current_<%= name %>.
|
|
130
|
+
if @<%= name %> == current_<%= name %> or current_<%= name %>.sysadm
|
|
131
131
|
redirect_to root_path, alert: t('sorcery.forbidden')
|
|
132
132
|
return
|
|
133
133
|
end
|
|
@@ -3497,7 +3497,7 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
|
|
|
3497
3497
|
line-height: 1;
|
|
3498
3498
|
color: #464545;
|
|
3499
3499
|
text-align: center;
|
|
3500
|
-
background-color: #
|
|
3500
|
+
background-color: #464545;
|
|
3501
3501
|
border: 1px solid transparent;
|
|
3502
3502
|
border-radius: 4px;
|
|
3503
3503
|
}
|
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.
|
|
4
|
+
version: 3.2.0.29
|
|
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-
|
|
11
|
+
date: 2014-10-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|