kablam 0.1.7 → 0.1.8

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
  SHA256:
3
- metadata.gz: cf22a1192c80a2b1966f90abd8363f6ecac22c73361fbc75ccbeb78fbcb08381
4
- data.tar.gz: 9c8d9bbce61cc865f8ac88bcbcb688005591290990acfb9ef1ac8ca31b24ee04
3
+ metadata.gz: 1fa5a3d9c4ce4f8e361eba49ab2849f2d46e38304c6757e9b3b0f0faec5e700e
4
+ data.tar.gz: d0d710320c02a28314a7084285f413030a00190cb78564720c37061cc1b35958
5
5
  SHA512:
6
- metadata.gz: 8f7b325faf9e5ec94d7a93609c89cbfea4e088cb16d8be6b910ef61dd834665e299d7a49448fe3ee5985621b0a1ada089f25b2f90bc95f9765bc29e4ef1fa933
7
- data.tar.gz: 581f17e8df2607aec51b76c1a7d77494961b0bf56b750b7be21ce04b38d7bd60d18f5777c54ba1a76b944300fb1bed7bdeac5c22a1362b1516c740b2000f6f8c
6
+ metadata.gz: 82081bc1a3ca1f92e6ad8ef0eb9a568e3cfc1076d154796cc4bc7276fc113d026e25735e6d9415c1c34dbc151e09c3bde97d112039dce00607115f76fdf3fb33
7
+ data.tar.gz: fe825602f623322bdc165e232b25343c832bc65f6f5ffec33505c5c447c022bbdd9e7bd4a5714666305cd77af00de832b0768baf6249e35367b0a70642c457e1
data/kablam.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'kablam'
3
- s.version = '0.1.7'
3
+ s.version = '0.1.8'
4
4
  s.date = '2018-09-14'
5
5
  s.summary = "Kablam! All the things you hate. But Faster."
6
6
  s.description = "Gem to make development of everything in rails faster. Form creation & styling, all the resource routes, even actioncable messaging!\n {NOTE: In Development. NOT READY FOR TESTING.}"
@@ -15,24 +15,27 @@ module Kablam
15
15
  copy_file "_sample_target_item.html.erb", "app/views/kablam/models/_sample_target_item.html.erb"
16
16
  end
17
17
  def setup_routes
18
- route "# KABLAM! form/create/update/destroy/undo for all models"
19
- route "# Note: Make sure Kablam engine is at the BOTTOM of routes"
20
- route "# helpers to use KABLAM! [examples w/ 'posts' model)"
21
- route "# ---> kablam.form_path('posts')"
22
- route "# (if edit form, must add '?id=\#\{@post.id\}' at end of path)"
23
- route "# ---> kablam.create_path('posts')"
24
- route "# ---> kablam.delete_path('posts', @post)"
25
- route "# ---> kablam.update_path('posts', @post)"
26
- route "# ---> kablam.undo_path('posts', @post)"
27
- route "mount Kablam::Engine => '/kablam', as: 'kablam'"
18
+ inject_into_file 'config/routes.rb', before: "end" do
19
+ " # KABLAM! form/create/update/destroy/undo for all models"
20
+ " # Note: Make sure Kablam engine is at the BOTTOM of routes"
21
+ " # helpers to use KABLAM! [examples w/ 'posts' model)"
22
+ " # ---> kablam.form_path('posts')"
23
+ " # (if edit form, must add '?id=\#\{@post.id\}' at end of path)"
24
+ " # ---> kablam.create_path('posts')"
25
+ " # ---> kablam.delete_path('posts', @post)"
26
+ " # ---> kablam.update_path('posts', @post)"
27
+ " # ---> kablam.undo_path('posts', @post)"
28
+ " mount Kablam::Engine => '/kablam', as: 'kablam'\n"
29
+ end
30
+
28
31
  end
29
32
 
30
33
  def setup_assets
31
- inject_into_file 'app/assets/javascripts/application.js', before: "//=require_tree ." do
34
+ inject_into_file 'app/assets/javascripts/application.js', before: "//= require_tree ." do
32
35
  "//=require kablam/ajax"
33
36
  "//=require kablam/forms\n"
34
37
  end
35
- prepend_file 'app/assets/stylesheets/application.css.scss', "@import 'kablam';"
38
+ prepend_file 'app/assets/stylesheets/application.css.scss', "@import 'kablam';\n"
36
39
  end
37
40
  end
38
41
  end
@@ -10,7 +10,9 @@ module Kablam
10
10
  inject_into_file 'app/assets/javascripts/application.js', after: "//=require_tree .\n" do
11
11
  "//=require cable"
12
12
  end
13
- route "mount ActionCable.server => '/cable'"
13
+ inject_into_file 'config/routes.rb', before: 'end' do
14
+ " mount ActionCable.server => '/cable'\n"
15
+ end
14
16
  inject_into_file "app/views/layouts/application.html.erb", before: "</head>" do
15
17
  " <%= action_cable_meta_tag %>\n "
16
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kablam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Rivas