lebowski 0.3.2 → 0.3.3.pre.0

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/History.md CHANGED
@@ -1,3 +1,7 @@
1
+ # lebowski 0.3.3.pre.0 March 13, 2011
2
+
3
+ * Initial Fixes to allow Lebowski to work with IE 7/8. Updates made to user-extensions.js file
4
+
1
5
  # lebowski 0.3.2 January 26, 2011
2
6
 
3
7
  * Fixed picker pane proxy's click_off method. parent modal pane will now always be clicked and not get blocked by the picker pane.
@@ -7,7 +7,7 @@ module Lebowski
7
7
  module Version
8
8
  MAJOR = 0
9
9
  MINOR = 3
10
- PATCH = 2
10
+ PATCH = "3.pre.0"
11
11
  BUILD = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -116,11 +116,15 @@ ScExt.getScrollableParentView = function(view) {
116
116
  ScExt.getScObjectClassNames = function(obj) {
117
117
  if (!ScExt.isScObject(obj)) return [];
118
118
 
119
+ // Make sure that SC has had a chance to find all
120
+ // the object class names
121
+ $SC._object_className(obj.constructor);
122
+
119
123
  var classNames = [];
120
124
  var superclass = obj.constructor;
121
125
  while (superclass) {
122
- var sc = superclass.toString();
123
- if (classNames.indexOf(sc) < 0) {
126
+ var sc = superclass._object_className;
127
+ if (sc && classNames.indexOf(sc) < 0) {
124
128
  classNames.push(sc);
125
129
  }
126
130
  superclass = superclass.superclass;
@@ -275,7 +279,7 @@ ScExt.PathParser = {
275
279
 
276
280
  for (var i = 1; i < parts.length; i++) {
277
281
  if (this._isArrayIndex(parts[i])) {
278
- if (typeof objPathChain[i - 1] === "function") {
282
+ if ($SC.typeOf(objPathChain[i - 1]) === $SC.T_FUNCTION) {
279
283
  // Last part is a function, therefore invoke the function with the index
280
284
  var target = objPathChain[i - 2];
281
285
  var func = objPathChain[i - 1];
@@ -286,10 +290,10 @@ ScExt.PathParser = {
286
290
  current_obj = this._getObjectFromArray(array, parts[i]);
287
291
  }
288
292
  } else {
289
- if (current_obj.getPath && typeof current_obj.getPath === "function") {
293
+ if ($SC.typeOf(current_obj.getPath) === $SC.T_FUNCTION) {
290
294
  // Object is a SC object. Use the get method
291
295
  current_obj = current_obj.getPath(parts[i]);
292
- } else if (current_obj.get && typeof current_obj.get === "function") {
296
+ } else if ($SC.typeOf(current_obj.get) === $SC.T_FUNCTION) {
293
297
  current_obj = current_obj.get(parts[i]);
294
298
  } else {
295
299
  // Object is just a plain old JS object
@@ -377,7 +381,7 @@ ScExt.MouseEventSimulation = {
377
381
  clientX = coords.x + x,
378
382
  clientY = coords.y + y;
379
383
 
380
- event = $SC.Event.simulateEvent(element, mouseEvent, {
384
+ var event = $SC.Event.simulateEvent(element, mouseEvent, {
381
385
  screenX: 0, // assume 0 is fine
382
386
  screenY: 0, // assume 0 is fine
383
387
  clientX: clientX,
@@ -482,7 +486,7 @@ ScExt.MouseWheelSimulation = {
482
486
 
483
487
  simulateEvent: function(locator, deltaX, deltaY, delta) {
484
488
  var element = selenium.browserbot.findElement(locator);
485
- event = $SC.Event.simulateEvent(element, 'mousewheel', {
489
+ var event = $SC.Event.simulateEvent(element, 'mousewheel', {
486
490
  wheelDelta: !!delta ? delta : 0,
487
491
  wheelDeltaX: !!deltaX ? deltaX : 0,
488
492
  wheelDeltaY: !!deltaY ? deltaY : 0,
@@ -556,7 +560,7 @@ ScExt.KeyEventSimulation = {
556
560
  if (!keyCode && !charCode) return;
557
561
 
558
562
  var element = selenium.browserbot.findElement(locator);
559
- event = $SC.Event.simulateEvent(element, keyEvent, {
563
+ var event = $SC.Event.simulateEvent(element, keyEvent, {
560
564
  which: $SC.none(keyCode) ? charCode : keyCode,
561
565
  charCode: charCode || 0,
562
566
  keyCode: keyCode || 0,
metadata CHANGED
@@ -1,12 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lebowski
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ prerelease: true
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ - pre
10
+ - 0
11
+ version: 0.3.3.pre.0
10
12
  platform: ruby
11
13
  authors:
12
14
  - Michael Cohen
@@ -14,7 +16,7 @@ autorequire:
14
16
  bindir: bin
15
17
  cert_chain: []
16
18
 
17
- date: 2011-01-26 00:00:00 -05:00
19
+ date: 2011-03-12 00:00:00 -08:00
18
20
  default_executable:
19
21
  dependencies:
20
22
  - !ruby/object:Gem::Dependency
@@ -291,7 +293,7 @@ licenses:
291
293
  post_install_message: |
292
294
  **************************************************
293
295
 
294
- Thank you for installing lebowski-0.3.2
296
+ Thank you for installing lebowski-0.3.3.pre.0
295
297
 
296
298
  Please be sure to read the README.md and History.md
297
299
  for useful information on how to use this framework
@@ -314,18 +316,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
314
316
  requirements:
315
317
  - - ">="
316
318
  - !ruby/object:Gem::Version
317
- hash: -1279369443089689073
319
+ hash: 1632185460177014276
318
320
  segments:
319
321
  - 0
320
322
  version: "0"
321
323
  required_rubygems_version: !ruby/object:Gem::Requirement
322
324
  none: false
323
325
  requirements:
324
- - - ">="
326
+ - - ">"
325
327
  - !ruby/object:Gem::Version
326
328
  segments:
327
- - 0
328
- version: "0"
329
+ - 1
330
+ - 3
331
+ - 1
332
+ version: 1.3.1
329
333
  requirements: []
330
334
 
331
335
  rubyforge_project: