foreign_office 0.2.1 → 0.3.0

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: 373e9e5e3c3d02b699fa00e91f03aed652615368
4
- data.tar.gz: 7d3a45e3c5c7fffb3928eec9b8407a87033039f4
3
+ metadata.gz: d142bf9d30488d84689f0d71ff4346b4dc65c6e7
4
+ data.tar.gz: 82305b9d0ce078aa7a8154ecdc26ed9dc46aac91
5
5
  SHA512:
6
- metadata.gz: 66faa22ad0df131fe408fbd8e674784122c07ebc8778b8a08c5bf254118b4104399a9bbf1cac44a2f7800e0650d63f48e453fb78e5d1e275cef9075c16887540
7
- data.tar.gz: 0183802f6358f784c8c861f106f1b5469c8624c44ffb79f0ca91fa3f3826bd9eb0addc01c71a073b18400526fe99b10fd48899094aba82ddd7bc62436f1a7644
6
+ metadata.gz: e942557985b5ae99d0f771dc9e185f964cc80aef4bf44feaa280ea6775eb149a67a8dafafbe260828ac8c4bc2f1827a60bafd6dff260b4a2d881765aee3693e6
7
+ data.tar.gz: d973591ef364e2278004b3cbe88e831d33cb7e9a0e63a634b5b8244fa01299a21f43b600d695c2f23436cf942f8086d7da8991340b98dc54b66f7255288f4a81
@@ -96,28 +96,26 @@ var ForeignOfficeListener = Class.extend({
96
96
  this.$listener.val(new_value);
97
97
  break;
98
98
 
99
- case 'a':
100
- if(this.$listener.data('trigger-on-message')){
101
- this.$listener.attr('href',new_value);
102
- if(this.progress_indicator){
103
- this.progress_indicator.stop();
104
- }
105
- if(this.$listener.data('ajax_link')){
106
- this.$listener.trigger('click');
107
- }else{
108
- window.location = new_value;
109
- }
110
- }else{
111
- this.$listener.html(new_value);
112
- }
113
- break;
114
-
115
99
  case 'img':
116
100
  this.$listener.prop('src',new_value);
117
101
  break;
118
102
 
119
103
  default:
120
- this.$listener.html(new_value);
104
+ if(this.$listener.data('trigger-on-message')){
105
+ if(new_value){
106
+ this.$listener.attr('href',new_value);
107
+ if(this.progress_indicator){
108
+ this.progress_indicator.stop();
109
+ }
110
+ if(this.$listener.data('ajax-link')){
111
+ this.$listener.trigger('click');
112
+ }else{
113
+ window.location = new_value;
114
+ }
115
+ }
116
+ }else{
117
+ this.$listener.html(new_value);
118
+ }
121
119
  break;
122
120
  }
123
121
  }
@@ -1,3 +1,3 @@
1
1
  module ForeignOffice
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
File without changes
@@ -0,0 +1,11 @@
1
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
2
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMe", :object=>{:this=>"is a 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=>"TestMe", :object=>{:this=>"is another test"}}
7
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
8
+ ForeignOffice.publish: {:channel=>"TestMeAgain", :object=>{:this=>"is another test"}}
9
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMe", :object=>{:this=>"is a test"}}
10
+ ForeignOffice#publish! attempt: 1 message: {:channel=>"TestMeAgain", :object=>{:this=>"is another test"}}
11
+ ForeignOffice.publish: {:channel=>"TestMe", :object=>{:this=>"is a 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.2.1
4
+ version: 0.3.0
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: 2015-02-12 00:00:00.000000000 Z
12
+ date: 2015-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -121,6 +121,8 @@ files:
121
121
  - test/dummy/config/locales/en.yml
122
122
  - test/dummy/config/routes.rb
123
123
  - test/dummy/config/secrets.yml
124
+ - test/dummy/db/test.sqlite3
125
+ - test/dummy/log/test.log
124
126
  - test/dummy/public/404.html
125
127
  - test/dummy/public/422.html
126
128
  - test/dummy/public/500.html
@@ -181,6 +183,8 @@ test_files:
181
183
  - test/dummy/config/routes.rb
182
184
  - test/dummy/config/secrets.yml
183
185
  - test/dummy/config.ru
186
+ - test/dummy/db/test.sqlite3
187
+ - test/dummy/log/test.log
184
188
  - test/dummy/public/404.html
185
189
  - test/dummy/public/422.html
186
190
  - test/dummy/public/500.html