ymdp 0.7.6 → 0.7.7

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 CHANGED
@@ -1 +1 @@
1
- 0.7.6
1
+ 0.7.7
@@ -28,7 +28,7 @@ OIB = {
28
28
  var success;
29
29
 
30
30
  success = function(response) {
31
- response = YAHOO.lang.JSON.parse(response.data);
31
+ response = JSON.parse(response.data);
32
32
  if (response.error) {
33
33
  if (error_function) {
34
34
  error_function(response);
@@ -113,7 +113,7 @@ OIB = {
113
113
  if (debug) {
114
114
  Debug.log("inside OIB.request: ", {
115
115
  "oib_path": oib_path,
116
- "params": YAHOO.lang.JSON.stringify(params)
116
+ "params": JSON.stringify(params)
117
117
  });
118
118
  }
119
119
 
@@ -151,7 +151,7 @@ OIB = {
151
151
  debug = !params["_hide_debug"];
152
152
 
153
153
  if (debug) {
154
- message = "OIB.error: " + YAHOO.lang.JSON.stringify(response) + " calling url: " + url + "?" + $.param(params);
154
+ message = "OIB.error: " + JSON.stringify(response) + " calling url: " + url + "?" + $.param(params);
155
155
  Debug.error(message);
156
156
  }
157
157
  },
@@ -66,7 +66,7 @@ YMDP.showError = function(options) {
66
66
  params = {};
67
67
  params["description"] = options["description"];
68
68
  params["method_name"] = options["method"];
69
- params["error"] = YAHOO.lang.JSON.stringify(options["error"]);
69
+ params["error"] = JSON.stringify(options["error"]);
70
70
  params["page"] = View.name;
71
71
 
72
72
  Reporter.error(YMDP.guid, params);
@@ -66,7 +66,7 @@ Debug = {
66
66
  } else if (obj.inspect) {
67
67
  return(obj.inspect());
68
68
  } else {
69
- return(YAHOO.lang.JSON.stringify(obj));
69
+ return(JSON.stringify(obj));
70
70
  }
71
71
  },
72
72
 
@@ -84,16 +84,20 @@ YMDP.Init.after = function() {
84
84
 
85
85
  // Execute the before, startup and after methods. Do not overwrite. (Change YMDP.Init.startup to create a custom initializer.)
86
86
  YMDP.init = function() {
87
- Debug.log("OIB.init for view " + View.name, "<%= @message %>");
88
- Logger.init();
89
- Tags.init();
90
- YMDP.Init.browser();
91
- YMDP.Init.resources();
92
- I18n.addLanguageToBody();
93
- I18n.translateLoading();
94
- I18n.translateError();
95
- YMDP.Init.before();
96
- YMDP.Init.startup();
87
+ YUI().use('json', function (Y) {
88
+ window.JSON = Y.JSON;
89
+
90
+ Debug.log("OIB.init for view " + View.name, "<%= @message %>");
91
+ Logger.init();
92
+ Tags.init();
93
+ YMDP.Init.browser();
94
+ YMDP.Init.resources();
95
+ I18n.addLanguageToBody();
96
+ I18n.translateLoading();
97
+ I18n.translateError();
98
+ YMDP.Init.before();
99
+ YMDP.Init.startup();
100
+ });
97
101
  };
98
102
 
99
103
  YMDP.Init.browser = function() {
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ymdp}
8
- s.version = "0.7.6"
8
+ s.version = "0.7.7"
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"]
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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 6
10
- version: 0.7.6
9
+ - 7
10
+ version: 0.7.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Isaac Priestley