tracking-api 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9c25dfc03ba998516b60c0a04d5e1f58a5fc7e9
4
- data.tar.gz: b3524a23cd6c2921207390f5ed6df67e1dffc08d
3
+ metadata.gz: 0f6865d8d34fb1ab4531877096b488e4d2cf015e
4
+ data.tar.gz: 63460d1555fdc40dea45ff5d5a03e869d87eab8e
5
5
  SHA512:
6
- metadata.gz: 4f4c2ff71aef88f6be45cfe3ea332542c97ca19addfc22540921c2b0fa9c78975859ded19bd61fa2b85039fa32b250bca0f8aac74b120d8ba2b5967b7758deec
7
- data.tar.gz: 094c0dfc8bc46a2c5e7303687628c81e8d4a8ccf2b69955a0716d33e8ae52ad7db63c12c06906d89f086c2cede67628be65ec6e8b669b9d2b402e280c2e823f8
6
+ metadata.gz: 6af2ba64c10571560d85674459ac54a75c5fbf898a586e7ffe481d6639898d220faa3d21951196babe913264acb0046d549e92bbd55c00d64fdd3592dcf22b68
7
+ data.tar.gz: e7613f847e527b7f18fc67ddba9b4266273810efe812a2f41114f5f56b7fa2d5a5e266e1fcfbd24aeae99d2dbdc21ae352e85b6fbef9afac2109e39058674048
data/.gitignore CHANGED
@@ -7,4 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
- tracking-api-0.1.2.gem
10
+ tracking-api-0.1.3.gem
data/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ This is free and unencumbered software released into the public domain.
2
+
3
+ Anyone is free to copy, modify, publish, use, compile, sell, or
4
+ distribute this software, either in source code form or as a compiled
5
+ binary, for any purpose, commercial or non-commercial, and by any
6
+ means.
7
+
8
+ In jurisdictions that recognize copyright laws, the author or authors
9
+ of this software dedicate any and all copyright interest in the
10
+ software to the public domain. We make this dedication for the benefit
11
+ of the public at large and to the detriment of our heirs and
12
+ successors. We intend this dedication to be an overt act of
13
+ relinquishment in perpetuity of all present and future rights to this
14
+ software under copyright law.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
23
+
24
+ For more information, please refer to <http://unlicense.org>
data/README.md CHANGED
@@ -18,7 +18,34 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ ```
22
+ class ContactController < ApplicationController
23
+ def index
24
+ render 'contact/index'
25
+ end
26
+
27
+ def find
28
+ tracking_service = TrackingApi::TrackingService.new host_name
29
+ @contacts = tracking_service.contacts
30
+ render 'contact/list'
31
+ end
32
+
33
+ def activities
34
+ tracking_service = TrackingApi::TrackingService.new host_name
35
+ @activities = tracking_service.activities params[:cid]
36
+ render 'contact/activities'
37
+ end
38
+
39
+ private
40
+
41
+ def host_name
42
+ original_url = request.original_url
43
+ fullpath = request.fullpath
44
+ fullpath = '' if (fullpath == '/')
45
+ original_url.remove fullpath
46
+ end
47
+ end
48
+ ```
22
49
 
23
50
  ## Development
24
51
 
@@ -1,5 +1,5 @@
1
1
  module Tracking
2
2
  module Api
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracking-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luiz Amorim
@@ -61,6 +61,7 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
63
  - Gemfile
64
+ - LICENSE
64
65
  - README.md
65
66
  - Rakefile
66
67
  - bin/console