paloma 5.1.0 → 6.0.0
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
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 265cf1bfb81899655d3cb62daef955218ea9b83ecce140a23593ed1ffe9f5301
|
|
4
|
+
data.tar.gz: '08a5fbf7b214ffa123b17890ce63819bee3bdd72999e13a85c716f547aaa0df1'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2581ca90b5c27f671cdafd854cfca1a985e06b50caed16770ab1687bc28b3dd20ced3a2c5e6b314204a77c804e2db60218c48d9697f8ffd256c78f2551fe57d
|
|
7
|
+
data.tar.gz: 1a5cd90162340c885a041ccbfdd7b4b1b885c3efcf6db3077b3a1e74555847c1cce147cebccfb08946c5498ed739adadc11ccd010e9b0723079edf075871b0d7
|
data/lib/paloma/controller.rb
CHANGED
|
@@ -6,7 +6,7 @@ module Paloma
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
def initialize
|
|
9
|
-
|
|
9
|
+
clear_request
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
|
|
@@ -20,12 +20,12 @@ module Paloma
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
def request
|
|
23
|
-
{:
|
|
23
|
+
{ resource: resource, action: action, params: params }
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
def has_request?
|
|
28
|
-
|
|
28
|
+
resource.present? && action.present?
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
|
|
@@ -23,7 +23,7 @@ Paloma.ControllerClassFactory.prototype = {
|
|
|
23
23
|
if (!parent) return;
|
|
24
24
|
|
|
25
25
|
var parentClass = this.get(parent);
|
|
26
|
-
if (parentClass) controller.prototype
|
|
26
|
+
if (parentClass) controller.prototype = Object.create(parentClass.prototype, controller.prototype);
|
|
27
27
|
},
|
|
28
28
|
|
|
29
29
|
_updatePrototype: function(controller, newPrototype){
|
|
@@ -41,7 +41,8 @@ Paloma.ControllerClassFactory.prototype = {
|
|
|
41
41
|
Paloma.BaseController.call(this, params);
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
controller.prototype
|
|
44
|
+
controller.prototype = Object.create(Paloma.BaseController.prototype);
|
|
45
|
+
controller.prototype.constructor = controller;
|
|
45
46
|
|
|
46
47
|
this._controllers[name] = controller;
|
|
47
48
|
return controller;
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: paloma
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karl Paragua
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2020-02-09 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: jquery-rails
|
|
@@ -180,8 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
180
180
|
- !ruby/object:Gem::Version
|
|
181
181
|
version: '0'
|
|
182
182
|
requirements: []
|
|
183
|
-
|
|
184
|
-
rubygems_version: 2.6.10
|
|
183
|
+
rubygems_version: 3.0.3
|
|
185
184
|
signing_key:
|
|
186
185
|
specification_version: 4
|
|
187
186
|
summary: Provides an easy way to execute page-specific javascript for Rails.
|