ymdp 1.3.3 → 1.3.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/authorization.js.coffee +5 -1
- data/lib/ymdp/javascripts/jquery/i18n.js +16 -3
- data/ymdp.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.4
|
@@ -20,12 +20,16 @@ window.Authorize =
|
|
20
20
|
Debug.log("end of Authorize.init")
|
21
21
|
|
22
22
|
assignUrl: (url) ->
|
23
|
+
Debug.log("assignUrl", url)
|
24
|
+
|
23
25
|
url = url || Authorize.url
|
24
26
|
url = url + "?" + $.param(Authorize.params)
|
25
27
|
|
28
|
+
$(".get_started").attr("href", url).attr("target", "_blank")
|
26
29
|
$("#get_started_1").attr("href", url).attr("target", "_blank")
|
27
30
|
$("#get_started_2").attr("href", url).attr("target", "_blank")
|
28
|
-
|
31
|
+
|
32
|
+
Debug.log("just assigned url")
|
29
33
|
|
30
34
|
authorize: ->
|
31
35
|
Debug.log("Authorize.authorize")
|
@@ -41,6 +41,8 @@ I18n.english = function() {
|
|
41
41
|
|
42
42
|
I18n.translate_element = function(element) {
|
43
43
|
element = $(element);
|
44
|
+
|
45
|
+
Debug.log("translating element #" + element.attr("id"));
|
44
46
|
|
45
47
|
var e;
|
46
48
|
I18n.u(element.attr("id"));
|
@@ -55,8 +57,13 @@ I18n.translate_element = function(element) {
|
|
55
57
|
// the returned translated string
|
56
58
|
//
|
57
59
|
I18n.translate = function(key, args) {
|
58
|
-
|
59
|
-
|
60
|
+
key = key || ""
|
61
|
+
try {
|
62
|
+
key = key.toUpperCase();
|
63
|
+
key = key.replace(" ", "_");
|
64
|
+
} catch(omg) {
|
65
|
+
Debug.error(omg);
|
66
|
+
}
|
60
67
|
|
61
68
|
if (args) {
|
62
69
|
var m;
|
@@ -70,6 +77,7 @@ I18n.translate = function(key, args) {
|
|
70
77
|
I18n.t = I18n.translate;
|
71
78
|
|
72
79
|
I18n.translate_phrase = function(key) {
|
80
|
+
Debug.log("I18n.translate phrase ", key, I18n.currentLanguage, I18n["keys"][I18n.currentLanguage][key]);
|
73
81
|
return I18n["keys"][I18n.currentLanguage][key];
|
74
82
|
};
|
75
83
|
|
@@ -117,13 +125,18 @@ I18n.updateByElement = function(id, key, args) {
|
|
117
125
|
// that translation
|
118
126
|
//
|
119
127
|
I18n.u = function(id, args) {
|
128
|
+
id = id || "";
|
120
129
|
if ($.isArray(id)) {
|
121
130
|
$(id).each(function(i, element) {
|
122
131
|
I18n.u(element);
|
123
132
|
});
|
124
133
|
} else {
|
125
134
|
var key;
|
126
|
-
|
135
|
+
try {
|
136
|
+
key = id.toUpperCase();
|
137
|
+
} catch(omg) {
|
138
|
+
Debug.error(omg);
|
139
|
+
}
|
127
140
|
I18n.update(id, key, args);
|
128
141
|
}
|
129
142
|
};
|
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.3.
|
8
|
+
s.version = "1.3.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-07-
|
12
|
+
s.date = "2012-07-16"
|
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: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 4
|
10
|
+
version: 1.3.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-07-
|
18
|
+
date: 2012-07-16 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|