foreign_office 0.15.6 → 0.15.7

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
2
  SHA1:
3
- metadata.gz: 2bb8b316b36a44cd3fb99cc2947418cbe936bca4
4
- data.tar.gz: d2991a68042d5595a7f753276af835ed09890c16
3
+ metadata.gz: e40ac48bf614839677ce97f57df4f2cc1c2a0b31
4
+ data.tar.gz: 337949668fcc26dd6e33b1e244960bcab41ab2ab
5
5
  SHA512:
6
- metadata.gz: 9657b33f3fde7ecc65e95e1edc78dfb55e7c8bee62a8eb8bf1fdc1d7dab77ff46447d9d5354af90df8809e72a123aa85411ba5a11bdd8350fbb1a2cbb31b0c2c
7
- data.tar.gz: a03a0ed68abf38c6e82bb790a1e004cc68f2524e09748e96ead8a7ed747205a1592222ab96afc85bdf5519245d756c1ed9725a1ee67855d2e64f5eb6c914c51e
6
+ metadata.gz: 66e30dd5a93d9072a055280910d86ab313693171a0a7ae1539d582795b5d6069dff221270013ae2dae3bab23ee0957d394a25f840aa88a5aea8f359e10c5434f
7
+ data.tar.gz: faec1749dd0db075969b47e0f9590821308d2dc393abdb6868641917800a0c48878c64a84a3cd74eb0edeca1e89a474fcc5f47c7d65d7afe5ef7ecb7728815ce
@@ -178,11 +178,13 @@ var ForeignOfficeListener = Class.extend({
178
178
  }else if(this.href_target){
179
179
  this.$listener.attr('href',m.object[this.object_key])
180
180
  }else if(this.create_modal){
181
- var $modal_content = $('<div>').html($(this.create_modal).html());
182
- var modal = new hooch.Modal($modal_content);
183
- modal.$dismisser.remove();
184
- delete modal.dismisser;
185
- delete modal.$dismisser;
181
+ if (m.object[this.object_key] == true) {
182
+ var $modal_content = $('<div>').html($(this.create_modal).html());
183
+ var modal = new hooch.Modal($modal_content);
184
+ modal.$dismisser.remove();
185
+ delete modal.dismisser;
186
+ delete modal.$dismisser;
187
+ }
186
188
  }else{
187
189
  var new_value = m.object[this.object_key];
188
190
  switch(this.$listener.get(0).nodeName.toLowerCase()){
@@ -1,3 +1,3 @@
1
1
  module ForeignOffice
2
- VERSION = "0.15.6"
2
+ VERSION = "0.15.7"
3
3
  end
File without changes
@@ -0,0 +1,33 @@
1
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
2
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is another test"}}
3
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
4
+ ForeignOffice.publish: {:channel=>"TestMeAgain", :object=>{:this=>"is another test"}}
5
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
6
+ ForeignOffice.publish: {:channel=>"TestMeAgain", :object=>{:this=>"is another test"}}
7
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
8
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMeAgain", :object=>{:this=>"is another test"}}
9
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
10
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
11
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
12
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
13
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
14
+ ForeignOffice.publish: {:channel=>"TestMeAgain", :object=>{:this=>"is another test"}}
15
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
16
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is another test"}}
17
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
18
+ ForeignOffice.publish: {:channel=>"TestMeAgain", :object=>{:this=>"is another test"}}
19
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
20
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMeAgain", :object=>{:this=>"is another test"}}
21
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
22
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
23
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
24
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
25
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
26
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
27
+ ForeignOffice.publish: {:channel=>"TestMeAgain", :object=>{:this=>"is another test"}}
28
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
29
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is another test"}}
30
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
31
+ ForeignOffice.publish: {:channel=>"TestMeAgain", :object=>{:this=>"is another test"}}
32
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
33
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMeAgain", :object=>{:this=>"is another test"}}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreign_office
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.6
4
+ version: 0.15.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-10-17 00:00:00.000000000 Z
12
+ date: 2017-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -129,6 +129,8 @@ files:
129
129
  - test/dummy/config/locales/en.yml
130
130
  - test/dummy/config/routes.rb
131
131
  - test/dummy/config/secrets.yml
132
+ - test/dummy/db/test.sqlite3
133
+ - test/dummy/log/test.log
132
134
  - test/dummy/public/404.html
133
135
  - test/dummy/public/422.html
134
136
  - test/dummy/public/500.html
@@ -155,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
157
  version: '0'
156
158
  requirements: []
157
159
  rubyforge_project:
158
- rubygems_version: 2.5.1
160
+ rubygems_version: 2.6.12
159
161
  signing_key:
160
162
  specification_version: 4
161
163
  summary: A light framework that provides functionality for listeners on web clients
@@ -189,6 +191,8 @@ test_files:
189
191
  - test/dummy/config/routes.rb
190
192
  - test/dummy/config/secrets.yml
191
193
  - test/dummy/config.ru
194
+ - test/dummy/db/test.sqlite3
195
+ - test/dummy/log/test.log
192
196
  - test/dummy/public/404.html
193
197
  - test/dummy/public/422.html
194
198
  - test/dummy/public/500.html