Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support use in an http client #107

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ pom.xml*
.lein-repl-history
.nrepl-port
\#*\#
pom.properties
leiningen.core.classpath.extract-native-dependencies
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
## unreleased
**[compare](https://github.com/metosin/muuntaja/compare/0.6.6...master)**

* Fix case insensitive header comparison: In http-1.1, headers are to be compared case insensitive, and in http-2, headers are to be lower-cased before encoding. Thus, retrieving "Content-Type" in a case-sensitive fashion is likely to fail.

## 0.6.6 (2019-11-07)

**[compare](https://github.com/metosin/muuntaja/compare/0.6.5...master)**
**[compare](https://github.com/metosin/muuntaja/compare/0.6.5...0.6.6)**

* Fix handler chaining when `nil` is returned from handler.

## 0.6.5 (2019-10-07)

**[compare](https://github.com/metosin/muuntaja/compare/0.6.4...master)**
**[compare](https://github.com/metosin/muuntaja/compare/0.6.4...0.6.5)**

* Update deps:

Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ Please file bug reports and feature requests to https://github.com/metosin/muunt
* Create a topic branch from where you want to base your work (usually the master branch)
* Check the formatting rules from existing code (no trailing whitepace, mostly default indentation)
* Ensure any new code is well-tested, and if possible, any issue fixed is covered by one or more new tests
* Verify that all tests pass using ```lein midje```
* Verify that all tests pass using ```lein test```
* Push your code to your fork of the repository
* Make a Pull Request

Installing jars and changing of version numbers can be done with the following scripts:

```sh
./script/set-version 1.0.0
./script/lein-modules install
./scripts/set-version 1.0.0
./scripts/lein-modules install
```


Expand Down
12 changes: 8 additions & 4 deletions modules/muuntaja-cheshire/project.clj
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
(defproject metosin/muuntaja-cheshire "0.6.6"
(defproject metosin/muuntaja-cheshire "0.0.0" ;; use lein v
:description "Cheshire/JSON format for Muuntaja"
:url "https://github.com/metosin/muuntaja"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:scm {:name "git"
:url "https://github.com/metosin/muuntaja"
:dir "../.."}
:plugins [[lein-parent "0.3.2"]]
:plugins [[lein-parent "0.3.2"]
[com.roomkey/lein-v "7.0.0"]]
:middleware [leiningen.v/version-from-scm
leiningen.v/dependency-version-from-scm
leiningen.v/add-workspace-data]
:parent-project {:path "../../project.clj"
:inherit [:deploy-repositories :managed-dependencies]}
:inherit [:deploy-repositories]}
:dependencies [[metosin/muuntaja]
[cheshire]])
[cheshire "5.9.0"]])
12 changes: 8 additions & 4 deletions modules/muuntaja-msgpack/project.clj
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
(defproject metosin/muuntaja-msgpack "0.6.6"
(defproject metosin/muuntaja-msgpack "0.0.0" ;; use lein v
:description "Messagepack format for Muuntaja"
:url "https://github.com/metosin/muuntaja"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:scm {:name "git"
:url "https://github.com/metosin/muuntaja"
:dir "../.."}
:plugins [[lein-parent "0.3.2"]]
:plugins [[lein-parent "0.3.2"]
[com.roomkey/lein-v "7.0.0"]]
:middleware [leiningen.v/version-from-scm
leiningen.v/dependency-version-from-scm
leiningen.v/add-workspace-data]
:parent-project {:path "../../project.clj"
:inherit [:deploy-repositories :managed-dependencies]}
:inherit [:deploy-repositories]}
:dependencies [[metosin/muuntaja]
[clojure-msgpack]])
[clojure-msgpack "1.2.1" :exclusions [org.clojure/clojure]]])
12 changes: 8 additions & 4 deletions modules/muuntaja-yaml/project.clj
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
(defproject metosin/muuntaja-yaml "0.6.6"
(defproject metosin/muuntaja-yaml "0.0.0" ;; use lein v
:description "YAML format for Muuntaja"
:url "https://github.com/metosin/muuntaja"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:scm {:name "git"
:url "https://github.com/metosin/muuntaja"
:dir "../.."}
:plugins [[lein-parent "0.3.2"]]
:plugins [[lein-parent "0.3.2"]
[com.roomkey/lein-v "7.0.0"]]
:middleware [leiningen.v/version-from-scm
leiningen.v/dependency-version-from-scm
leiningen.v/add-workspace-data]
:parent-project {:path "../../project.clj"
:inherit [:deploy-repositories :managed-dependencies]}
:inherit [:deploy-repositories]}
:dependencies [[metosin/muuntaja]
[clj-commons/clj-yaml]])
[clj-commons/clj-yaml "0.7.0"]])
15 changes: 10 additions & 5 deletions modules/muuntaja/project.clj
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
(defproject metosin/muuntaja "0.6.6"
(defproject metosin/muuntaja "0.0.0" ;; use lein v
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My opinion would be to just keep using set-version script.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after giving it more thought, I agree on using the set-version

:description "Clojure library for format encoding, decoding and content-negotiation"
:url "https://github.com/metosin/muuntaja"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:scm {:name "git"
:url "https://github.com/metosin/muuntaja"
:dir "../.."}
:plugins [[lein-parent "0.3.2"]]
:plugins [[lein-parent "0.3.2"]
[com.roomkey/lein-v "7.0.0"]]
:middleware [leiningen.v/version-from-scm
leiningen.v/dependency-version-from-scm
leiningen.v/add-workspace-data]
:parent-project {:path "../../project.clj"
:inherit [:deploy-repositories :managed-dependencies]}
:dependencies [[metosin/jsonista]
[com.cognitect/transit-clj]])
:inherit [:deploy-repositories]}
:dependencies [[org.clojure/clojure "1.10.1"]
[metosin/jsonista "0.2.5"]
[com.cognitect/transit-clj "0.8.319"]])
Loading