incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmue...@apache.org
Subject [5/12] git commit: final changes for 1.6.0
Date Tue, 03 Jan 2012 18:44:10 GMT
final changes for 1.6.0


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/commit/dd2ef1c1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/tree/dd2ef1c1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/diff/dd2ef1c1

Branch: refs/heads/develop
Commit: dd2ef1c12c0c922d3f04617698acc7414ec65ab3
Parents: 50adc4a
Author: Patrick Mueller <pmuellr@yahoo.com>
Authored: Fri Oct 28 12:32:09 2011 -0400
Committer: Patrick Mueller <pmuellr@yahoo.com>
Committed: Fri Oct 28 13:41:13 2011 -0400

----------------------------------------------------------------------
 weinre.build/build.properties                      |    4 +-
 weinre.build/build.xml                             |    3 +-
 weinre.doc/ChangeLog.body.html                     |   60 +++++++++++++++
 .../weinre/target/ExceptionalCallbacks.coffee      |    8 +-
 weinre.web/modules/weinre/target/Target.coffee     |    2 +-
 weinre.web/modules/weinre/target/Timeline.coffee   |   35 ++++-----
 6 files changed, 85 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/dd2ef1c1/weinre.build/build.properties
----------------------------------------------------------------------
diff --git a/weinre.build/build.properties b/weinre.build/build.properties
index 1f3fdbf..66e4d91 100644
--- a/weinre.build/build.properties
+++ b/weinre.build/build.properties
@@ -1,14 +1,14 @@
 # ---
 # weinre is available under *either* the terms of the modified BSD license *or* the
 # MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
-# 
+#
 # Copyright (c) 2010, 2011 IBM Corporation
 # ---
 
 #-----------------------------------------------------------
 # weinre version
 #-----------------------------------------------------------
-WEINRE_VERSION: 1.5.0
+WEINRE_VERSION: 1.6.0
 
 #-----------------------------------------------------------
 # some common locations used in the ant scripts

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/dd2ef1c1/weinre.build/build.xml
----------------------------------------------------------------------
diff --git a/weinre.build/build.xml b/weinre.build/build.xml
index e445f61..7e72ae8 100644
--- a/weinre.build/build.xml
+++ b/weinre.build/build.xml
@@ -57,6 +57,7 @@
         <delete dir="${TMP}"/>
         <delete dir="${CACHED}"/>
         <delete dir="${VENDOR}"/>
+        <delete dir="node_modules"/>
     </target>
 
     <!-- ============================================================
@@ -528,7 +529,7 @@
         <mkdir  dir="${OUT}/files/weinre-src"/>
         <copy todir="${OUT}/files/weinre-src" file="${OUT}/build-info.txt" />
         <copy todir="${OUT}/files/weinre-src/weinre.application"> <fileset dir="../weinre.application"
excludes="**/bin/"/></copy>
-        <copy todir="${OUT}/files/weinre-src/weinre.build">       <fileset dir="../weinre.build"
      excludes="**/bin/, **/out/, **/cached/, **/vendor/, **/tmp/"/></copy>
+        <copy todir="${OUT}/files/weinre-src/weinre.build">       <fileset dir="../weinre.build"
      excludes="**/bin/, **/out/, **/cached/, **/vendor/, **/tmp/, **/node_modules/"/></copy>
         <copy todir="${OUT}/files/weinre-src/weinre.doc">         <fileset dir="../weinre.doc"
        excludes="**/bin/"/></copy>
         <copy todir="${OUT}/files/weinre-src/weinre.server">      <fileset dir="../weinre.server"
     excludes="**/bin/"/></copy>
         <copy todir="${OUT}/files/weinre-src/weinre.web">         <fileset dir="../weinre.web"
        excludes="**/bin/"/></copy>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/dd2ef1c1/weinre.doc/ChangeLog.body.html
