Skip to content

Commit 39194f7

Browse files
committed
0.1.2 - Updated jtext-parser dependency to latest 0.9.0 version (TextParserImpl -> TextIteratorParser)
1 parent d366c34 commit 39194f7

File tree

8 files changed

+19
-12
lines changed

8 files changed

+19
-12
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ This project does its best to adhere to [Semantic Versioning](http://semver.org/
44

55

66
--------
7-
###[0.1.1](N/A) - 2016-09-02
7+
###[0.1.2](N/A) - 2016-09-11
8+
#### Changed
9+
* Updated jtext-parser dependency to latest 0.9.0 version (TextParserImpl -> TextIteratorParser)
10+
11+
12+
--------
13+
###[0.1.1](https://github.com/TeamworkGuy2/JParseJsonLite/commit/d366c341b32743dc47102f4c1c5b55a0cca79f0e) - 2016-09-02
814
#### Changed
915
* Renamed repository from JParserJsonLite -> JParseJsonLite
1016

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
JParseJsonLite
22
==============
3-
version: 0.1.1
3+
version: 0.1.2
44

55
####twg2.parser.jsonLite
66
for parsing JSON like arrays, numbers, and strings, as well as arrays with none quoted strings.
132 Bytes
Binary file not shown.

bin/jparse_json_lite.jar

103 Bytes
Binary file not shown.

package-lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version" : "0.1.1",
2+
"version" : "0.1.2",
33
"name" : "jparse-json-lite",
44
"description" : "Simple parsing for JSON strings/files",
55
"homepage" : "https://github.com/TeamworkGuy2/JParseJsonLite",

src/twg2/parser/jsonLite/JsonLiteArray.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import java.util.ArrayList;
66
import java.util.List;
77

8+
import twg2.parser.textParser.TextIteratorParser;
89
import twg2.parser.textParser.TextParser;
9-
import twg2.parser.textParser.TextParserImpl;
1010
import twg2.parser.textParserUtils.ReadIsMatching;
1111
import twg2.parser.textParserUtils.ReadMatching;
1212
import twg2.parser.textParserUtils.ReadWhitespace;
@@ -59,7 +59,7 @@ public static final List<String> parseArray(String arrayString) {
5959
* @see JsonLiteArray#parseArray(TextParser, boolean, List)
6060
*/
6161
public static final void parseArray(String arrayString, List<String> dst) {
62-
parseArray(TextParserImpl.of(arrayString), true, dst);
62+
parseArray(TextIteratorParser.of(arrayString), true, dst);
6363
}
6464

6565

test/twg2/parser/jsonLite/test/JsonLiteArrayTest.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
import org.junit.Test;
99

1010
import twg2.parser.jsonLite.JsonLiteArray;
11-
import twg2.parser.textParser.TextParserImpl;
11+
import twg2.parser.textParser.TextIteratorParser;
12+
import twg2.parser.textParser.TextParser;
1213
import checks.CheckTask;
1314

1415
/**
@@ -60,13 +61,13 @@ public void arrayParseTest() {
6061

6162
CheckTask.assertTests(input, expect, (str) -> {
6263
List<String> res = new ArrayList<>();
63-
JsonLiteArray.parseArray(TextParserImpl.of(str, offset, str.length() - offset), true, res);
64+
JsonLiteArray.parseArray(TextIteratorParser.of(str, offset, str.length() - offset), true, res);
6465
return res;
6566
});
6667

6768
CheckTask.assertTests(input, expect, (str) -> {
6869
List<String> res = new ArrayList<>();
69-
TextParserImpl lineBuf = TextParserImpl.of(str);
70+
TextParser lineBuf = TextIteratorParser.of(str);
7071
for(int i = 0; i < offset; i++) { lineBuf.nextChar(); }
7172

7273
JsonLiteArray.parseArray(lineBuf, true, res);
@@ -85,7 +86,7 @@ public void arrayLineParseTest() {
8586

8687
CheckTask.assertTests(input, expect, null, (str) -> {
8788
List<String> res = new ArrayList<>();
88-
TextParserImpl lineBuf = TextParserImpl.of(str);
89+
TextParser lineBuf = TextIteratorParser.of(str);
8990
for(int i = 0; i < offset; i++) { lineBuf.nextChar(); }
9091

9192
JsonLiteArray.parseArrayLine(lineBuf, true, res);
@@ -117,7 +118,7 @@ public void readJsonLiteArrayTest() {
117118

118119
for(int i = 0, size = strs.length; i < size; i++) {
119120
List<Object> elems = new ArrayList<>();
120-
JsonLiteArray.parseArrayDeep(TextParserImpl.of(strs[i]), true, elems);
121+
JsonLiteArray.parseArrayDeep(TextIteratorParser.of(strs[i]), true, elems);
121122
CheckTask.assertTests(expect[i], elems.toArray(new Object[0]), (aryStrs) -> aryStrs);
122123

123124
//System.out.println("parsing JsonLite array '" + strs[i] + "': " + elems.toString());

test/twg2/parser/jsonLite/test/JsonLiteTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import twg2.parser.jsonLite.JsonLiteNumber;
77
import twg2.parser.jsonLite.JsonLite.NumberType;
8-
import twg2.parser.textParser.TextParserImpl;
8+
import twg2.parser.textParser.TextIteratorParser;
99

1010
/**
1111
* @author TeamworkGuy2
@@ -31,7 +31,7 @@ public void readJsonLiteNumberTest() {
3131
for(int i = 0, size = strs.length; i < size; i++) {
3232
String s = strs[i];
3333
Object expect = expected[i];
34-
JsonLiteNumber num = JsonLiteNumber.readNumber(TextParserImpl.of(s));
34+
JsonLiteNumber num = JsonLiteNumber.readNumber(TextIteratorParser.of(s));
3535
if(num.getNumberType() == NumberType.DOUBLE) {
3636
Assert.assertEquals(num.asDouble(), expect);
3737
}

0 commit comments

Comments
 (0)