kablam 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/kablam.gemspec +1 -1
  3. data/lib/kablam/forms.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 765246fca2f0d90ce4e6a55f245be6669cf15e4e1dc76859489fbc6136f2a014
4
- data.tar.gz: b0bdbaa3b909f30af00e8817fc49093461bc5a686a166025e150aacbed36abf6
3
+ metadata.gz: 0f1b9136067229bf9d70ce67ed3349219a194489fec4fe7eeeb3bafb31d10015
4
+ data.tar.gz: 75253848dfbf91b9ef1850c7f46d4c8d20b4ccdb3fc9629613ef930c13a3006e
5
5
  SHA512:
6
- metadata.gz: d4f9c9eee56ba9777add4dc062f360deed3dee1a38d8458f409a76ca93095d112e451d876f5c758f9897cbdc6d96e8f85ca0fdec8edf9d7b510c55dce9064cbc
7
- data.tar.gz: b3034e8d9d2e7ddffc3101c5e170f1fb2a916112c84c73e6d289de00640acc00892260260cb0f08281cba5285c29c334cc9b8dd4cfd0cdba0115f908fa405e6d
6
+ metadata.gz: dbacb7c24019d7f37c68f3766767859f9ebafd8dae289dd81dbdfdfd35bd9f2d2ebc2552a0c27b4a9d88d629ebf3d61dc74f4f5915e4dd076c8915e7b0b95b3f
7
+ data.tar.gz: 2a0996464bd3486a3d03fb32da7b15f727ca1a558e6be5f200c3171d5e194c9191479d82bc96223378b7e311468df9663dad4988fe6757be7595f4fd8857ae1a
data/kablam.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'kablam'
3
- s.version = '0.2.2'
3
+ s.version = '0.2.3'
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.}"
data/lib/kablam/forms.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  module Kablam
2
2
  class Forms
3
3
  def self.render_edit(obj, target_id, table_id, opt={})
4
- "<a class='#{opt[:class]}' onclick='event.preventDefault();load(\"#{target_id}\", \"/kablam/#{obj.class.table_name}/form?id=#{obj.id}&target=#{table_id}\")' href='#'>#{opt[:text] || "Edit"}</a>"
4
+ "<a class=\'#{opt[:class]}\' onclick=\'event.preventDefault();load(\"#{target_id}\", \"/kablam/#{obj.class.table_name}/form?id=#{obj.id}&target=#{table_id}\")\' href=\'#\'>#{opt[:text] || "Edit"}</a>"
5
5
  end
6
6
 
7
7
  def self.render_destroy(obj, opt={})
8
- "<a data-disable-with='' class='#{opt[:class]}' data-remote='true' rel='nofollow' data-method='delete' href='/kablam/#{obj.class.table_name}/#{obj.id}'>#{opt[:text] || "Remove"}</a>"
8
+ "<a data-disable-with=\'…\' class=\'#{opt[:class]}\' data-remote=\'true\' rel=\'nofollow\' data-method=\'delete\' href=\'/kablam/#{obj.class.table_name}/#{obj.id}\'>#{opt[:text] || "Remove"}</a>"
9
9
  end
10
10
 
11
11
  def self.default_classes
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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Rivas