t 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +1 -0
- data/bin/t +4 -9
- data/lib/t.rb +7 -7
- data/lib/t/cli.rb +148 -135
- data/lib/t/collectable.rb +1 -1
- data/lib/t/delete.rb +3 -3
- data/lib/t/list.rb +7 -4
- data/lib/t/printable.rb +29 -30
- data/lib/t/search.rb +18 -19
- data/lib/t/set.rb +3 -3
- data/lib/t/stream.rb +2 -2
- data/lib/t/utils.rb +4 -4
- data/lib/t/version.rb +6 -21
- data/spec/cli_spec.rb +257 -182
- data/spec/fixtures/geo.json +414 -0
- data/spec/fixtures/geo_no_city.json +344 -0
- data/spec/fixtures/geo_no_state.json +299 -0
- data/spec/helper.rb +1 -1
- data/spec/list_spec.rb +25 -11
- data/spec/search_spec.rb +107 -107
- data/spec/stream_spec.rb +15 -15
- data/t.gemspec +13 -13
- metadata +65 -82
- metadata.gz.sig +0 -0
- data/spec/fixtures/geo.kml +0 -64
- data/spec/fixtures/geo_no_city.kml +0 -24
- data/spec/fixtures/geo_no_state.kml +0 -16
metadata.gz.sig
CHANGED
Binary file
|
data/spec/fixtures/geo.kml
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
-
<kml xmlns="http://earth.google.com/kml/2.0"><Response>
|
3
|
-
<name>37.759631,-122.410067</name>
|
4
|
-
<Status>
|
5
|
-
<code>200</code>
|
6
|
-
<request>geocode</request>
|
7
|
-
</Status>
|
8
|
-
<Placemark id="p1">
|
9
|
-
<address>2180 Bryant St, San Francisco, CA 94110, USA</address>
|
10
|
-
<AddressDetails Accuracy="8" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>CA</AdministrativeAreaName><Locality><LocalityName>San Francisco</LocalityName><Thoroughfare><ThoroughfareName>2180 Bryant St</ThoroughfareName></Thoroughfare><PostalCode><PostalCodeNumber>94110</PostalCodeNumber></PostalCode></Locality></AdministrativeArea></Country></AddressDetails>
|
11
|
-
<ExtendedData>
|
12
|
-
<LatLonBox north="37.7608261" south="37.7581281" east="-122.4087089" west="-122.4114069" />
|
13
|
-
</ExtendedData>
|
14
|
-
<Point><coordinates>-122.4100579,37.7594771,0</coordinates></Point>
|
15
|
-
</Placemark>
|
16
|
-
<Placemark id="p2">
|
17
|
-
<address>Mission District, San Francisco, CA, USA</address>
|
18
|
-
<AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>CA</AdministrativeAreaName><SubAdministrativeArea><SubAdministrativeAreaName>San Francisco</SubAdministrativeAreaName><Locality><LocalityName>San Francisco</LocalityName><DependentLocality><DependentLocalityName>Mission District</DependentLocalityName></DependentLocality></Locality></SubAdministrativeArea></AdministrativeArea></Country></AddressDetails>
|
19
|
-
<ExtendedData>
|
20
|
-
<LatLonBox north="37.7718342" south="37.7476094" east="-122.4030805" west="-122.4309325" />
|
21
|
-
</ExtendedData>
|
22
|
-
<Point><coordinates>-122.4200000,37.7600000,0</coordinates></Point>
|
23
|
-
</Placemark>
|
24
|
-
<Placemark id="p3">
|
25
|
-
<address>San Francisco, CA 94110, USA</address>
|
26
|
-
<AddressDetails Accuracy="5" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>CA</AdministrativeAreaName><Locality><LocalityName>San Francisco</LocalityName><PostalCode><PostalCodeNumber>94110</PostalCodeNumber></PostalCode></Locality></AdministrativeArea></Country></AddressDetails>
|
27
|
-
<ExtendedData>
|
28
|
-
<LatLonBox north="37.7657831" south="37.7316080" east="-122.4028549" west="-122.4272690" />
|
29
|
-
</ExtendedData>
|
30
|
-
<Point><coordinates>-122.4184108,37.7485824,0</coordinates></Point>
|
31
|
-
</Placemark>
|
32
|
-
<Placemark id="p4">
|
33
|
-
<address>San Francisco, CA, USA</address>
|
34
|
-
<AddressDetails Accuracy="3" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>CA</AdministrativeAreaName><SubAdministrativeArea><SubAdministrativeAreaName>San Francisco</SubAdministrativeAreaName></SubAdministrativeArea></AdministrativeArea></Country></AddressDetails>
|
35
|
-
<ExtendedData>
|
36
|
-
<LatLonBox north="37.8338270" south="37.7080859" east="-122.3552009" west="-122.5300999" />
|
37
|
-
</ExtendedData>
|
38
|
-
<Point><coordinates>-122.4193878,37.7749073,0</coordinates></Point>
|
39
|
-
</Placemark>
|
40
|
-
<Placemark id="p5">
|
41
|
-
<address>San Francisco, CA, USA</address>
|
42
|
-
<AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>CA</AdministrativeAreaName><SubAdministrativeArea><SubAdministrativeAreaName>San Francisco</SubAdministrativeAreaName><Locality><LocalityName>San Francisco</LocalityName></Locality></SubAdministrativeArea></AdministrativeArea></Country></AddressDetails>
|
43
|
-
<ExtendedData>
|
44
|
-
<LatLonBox north="37.8120000" south="37.7034000" east="-122.3482000" west="-122.5270000" />
|
45
|
-
</ExtendedData>
|
46
|
-
<Point><coordinates>-122.4194155,37.7749295,0</coordinates></Point>
|
47
|
-
</Placemark>
|
48
|
-
<Placemark id="p6">
|
49
|
-
<address>California, USA</address>
|
50
|
-
<AddressDetails Accuracy="2" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>CA</AdministrativeAreaName></AdministrativeArea></Country></AddressDetails>
|
51
|
-
<ExtendedData>
|
52
|
-
<LatLonBox north="42.0095169" south="32.5341559" east="-114.1312110" west="-124.4096196" />
|
53
|
-
</ExtendedData>
|
54
|
-
<Point><coordinates>-119.4179324,36.7782610,0</coordinates></Point>
|
55
|
-
</Placemark>
|
56
|
-
<Placemark id="p7">
|
57
|
-
<address>United States</address>
|
58
|
-
<AddressDetails Accuracy="1" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName></Country></AddressDetails>
|
59
|
-
<ExtendedData>
|
60
|
-
<LatLonBox north="49.3800000" south="25.8200000" east="-66.9400000" west="-124.3900000" />
|
61
|
-
</ExtendedData>
|
62
|
-
<Point><coordinates>-95.7128910,37.0902400,0</coordinates></Point>
|
63
|
-
</Placemark>
|
64
|
-
</Response></kml>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
-
<kml xmlns="http://earth.google.com/kml/2.0"><Response>
|
3
|
-
<name>37.759631,-122.410067</name>
|
4
|
-
<Status>
|
5
|
-
<code>200</code>
|
6
|
-
<request>geocode</request>
|
7
|
-
</Status>
|
8
|
-
<Placemark id="p6">
|
9
|
-
<address>California, USA</address>
|
10
|
-
<AddressDetails Accuracy="2" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>CA</AdministrativeAreaName></AdministrativeArea></Country></AddressDetails>
|
11
|
-
<ExtendedData>
|
12
|
-
<LatLonBox north="42.0095169" south="32.5341559" east="-114.1312110" west="-124.4096196" />
|
13
|
-
</ExtendedData>
|
14
|
-
<Point><coordinates>-119.4179324,36.7782610,0</coordinates></Point>
|
15
|
-
</Placemark>
|
16
|
-
<Placemark id="p7">
|
17
|
-
<address>United States</address>
|
18
|
-
<AddressDetails Accuracy="1" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName></Country></AddressDetails>
|
19
|
-
<ExtendedData>
|
20
|
-
<LatLonBox north="49.3800000" south="25.8200000" east="-66.9400000" west="-124.3900000" />
|
21
|
-
</ExtendedData>
|
22
|
-
<Point><coordinates>-95.7128910,37.0902400,0</coordinates></Point>
|
23
|
-
</Placemark>
|
24
|
-
</Response></kml>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
-
<kml xmlns="http://earth.google.com/kml/2.0"><Response>
|
3
|
-
<name>37.759631,-122.410067</name>
|
4
|
-
<Status>
|
5
|
-
<code>200</code>
|
6
|
-
<request>geocode</request>
|
7
|
-
</Status>
|
8
|
-
<Placemark id="p7">
|
9
|
-
<address>United States</address>
|
10
|
-
<AddressDetails Accuracy="1" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName></Country></AddressDetails>
|
11
|
-
<ExtendedData>
|
12
|
-
<LatLonBox north="49.3800000" south="25.8200000" east="-66.9400000" west="-124.3900000" />
|
13
|
-
</ExtendedData>
|
14
|
-
<Point><coordinates>-95.7128910,37.0902400,0</coordinates></Point>
|
15
|
-
</Placemark>
|
16
|
-
</Response></kml>
|