Skip to content

Commit 87bc123

Browse files
committed
* Uodated to browscap 6023, updated unit tests accordingly
* Added CHANGELOG.txt
1 parent db7f8ef commit 87bc123

File tree

7 files changed

+85
-85
lines changed

7 files changed

+85
-85
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# browscap-java
22
A blazingly fast and memory efficient Java client on top of the BrowsCap CSV source files.
3-
The BrowsCap version currently shipped is: 6022.
3+
The BrowsCap version currently shipped is: 6023.
44

55
## Notes
66
* Although this library is very fast, implementing a cache is advisable. Since cache strategies differ per usecase, this library doesn't ship with one out of the box.
@@ -27,7 +27,7 @@ Add this to the dependencies in your pom.xml.
2727
<dependency>
2828
<groupId>com.blueconic</groupId>
2929
<artifactId>browscap-java</artifactId>
30-
<version>1.0.0</version>
30+
<version>1.0.1</version>
3131
</dependency>
3232
```
3333

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.blueconic</groupId>
55
<artifactId>browscap-java</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.0</version>
7+
<version>1.0.1</version>
88
<name>browscap-java</name>
99
<description>A blazingly fast and memory efficient Java client on top of the BrowsCap CSV source files.</description>
1010

src/main/java/com/blueconic/browscap/UserAgentService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
public class UserAgentService {
1818
// The version of the browscap file this bundle depends on
19-
private static final int BUNDLED_BROWSCAP_VERSION = 6022;
19+
private static final int BUNDLED_BROWSCAP_VERSION = 6023;
2020

2121
/**
2222
* Returns a parser based on the bundled BrowsCap version

src/main/resources/browscap-6022.zip

-2.73 MB
Binary file not shown.

src/main/resources/browscap-6023.zip

3.08 MB
Binary file not shown.

src/test/java/com/blueconic/browscap/impl/UserAgentServiceTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public int processUserAgentFile(final UserAgentParser parser) throws IOException
4646
final Capabilities result = parser.parse(properties[5]); // check the values
4747

4848
int y = 0;
49-
System.out.println(result);
49+
System.out.println(result + "===" + properties[5]);
5050
assertEquals(properties[y++], result.getBrowser());
5151
assertEquals(properties[y++], result.getBrowserMajorVersion());
5252
assertEquals(properties[y++], result.getPlatform());

src/test/resources/useragents.txt

+80-80
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)