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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3b6f2f7f0e2b02e6a0adfd1d0ab3d7aa863f3c4
4
- data.tar.gz: 1fa220c8a0d8b88591daddc9009e72a7195cdc42
3
+ metadata.gz: 3626228ce57d873fba48c0d2a22f21be2123695d
4
+ data.tar.gz: 92e12241a3fda03250f64966bf66ac3a97d1da53
5
5
  SHA512:
6
- metadata.gz: c5aa3b5d468c182cd443e9a5e1b5f25e212c063fd3b7d5418a377ed195b82afbc7297f0859e7c1ea8c25031344054dcc08548e8e37a76730e474d435f49cd900
7
- data.tar.gz: c56cd27a46b28e4a376b8e562f39533f53be3938382e1ff4eb3edd62aafb01ecd226aebbb3e336db3d285d027cdcada8d7ba6dd852b95e6f0b1fa54f362effae
6
+ metadata.gz: 548a5a16100e0180dc605ed79505fc35f6638a3579ad4c44de0d1cb9284cec29e84c215caad58d29706b43cc2972afb836d23fb8498a6991c6dfff5d734fad62
7
+ data.tar.gz: deca5578326dd9b5e8e199e6bcc20b5127844c3520ac46578dd7a4a0d8e8cec2a348b380b10d5c53d780cc30636098a2cc3829c03537321e562c5c241c6fa7d7
@@ -1,7 +1,7 @@
1
1
  - controller = params[:controller].split("/")
2
- - url = "/#{resource.model_name.name.pluralize.downcase}/#{resource.id}"
3
- - namespace = ''
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.3'
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
 
@@ -1,5 +1,5 @@
1
1
  module Jabysoft
2
2
  module BootstrapGenerators
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -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 %>.name), partial_body: 'form'
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 %>.name, partial_body: 'form'
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.0
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: 2016-12-10 00:00:00.000000000 Z
11
+ date: 2017-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler