jabysoft-bootstrap_generators 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/shared/modals/_delete_confirmation.html.haml +3 -3
- data/lib/generators/jabysoft/setup/templates/Gemfile +1 -6
- data/lib/jabysoft/bootstrap_generators/version.rb +1 -1
- data/lib/templates/haml/scaffold/_index.html.haml +1 -1
- data/lib/templates/haml/scaffold/edit.html.haml +1 -1
- data/lib/templates/haml/scaffold/show.html.haml +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: 3626228ce57d873fba48c0d2a22f21be2123695d
|
4
|
+
data.tar.gz: 92e12241a3fda03250f64966bf66ac3a97d1da53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 548a5a16100e0180dc605ed79505fc35f6638a3579ad4c44de0d1cb9284cec29e84c215caad58d29706b43cc2972afb836d23fb8498a6991c6dfff5d734fad62
|
7
|
+
data.tar.gz: deca5578326dd9b5e8e199e6bcc20b5127844c3520ac46578dd7a4a0d8e8cec2a348b380b10d5c53d780cc30636098a2cc3829c03537321e562c5c241c6fa7d7
|
@@ -1,7 +1,7 @@
|
|
1
1
|
- controller = params[:controller].split("/")
|
2
|
-
- url = "
|
3
|
-
|
4
|
-
.modal.fade{id: "delete-confirmation", role: "dialog"}
|
2
|
+
- url = "#{base_path(resource)}/#{resource.id}"
|
3
|
+
|
4
|
+
.modal.fade{id: "delete-confirmation#{resource.id}", role: "dialog"}
|
5
5
|
.modal-dialog
|
6
6
|
.modal-content
|
7
7
|
.modal-header
|
@@ -1,6 +1,6 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
ruby '2.
|
3
|
+
ruby '2.4.0'
|
4
4
|
|
5
5
|
# JabySoft gems
|
6
6
|
gem 'jabysoft-rails_patterns', '~> 0.1'
|
@@ -19,14 +19,10 @@ gem 'jbuilder', '~> 2.6'
|
|
19
19
|
|
20
20
|
# STANDARDS INCLUDED
|
21
21
|
gem 'haml', '~> 4.0'
|
22
|
-
gem 'choices', '~> 0.4'
|
23
22
|
gem 'will_paginate-bootstrap', '~> 1.0', '>= 1.0.1'
|
24
23
|
gem 'rack-mini-profiler', '~> 0.10.1', require: false
|
25
|
-
gem 'whenever', '~> 0.9.7', require: false
|
26
|
-
gem 'after_party', '~> 1.10'
|
27
24
|
gem 'rails-controller-testing', '~> 0.1'
|
28
25
|
gem 'codacy-coverage', '~> 1.1'
|
29
|
-
gem 'draper', '~> 3.0.0.pre1'
|
30
26
|
|
31
27
|
group :development, :test do
|
32
28
|
gem 'faker', '~> 1.6'
|
@@ -36,7 +32,6 @@ group :development, :test do
|
|
36
32
|
gem 'database_cleaner', '~> 1.5', '>= 1.5.3'
|
37
33
|
gem 'shoulda-matchers', '~> 3.1', '>= 3.1.1', require: false
|
38
34
|
gem 'simplecov', '~> 0.12.0', require: false
|
39
|
-
gem 'brakeman', '~> 3.3', '>= 3.3.2', require: false # execute "brakeman" in root folder
|
40
35
|
gem 'rubycritic', '~> 2.9', '>= 2.9.2', require: false # execute "rubycritic" in root folder
|
41
36
|
end
|
42
37
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
%td
|
18
18
|
= link_to_show <%= class_name %>, <%= singular_table_name %>_path(<%= singular_table_name %>)
|
19
19
|
= link_to_edit <%= class_name %>, edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
|
20
|
-
= link_to_destroy <%= class_name %>, '#'
|
20
|
+
= link_to_destroy <%= class_name %>, '#', resource_id: <%= singular_table_name %>.id
|
21
21
|
= render 'shared/modals/delete_confirmation', resource: <%= singular_table_name %>
|
22
22
|
|
23
23
|
= will_paginate @<%= plural_table_name %>, renderer: BootstrapPagination::Rails
|
@@ -1 +1 @@
|
|
1
|
-
= render 'shared/panel', heading: t('editing', model: @<%= singular_table_name %>.
|
1
|
+
= render 'shared/panel', heading: t('editing', model: @<%= singular_table_name %>.id), partial_body: 'form'
|
@@ -1 +1 @@
|
|
1
|
-
= render 'shared/panel', heading: @<%= singular_table_name %>.
|
1
|
+
= render 'shared/panel', heading: @<%= singular_table_name %>.id, partial_body: 'form'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jabysoft-bootstrap_generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emerson Xavier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|