----------------------------------------------------------------------
diff --git a/weinre.doc/ChangeLog.body.html b/weinre.doc/ChangeLog.body.html
index 5df5dce..a5f5318 100644
--- a/weinre.doc/ChangeLog.body.html
+++ b/weinre.doc/ChangeLog.body.html
@@ -11,6 +11,66 @@
 <p><a href="https://github.com/callback/callback-weinre/downloads">https://github.com/callback/callback-weinre/downloads</a>
 
 <!-- ======================================================================= -->
+<h2>2011/10/28 - version 1.6.0</h2>
+
+<ul>
+
+<li><p>The Network panel has been added to weinre, which will display information
+for any XHRs that you issue.
+
+<li><p>Error handling for some built-in callbacks has been added.  The support
+is very similar to what's provided in the
+<a href="https://github.com/pmuellr/log-callback-error">log-callback-error project</a>,
+though the implementation is different.
+
+<li><p>The element highlighter has been modified to show brighter colors.
+The colors also now more closely match the Web Inspector colors.
+Currently, there are some artifacts in the corners in some cases, but it's not
+clear to me this is a huge problem - in fact, maybe it's a feachur.  ~shrug~
+As part of this clean up, I've made the element highlighter pluggable.  If you
+think you can do better, it should be pretty straight-forward to code up a
+new one.  Bring it on.
+
+<li><p>The JavaScript code for weinre has been converted from the "scoop" DSL
+format to CoffeeScript.  You no longer have a valid excuse for not hacking the
+code.
+
+<li><p>The "Test Drive" page of the doc has been removed and replaced with
+the new "User Interface" page.
+
+<li><p>weinre now adds an "error" listener to window.  For JavaScript engines
+that support "window onerror", you will now see a message logged to the console
+when an error occurs anywhere in your JavaScript code.  Unfortunately, just
+as support for "window onerror" is becoming available in JavaScript, the browsers
+are neutering it's support.  Depending on your browser, you may or may not
+see these errors reported, and even if you do, they may not give you <b>any</b>
+useful information.  Thanks to Ryan Seddon for supplying the following
+backgrounder links for your enjoyment:
+
+<ul>
+<li><a href="http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-September/033252.html">http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-September/033252.html</a>
+<li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=568564">https://bugzilla.mozilla.org/show_bug.cgi?id=568564</a>
+<li><a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=14177">http://www.w3.org/Bugs/Public/show_bug.cgi?id=14177</a>
+<li><a href="https://bugs.webkit.org/show_bug.cgi?id=70574">https://bugs.webkit.org/show_bug.cgi?id=70574</a>
+</ul>
+
+</ul>
+
+<p>issues resolved:
+<ul>
+<li> <a href="https://issues.apache.org/jira/browse/CB-1">   issue apache/callback
issue 1</a> - update the doc
+<li> <a href="https://github.com/phonegap/weinre/issues/41"> issue phonegap/weinre
41</a> - add support for XHRs on Network panel
+<li> <a href="https://github.com/phonegap/weinre/issues/40"> issue phonegap/weinre
40</a> - clean up spurious messages in the server console
+<li> <a href="https://github.com/phonegap/weinre/issues/38"> issue phonegap/weinre
38</a> - cleanup some of the exception handler bits
+<li> <a href="https://github.com/phonegap/weinre/issues/37"> issue phonegap/weinre
37</a> - Timeout function does not pass arguments
+<li> <a href="https://github.com/phonegap/weinre/issues/35"> issue phonegap/weinre
35</a> - convert JavaScript in weinre from scoop to CoffeeScript
+<li> <a href="https://github.com/phonegap/weinre/issues/20"> issue phonegap/weinre
20</a> - add support for window.onerror
+<li> <a href="https://github.com/phonegap/weinre/issues/19"> issue phonegap/weinre
19</a> - 404 error on /client/index.html in Mac app (incomplete build?)
+<li> <a href="https://github.com/phonegap/weinre/issues/11"> issue phonegap/weinre
11</a> - provide better error handling - by hook or by crook
+<li> <a href="https://github.com/phonegap/weinre/issues/10"> issue phonegap/weinre
10</a> - element highlighter code in the target is just awful
+</ul>
+
+<!-- ======================================================================= -->
 <h2>2011/07/22 - version 1.5.0</h2>
 
 <ul>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/dd2ef1c1/weinre.web/modules/weinre/target/ExceptionalCallbacks.coffee
