Commits

Rhys ! committed 17b0296 Draft

updated for Ceylon 1.0

Comments (0)

Files changed (7)

crypto/bouncycastle/module.ceylon

-module crypto.bouncycastle '0.1.0' {
-    shared import ceylon.math '0.6';
-    import java.base '7';
+module crypto.bouncycastle "0.1.0" {
+    shared import ceylon.math "1.0.0";
+    import java.base "7";
 
-    shared import org.bouncycastle '1.49';
+    shared import org.bouncycastle "1.49";
 
-    shared import crypto.spec '0.1.0';
+    shared import crypto.spec "0.1.0";
 }

crypto/spec/module.ceylon

-module crypto.spec '0.1.0' {
-    shared import ceylon.io '0.6';
-    shared import ceylon.math '0.6';
-    import java.base '7';
+module crypto.spec "0.1.0" {
+    shared import ceylon.io "1.0.0";
+    shared import ceylon.math "1.0.0";
+    import java.base "7";
 }

crypto/spec/util/char.ceylon

 }
 
 shared [Integer+] decodeLowerHex([Character+] hexString) {
-    assert(nonempty sequence = zip(hexString.by(2), hexString.skipping(1).by(2))
+    assert(nonempty sequence = zipEntries(hexString.by(2), hexString.skipping(1).by(2))
         .collect((Character->Character pair) => decodeLowerHexPair(pair.key, pair.item)));
     return sequence;
 }

crypto/spec/util/comparison.ceylon

 shared Comparison compareSequences<Element>([Element*] first, [Element*] second)
         given Element satisfies Comparable<Element> {
-    for (Element->Element pair in zip(first, second)) {
+    for (Element->Element pair in zipEntries(first, second)) {
         value comparison = pair.key <=> pair.item;
         if (comparison != equal) {
             return comparison;

crypto/test/module.ceylon

-module crypto.test '0.1.0' {
-    import ceylon.io '0.6';
-    import ceylon.math '0.6';
-    import java.base '7';
+module crypto.test "0.1.0" {
+    import ceylon.io "1.0.0";
+    import ceylon.math "1.0.0";
+    import java.base "7";
     
-    import org.bouncycastle '1.49';
+    import org.bouncycastle "1.49";
     
-    import crypto.spec '0.1.0';
-    import crypto.bouncycastle '0.1.0';
-    import crypto.toy '0.1.0';
+    import crypto.spec "0.1.0";
+    import crypto.bouncycastle "0.1.0";
+    import crypto.toy "0.1.0";
 }

crypto/toy/digest.ceylon

 
 Integer bigEndianToInt32({Integer+} bigEndian) {
     variable value n = 0;
-    for (b -> offset in zip(bigEndian, (24..0).by(8))) {
+    for (b -> offset in zipEntries(bigEndian, (24..0).by(8))) {
         n = n.or(b.and(#ff).leftLogicalShift(offset));
     }
     return n;

crypto/toy/module.ceylon

-module crypto.toy '0.1.0' {
-    shared import ceylon.io '0.6';
-    shared import ceylon.math '0.6';
+module crypto.toy "0.1.0" {
+    shared import ceylon.io "1.0.0";
+    shared import ceylon.math "1.0.0";
     
-    shared import crypto.spec '0.1.0';
-    import crypto.bouncycastle '0.1.0';  // TODO: remove crypto.bouncycastle
+    shared import crypto.spec "0.1.0";
+    import crypto.bouncycastle "0.1.0";  // TODO: remove crypto.bouncycastle
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.