kablam 0.3.3 → 0.3.4

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
  SHA256:
3
- metadata.gz: 84d991bbff91946fb3cecd7525ad6daf7677bd4f3a7179d5ca2eee8e00fb769f
4
- data.tar.gz: 409bdd54c5f61ce048bb41b177ba043de88168f19e83cb38cc666e42c37dd4f5
3
+ metadata.gz: 1b03799ec8c4c7ce89462adabe32cae88a678bfcb829e418b05f72fc0443ae94
4
+ data.tar.gz: 5073dabf1d96f5f72a92d9aad2c51d1749367bf663db2ae3259c80e1e22e3868
5
5
  SHA512:
6
- metadata.gz: 1ef896aff4f28a7762f449775b61075c400e6cf9a7f303c06e43f27d03c2ffc39a7aba8f4dc7bbeae4b9d97a50fd3a547e9001cbcfc1c895b73e3cc279f65f9f
7
- data.tar.gz: 487dee532507b0325726c8944e4e5dbc20e5c3d23dcd463fe5dceef5f4f5275e27e75c5ade57472c7e5e41377d3609220b5c065bc41ff84a62eb5d72607bee56
6
+ metadata.gz: c0bc5de2d920f1333bbb0ca0a7f89cb5eaeecba647c3f33a779d6351b0b5216a14e2b57be9282d25fcc4b6cfa349849d7162c4be22106947aa1abecacdb1c1ee
7
+ data.tar.gz: e2cf77fdfde55dbaeecc43a5ee2f5b7798fc2fd5e63a1066bccd706fd33973c138224bbedbff0ecd05afe6515006d8849af78e68138ccb242a3d690da3602459
@@ -262,6 +262,10 @@ AjaxRequest.post = function(args) {
262
262
  AjaxRequest.doRequest("POST",args);
263
263
  };
264
264
 
265
+ AjaxRequest.patch = function(args) {
266
+ AjaxRequest.doRequest("PATCH",args);
267
+ };
268
+
265
269
  AjaxRequest.doRequest = function(method,args) {
266
270
  if (typeof(args)!="undefined" && args!=null) {
267
271
  var myRequest = new AjaxRequest();
@@ -63,7 +63,6 @@ function UserChatSub(chat_div_id, chat_id, channel, user_id, options={}){
63
63
  }
64
64
 
65
65
  function RenderMessage(data) {
66
- console.log(data);
67
66
  AjaxRequest.post(
68
67
  {
69
68
  'url': '<%= Kablam::Engine.routes.url_helpers.message_path %>',
data/kablam.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'kablam'
3
- s.version = '0.3.3'
3
+ s.version = '0.3.4'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
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/engine.rb CHANGED
@@ -1,4 +1,10 @@
1
1
  module Kablam
2
2
  class Engine < Rails::Engine
3
+ def self.mounted_path
4
+ route = Rails.application.routes.routes.detect do |route|
5
+ route.app == self
6
+ end
7
+ route && route.path
8
+ end
3
9
  end
4
10
  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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Rivas