----------------------------------------------------------------------
diff --git a/weinre.web/modules/weinre/target/ExceptionalCallbacks.coffee b/weinre.web/modules/weinre/target/ExceptionalCallbacks.coffee
index 8d88e5d..0ab94ee 100644
--- a/weinre.web/modules/weinre/target/ExceptionalCallbacks.coffee
+++ b/weinre.web/modules/weinre/target/ExceptionalCallbacks.coffee
@@ -52,12 +52,12 @@ instrumentedCallback = (code, callSite) ->
         try
             return code.apply(this, arguments)
         catch e
-            console.log "exception in callback: #{e}"
-            console.log "  callsite: #{callSite}"
+            console.error "exception in callback: #{e}"
+            console.error "  callsite: #{callSite}"
 
             if e.stack
-                console.log "stack at time of exception:"
-                console.log e.stack
+                console.error "stack at time of exception:"
+                console.error e.stack
 
             throw e
 

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/dd2ef1c1/weinre.web/modules/weinre/target/Target.coffee
----------------------------------------------------------------------
diff --git a/weinre.web/modules/weinre/target/Target.coffee b/weinre.web/modules/weinre/target/Target.coffee
index df91a94..2a843e0 100644
--- a/weinre.web/modules/weinre/target/Target.coffee
+++ b/weinre.web/modules/weinre/target/Target.coffee
@@ -164,7 +164,7 @@ module.exports = class Target
         lineno   = event.lineno   or "[unknown lineno]"
         message  = event.message  or "[unknown message]"
 
-        console.log "error occurred: #{filename}:#{lineno}: #{message}"
+        console.error "error occurred: #{filename}:#{lineno}: #{message}"
 
     #---------------------------------------------------------------------------
     cb_webSocketOpened: () ->

http://git-wip-us.apache.org/repos/asf/incubator-cordova-weinre/blob/dd2ef1c1/weinre.web/modules/weinre/target/Timeline.coffee
----------------------------------------------------------------------
diff --git a/weinre.web/modules/weinre/target/Timeline.coffee b/weinre.web/modules/weinre/target/Timeline.coffee
index b44ead3..f50922c 100644
--- a/weinre.web/modules/weinre/target/Timeline.coffee
+++ b/weinre.web/modules/weinre/target/Timeline.coffee
@@ -138,33 +138,30 @@ module.exports = class Timeline
     @addRecord_XHRReadyStateChange: (method, url, id, xhr) ->
         return unless Timeline.isRunning()
 
+        record = {}
+        record.startTime = Date.now()
+        record.category  = name: "loading"
+
         if xhr.readyState == XMLHttpRequest.OPENED
-            record =
-                type:      TimelineRecordType.ResourceSendRequest
-                category:  name: "loading"
-                startTime: Date.now()
-                data:
-                    identifier:    id
-                    url:           url
-                    requestMethod: method
+            record.type = TimelineRecordType.ResourceSendRequest
+            record.data =
+                identifier:    id
+                url:           url
+                requestMethod: method
 
         else if xhr.readyState == XMLHttpRequest.DONE
-            record =
-                type: TimelineRecordType.ResourceReceiveResponse
-                category: name: "loading"
-                startTime: Date.now()
-                data:
-                    identifier:            id
-                    statusCode:            xhr.status
-                    mimeType:              xhr.getResponseHeader("Content-Type")
-                    expectedContentLength: xhr.getResponseHeader("Content-Length")
-                    url:                   url
+            record.type = TimelineRecordType.ResourceReceiveResponse
+            record.data =
+                identifier:            id
+                statusCode:            xhr.status
+                mimeType:              xhr.getResponseHeader("Content-Type")
+                expectedContentLength: xhr.getResponseHeader("Content-Length")
+                url:                   url
         else
             return
 
         Weinre.wi.TimelineNotify.addRecordToTimeline record
 
-
     #---------------------------------------------------------------------------
     @installGlobalListeners: ->
         if applicationCache


Mime
View raw message