thin_man 0.11.9 → 0.11.10
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 +4 -4
- data/app/assets/javascripts/thin_man.js +1 -1
- data/lib/thin_man/version.rb +1 -1
- data/test/javascript/spec/thinManSpec.js +7 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75e7eeec9ef58d56e41a1d3aebfb627d8d22dbea
|
4
|
+
data.tar.gz: 2704cf53ef0f77afddbaf900f2991753b83657f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 388583fc3a4612a5e2bdbe9e5d31995e89f7551a15e0c40ace2c3ecabb8df2f1aa8ed8d8aa5404bde19877739b41c2a40f3cdae4a385f05f91c4f08f920aff51
|
7
|
+
data.tar.gz: 324e489fd936f296d5b7c79aa0e63ab60d0351dc514dcd80fec6f05c29b3cb7291beb9aee10067f6278b48aba5f5ef2edf7480ca79a64637bc3f4fac832ec1be
|
@@ -88,7 +88,7 @@ var initThinMan = function(){
|
|
88
88
|
} else if(typeof data === 'object') {
|
89
89
|
if(typeof data.html != 'undefined'){
|
90
90
|
this.insertHtml(data.html)
|
91
|
-
} else {
|
91
|
+
} else if(this.target && typeof(this.target.empty) == 'function') {
|
92
92
|
this.target.empty()
|
93
93
|
}
|
94
94
|
if(typeof data.class_triggers != 'undefined'){
|
data/lib/thin_man/version.rb
CHANGED
@@ -10,7 +10,7 @@ describe("thin_man", function(){
|
|
10
10
|
jasmine.clock().install();
|
11
11
|
});
|
12
12
|
|
13
|
-
describe(".
|
13
|
+
describe(".ajaxSuccess", function(){
|
14
14
|
var $link, $target, thin;
|
15
15
|
|
16
16
|
beforeEach(function(){
|
@@ -38,6 +38,12 @@ describe("thin_man", function(){
|
|
38
38
|
thin.ajaxSuccess({flash_message: 'Successfully moved the widget.'}, 'success', TestResponses.success)
|
39
39
|
expect($target.html()).toEqual('')
|
40
40
|
})
|
41
|
+
|
42
|
+
it("handles success with no target", function(){
|
43
|
+
$no_target_link = affix('a[data-ajax-link="true"][data-ajax-target=""]');
|
44
|
+
thin = new thin_man.AjaxLinkSubmission($no_target_link);
|
45
|
+
thin.ajaxSuccess({flash_message: 'Success'},'success', TestResponses.success)
|
46
|
+
})
|
41
47
|
});
|
42
48
|
|
43
49
|
describe(".ajaxComplete", function(){
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thin_man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut, Adam Bialek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.1'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '4.3'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,20 +27,23 @@ dependencies:
|
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '4.1'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '4.3'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: sqlite3
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
39
|
+
version: '1'
|
34
40
|
type: :development
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- - "
|
44
|
+
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
46
|
+
version: '1'
|
41
47
|
description: 'A Rails library that makes web apps lively while keeping all the logic
|
42
48
|
on the server. '
|
43
49
|
email:
|