Skip to content

Commit

Permalink
Feature/clojure 1.9a17 (#109)
Browse files Browse the repository at this point in the history
* update ns decls for spec.alpha

* bump pluginsto latest
  • Loading branch information
brabster authored Aug 18, 2017
1 parent c7cefc1 commit 333e2a2
Show file tree
Hide file tree
Showing 33 changed files with 38 additions and 38 deletions.
10 changes: 5 additions & 5 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
:plugins [[org.clojure/tools.cli "0.3.3" :exclusions [org.clojure/clojure]]
[lein-ancient "0.6.10"]
[com.livingsocial/lein-dependency-check "0.2.2"]
[lein-kibit "0.1.2" :exclusions [org.clojure/clojure
[lein-kibit "0.1.5" :exclusions [org.clojure/clojure
org.clojure/tools.cli]]
[jonase/eastwood "0.2.3"]
[lein-bikeshed "0.3.0"]
[lein-cloverage "1.0.6"]
[jonase/eastwood "0.2.4"]
[lein-bikeshed "0.4.1"]
[lein-cloverage "1.0.9"]
[lein-codox "0.9.6"]]
:repositories [["snapshots" {:url "https://clojars.org/repo"
:username :env/clojars_username
Expand Down Expand Up @@ -47,6 +47,6 @@
:unused-private-vars]
:exclude-linters [:suspicious-expression]}
:profiles {:uberjar {:aot :all}
:provided {:dependencies [[org.clojure/clojure "1.9.0-alpha13"]]}
:provided {:dependencies [[org.clojure/clojure "1.9.0-alpha17"]]}
:dev {:resource-paths ["test-resources"]
:dependencies [[org.clojure/test.check "0.9.0"]]}})
2 changes: 1 addition & 1 deletion src/crucible/assertion.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

(def resource= 'encoded-as)

;; clojure.test doesn't print ex-data which is a pain with clojure.spec
;; clojure.test doesn't print ex-data which is a pain with clojure.spec.alpha
;; remove when ex-data is printed on test failures by default...
(defmethod test/assert-expr 'encoded-as [msg form]
(let [expected (nth form 1)
Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/api_gateway.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns crucible.aws.api-gateway
"Resources in AWS::ApiGateway::*"
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[crucible.resources :refer [spec-or-ref defresource] :as res]
[crucible.encoding.keys :refer [->key]]))

Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/cloudformation.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns crucible.aws.cloudformation
"Resources in AWS::CloudFormation::*"
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[crucible.resources :refer [spec-or-ref defresource] :as res]
[crucible.encoding.keys :refer [->key]]))

Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/cloudwatch.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(:require [crucible.resources :refer [spec-or-ref defresource] :as res]
[crucible.values :as v]
[crucible.encoding.keys :refer [->key]]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(defmethod ->key ::ok-actions [_] "OKActions")

Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/custom_resource.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
when using the resource."
(:require [crucible.resources :refer [spec-or-ref resource-factory]]
[crucible.encoding.keys :refer [->key]]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(s/def ::service-token (spec-or-ref string?))

Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/dynamodb.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns crucible.aws.dynamodb
"Resources in AWS::DynamoDB::*"
(:require [crucible.resources :refer [spec-or-ref defresource]]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(s/def ::table-name (spec-or-ref string?))

Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/ec2.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns crucible.aws.ec2
"Resources in AWS::EC2::*"
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[crucible.resources :refer [spec-or-ref defresource] :as res]))

(defn ec2 [suffix] (str "AWS::EC2::" suffix))
Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/events.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(:require [crucible.resources :refer [spec-or-ref defresource] :as res]
[crucible.values :as v]
[crucible.encoding.keys :refer [->key]]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(s/def ::id (spec-or-ref #(re-matches #"[\.\-_A-Za-z0-9]+" %)))

Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/firehose.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns crucible.aws.firehose
"Resources in AWS::KinesisFirehose::DeliveryStream"
(:require [crucible.resources :refer [spec-or-ref defresource] :as res]
[clojure.spec :as s]
[clojure.spec.alpha :as s]
[crucible.encoding.keys :refer [->key]]))

(defmethod ->key :size-in-mbs [_]
Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/iam.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Resources in AWS::IAM::*"
(:require [crucible.resources :refer [resource-factory spec-or-ref defresource]]
[crucible.encoding.keys :refer [->key]]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(s/def ::assume-role-policy-document any?)

Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/kinesis.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns crucible.aws.kinesis
"Resources in AWS::Kinesis::*"
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[crucible.resources :refer [spec-or-ref defresource]]))

(s/def ::shard-count (spec-or-ref pos-int?))
Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/lambda.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns crucible.aws.lambda
(:require [crucible.resources :refer [spec-or-ref defresource]]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(s/def ::subnet-id (s/* (spec-or-ref string?)))

Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/rds.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns crucible.aws.rds
"Resources in AWS::RDS::*"
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[crucible.resources :refer [spec-or-ref defresource] :as res]
[crucible.encoding.keys :refer [->key]]
[crucible.aws.rds.db-instance :as dbi]))
Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/rds/db_instance.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns crucible.aws.rds.db-instance
"Resources in AWS::RDS::DBInstance"
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[crucible.resources :refer [spec-or-ref defresource] :as res]
[crucible.encoding.keys :refer [->key]]))

Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/s3.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Resources in AWS::S3::*"
(:require [crucible.resources :refer [spec-or-ref defresource] :as res]
[crucible.aws.iam :as iam]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(s/def ::arn string?)

Expand Down
2 changes: 1 addition & 1 deletion src/crucible/aws/sns.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Resources in AWS::SNS::*"
(:require [crucible.resources :refer [spec-or-ref defresource]]
[crucible.aws.iam :as iam]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(s/def ::display-name (spec-or-ref string?))

Expand Down
2 changes: 1 addition & 1 deletion src/crucible/core.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns crucible.core
"Commonly used template construction functions"
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[clojure.walk :as walk]
[crucible.values :as v]
[crucible.parameters :as p]
Expand Down
4 changes: 2 additions & 2 deletions src/crucible/encoding/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
[clojure.tools.namespace.repl :as ns-repl]
[clojure.tools.cli :refer [parse-opts]]
[clojure.java.io :as io]
[clojure.spec :as s]
[clojure.spec.test :as stest]))
[clojure.spec.alpha :as s]
[clojure.spec.test.alpha :as stest]))

(defn template-var->write-location [tvar]
(let [template-ns (ns-name (:ns (meta tvar)))
Expand Down
2 changes: 1 addition & 1 deletion src/crucible/mappings.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns crucible.mappings
(:require [clojure.spec :as s]))
(:require [clojure.spec.alpha :as s]))

(s/def ::mapping
(s/map-of string?
Expand Down
2 changes: 1 addition & 1 deletion src/crucible/outputs.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns crucible.outputs
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[crucible.values :as v]))

(s/def ::name ::v/value)
Expand Down
2 changes: 1 addition & 1 deletion src/crucible/parameters.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns crucible.parameters
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[crucible.encoding.keys :as keys]))

(defmethod keys/->key :list-number [_] "List<Number>")
Expand Down
2 changes: 1 addition & 1 deletion src/crucible/policies.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns crucible.policies
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[crucible.encoding.keys :refer [->key]]))

(s/def ::deletion-policy #{::retain ::delete ::snapshot})
Expand Down
2 changes: 1 addition & 1 deletion src/crucible/resources.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns crucible.resources
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[crucible.policies :as policies]))

(s/def ::props-type keyword?)
Expand Down
2 changes: 1 addition & 1 deletion src/crucible/values.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns crucible.values
(:require [clojure.spec :as s]
(:require [clojure.spec.alpha :as s]
[crucible.resources :refer [spec-or-ref]]
[crucible.encoding.keys :as keys]))

Expand Down
2 changes: 1 addition & 1 deletion test/crucible/aws/ec2_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[crucible.aws.ec2 :as ec2]
[crucible.resources :as res]
[cheshire.core :as json]
[clojure.spec :as s]
[clojure.spec.alpha :as s]
[crucible.core :refer [template encode parameter xref]]))

(deftest vpc-test
Expand Down
2 changes: 1 addition & 1 deletion test/crucible/aws/iam_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns crucible.aws.iam-test
(:require [crucible.aws.iam :as iam]
[clojure.spec :as s]
[clojure.spec.alpha :as s]
[clojure.test :refer :all]))

(defn valid [spec candidate]
Expand Down
2 changes: 1 addition & 1 deletion test/crucible/aws/lambda_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[crucible.aws.lambda :as l]
[crucible.resources :as res]
[cheshire.core :as json]
[clojure.spec :as s]
[clojure.spec.alpha :as s]
[crucible.core :refer [xref account-id parameter]]
[crucible.assertion :refer [resource=]]))

Expand Down
2 changes: 1 addition & 1 deletion test/crucible/encoding/keys_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[crucible.core :as cru]
[crucible.resources :as r]
[clojure.test :refer :all]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(def testing-123-translation "Testing123Foo")

Expand Down
2 changes: 1 addition & 1 deletion test/crucible/parameters_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[crucible.parameters :as p]
[crucible.encoding :as enc]
[clojure.test :refer :all]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(deftest parameters-test
(testing "comma delimited list"
Expand Down
2 changes: 1 addition & 1 deletion test/crucible/resources_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(:require [crucible.resources :as res]
[crucible.values :as v]
[clojure.test :refer :all]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(deftest resource-property-type
(testing "single ref is valid"
Expand Down
2 changes: 1 addition & 1 deletion test/crucible/values_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[core :as cru]
[values :as v]]
[clojure.test :refer :all]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(deftest join-test
(testing "no values" (is (s/valid? ::v/value (cru/join "-" []))))
Expand Down
2 changes: 1 addition & 1 deletion test/crucible/xref_test.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns crucible.xref-test
(:require [clojure.test :refer :all]
[crucible.values :as v]
[clojure.spec :as s]))
[clojure.spec.alpha :as s]))

(deftest valid-xref
(testing "plain xref validates"
Expand Down

0 comments on commit 333e2a2

Please sign in to comment.