You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/04/23 20:57:14 UTC

[1/9] git commit: CB-4908 Long.valueOf(0) instead of new Long(0)

Repository: cordova-plugin-globalization
Updated Branches:
  refs/heads/master 328c296bd -> 700a8e3e5


CB-4908 Long.valueOf(0) instead of new Long(0)

Use Long.valueOf(0) instead of new Long(0). Also do the same for new
Integer(0).

Reason:
http://stackoverflow.com/a/13145360/1412800


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/19d81868
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/19d81868
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/19d81868

Branch: refs/heads/master
Commit: 19d81868b90ba187112b395b9fb64c7a6798913b
Parents: 7160a1f
Author: Bas Bosman <sb...@mindef.nl>
Authored: Sun Jan 26 22:28:53 2014 +0100
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Feb 10 15:23:42 2014 -0500

----------------------------------------------------------------------
 src/android/Globalization.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/19d81868/src/android/Globalization.java
----------------------------------------------------------------------
diff --git a/src/android/Globalization.java b/src/android/Globalization.java
index 94dcda8..588fe4a 100644
--- a/src/android/Globalization.java
+++ b/src/android/Globalization.java
@@ -226,7 +226,7 @@ public class Globalization extends CordovaPlugin  {
             obj.put("hour", time.hour);
             obj.put("minute", time.minute);
             obj.put("second", time.second);
-            obj.put("millisecond", new Long(0));
+            obj.put("millisecond", Long.valueOf(0));
             return obj;
         }catch(Exception ge){
             throw new GlobalizationError(GlobalizationError.PARSING_ERROR);
@@ -496,7 +496,7 @@ public class Globalization extends CordovaPlugin  {
             obj.put("pattern", fmt.toPattern());
             obj.put("symbol", symbol);
             obj.put("fraction", fmt.getMinimumFractionDigits());
-            obj.put("rounding", new Integer(0));
+            obj.put("rounding", Integer.valueOf(0));
             obj.put("positive", fmt.getPositivePrefix());
             obj.put("negative", fmt.getNegativePrefix());
             obj.put("decimal", String.valueOf(fmt.getDecimalFormatSymbols().getDecimalSeparator()));
@@ -541,7 +541,7 @@ public class Globalization extends CordovaPlugin  {
             obj.put("pattern", fmt.toPattern());
             obj.put("code", currency.getCurrencyCode());
             obj.put("fraction", fmt.getMinimumFractionDigits());
-            obj.put("rounding", new Integer(0));
+            obj.put("rounding", Integer.valueOf(0));
             obj.put("decimal", String.valueOf(fmt.getDecimalFormatSymbols().getDecimalSeparator()));
             obj.put("grouping", String.valueOf(fmt.getDecimalFormatSymbols().getGroupingSeparator()));
 


[2/9] git commit: CB-5980 Updated version and RELEASENOTES.md for release 0.2.6

Posted by ia...@apache.org.
CB-5980 Updated version and RELEASENOTES.md for release 0.2.6


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/9f0b7a94
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/9f0b7a94
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/9f0b7a94

Branch: refs/heads/master
Commit: 9f0b7a9477370b4eed61eea6ec895f63c9df5ce5
Parents: 19d8186
Author: Steven Gill <st...@gmail.com>
Authored: Wed Feb 5 17:53:59 2014 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Mon Feb 10 15:22:41 2014 -0800

----------------------------------------------------------------------
 RELEASENOTES.md | 3 +++
 plugin.xml      | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/9f0b7a94/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index 6d72b3f..311e1e4 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -37,3 +37,6 @@
 
 ### 0.2.5 (Jan 02, 2014)
 * CB-5658 Add doc/index.md for Globalization plugin
+
+### 0.2.6 (Feb 05, 2014)
+* Add Tizen plugin support

http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/9f0b7a94/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 6599007..27b7045 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
            id="org.apache.cordova.globalization"
-      version="0.2.6-dev">
+      version="0.2.6">
     <name>Globalization</name>
     <description>Cordova Globalization Plugin</description>
     <license>Apache 2.0</license>


[4/9] git commit: Add NOTICE file

Posted by ia...@apache.org.
Add NOTICE file


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/6f3cbab3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/6f3cbab3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/6f3cbab3

Branch: refs/heads/master
Commit: 6f3cbab37c1a5352f91dfba26821c50150673ada
Parents: cd8d284
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Feb 27 15:36:31 2014 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Feb 27 15:36:31 2014 -0500

----------------------------------------------------------------------
 NOTICE | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/6f3cbab3/NOTICE
----------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..8ec56a5
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,5 @@
+Apache Cordova
+Copyright 2012 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).


[7/9] git commit: CB-6465: Add license headers to Tizen code

Posted by ia...@apache.org.
CB-6465: Add license headers to Tizen code


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/09e39b87
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/09e39b87
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/09e39b87

Branch: refs/heads/master
Commit: 09e39b87a48be8e8bb1e4b271a87d740d2008edc
Parents: 14f3058
Author: Ian Clelland <ic...@chromium.org>
Authored: Thu Apr 17 09:50:19 2014 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Thu Apr 17 09:50:19 2014 -0400

----------------------------------------------------------------------
 src/tizen/GlobalizationProxy.js | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/09e39b87/src/tizen/GlobalizationProxy.js
----------------------------------------------------------------------
diff --git a/src/tizen/GlobalizationProxy.js b/src/tizen/GlobalizationProxy.js
index 4c4f61e..6f8c84e 100644
--- a/src/tizen/GlobalizationProxy.js
+++ b/src/tizen/GlobalizationProxy.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var argscheck = require('cordova/argscheck'),
     GlobalizationError = require('org.apache.cordova.globalization.GlobalizationError');
 


[3/9] git commit: CB-5980 Incremented plugin version on dev branch.

Posted by ia...@apache.org.
CB-5980 Incremented plugin version on dev branch.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/cd8d2845
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/cd8d2845
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/cd8d2845

Branch: refs/heads/master
Commit: cd8d2845b08b319075017a67bc2769c4f2dc54b7
Parents: 9f0b7a9
Author: Steven Gill <st...@gmail.com>
Authored: Wed Feb 5 18:13:30 2014 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Mon Feb 10 15:22:42 2014 -0800

----------------------------------------------------------------------
 plugin.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/cd8d2845/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 27b7045..9fc4192 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
            id="org.apache.cordova.globalization"
-      version="0.2.6">
+      version="0.2.7-dev">
     <name>Globalization</name>
     <description>Cordova Globalization Plugin</description>
     <license>Apache 2.0</license>


[5/9] git commit: CB-6212 iOS: fix warnings compiled under arm64 64-bit

Posted by ia...@apache.org.
CB-6212 iOS: fix warnings compiled under arm64 64-bit


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/d1b5e5bd
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/d1b5e5bd
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/d1b5e5bd

Branch: refs/heads/master
Commit: d1b5e5bdebc954e149feecd745bdf9e4d5e2a668
Parents: 6f3cbab
Author: James Jong <wj...@gmail.com>
Authored: Thu Mar 13 10:01:21 2014 -0400
Committer: James Jong <wj...@gmail.com>
Committed: Thu Mar 13 10:01:21 2014 -0400

----------------------------------------------------------------------
 src/ios/CDVGlobalization.m | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/d1b5e5bd/src/ios/CDVGlobalization.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVGlobalization.m b/src/ios/CDVGlobalization.m
index abeb529..8a07c8e 100644
--- a/src/ios/CDVGlobalization.m
+++ b/src/ios/CDVGlobalization.m
@@ -276,13 +276,13 @@
     // put the various elements of the date and time into a dictionary
     if (comps != nil) {
         NSArray* keys = [NSArray arrayWithObjects:@"year", @"month", @"day", @"hour", @"minute", @"second", @"millisecond", nil];
-        NSArray* values = [NSArray arrayWithObjects:[NSNumber numberWithInt:[comps year]],
-            [NSNumber numberWithInt:[comps month] - 1],
-            [NSNumber numberWithInt:[comps day]],
-            [NSNumber numberWithInt:[comps hour]],
-            [NSNumber numberWithInt:[comps minute]],
-            [NSNumber numberWithInt:[comps second]],
-            [NSNumber numberWithInt:0],                /* iOS does not provide milliseconds */
+        NSArray* values = [NSArray arrayWithObjects:[NSNumber numberWithInteger:[comps year]],
+            [NSNumber numberWithInteger:[comps month] - 1],
+            [NSNumber numberWithInteger:[comps day]],
+            [NSNumber numberWithInteger:[comps hour]],
+            [NSNumber numberWithInteger:[comps minute]],
+            [NSNumber numberWithInteger:[comps second]],
+            [NSNumber numberWithInteger:0],                /* iOS does not provide milliseconds */
             nil];
 
         NSDictionary* dictionary = [NSDictionary dictionaryWithObjects:values forKeys:keys];
@@ -535,7 +535,7 @@
 
     NSCalendar* calendar = [NSCalendar autoupdatingCurrentCalendar];
 
-    NSNumber* day = [NSNumber numberWithInt:[calendar firstWeekday]];
+    NSNumber* day = [NSNumber numberWithInteger:[calendar firstWeekday]];
 
     if (day) {
         NSDictionary* dictionary = [NSDictionary dictionaryWithObject:day forKey:@"value"];


[6/9] git commit: CB-6460: Update license headers

Posted by ia...@apache.org.
CB-6460: Update license headers


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/14f3058a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/14f3058a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/14f3058a

Branch: refs/heads/master
Commit: 14f3058a237bd3d1b6b9bf950ffa59a390e2c066
Parents: d1b5e5b
Author: Ian Clelland <ic...@chromium.org>
Authored: Wed Apr 16 16:18:26 2014 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Wed Apr 16 16:18:26 2014 -0400

----------------------------------------------------------------------
 plugin.xml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/14f3058a/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 9fc4192..797b198 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -1,4 +1,22 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
            id="org.apache.cordova.globalization"


[9/9] git commit: Merge tag 'r0.2.7'

Posted by ia...@apache.org.
Merge tag 'r0.2.7'

Conflicts:
	RELEASENOTES.md
	plugin.xml


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/700a8e3e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/700a8e3e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/700a8e3e

Branch: refs/heads/master
Commit: 700a8e3e5ee370414b821ead6adf82f46148e898
Parents: 328c296 e61df29
Author: Ian Clelland <ic...@chromium.org>
Authored: Wed Apr 23 14:44:44 2014 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Wed Apr 23 14:44:44 2014 -0400

----------------------------------------------------------------------
 NOTICE                          |  5 +++++
 RELEASENOTES.md                 |  7 +++++++
 plugin.xml                      | 20 +++++++++++++++++++-
 src/android/Globalization.java  |  6 +++---
 src/ios/CDVGlobalization.m      | 16 ++++++++--------
 src/tizen/GlobalizationProxy.js | 21 +++++++++++++++++++++
 6 files changed, 63 insertions(+), 12 deletions(-)
----------------------------------------------------------------------



[8/9] git commit: CB-6452 Updated version and RELEASENOTES.md for release 0.2.7

Posted by ia...@apache.org.
CB-6452 Updated version and RELEASENOTES.md for release 0.2.7


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/e61df29a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/e61df29a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/e61df29a

Branch: refs/heads/master
Commit: e61df29abdb94cfa4020d208359f4aa32f585c72
Parents: 09e39b8
Author: Ian Clelland <ic...@chromium.org>
Authored: Thu Apr 17 10:53:20 2014 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Thu Apr 17 10:53:20 2014 -0400

----------------------------------------------------------------------
 RELEASENOTES.md | 7 +++++++
 plugin.xml      | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/e61df29a/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index 311e1e4..07a092c 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -40,3 +40,10 @@
 
 ### 0.2.6 (Feb 05, 2014)
 * Add Tizen plugin support
+
+### 0.2.7 (Apr 17, 2014)
+* CB-4908: [android] Long.valueOf(0) instead of new Long(0)
+* CB-6212: [iOS] fix warnings compiled under arm64 64-bit
+* CB-6460: Update license headers
+* CB-6465: Add license headers to Tizen code
+* Add NOTICE file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/e61df29a/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 797b198..831277f 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -20,7 +20,7 @@
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
            id="org.apache.cordova.globalization"
-      version="0.2.7-dev">
+      version="0.2.7">
     <name>Globalization</name>
     <description>Cordova Globalization Plugin</description>
     <license>Apache 2.0</license>