ymdp 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm ree@gem_ymdp
1
+ rvm ree-1.8.7-2011.03@natural_time
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
@@ -55,23 +55,16 @@ I18n.translate_element = function(element) {
55
55
  // the returned translated string
56
56
  //
57
57
  I18n.translate = function(key, args) {
58
- Debug.log("I18n.translate", key, args);
59
-
60
58
  key = key.toUpperCase();
61
59
  key = key.replace(" ", "_");
62
-
63
- Debug.log("key", key);
64
60
 
65
61
  if (args) {
66
62
  var m;
67
63
  m = I18n.translate_sentence(key, args);
68
- Debug.log("args existed");
69
64
  } else
70
65
  {
71
66
  m = I18n.translate_phrase(key);
72
- Debug.log("no args");
73
67
  }
74
- Debug.log("Here is m", m);
75
68
  return m;
76
69
  };
77
70
  I18n.t = I18n.translate;
@@ -65,7 +65,7 @@ window.User =
65
65
  #
66
66
  confirm: ->
67
67
  Debug.log("User.confirm")
68
- OIB.get "ymdp/signin",
68
+ OIB.get "ymdp/signin",
69
69
  "ymail_guid": YMDP.guid
70
70
  , User.confirmation
71
71
 
@@ -74,7 +74,7 @@ window.User =
74
74
  confirmation: (response) ->
75
75
  Debug.log("inside ymdp/signin callback", response)
76
76
 
77
- if response.ymail_wssid
77
+ if response.ymail_wssid
78
78
  Debug.log("YMDP.response wasn't false", response.ymail_wssid)
79
79
  User.storeYmailWssid(response.ymail_wssid)
80
80
 
@@ -89,11 +89,11 @@ window.User =
89
89
 
90
90
  # Store ymail_wssid in permanent store.
91
91
  #
92
- storeYmailWssid: (ymail_wssid) ->
92
+ storeYmailWssid: (ymail_wssid) ->
93
93
  raw_wssid = ymail_wssid || ""
94
94
  sliced_wssid = raw_wssid.slice(0, 255)
95
95
 
96
- data =
96
+ data =
97
97
  "ymail_wssid": sliced_wssid
98
98
 
99
99
  Debug.log("About to call Data.store", data)
@@ -25,7 +25,9 @@ module YMDP
25
25
  @translations ||= {}
26
26
 
27
27
  Dir["./config/locales/**/*.yml"].each do |file|
28
- @translations.merge!(YAML.load_file(file))
28
+ @translations.merge!(YAML.load_file(file)) do |key, old, new|
29
+ old.merge new
30
+ end
29
31
  end
30
32
 
31
33
  @translations
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ymdp"
8
- s.version = "1.3.1"
8
+ s.version = "1.3.2"
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-06-01"
12
+ s.date = "2012-07-11"
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 1
10
- version: 1.3.1
9
+ - 2
10
+ version: 1.3.2
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-06-01 00:00:00 Z
18
+ date: 2012-07-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime