g5_foundation_client 0.0.2 → 0.0.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: b6f1d9a7bfc23fce7af5fcdaec42e1ec1834d8cd
4
- data.tar.gz: 88d662eb3b7b1874b7a7926eb9eef8b8bd0a1547
3
+ metadata.gz: 9d3b6df46834c3a8f1250528ac377b77a36f4cd1
4
+ data.tar.gz: ab362282521fbdba9361ee9a231fe734034f2bbf
5
5
  SHA512:
6
- metadata.gz: 0a7f4b58fb5bc463ca4b09b75f61e3773f69ee939ac41c049cf814975d03d0f7d3562690f01c4d168995cc7cb552ccae1876ffb1178093dd869ebc1365262ddc
7
- data.tar.gz: 6dc8ed9c406db3b3b780356d121e32fdde0edc61b28a587868b19c2ba195e719f23253c5b4c8ec58487b4715e3e1e171b5fc6628ec131c2123d154638c6dfb07
6
+ metadata.gz: 7c2f61ee0703f0abf6807391e4c6a63966e6008b3dccd1fa290b0388d0bdbae400fe0849a1ab2b733aaf9b23425872da390d867922ee2274d82c821e619b1dd3
7
+ data.tar.gz: 308ca96c321105771c4239f897ce9213dc2946506f02f50b4c6547ec4ee71eb77d117ed1811d25f1667492a993f94117376f7732e9557a9ce03387b301675a05
@@ -5,7 +5,9 @@ module G5FoundationClient::Deserializers
5
5
  G5FoundationClient::Location.new(
6
6
  uid: hcard.uid.to_s,
7
7
  name: hcard.name.to_s,
8
- phone: hcard.adr.format.tel.to_s
8
+ phone: hcard.adr.format.tel.to_s,
9
+ ga_tracking_id: hcard.ga_tracking_id.to_s,
10
+ ga_profile_id: hcard.ga_profile_id.to_s
9
11
  )
10
12
  end
11
13
  end
@@ -18,9 +18,4 @@ class G5FoundationClient::Fetcher
18
18
  )
19
19
  end
20
20
  end
21
-
22
- protected
23
-
24
- def self.query_options
25
- end
26
21
  end
@@ -4,6 +4,8 @@ class G5FoundationClient::Location
4
4
  attribute :uid, String
5
5
  attribute :name, String
6
6
  attribute :phone, String
7
+ attribute :ga_tracking_id, String
8
+ attribute :ga_profile_id, String
7
9
 
8
10
  def self.find_by_uid(uid)
9
11
  G5FoundationClient::Fetcher.fetch_url(uid) do |markup|
@@ -1,3 +1,3 @@
1
1
  module G5FoundationClient
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -26,6 +26,14 @@
26
26
  <span class="u-email"></span>
27
27
  </p>
28
28
 
29
+ <h4>Google Analytics</h4>
30
+ <dl class="dl-horizontal">
31
+ <dt>Tracking ID</dt>
32
+ <dd class="p-ga-tracking-id">UA-1234-1</dd>
33
+
34
+ <dt>View Profile ID</dt>
35
+ <dd class="p-ga-profile-id">ga:1234</dd>
36
+ </dl>
29
37
 
30
38
  <h4>Client</h4>
31
39
  <p class="p-org h-card">
@@ -8,5 +8,7 @@ describe G5FoundationClient::Deserializers::Location do
8
8
  its(:uid) { should eq("http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location") }
9
9
  its(:name) { should eq("Test Location") }
10
10
  its(:phone) { should eq("123-123-1234") }
11
+ its(:ga_tracking_id) { should eq("UA-1234-1") }
12
+ its(:ga_profile_id) { should eq("ga:1234") }
11
13
  end
12
14
  end
@@ -8,13 +8,17 @@ describe G5FoundationClient::Location do
8
8
  G5FoundationClient::Location.new(
9
9
  uid: "http://example.com/uid",
10
10
  name: "Test Name",
11
- phone: "123-123-1234"
11
+ phone: "123-123-1234",
12
+ ga_tracking_id: "UA-1234-5",
13
+ ga_profile_id: "ga:1234"
12
14
  )
13
15
  end
14
16
 
15
17
  its(:uid) { should eql("http://example.com/uid") }
16
18
  its(:name) { should eql("Test Name") }
17
19
  its(:phone) { should eql("123-123-1234") }
20
+ its(:ga_tracking_id) { should eql("UA-1234-5") }
21
+ its(:ga_profile_id) { should eql("ga:1234") }
18
22
  end
19
23
 
20
24
  describe ".find_by_uid" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g5_foundation_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Petersen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-09 00:00:00.000000000 Z
11
+ date: 2014-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubyforge_project:
188
- rubygems_version: 2.2.0
188
+ rubygems_version: 2.2.2
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: Client gem to interact with G5 services.