thin_man 0.11.9 → 0.11.10

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
  SHA1:
3
- metadata.gz: 1d1e6bc3e6d3f9fef6e7165f3a84aac0a0ab833b
4
- data.tar.gz: c9a2cfc426f98c94b5f5c133e75d8ad14984ae31
3
+ metadata.gz: 75e7eeec9ef58d56e41a1d3aebfb627d8d22dbea
4
+ data.tar.gz: 2704cf53ef0f77afddbaf900f2991753b83657f6
5
5
  SHA512:
6
- metadata.gz: ea09a5f984cc6505369a34d40343303028cc015d76e9e9b7542e9f2b67c6b28621400c8c45147c3a825404c0418523d56656db03b333ddd56cdabdeba3471d7d
7
- data.tar.gz: d76938485b704cff43f389b8d9b3d1be8d2eba398fcc768143ced5a7350e48abca0b8cd9a017617ced3b3938e5e18be71153f014096d9ce367cba719bb8450bd
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'){
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.11.9"
2
+ VERSION = "0.11.10"
3
3
  end
@@ -10,7 +10,7 @@ describe("thin_man", function(){
10
10
  jasmine.clock().install();
11
11
  });
12
12
 
13
- describe(".ajaxSucess", function(){
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.9
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-04 00:00:00.000000000 Z
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: '0'
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: '0'
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: