]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/visionect/visionect.factor
factor: use more split/join words
[factor.git] / extra / visionect / visionect.factor
index 5ae0a01357de8e1d26d67b89583606db9c7b126e..917f3661c0045ac27172536fc9388ee91ccbfdbe 100644 (file)
@@ -2,9 +2,9 @@
 ! See http://factorcode.org/license.txt for BSD license
 
 USING: accessors assocs base64 calendar calendar.format
-checksums.hmac checksums.sha combinators combinators.smart
-formatting fry http http.client json.reader json.writer kernel
-locals make math.parser namespaces random sequences ;
+checksums.hmac checksums.sha combinators.smart formatting http
+http.client json.reader json.writer kernel make math.parser
+namespaces random sequences splitting ;
 
 IN: visionect
 
@@ -24,7 +24,7 @@ SYMBOL: visionect-api-secret
         [ "content-type" header ]
         [ "date" header ]
         [ url>> path>> ]
-    } cleave>array "\n" join
+    } cleave>array join-lines
     visionect-api-secret get sha-256 hmac-bytes >base64
     visionect-api-key get ":" rot 3append ;