Skip to content

Commit

Permalink
Point fix to unblock clojars redeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwhitaker committed Oct 25, 2022
1 parent 9898849 commit e9ffc14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Compiling uap-clj.java.api.browser
Compiling uap-clj.java.api.device
Compiling uap-clj.java.api.os
Compiling uap-clj.os
Created /Users/whitaker/dev/ua-parser/uap-clj/target/uap-clj-1.6.0.jar
Created /Users/whitaker/dev/ua-parser/uap-clj/target/uap-clj-1.6.0-standalone.jars
Created /Users/whitaker/dev/ua-parser/uap-clj/target/uap-clj-1.6.1.jar
Created /Users/whitaker/dev/ua-parser/uap-clj/target/uap-clj-1.6.1-standalone.jars
```

### Java dependencies
Expand Down Expand Up @@ -65,7 +65,7 @@ The basic utility functions of this library comprise `useragent`, `browser`, `os
### Commandline (CLI)

```bash
/usr/bin/java -jar uap-clj-1.6.0-standalone.jar <input_filename> [<optional_out_filename>]
/usr/bin/java -jar uap-clj-1.6.1-standalone.jar <input_filename> [<optional_out_filename>]
```

This command takes as its first argument the name of a text file containing one useragent per line, and prints a TSV (tab-separated) file - defaulting to `useragent_lookup.tsv` - with this line format:
Expand Down Expand Up @@ -165,7 +165,7 @@ If you have an Heroku account, [you can easily deploy a Compojure app there](htt
(ANY "*" []
(route/not-found (slurp (io/resource "404.html")))))
```
All you need to enable the use of the `lookup-useragent` function here is to add `[uap-clj "1.6.0"]` to the `:dependencies` vector in your Compojure app's `project.clj`, and `[uap-clj.core :refer [lookup-useragent]]` to the `:require` vector of your `web.clj`. Then you can do this type of thing after deployment:
All you need to enable the use of the `lookup-useragent` function here is to add `[uap-clj "1.6.1"]` to the `:dependencies` vector in your Compojure app's `project.clj`, and `[uap-clj.core :refer [lookup-useragent]]` to the `:require` vector of your `web.clj`. Then you can do this type of thing after deployment:

```bash
→ curl --data "ua=AppleCoreMedia/1.0.0.12F69 (Apple TV; U; CPU OS 8_3 like Mac OS X; en_us)" http://<your_app>.herokuapp.com {:ua "AppleCoreMedia/1.0.0.12F69 (Apple TV; U; CPU OS 8_3 like Mac OS X; en_us)", :browser {:family "Other", :patch nil, :major nil, :minor nil}, :os {:family "ATV OS X", :major "", :minor "", :patch "", :patch_minor ""}, :device {:family "AppleTV", :brand "Apple", :model "AppleTV"}}
Expand Down Expand Up @@ -193,7 +193,7 @@ Then add these dependencies to your `pom.xml`:
<dependency>
<groupId>uap-clj</groupId>
<artifactId>uap-clj</artifactId>
<version>1.6.0</version>
<version>1.6.1</version>
</dependency>
```

Expand Down Expand Up @@ -244,7 +244,7 @@ public class Parser {
[INFO] Building UapJavaWrapper 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ UapJavaWrapper ---
[INFO] --- exec-maven-plugin:1.6.1:java (default-cli) @ UapJavaWrapper ---
Browser family: Baidu Explorer
Browser major number: 1
Browser minor number: 4
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject uap-clj "1.6.0"
(defproject uap-clj "1.6.1"
:description "Clojure language implementation of ua-parser"
:url "https://github.com/russellwhitaker/uap-clj"
:license {:name "The MIT License (MIT)"
Expand Down

0 comments on commit e9ffc14

Please sign in to comment.