ymdp 1.4.3 → 1.4.4
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.
- data/VERSION +1 -1
- data/lib/ymdp/javascripts/jquery/ajax.js.coffee +1 -0
- data/lib/ymdp/javascripts/jquery/authorization.js.coffee +1 -1
- data/lib/ymdp/javascripts/jquery/i18n.js +2 -2
- data/lib/ymdp/javascripts/jquery/init.js.coffee +3 -2
- data/lib/ymdp/javascripts/jquery/logger.js.coffee +7 -5
- data/lib/ymdp/javascripts/jquery/user.js.coffee +2 -2
- data/ymdp.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.4
|
@@ -47,6 +47,7 @@ window.OIB =
|
|
47
47
|
ajax: (url, method, params, success_function, error_function) ->
|
48
48
|
params = params || {}
|
49
49
|
params["application"] = View.application
|
50
|
+
Debug.log("about to put ymail_guid into params", YMDP.guid)
|
50
51
|
params["ymail_guid"] = YMDP.guid if YMDP.guid
|
51
52
|
|
52
53
|
debug = !params["_hide_debug"]
|
@@ -42,7 +42,7 @@ I18n.english = function() {
|
|
42
42
|
I18n.translate_element = function(element) {
|
43
43
|
element = $(element);
|
44
44
|
|
45
|
-
Debug.log("translating element #" + element.attr("id"));
|
45
|
+
// Debug.log("translating element #" + element.attr("id"));
|
46
46
|
|
47
47
|
var e;
|
48
48
|
I18n.u(element.attr("id"));
|
@@ -77,7 +77,7 @@ I18n.translate = function(key, args) {
|
|
77
77
|
I18n.t = I18n.translate;
|
78
78
|
|
79
79
|
I18n.translate_phrase = function(key) {
|
80
|
-
Debug.log("I18n.translate phrase ", key, I18n.currentLanguage, I18n["keys"][I18n.currentLanguage][key]);
|
80
|
+
// Debug.log("I18n.translate phrase ", key, I18n.currentLanguage, I18n["keys"][I18n.currentLanguage][key]);
|
81
81
|
return I18n["keys"][I18n.currentLanguage][key];
|
82
82
|
};
|
83
83
|
|
@@ -42,12 +42,13 @@ YMDP.Init.startup = ->
|
|
42
42
|
User.getGuid (guid) ->
|
43
43
|
Reporter.reportCurrentView(guid)
|
44
44
|
callback = ->
|
45
|
-
try
|
45
|
+
try
|
46
46
|
YMDP.Init.local()
|
47
47
|
catch omg
|
48
48
|
Debug.error("Error in YMDP.Init.local", omg)
|
49
49
|
YMDP.showError()
|
50
50
|
|
51
|
+
Debug.log("YMDP.Init.startup YMDP.guid: #{YMDP.guid}")
|
51
52
|
User.getState(callback, callback)
|
52
53
|
|
53
54
|
|
@@ -92,7 +93,7 @@ YMDP.setJSON = ->
|
|
92
93
|
|
93
94
|
# Execute the before, startup and after methods. Do not overwrite. (Change YMDP.Init.startup to create a custom initializer.)
|
94
95
|
YMDP.init = ->
|
95
|
-
try
|
96
|
+
try
|
96
97
|
YMDP.setJSON() # must set JSON first because Debug uses it
|
97
98
|
Debug.log("OIB.init for view " + View.name, "<%= @message %>")
|
98
99
|
Logger.init()
|
@@ -1,18 +1,20 @@
|
|
1
|
-
window.Logger =
|
1
|
+
window.Logger =
|
2
2
|
on: false
|
3
3
|
|
4
4
|
init: ->
|
5
5
|
OIB.get "ymdp/state", {}, (response) ->
|
6
|
-
Logger.on = response.observe
|
6
|
+
Logger.on = response.observe
|
7
|
+
, () ->
|
8
|
+
Debug.log("Got error")
|
7
9
|
|
8
10
|
observe: (message) ->
|
9
11
|
if this.on
|
10
|
-
this.log(message)
|
12
|
+
this.log(message)
|
11
13
|
|
12
14
|
log: (message) ->
|
13
15
|
# console.log("LOGGING " + message);
|
14
16
|
|
15
|
-
OIB.post "ymdp/logs",
|
17
|
+
OIB.post "ymdp/logs",
|
16
18
|
"_hide_debug": true,
|
17
19
|
"log": message
|
18
|
-
, ->
|
20
|
+
, ->
|
@@ -22,7 +22,7 @@ window.User =
|
|
22
22
|
|
23
23
|
setVariables: (response) ->
|
24
24
|
YMDP.response = response
|
25
|
-
try
|
25
|
+
try
|
26
26
|
YMDP.since_date = formatUnixDate(YMDP.response.since_date.s)
|
27
27
|
catch omg
|
28
28
|
YMDP.since_date = 1294869484
|
@@ -43,7 +43,7 @@ window.User =
|
|
43
43
|
verify: (success_function, error_function) ->
|
44
44
|
Debug.log("User.verify")
|
45
45
|
|
46
|
-
params =
|
46
|
+
params =
|
47
47
|
ymail_guid: YMDP.guid,
|
48
48
|
ymail_wssid: YMDP.ymail_wssid
|
49
49
|
success = (response) ->
|
data/ymdp.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "ymdp"
|
8
|
-
s.version = "1.4.
|
8
|
+
s.version = "1.4.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Isaac Priestley"]
|
12
|
-
s.date = "2012-08-
|
12
|
+
s.date = "2012-08-03"
|
13
13
|
s.description = "Framework for developing applications in the Yahoo! Mail Development Platform."
|
14
14
|
s.email = "progressions@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ymdp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 4
|
10
|
+
version: 1.4.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Isaac Priestley
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-08-
|
18
|
+
date: 2012-08-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|