gxapi_rails 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -0
- data/lib/gxapi.rb +8 -0
- data/lib/gxapi/engine.rb +3 -0
- data/lib/gxapi/google_analytics.rb +21 -5
- data/lib/gxapi/version.rb +1 -1
- data/spec/dummy/log/development.log +10 -0
- data/spec/dummy/log/test.log +120 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db7641c0ed227a1b126413b3947a1289ff4ec2a8
|
4
|
+
data.tar.gz: 00b3319977ef4e6e242e3145091cc7fb35f8bfd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c95985a720c17289b3964cf8d9c3877442ec4b456814b7c46773b327b570b45065a13f529e5c16b699cd4d550475bd2e7e525dbb00812e1045fddd1b1f8068d4
|
7
|
+
data.tar.gz: 2fa251b3abd42d48a6e87b8c0f730761e2a9625034c4237753b03ccc17cea528af14a45d13635b9097cc1eee2a5286d6bdc9af573b3325dfc9d593080d2bb9b7
|
data/README.md
CHANGED
@@ -5,6 +5,25 @@
|
|
5
5
|
Gxapi interfaces with Google Analytics Experiments to retrieve data from
|
6
6
|
its API and determine which variant should be presented to a given user
|
7
7
|
|
8
|
+
## Enhancements on this fork
|
9
|
+
|
10
|
+
1. Config settings can be manually set instead of using a YML file.
|
11
|
+
|
12
|
+
# initializers/gxapi.rb
|
13
|
+
Gxapi.config {
|
14
|
+
google_analytics: {
|
15
|
+
account_id: ACCOUNT_ID,
|
16
|
+
profile_id: PROFILE_ID,
|
17
|
+
web_property_id: WEB_PROPERTY_ID,
|
18
|
+
},
|
19
|
+
google: {
|
20
|
+
email: SERVICE_ACCOUNT_EMAIL,
|
21
|
+
private_key_path: 'PATH_TO_SERVICE_ACCOUNT_PRIVATE_KEY'
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
2. Private key can be passed as Base64 string instead of being read from a file. Use the `private_key` setting instead of `private_key_path` in the config.
|
26
|
+
|
8
27
|
## Installation
|
9
28
|
% gem install gxapi_rails
|
10
29
|
% rails g gxapi:install
|
data/lib/gxapi.rb
CHANGED
@@ -64,6 +64,14 @@ module Gxapi
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
#
|
68
|
+
# manual setter for for config settings
|
69
|
+
#
|
70
|
+
# @return [Gxapi::Ostruct]
|
71
|
+
def self.config=(settings={})
|
72
|
+
@config = Gxapi::Ostruct.new(settings)
|
73
|
+
end
|
74
|
+
|
67
75
|
#
|
68
76
|
# get the config path for our config YAML file
|
69
77
|
#
|
data/lib/gxapi/engine.rb
CHANGED
@@ -101,22 +101,38 @@ module Gxapi
|
|
101
101
|
def client
|
102
102
|
@client ||= begin
|
103
103
|
client = Google::APIClient.new
|
104
|
-
# key stuff is hardcoded for now
|
105
|
-
key = Google::APIClient::KeyUtils.load_from_pkcs12(
|
106
|
-
Gxapi.config.google.private_key_path, 'notasecret'
|
107
|
-
)
|
108
104
|
client.authorization = Signet::OAuth2::Client.new(
|
109
105
|
token_credential_uri: 'https://accounts.google.com/o/oauth2/token',
|
110
106
|
audience: 'https://accounts.google.com/o/oauth2/token',
|
111
107
|
scope: 'https://www.googleapis.com/auth/analytics.readonly',
|
112
108
|
issuer: Gxapi.config.google.email,
|
113
|
-
signing_key:
|
109
|
+
signing_key: self.get_key
|
114
110
|
)
|
115
111
|
client.authorization.fetch_access_token!
|
116
112
|
client
|
117
113
|
end
|
118
114
|
end
|
119
115
|
|
116
|
+
#
|
117
|
+
# Get an instance of OpenSSL::Pkey::RSA with our key
|
118
|
+
# data
|
119
|
+
#
|
120
|
+
# @return [OpenSSL::Pkey::RSA]
|
121
|
+
def get_key
|
122
|
+
# check for a private key string
|
123
|
+
if encoded_key = Gxapi.config.google.respond_to?(:private_key)
|
124
|
+
OpenSSL::PKey::RSA.new(
|
125
|
+
Base64.decode64(Gxapi.config.google.private_key),
|
126
|
+
'notasecret'
|
127
|
+
)
|
128
|
+
else
|
129
|
+
Google::APIClient::KeyUtils.load_from_pkcs12(
|
130
|
+
Gxapi.config.google.private_key_path,
|
131
|
+
'notasecret'
|
132
|
+
)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
120
136
|
#
|
121
137
|
# List all experiments for our account
|
122
138
|
#
|
data/lib/gxapi/version.rb
CHANGED
@@ -32,3 +32,13 @@ Reloading Gxapi Experiments Complete!
|
|
32
32
|
Connecting to database specified by database.yml
|
33
33
|
Connecting to database specified by database.yml
|
34
34
|
Connecting to database specified by database.yml
|
35
|
+
Connecting to database specified by database.yml
|
36
|
+
Google::APIClient - Initializing client with options {}
|
37
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
38
|
+
Connecting to database specified by database.yml
|
39
|
+
Google::APIClient - Initializing client with options {}
|
40
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
41
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/discovery/v1/apis/analytics/v3/rest {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2"}
|
42
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Thu, 20 Mar 2014 18:11:39 GMT", "date"=>"Thu, 20 Mar 2014 18:06:39 GMT", "etag"=>"\"PoXr25DWmmN6KaMjdGmecv0bPt8/dNY8WM7wPjnPhJN2ODTycMHNAas\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"148296", "server"=>"GSE", "age"=>"182", "cache-control"=>"public, max-age=300, must-revalidate, no-transform", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
43
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/analytics/v3/management/accounts/2633140/webproperties/UA-2633140-6/profiles/73788770/experiments {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2", "Authorization"=>"Bearer ya29.1.AADtN_XmUtgWupcw4Ut_3J3OafZBx9-eBz--D-jZdpcjozVeTkJ9VMI-sZYv4O92Cg", "Cache-Control"=>"no-store"}
|
44
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Thu, 20 Mar 2014 18:09:42 GMT", "date"=>"Thu, 20 Mar 2014 18:09:42 GMT", "cache-control"=>"private, max-age=0, must-revalidate, no-transform", "etag"=>"\"a71WwETdQwAtQQlKuH-J4PTJUJc/AY1ok-SnzMKmiDcm5ZadMNt1hQU\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"2236", "server"=>"GSE", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
data/spec/dummy/log/test.log
CHANGED
@@ -1935,3 +1935,123 @@ Google::APIClient::Request Sending API request get https://www.googleapis.com/di
|
|
1935
1935
|
Google::APIClient::Request Result: 200 {"expires"=>"Tue, 18 Mar 2014 12:29:28 GMT", "date"=>"Tue, 18 Mar 2014 12:24:28 GMT", "etag"=>"\"PoXr25DWmmN6KaMjdGmecv0bPt8/dNY8WM7wPjnPhJN2ODTycMHNAas\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"148296", "server"=>"GSE", "age"=>"32", "cache-control"=>"public, max-age=300, must-revalidate, no-transform", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
1936
1936
|
Google::APIClient::Request Sending API request get https://www.googleapis.com/analytics/v3/management/accounts/2633140/webproperties/UA-2633140-6/profiles/73788770/experiments {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2", "Authorization"=>"Bearer ya29.1.AADtN_WANqgZwj3kQ8bTB2QPutdOBlnkVmYK7OMBinMadWJT51vr0-g6_zOjL-S5Hw", "Cache-Control"=>"no-store"}
|
1937
1937
|
Google::APIClient::Request Result: 200 {"expires"=>"Tue, 18 Mar 2014 12:25:01 GMT", "date"=>"Tue, 18 Mar 2014 12:25:01 GMT", "cache-control"=>"private, max-age=0, must-revalidate, no-transform", "etag"=>"\"a71WwETdQwAtQQlKuH-J4PTJUJc/AY1ok-SnzMKmiDcm5ZadMNt1hQU\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"2236", "server"=>"GSE", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
1938
|
+
Connecting to database specified by database.yml
|
1939
|
+
Google::APIClient - Initializing client with options {}
|
1940
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1941
|
+
Started GET "/posts" for 127.0.0.1 at 2014-03-31 06:46:08 -0400
|
1942
|
+
Processing by PostsController#index as HTML
|
1943
|
+
Google::APIClient - Initializing client with options {}
|
1944
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1945
|
+
Rendered posts/index.html.erb within layouts/application (2.6ms)
|
1946
|
+
Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.0ms)
|
1947
|
+
Started GET "/posts?variant=fake_var" for 127.0.0.1 at 2014-03-31 06:46:08 -0400
|
1948
|
+
Processing by PostsController#index as HTML
|
1949
|
+
Parameters: {"variant"=>"fake_var"}
|
1950
|
+
Rendered posts/index.html.erb within layouts/application (0.6ms)
|
1951
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
|
1952
|
+
Google::APIClient - Initializing client with options {}
|
1953
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1954
|
+
Google::APIClient - Initializing client with options {}
|
1955
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1956
|
+
Google::APIClient - Initializing client with options {}
|
1957
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1958
|
+
Google::APIClient - Initializing client with options {}
|
1959
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1960
|
+
Google::APIClient - Initializing client with options {}
|
1961
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1962
|
+
Google::APIClient - Initializing client with options {}
|
1963
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1964
|
+
Connecting to database specified by database.yml
|
1965
|
+
Google::APIClient - Initializing client with options {}
|
1966
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1967
|
+
Started GET "/posts" for 127.0.0.1 at 2014-03-31 06:48:46 -0400
|
1968
|
+
Processing by PostsController#index as HTML
|
1969
|
+
Google::APIClient - Initializing client with options {}
|
1970
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1971
|
+
Rendered posts/index.html.erb within layouts/application (3.3ms)
|
1972
|
+
Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.0ms)
|
1973
|
+
Started GET "/posts?variant=fake_var" for 127.0.0.1 at 2014-03-31 06:48:46 -0400
|
1974
|
+
Processing by PostsController#index as HTML
|
1975
|
+
Parameters: {"variant"=>"fake_var"}
|
1976
|
+
Rendered posts/index.html.erb within layouts/application (0.3ms)
|
1977
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
1978
|
+
Google::APIClient - Initializing client with options {}
|
1979
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1980
|
+
Google::APIClient - Initializing client with options {}
|
1981
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1982
|
+
Google::APIClient - Initializing client with options {}
|
1983
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1984
|
+
Google::APIClient - Initializing client with options {}
|
1985
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1986
|
+
Google::APIClient - Initializing client with options {}
|
1987
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1988
|
+
Google::APIClient - Initializing client with options {}
|
1989
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1990
|
+
Connecting to database specified by database.yml
|
1991
|
+
Google::APIClient - Initializing client with options {}
|
1992
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
1993
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/discovery/v1/apis/analytics/v3/rest {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2"}
|
1994
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:51:00 GMT", "date"=>"Mon, 31 Mar 2014 10:46:00 GMT", "etag"=>"\"wkuhK30l0tkNyeDPwavF-CT2hTA/hi6BFxVU4XDsV2kdyJbyhoRJ9zY\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"153644", "server"=>"GSE", "age"=>"204", "cache-control"=>"public, max-age=300, must-revalidate, no-transform", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
1995
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/analytics/v3/management/accounts/2633140/webproperties/UA-2633140-6/profiles/73788770/experiments {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2", "Authorization"=>"Bearer ya29.1.AADtN_VwbwhHf99nAaEo3P5F7KyAtq90AE8b_didyDMwCllJ3VC9mrrhbO3V_DX_1Q", "Cache-Control"=>"no-store"}
|
1996
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:49:25 GMT", "date"=>"Mon, 31 Mar 2014 10:49:25 GMT", "cache-control"=>"private, max-age=0, must-revalidate, no-transform", "etag"=>"\"sBpWBAIMDtSOhS0rrx4UXI1RohY/AY1ok-SnzMKmiDcm5ZadMNt1hQU\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"2236", "server"=>"GSE", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
1997
|
+
Started GET "/posts" for 127.0.0.1 at 2014-03-31 06:49:25 -0400
|
1998
|
+
Processing by PostsController#index as HTML
|
1999
|
+
Rendered posts/index.html.erb within layouts/application (3.6ms)
|
2000
|
+
Completed 200 OK in 13ms (Views: 13.0ms | ActiveRecord: 0.0ms)
|
2001
|
+
Started GET "/posts?variant=fake_var" for 127.0.0.1 at 2014-03-31 06:49:25 -0400
|
2002
|
+
Processing by PostsController#index as HTML
|
2003
|
+
Parameters: {"variant"=>"fake_var"}
|
2004
|
+
Rendered posts/index.html.erb within layouts/application (0.3ms)
|
2005
|
+
Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
2006
|
+
Google::APIClient - Initializing client with options {}
|
2007
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
2008
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/discovery/v1/apis/analytics/v3/rest {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2"}
|
2009
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:51:00 GMT", "date"=>"Mon, 31 Mar 2014 10:46:00 GMT", "etag"=>"\"wkuhK30l0tkNyeDPwavF-CT2hTA/hi6BFxVU4XDsV2kdyJbyhoRJ9zY\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"153644", "server"=>"GSE", "age"=>"205", "cache-control"=>"public, max-age=300, must-revalidate, no-transform", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2010
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/analytics/v3/management/accounts/2633140/webproperties/UA-2633140-6/profiles/73788770/experiments {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2", "Authorization"=>"Bearer ya29.1.AADtN_Wtk6TEI3J7uBlxdLYbbFZCCs9_WAYudjLmFfTIVJf0qiTd9qPjVLzZYYJfOQ", "Cache-Control"=>"no-store"}
|
2011
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:49:25 GMT", "date"=>"Mon, 31 Mar 2014 10:49:25 GMT", "cache-control"=>"private, max-age=0, must-revalidate, no-transform", "etag"=>"\"sBpWBAIMDtSOhS0rrx4UXI1RohY/AY1ok-SnzMKmiDcm5ZadMNt1hQU\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"2236", "server"=>"GSE", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2012
|
+
Google::APIClient - Initializing client with options {}
|
2013
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
2014
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/discovery/v1/apis/analytics/v3/rest {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2"}
|
2015
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:51:00 GMT", "date"=>"Mon, 31 Mar 2014 10:46:00 GMT", "etag"=>"\"wkuhK30l0tkNyeDPwavF-CT2hTA/hi6BFxVU4XDsV2kdyJbyhoRJ9zY\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"153644", "server"=>"GSE", "age"=>"206", "cache-control"=>"public, max-age=300, must-revalidate, no-transform", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2016
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/analytics/v3/management/accounts/2633140/webproperties/UA-2633140-6/profiles/73788770/experiments {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2", "Authorization"=>"Bearer ya29.1.AADtN_UARXKhMKw7LD20-imK14mjiBodQWB7QezTpPm_4S6i5g3K05TjNfCb0-9p6Q", "Cache-Control"=>"no-store"}
|
2017
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:49:26 GMT", "date"=>"Mon, 31 Mar 2014 10:49:26 GMT", "cache-control"=>"private, max-age=0, must-revalidate, no-transform", "etag"=>"\"sBpWBAIMDtSOhS0rrx4UXI1RohY/AY1ok-SnzMKmiDcm5ZadMNt1hQU\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"2236", "server"=>"GSE", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2018
|
+
Google::APIClient - Initializing client with options {}
|
2019
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
2020
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/discovery/v1/apis/analytics/v3/rest {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2"}
|
2021
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:51:00 GMT", "date"=>"Mon, 31 Mar 2014 10:46:00 GMT", "etag"=>"\"wkuhK30l0tkNyeDPwavF-CT2hTA/hi6BFxVU4XDsV2kdyJbyhoRJ9zY\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"153644", "server"=>"GSE", "age"=>"206", "cache-control"=>"public, max-age=300, must-revalidate, no-transform", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2022
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/analytics/v3/management/accounts/2633140/webproperties/UA-2633140-6/profiles/73788770/experiments {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2", "Authorization"=>"Bearer ya29.1.AADtN_UARXKhMKw7LD20-imK14mjiBodQWB7QezTpPm_4S6i5g3K05TjNfCb0-9p6Q", "Cache-Control"=>"no-store"}
|
2023
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:49:27 GMT", "date"=>"Mon, 31 Mar 2014 10:49:27 GMT", "cache-control"=>"private, max-age=0, must-revalidate, no-transform", "etag"=>"\"sBpWBAIMDtSOhS0rrx4UXI1RohY/AY1ok-SnzMKmiDcm5ZadMNt1hQU\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"2236", "server"=>"GSE", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2024
|
+
Connecting to database specified by database.yml
|
2025
|
+
Google::APIClient - Initializing client with options {}
|
2026
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
2027
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/discovery/v1/apis/analytics/v3/rest {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2"}
|
2028
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:51:00 GMT", "date"=>"Mon, 31 Mar 2014 10:46:00 GMT", "etag"=>"\"wkuhK30l0tkNyeDPwavF-CT2hTA/hi6BFxVU4XDsV2kdyJbyhoRJ9zY\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"153644", "server"=>"GSE", "age"=>"273", "cache-control"=>"public, max-age=300, must-revalidate, no-transform", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2029
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/analytics/v3/management/accounts/2633140/webproperties/UA-2633140-6/profiles/73788770/experiments {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2", "Authorization"=>"Bearer ya29.1.AADtN_WuIWb28hlDxF3vbLaCCYzqXjsRAWK9UW0yEW8AksbV6ecoxcByKH1b-CrGMw", "Cache-Control"=>"no-store"}
|
2030
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:50:33 GMT", "date"=>"Mon, 31 Mar 2014 10:50:33 GMT", "cache-control"=>"private, max-age=0, must-revalidate, no-transform", "etag"=>"\"sBpWBAIMDtSOhS0rrx4UXI1RohY/AY1ok-SnzMKmiDcm5ZadMNt1hQU\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"2236", "server"=>"GSE", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2031
|
+
Started GET "/posts" for 127.0.0.1 at 2014-03-31 06:50:33 -0400
|
2032
|
+
Processing by PostsController#index as HTML
|
2033
|
+
Rendered posts/index.html.erb within layouts/application (5.1ms)
|
2034
|
+
Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.0ms)
|
2035
|
+
Started GET "/posts?variant=fake_var" for 127.0.0.1 at 2014-03-31 06:50:33 -0400
|
2036
|
+
Processing by PostsController#index as HTML
|
2037
|
+
Parameters: {"variant"=>"fake_var"}
|
2038
|
+
Rendered posts/index.html.erb within layouts/application (0.3ms)
|
2039
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
2040
|
+
Google::APIClient - Initializing client with options {}
|
2041
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
2042
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/discovery/v1/apis/analytics/v3/rest {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2"}
|
2043
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:51:00 GMT", "date"=>"Mon, 31 Mar 2014 10:46:00 GMT", "etag"=>"\"wkuhK30l0tkNyeDPwavF-CT2hTA/hi6BFxVU4XDsV2kdyJbyhoRJ9zY\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"153644", "server"=>"GSE", "age"=>"273", "cache-control"=>"public, max-age=300, must-revalidate, no-transform", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2044
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/analytics/v3/management/accounts/2633140/webproperties/UA-2633140-6/profiles/73788770/experiments {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2", "Authorization"=>"Bearer ya29.1.AADtN_UGwzLG2dERDJBxlkdrgnh58-WEv38NW9F-TY40I1zbtwX8L28B5XNF0_RDyg", "Cache-Control"=>"no-store"}
|
2045
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:50:34 GMT", "date"=>"Mon, 31 Mar 2014 10:50:34 GMT", "cache-control"=>"private, max-age=0, must-revalidate, no-transform", "etag"=>"\"sBpWBAIMDtSOhS0rrx4UXI1RohY/AY1ok-SnzMKmiDcm5ZadMNt1hQU\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"2236", "server"=>"GSE", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2046
|
+
Google::APIClient - Initializing client with options {}
|
2047
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
2048
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/discovery/v1/apis/analytics/v3/rest {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2"}
|
2049
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:51:00 GMT", "date"=>"Mon, 31 Mar 2014 10:46:00 GMT", "etag"=>"\"wkuhK30l0tkNyeDPwavF-CT2hTA/hi6BFxVU4XDsV2kdyJbyhoRJ9zY\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"153644", "server"=>"GSE", "age"=>"274", "cache-control"=>"public, max-age=300, must-revalidate, no-transform", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2050
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/analytics/v3/management/accounts/2633140/webproperties/UA-2633140-6/profiles/73788770/experiments {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2", "Authorization"=>"Bearer ya29.1.AADtN_VD2fPvIUc_zhZtu-TRdoecdmyEvC4GY1UKUSB4k9mIkVXhJlCrklzEiDhAMQ", "Cache-Control"=>"no-store"}
|
2051
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:50:34 GMT", "date"=>"Mon, 31 Mar 2014 10:50:34 GMT", "cache-control"=>"private, max-age=0, must-revalidate, no-transform", "etag"=>"\"sBpWBAIMDtSOhS0rrx4UXI1RohY/AY1ok-SnzMKmiDcm5ZadMNt1hQU\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"2236", "server"=>"GSE", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2052
|
+
Google::APIClient - Initializing client with options {}
|
2053
|
+
Google::APIClient - Please provide :application_name and :application_version when initializing the client
|
2054
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/discovery/v1/apis/analytics/v3/rest {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2"}
|
2055
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:51:00 GMT", "date"=>"Mon, 31 Mar 2014 10:46:00 GMT", "etag"=>"\"wkuhK30l0tkNyeDPwavF-CT2hTA/hi6BFxVU4XDsV2kdyJbyhoRJ9zY\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"153644", "server"=>"GSE", "age"=>"275", "cache-control"=>"public, max-age=300, must-revalidate, no-transform", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
2056
|
+
Google::APIClient::Request Sending API request get https://www.googleapis.com/analytics/v3/management/accounts/2633140/webproperties/UA-2633140-6/profiles/73788770/experiments {"User-Agent"=>"google-api-ruby-client/0.6.4 Mac OS X/10.9.2", "Authorization"=>"Bearer ya29.1.AADtN_XCA0IQCM5WtT0_aqN-xzsZ6Rgxvg1Wx4-WhumfZU1t7O9tK0MGXMqAFgbKzQ", "Cache-Control"=>"no-store"}
|
2057
|
+
Google::APIClient::Request Result: 200 {"expires"=>"Mon, 31 Mar 2014 10:50:35 GMT", "date"=>"Mon, 31 Mar 2014 10:50:35 GMT", "cache-control"=>"private, max-age=0, must-revalidate, no-transform", "etag"=>"\"sBpWBAIMDtSOhS0rrx4UXI1RohY/AY1ok-SnzMKmiDcm5ZadMNt1hQU\"", "content-type"=>"application/json; charset=UTF-8", "x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "content-length"=>"2236", "server"=>"GSE", "alternate-protocol"=>"443:quic", "connection"=>"close"}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gxapi_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Langevin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|