You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ripple.apache.org by da...@apache.org on 2013/05/30 16:19:29 UTC
[03/16] git commit: RIPPLE-6: fixed a few more license headers
RIPPLE-6: fixed a few more license headers
Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/20e571fe
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/20e571fe
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/20e571fe
Branch: refs/heads/master
Commit: 20e571fef435cc1f30ff06f6589dfb2c9f672ed8
Parents: 2dca0e6
Author: Christian Grobmeier <gr...@apache.org>
Authored: Fri Mar 29 06:37:11 2013 +0100
Committer: Christian Grobmeier <gr...@apache.org>
Committed: Fri Mar 29 06:37:11 2013 +0100
----------------------------------------------------------------------
bin/ripple | 20 +++++++
build/test/cov.js | 18 +++++++
build/test/cov/reporter.js | 18 +++++++
configure | 19 +++++++
lib/client/platform/cordova/1.0.0/spec.js | 18 +++++++
lib/client/platform/cordova/1.0.0/system.js | 18 +++++++
.../platform/cordova/2.0.0/JavaPluginManager.js | 18 +++++++
lib/client/platform/cordova/2.0.0/bridge/file.js | 19 +++++++
lib/client/platform/cordova/2.0.0/logger.js | 18 +++++++
lib/client/platform/cordova/2.0.0/spec.js | 40 +++++++++++----
lib/client/platform/w3c/1.0/Acceleration.js | 18 +++++++
lib/client/platform/w3c/1.0/Rotation.js | 18 +++++++
lib/client/platform/web/default/spec/ui.js | 18 +++++++
13 files changed, 249 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/bin/ripple
----------------------------------------------------------------------
diff --git a/bin/ripple b/bin/ripple
index 2b11eec..279a8d2 100755
--- a/bin/ripple
+++ b/bin/ripple
@@ -1,2 +1,22 @@
#!/usr/bin/env node
+
+#
+# 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.
+#
+
require('./../lib/cli').interpret(process.argv);
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/build/test/cov.js
----------------------------------------------------------------------
diff --git a/build/test/cov.js b/build/test/cov.js
index aa4d25c..2d33b1e 100644
--- a/build/test/cov.js
+++ b/build/test/cov.js
@@ -1,3 +1,21 @@
+/*
+ * 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 childProcess = require('child_process'),
fs = require('fs'),
path = require('path'),
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/build/test/cov/reporter.js
----------------------------------------------------------------------
diff --git a/build/test/cov/reporter.js b/build/test/cov/reporter.js
index 7017c00..abbf3f6 100644
--- a/build/test/cov/reporter.js
+++ b/build/test/cov/reporter.js
@@ -1,3 +1,21 @@
+/*
+ * 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 fs = require('fs'),
HTMLReporter = require('./../../../node_modules/coverjs/lib/reporters/HTMLReporter'),
resultsFile = __dirname + '/../../../test/assets/cov/results.html';
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/configure
----------------------------------------------------------------------
diff --git a/configure b/configure
index f1076d5..9ee4bcd 100755
--- a/configure
+++ b/configure
@@ -1,3 +1,22 @@
+#
+# 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.
+#
+
npm install -g jake jshint csslint uglify-js
npm install
git submodule update --init
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/lib/client/platform/cordova/1.0.0/spec.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/1.0.0/spec.js b/lib/client/platform/cordova/1.0.0/spec.js
index 1973325..92e0b32 100644
--- a/lib/client/platform/cordova/1.0.0/spec.js
+++ b/lib/client/platform/cordova/1.0.0/spec.js
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
module.exports = {
id: "cordova",
version: "1.0.0",
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/lib/client/platform/cordova/1.0.0/system.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/1.0.0/system.js b/lib/client/platform/cordova/1.0.0/system.js
index 19cf13a..62fb95d 100644
--- a/lib/client/platform/cordova/1.0.0/system.js
+++ b/lib/client/platform/cordova/1.0.0/system.js
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
module.exports = {
get: function () {
throw "not implemented";
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/lib/client/platform/cordova/2.0.0/JavaPluginManager.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/2.0.0/JavaPluginManager.js b/lib/client/platform/cordova/2.0.0/JavaPluginManager.js
index 0dfc68e..6153061 100644
--- a/lib/client/platform/cordova/2.0.0/JavaPluginManager.js
+++ b/lib/client/platform/cordova/2.0.0/JavaPluginManager.js
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
module.exports = {
exec: function () {
throw "this really shouldn't be called. like ever!";
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/lib/client/platform/cordova/2.0.0/bridge/file.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/2.0.0/bridge/file.js b/lib/client/platform/cordova/2.0.0/bridge/file.js
index 1bace5f..3b4bb57 100644
--- a/lib/client/platform/cordova/2.0.0/bridge/file.js
+++ b/lib/client/platform/cordova/2.0.0/bridge/file.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
// HACK: fs keeps a reference to the last-used FileSystem requested via requestFileSystem
// this is a hack because if you keep switching between TEMPORARY vs. PERSISTENT file systems requested,
// and run Cordova File API methods, no parameter is passed into exec specifying the underlying File System.
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/lib/client/platform/cordova/2.0.0/logger.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/2.0.0/logger.js b/lib/client/platform/cordova/2.0.0/logger.js
index 4111f1f..aa87f09 100644
--- a/lib/client/platform/cordova/2.0.0/logger.js
+++ b/lib/client/platform/cordova/2.0.0/logger.js
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
module.exports = {
log: function (msg) {
console.log(msg);
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/lib/client/platform/cordova/2.0.0/spec.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/2.0.0/spec.js b/lib/client/platform/cordova/2.0.0/spec.js
index 86b327c..e2a9ed7 100644
--- a/lib/client/platform/cordova/2.0.0/spec.js
+++ b/lib/client/platform/cordova/2.0.0/spec.js
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
function loadWebworks(win, device) {
var builder = ripple('platform/builder'),
platform = "handset",
@@ -113,23 +131,23 @@ module.exports = {
MediaError: {
path: "cordova/2.0.0/MediaError"
},
- Acceleration: {
- path: "w3c/1.0/Acceleration"
+ Acceleration: {
+ path: "w3c/1.0/Acceleration"
},
- Coordinates: {
- path: "w3c/1.0/Coordinates"
+ Coordinates: {
+ path: "w3c/1.0/Coordinates"
},
- Position: {
- path: "w3c/1.0/Position"
+ Position: {
+ path: "w3c/1.0/Position"
},
- PositionError: {
- path: "w3c/1.0/PositionError"
+ PositionError: {
+ path: "w3c/1.0/PositionError"
},
navigator: {
path: "w3c/1.0/navigator",
- children: {
- geolocation: {
- path: "w3c/1.0/geolocation"
+ children: {
+ geolocation: {
+ path: "w3c/1.0/geolocation"
}
}
},
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/lib/client/platform/w3c/1.0/Acceleration.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/w3c/1.0/Acceleration.js b/lib/client/platform/w3c/1.0/Acceleration.js
index 678c67b..aa3a9bb 100644
--- a/lib/client/platform/w3c/1.0/Acceleration.js
+++ b/lib/client/platform/w3c/1.0/Acceleration.js
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
module.exports = function (x, y, z) {
return {
x: x || 0, //Acceleration in the 'x' expressed in m/s^2. (Number)
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/lib/client/platform/w3c/1.0/Rotation.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/w3c/1.0/Rotation.js b/lib/client/platform/w3c/1.0/Rotation.js
index 8d3d323..59d5697 100644
--- a/lib/client/platform/w3c/1.0/Rotation.js
+++ b/lib/client/platform/w3c/1.0/Rotation.js
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
module.exports = function (alpha, beta, gamma) {
return {
alpha: alpha || 0, //Rotation about the 'z' axis expressed in degrees [0, 360]. (Number)
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/20e571fe/lib/client/platform/web/default/spec/ui.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/web/default/spec/ui.js b/lib/client/platform/web/default/spec/ui.js
index cc1dfaf..f4287d8 100644
--- a/lib/client/platform/web/default/spec/ui.js
+++ b/lib/client/platform/web/default/spec/ui.js
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
module.exports = {
plugins: [
"accelerometer",