foreign_office 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreign_office.js +1 -7
- data/lib/foreign_office/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75d5e2b584022e4551cb14be7327e8d1c090be32
|
4
|
+
data.tar.gz: d83f9f28906d4c4cd7ed2cf34b605fe02ab1a7c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e80fbbbe9a332b6585f07e6c18c21b8670404286f6f31d88c48018258955534b4ecafda215f7839142f2c68df16ae08813b431959b38ff966e9e6328275eb9a5
|
7
|
+
data.tar.gz: 63b435d0ceb68a101d581980c16076b82ae27b31318eac89f10ec8ec24176844bdb8f8d1b88d2dad82a367930df4da9a23dc3159d9f35c4c3aee1e562be8f138
|
@@ -58,8 +58,6 @@ var ForeignOfficeChannel = Class.extend({
|
|
58
58
|
|
59
59
|
var ForeignOfficeListener = Class.extend({
|
60
60
|
init: function($listener){
|
61
|
-
console.log("ForeignOfficeListener initializer:")
|
62
|
-
console.log($listener);
|
63
61
|
this.$listener = $listener;
|
64
62
|
this.endpoint = $listener.data('endpoint');
|
65
63
|
this.object_key = $listener.data('key');
|
@@ -119,7 +117,6 @@ var ForeignOfficeListener = Class.extend({
|
|
119
117
|
var this_listener = this;
|
120
118
|
$('[data-foreign-office-progress-indicator="' + this.channel + '"]').each(function(){
|
121
119
|
this_listener.foreign_office_progress_indicator = $(this).data('foreign-office-progress-indicator-object');
|
122
|
-
console.log($(this).data());
|
123
120
|
this_listener.foreign_office_flash = $(this).data('ajax-foreign-office-flash').notice;
|
124
121
|
})
|
125
122
|
},
|
@@ -133,7 +130,7 @@ var ForeignOfficeListener = Class.extend({
|
|
133
130
|
}
|
134
131
|
});
|
135
132
|
|
136
|
-
var
|
133
|
+
var ForeignOfficeNewListItems = ForeignOfficeListener.extend({
|
137
134
|
handleMessage: function(m){
|
138
135
|
var $listener = this.$listener;
|
139
136
|
$.get(m.object[this.object_key], function(data){
|
@@ -194,15 +191,12 @@ var AnyTimeManager = Class.extend({
|
|
194
191
|
var data_attribute = this['data_attribute'];
|
195
192
|
var base_class = this['base_class'];
|
196
193
|
var this_method = this['load_method'];
|
197
|
-
console.log(this_method);
|
198
194
|
$('[data-' + data_attribute + ']').each(function(){
|
199
195
|
if('instantiate' == this_method){
|
200
196
|
var declared_class = $(this).data(data_attribute);
|
201
197
|
var this_class = getSubClass(declared_class,base_class);
|
202
198
|
any_time_manager.instantiate($(this),this_class);
|
203
199
|
}else{
|
204
|
-
console.log('running...')
|
205
|
-
console.log(base_class);
|
206
200
|
any_time_manager.run($(this),base_class,this_method);
|
207
201
|
}
|
208
202
|
|
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.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-08-
|
12
|
+
date: 2014-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 4.1
|
20
|
+
version: 4.0.1
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 4.1
|
27
|
+
version: 4.0.1
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: request_store
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|