Skip to content

Commit c23c545

Browse files
committed
Bumping bitauth to 0.3.1
1 parent bae4e1b commit c23c545

File tree

6 files changed

+26347
-57
lines changed

6 files changed

+26347
-57
lines changed

bitauth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ClojureScript wrapper around BitPay's [BitAuth](https://github.com/bitpay/bitauth) protocol.
44
[](dependency)
55
```clojure
6-
[cljsjs/bitauth "0.2.1-0"] ;; latest release
6+
[cljsjs/bitauth "0.3.1-0"] ;; latest release
77
```
88
[](/dependency)
99
This jar comes with `deps.cljs` as used by the [Foreign Libs][flibs] feature

bitauth/build.boot

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
(set-env!
22
:resource-paths #{"resources"}
3-
:dependencies '[[adzerk/bootlaces "0.1.10" :scope "test"]
3+
:dependencies '[[adzerk/bootlaces "0.1.11" :scope "test"]
44
[cljsjs/boot-cljsjs "0.5.0" :scope "test"]])
55

66
(require '[adzerk.bootlaces :refer :all]
7-
'[cljsjs.boot-cljsjs.packaging :refer :all]
8-
'[boot.core :as boot]
9-
'[boot.tmpdir :as tmpd]
10-
'[clojure.java.io :as io]
11-
'[boot.util :refer [sh]])
7+
'[cljsjs.boot-cljsjs.packaging :refer :all])
128

13-
(def +version+ "0.2.1")
9+
(def +version+ "0.3.1")
1410
(def +cljsjs-version+ (str +version+ "-0"))
1511
(bootlaces! +cljsjs-version+)
1612

@@ -22,26 +18,17 @@
2218
:scm {:url "https://github.com/cljsjs/packages"}
2319
:license {"MIT" "https://opensource.org/licenses/MIT"}})
2420

25-
(deftask build-bitauth []
26-
(let [tmp (boot/tmp-dir!)]
27-
(with-pre-wrap
28-
fileset
29-
;; Copy all files in fileset to temp directory
30-
(doseq [f (->> fileset boot/input-files)
31-
:let [target (io/file tmp (tmpd/path f))]]
32-
(io/make-parents target)
33-
(io/copy (tmpd/file f) target))
34-
(binding [boot.util/*sh-dir* (str (io/file tmp (format "bitauth-%s" +version+)))]
35-
((sh "npm" "install")))
36-
(-> fileset (boot/add-resource tmp) boot/commit!))))
37-
38-
(deftask package []
21+
#_(deftask package []
3922
(comp
4023
(download :url (format "https://github.com/bitpay/bitauth/archive/v%s.zip" +version+)
41-
:checksum "019e001be682f4ca39b6924b91555765"
24+
:checksum "2b5a77f683aa1d5b7c26a2a6f9e4ec5b"
4225
:unzip true)
43-
(build-bitauth)
44-
(sift :move {#".*dist/bitauth\.bundle\.js" "cljsjs/bitauth/development/bitauth.inc.js"
45-
#".*dist/bitauth\.browser\.min\.js" "cljsjs/bitauth/production/bitauth.min.inc.js"})
26+
(sift :move {(re-pattern (str "bitauth-" +version+ "/" "bitauth.js"))
27+
"cljsjs/bitauth/development/bitauth.inc.js"
28+
(re-pattern (str "bitauth-" +version+ "/" "bitauth.min.js"))
29+
"cljsjs/bitauth/production/bitauth.min.inc.js"})
4630
(sift :include #{#"^cljsjs"})
4731
(deps-cljs :name "cljsjs.bitauth")))
32+
33+
(deftask package []
34+
(sift :include #{#"^cljsjs" #"^deps.cljs$"}))

bitauth/resources/cljsjs/bitauth/common/bitauth.ext.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,3 @@
1-
// bitauth_externs.js ---
2-
//
3-
// Filename: bitauth_externs.js
4-
// Description: Authenticate with web services utilizing the same strategy as Bitcoin
5-
// Author: Matthew Wampler-Doty
6-
//
7-
// The MIT License (MIT)
8-
//
9-
// Copyright (c) 2015 Matthew Wampler-Doty
10-
//
11-
// Permission is hereby granted, free of charge, to any person obtaining a copy
12-
// of this software and associated documentation files (the "Software"), to deal
13-
// in the Software without restriction, including without limitation the rights
14-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15-
// copies of the Software, and to permit persons to whom the Software is
16-
// furnished to do so, subject to the following conditions:
17-
//
18-
// The above copyright notice and this permission notice shall be included in all
19-
// copies or substantial portions of the Software.
20-
//
21-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27-
// SOFTWARE.
28-
//
29-
//
30-
// Code:
31-
321
var bitauth = {
332
"getPublicKeyFromPrivateKey": function (privateKey) {},
343
"getSinFromPublicKey": function (publicKey) {},

0 commit comments

Comments
 (0)