veezo-location-api 0.2.0 → 0.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 +4 -4
- data/README.md +13 -0
- data/lib/veezo_location_api/client.rb +6 -7
- data/lib/veezo_location_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7893b6cac25f6b700515eac2eba62857a4b9fc1966257adfb5a90d2714d9f4ef
|
4
|
+
data.tar.gz: 51837c5e8befcd3f4d1f9bab542a40e7867e49214d5053f8f35b84ed23c51049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8f33be01b3bcd24a7b364643c02cd9cb8a3cf5126101e9bb9e2bb5c5d6bc52d7236693a92b1e0641747d666926322f8bf1768434734958c0ceab1e09f886ccf
|
7
|
+
data.tar.gz: da306d2a4836ab807719b3e345d37a69c66912786782721729195f5f620b27f5849b0dbbcf8272e5e6dee4d24e8473b252cca778c969505d12932c794222d6cd
|
data/README.md
CHANGED
@@ -24,6 +24,19 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
TODO: Write usage instructions here
|
26
26
|
|
27
|
+
## Publication
|
28
|
+
|
29
|
+
Change version on `/lib/version.rb`
|
30
|
+
|
31
|
+
|
32
|
+
Execute:
|
33
|
+
|
34
|
+
$ gem build veezo_location_api.gemspec
|
35
|
+
|
36
|
+
And execute:
|
37
|
+
|
38
|
+
$ gem push veezo-location-api-0.1.10.gem
|
39
|
+
|
27
40
|
## Development
|
28
41
|
|
29
42
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -15,26 +15,25 @@ module VeezoLocationApi
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def locations_by_day(occurence: nil)
|
18
|
-
uri = URI(resolve_uri('/locations/all-by-day'))
|
19
18
|
if occurence.nil?
|
20
19
|
occurence = Time.now.strftime("%Y-%m-%d")
|
21
20
|
end
|
22
21
|
|
23
|
-
|
22
|
+
uri = URI(resolve_uri("/locations/all-by-day?occurence=#{occurence}"))
|
23
|
+
|
24
|
+
get = generate_get(uri)
|
24
25
|
|
25
|
-
get = generate_get(uri, body)
|
26
26
|
request(uri, get)
|
27
27
|
end
|
28
28
|
|
29
|
-
def
|
30
|
-
uri = URI(resolve_uri('/locations/last-by-day'))
|
29
|
+
def last_location_by_day(occurence: nil)
|
31
30
|
if occurence.nil?
|
32
31
|
occurence = Time.now.strftime("%Y-%m-%d")
|
33
32
|
end
|
34
33
|
|
35
|
-
|
34
|
+
uri = URI(resolve_uri("/locations/last-by-day?occurence=#{occurence}"))
|
35
|
+
get = generate_get(uri)
|
36
36
|
|
37
|
-
get = generate_get(uri, body)
|
38
37
|
request(uri, get)
|
39
38
|
end
|
40
39
|
|