garb 0.9.1 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +3 -0
  3. data/.travis.yml +7 -0
  4. data/CHANGELOG.md +95 -0
  5. data/Gemfile +15 -0
  6. data/README.md +47 -25
  7. data/Rakefile +8 -34
  8. data/garb.gemspec +22 -0
  9. data/lib/garb.rb +71 -48
  10. data/lib/garb/attributes.rb +35 -0
  11. data/lib/garb/core_ext/array.rb +13 -0
  12. data/lib/garb/core_ext/string.rb +48 -0
  13. data/lib/garb/core_ext/symbol.rb +59 -0
  14. data/lib/garb/destination.rb +5 -6
  15. data/lib/garb/errors.rb +20 -0
  16. data/lib/garb/filter_parameters.rb +20 -29
  17. data/lib/garb/management/account.rb +10 -16
  18. data/lib/garb/management/feed.rb +4 -5
  19. data/lib/garb/management/goal.rb +10 -15
  20. data/lib/garb/management/profile.rb +11 -20
  21. data/lib/garb/management/segment.rb +9 -15
  22. data/lib/garb/management/web_property.rb +11 -16
  23. data/lib/garb/model.rb +37 -13
  24. data/lib/garb/path_attribute.rb +7 -0
  25. data/lib/garb/report_parameter.rb +5 -5
  26. data/lib/garb/report_response.rb +29 -28
  27. data/lib/garb/reports/bounces.rb +1 -1
  28. data/lib/garb/reports/exits.rb +1 -1
  29. data/lib/garb/reports/pageviews.rb +1 -1
  30. data/lib/garb/reports/unique_pageviews.rb +1 -1
  31. data/lib/garb/reports/visits.rb +1 -1
  32. data/lib/garb/request/authentication.rb +54 -0
  33. data/lib/garb/request/data.rb +98 -0
  34. data/lib/garb/result_set.rb +23 -9
  35. data/lib/garb/session.rb +3 -3
  36. data/lib/garb/step.rb +4 -4
  37. data/lib/garb/support.rb +6 -0
  38. data/lib/garb/version.rb +3 -3
  39. data/test/fixtures/account_management.json +1 -0
  40. data/test/fixtures/ga_profile_management.json +1 -0
  41. data/test/fixtures/ga_segment_management.json +1 -0
  42. data/test/fixtures/ga_webproperty_management.json +1 -0
  43. data/test/fixtures/goal_management.json +1 -0
  44. data/test/fixtures/profile_feed.json +1 -0
  45. data/test/fixtures/report_feed.json +75 -0
  46. data/test/test_helper.rb +6 -10
  47. data/test/unit/garb/filter_parameters_test.rb +15 -46
  48. data/test/unit/garb/management/account_test.rb +8 -16
  49. data/test/unit/garb/management/feed_test.rb +5 -10
  50. data/test/unit/garb/management/goal_test.rb +7 -21
  51. data/test/unit/garb/management/profile_test.rb +11 -26
  52. data/test/unit/garb/management/segment_test.rb +7 -6
  53. data/test/unit/garb/management/web_property_test.rb +10 -12
  54. data/test/unit/garb/model_test.rb +70 -32
  55. data/test/unit/garb/report_parameter_test.rb +6 -6
  56. data/test/unit/garb/report_response_test.rb +23 -13
  57. data/test/unit/garb/request/authentication_test.rb +152 -0
  58. data/test/unit/garb/request/data_test.rb +157 -0
  59. data/test/unit/garb/session_test.rb +13 -13
  60. data/test/unit/garb_test.rb +4 -11
  61. data/test/unit/symbol_operator_test.rb +3 -3
  62. metadata +90 -292
  63. data/lib/garb/account.rb +0 -22
  64. data/lib/garb/account_feed_request.rb +0 -25
  65. data/lib/garb/authentication_request.rb +0 -53
  66. data/lib/garb/data_request.rb +0 -42
  67. data/lib/garb/goal.rb +0 -20
  68. data/lib/garb/profile.rb +0 -33
  69. data/lib/garb/report.rb +0 -28
  70. data/lib/garb/resource.rb +0 -115
  71. data/lib/support.rb +0 -40
  72. data/test/unit/garb/account_feed_request_test.rb +0 -42
  73. data/test/unit/garb/account_test.rb +0 -53
  74. data/test/unit/garb/authentication_request_test.rb +0 -121
  75. data/test/unit/garb/coverage/assets/0.3.9/app.js +0 -66
  76. data/test/unit/garb/coverage/assets/0.3.9/fancybox/blank.gif +0 -0
  77. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_close.png +0 -0
  78. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_loading.png +0 -0
  79. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_nav_left.png +0 -0
  80. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_nav_right.png +0 -0
  81. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_e.png +0 -0
  82. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_n.png +0 -0
  83. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_ne.png +0 -0
  84. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_nw.png +0 -0
  85. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_s.png +0 -0
  86. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_se.png +0 -0
  87. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_sw.png +0 -0
  88. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_w.png +0 -0
  89. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_left.png +0 -0
  90. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_main.png +0 -0
  91. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_over.png +0 -0
  92. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_right.png +0 -0
  93. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancybox-x.png +0 -0
  94. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancybox-y.png +0 -0
  95. data/test/unit/garb/coverage/assets/0.3.9/fancybox/fancybox.png +0 -0
  96. data/test/unit/garb/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.css +0 -363
  97. data/test/unit/garb/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.pack.js +0 -44
  98. data/test/unit/garb/coverage/assets/0.3.9/favicon.png +0 -0
  99. data/test/unit/garb/coverage/assets/0.3.9/jquery-1.4.2.min.js +0 -155
  100. data/test/unit/garb/coverage/assets/0.3.9/jquery.dataTables.min.js +0 -152
  101. data/test/unit/garb/coverage/assets/0.3.9/jquery.timeago.js +0 -141
  102. data/test/unit/garb/coverage/assets/0.3.9/jquery.url.js +0 -174
  103. data/test/unit/garb/coverage/assets/0.3.9/loading.gif +0 -0
  104. data/test/unit/garb/coverage/assets/0.3.9/magnify.png +0 -0
  105. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  106. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  107. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  108. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  109. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  110. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  111. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  112. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  113. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_222222_256x240.png +0 -0
  114. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  115. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_454545_256x240.png +0 -0
  116. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_888888_256x240.png +0 -0
  117. data/test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  118. data/test/unit/garb/coverage/assets/0.3.9/smoothness/jquery-ui-1.8.4.custom.css +0 -295
  119. data/test/unit/garb/coverage/assets/0.3.9/stylesheet.css +0 -341
  120. data/test/unit/garb/coverage/index.html +0 -100
  121. data/test/unit/garb/coverage/resultset.yml +0 -5
  122. data/test/unit/garb/data_request_test.rb +0 -107
  123. data/test/unit/garb/destination_test.rb +0 -28
  124. data/test/unit/garb/goal_test.rb +0 -24
  125. data/test/unit/garb/management/coverage/assets/0.3.9/app.js +0 -66
  126. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/blank.gif +0 -0
  127. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_close.png +0 -0
  128. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_loading.png +0 -0
  129. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_nav_left.png +0 -0
  130. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_nav_right.png +0 -0
  131. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_e.png +0 -0
  132. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_n.png +0 -0
  133. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_ne.png +0 -0
  134. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_nw.png +0 -0
  135. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_s.png +0 -0
  136. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_se.png +0 -0
  137. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_sw.png +0 -0
  138. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_w.png +0 -0
  139. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_left.png +0 -0
  140. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_main.png +0 -0
  141. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_over.png +0 -0
  142. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_right.png +0 -0
  143. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancybox-x.png +0 -0
  144. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancybox-y.png +0 -0
  145. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancybox.png +0 -0
  146. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.css +0 -363
  147. data/test/unit/garb/management/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.pack.js +0 -44
  148. data/test/unit/garb/management/coverage/assets/0.3.9/favicon.png +0 -0
  149. data/test/unit/garb/management/coverage/assets/0.3.9/jquery-1.4.2.min.js +0 -155
  150. data/test/unit/garb/management/coverage/assets/0.3.9/jquery.dataTables.min.js +0 -152
  151. data/test/unit/garb/management/coverage/assets/0.3.9/jquery.timeago.js +0 -141
  152. data/test/unit/garb/management/coverage/assets/0.3.9/jquery.url.js +0 -174
  153. data/test/unit/garb/management/coverage/assets/0.3.9/loading.gif +0 -0
  154. data/test/unit/garb/management/coverage/assets/0.3.9/magnify.png +0 -0
  155. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  156. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  157. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  158. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  159. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  160. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  161. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  162. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  163. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_222222_256x240.png +0 -0
  164. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  165. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_454545_256x240.png +0 -0
  166. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_888888_256x240.png +0 -0
  167. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  168. data/test/unit/garb/management/coverage/assets/0.3.9/smoothness/jquery-ui-1.8.4.custom.css +0 -295
  169. data/test/unit/garb/management/coverage/assets/0.3.9/stylesheet.css +0 -341
  170. data/test/unit/garb/management/coverage/index.html +0 -100
  171. data/test/unit/garb/management/coverage/resultset.yml +0 -5
  172. data/test/unit/garb/profile_test.rb +0 -77
  173. data/test/unit/garb/report_test.rb +0 -99
  174. data/test/unit/garb/resource_test.rb +0 -50
  175. data/test/unit/garb/step_test.rb +0 -15
@@ -0,0 +1,157 @@
1
+ require 'test_helper'
2
+
3
+ module Garb
4
+ module Request
5
+ class DataTest < MiniTest::Unit::TestCase
6
+
7
+ context "An instance of the Request::Data class" do
8
+ setup do
9
+ @session = Session.new
10
+ @session.auth_token = 'abcdefg123456'
11
+ end
12
+
13
+ teardown do
14
+ Garb.proxy_address = nil
15
+ Garb.proxy_port = nil
16
+ end
17
+
18
+ should "be able to build the query string from parameters" do
19
+ parameters = {'ids' => '12345', 'metrics' => 'country'}
20
+ data_request = Request::Data.new(@session, '', parameters)
21
+
22
+ query_string = data_request.query_string
23
+
24
+ assert_match(/^\?/, query_string)
25
+
26
+ query_string.sub!(/^\?/, '')
27
+
28
+ assert_equal ['ids=12345', 'metrics=country'], query_string.split('&').sort
29
+ end
30
+
31
+ should "be able to build a uri" do
32
+ url = 'http://example.com'
33
+ assert_equal URI.parse(url), Request::Data.new(@session, url).uri
34
+ end
35
+
36
+ should "be able to send a request for a single user" do
37
+ @session.stubs(:single_user?).returns(true)
38
+ response = mock('Net::HTTPOK') do |m|
39
+ m.expects(:kind_of?).with(Net::HTTPSuccess).returns(true)
40
+ end
41
+
42
+ data_request = Request::Data.new(@session, 'https://example.com/data', 'key' => 'value')
43
+ data_request.stubs(:single_user_request).returns(response)
44
+ data_request.send_request
45
+
46
+ assert_received(data_request, :single_user_request)
47
+ end
48
+
49
+ should "be able to send a request for an oauth user (Net::HTTP)" do
50
+ @session.stubs(:single_user?).returns(false)
51
+ @session.stubs(:oauth_user?).returns(true)
52
+ response = mock('Net::HTTPOK') do |m|
53
+ m.expects(:kind_of?).with(Net::HTTPSuccess).returns(true)
54
+ end
55
+
56
+ data_request = Request::Data.new(@session, 'https://example.com/data', 'key' => 'value')
57
+ data_request.stubs(:oauth_user_request).returns(response)
58
+ data_request.send_request
59
+
60
+ assert_received(data_request, :oauth_user_request)
61
+ end
62
+
63
+ should "be able to send a request for an oauth user (OAuth2)" do
64
+ @session.stubs(:single_user?).returns(false)
65
+ @session.stubs(:oauth_user?).returns(true)
66
+ response = mock('OAuth2::Response') do |m|
67
+ m.expects(:status).returns(200)
68
+ end
69
+
70
+ data_request = Request::Data.new(@session, 'https://example.com/data', 'key' => 'value')
71
+ data_request.stubs(:oauth_user_request).returns(response)
72
+ data_request.send_request
73
+
74
+ assert_received(data_request, :oauth_user_request)
75
+ end
76
+
77
+ should "raise if the request is unauthorized (Net::HTTP)" do
78
+ @session.stubs(:single_user?).returns(false)
79
+ @session.stubs(:oauth_user?).returns(true)
80
+ response = mock('Net::HTTPUnauthorized', :body => 'Error')
81
+
82
+ data_request = Request::Data.new(@session, 'https://example.com/data', 'key' => 'value')
83
+ data_request.stubs(:oauth_user_request).returns(response)
84
+
85
+ assert_raises(Garb::ClientError) do
86
+ data_request.send_request
87
+ end
88
+ end
89
+
90
+ should "raise if the request is unauthorized (OAuth2)" do
91
+ @session.stubs(:single_user?).returns(false)
92
+ @session.stubs(:oauth_user?).returns(true)
93
+ response = mock('OAuth2::Response') do |m|
94
+ m.expects(:status).returns(401)
95
+ m.expects(:body).returns('Error')
96
+ end
97
+
98
+ data_request = Request::Data.new(@session, 'https://example.com/data', 'key' => 'value')
99
+ data_request.stubs(:oauth_user_request).returns(response)
100
+
101
+ assert_raises(Garb::ClientError) do
102
+ data_request.send_request
103
+ end
104
+ end
105
+
106
+ should "be able to request via the ouath access token" do
107
+ access_token = stub(:get => "responseobject")
108
+ @session.stubs(:access_token).returns(access_token)
109
+
110
+ data_request = Request::Data.new(@session, 'https://example.com/data', 'key' => 'value')
111
+ assert_equal 'responseobject', data_request.oauth_user_request
112
+
113
+ assert_received(@session, :access_token)
114
+ assert_received(access_token, :get) {|e| e.with('https://example.com/data?key=value', {'GData-Version' => '3'})}
115
+ end
116
+
117
+ should "be able to request via http with an auth token" do
118
+ @session.expects(:auth_token).with().returns('toke')
119
+ response = mock
120
+
121
+ http = mock do |m|
122
+ m.expects(:open_timeout=).with(Garb.open_timeout)
123
+ m.expects(:read_timeout=).with(Garb.read_timeout)
124
+ m.expects(:use_ssl=).with(true)
125
+ m.expects(:verify_mode=).with(OpenSSL::SSL::VERIFY_NONE)
126
+ m.expects(:request_get).with('/data?key=value', {
127
+ 'Authorization' => 'GoogleLogin auth=toke',
128
+ 'GData-Version' => '3'
129
+ }).returns(response)
130
+ end
131
+
132
+ Garb.proxy_address = '127.0.0.1'
133
+ Garb.proxy_port = '1234'
134
+ Net::HTTP.expects(:new).with('example.com', 443, '127.0.0.1', '1234').returns(http)
135
+
136
+ data_request = Request::Data.new(@session, 'https://example.com/data', 'key' => 'value')
137
+ data_request.single_user_request
138
+ end
139
+
140
+ should "merge :api_key into the parameters" do
141
+ @session.api_key = 'some_api_key'
142
+
143
+ data_request = Request::Data.new(@session, 'https://example.com/data')
144
+ assert_equal data_request.parameters['key'], @session.api_key
145
+ end
146
+
147
+ should "merge :api_key into the parameters for default session" do
148
+ Garb::Session.api_key = 'some_api_key'
149
+
150
+ data_request = Request::Data.new(Garb::Session, 'https://example.com/data')
151
+ assert_equal data_request.parameters['key'], Garb::Session.api_key
152
+ end
153
+ end
154
+
155
+ end
156
+ end
157
+ end
@@ -2,12 +2,12 @@ require 'test_helper'
2
2
 
3
3
  module Garb
4
4
  class SessionTest < MiniTest::Unit::TestCase
5
-
5
+
6
6
  context "The Session class" do
7
-
7
+
8
8
  should "be able retrieve an auth_token for a user" do
9
9
  auth_request = mock {|m| m.expects(:auth_token).with({}).returns('toke') }
10
- AuthenticationRequest.expects(:new).with('email', 'password', {}).returns(auth_request)
10
+ Request::Authentication.expects(:new).with('email', 'password', {}).returns(auth_request)
11
11
 
12
12
  Session.login('email', 'password')
13
13
  assert_equal 'toke', Session.auth_token
@@ -16,15 +16,15 @@ module Garb
16
16
  should "be able retrieve an auth_token for a user with secure ssl" do
17
17
  opts = {:secure => true, :account_type => 'GOOGLE'}
18
18
  auth_request = mock {|m| m.expects(:auth_token).with(opts).returns('toke') }
19
- AuthenticationRequest.expects(:new).with('email', 'password', opts).returns(auth_request)
19
+ Request::Authentication.expects(:new).with('email', 'password', opts).returns(auth_request)
20
20
 
21
21
  Session.login('email', 'password', opts)
22
22
  assert_equal 'toke', Session.auth_token
23
23
  end
24
-
24
+
25
25
  should "retain the email address for this session" do
26
- AuthenticationRequest.stubs(:new).returns(stub(:auth_token => 'toke'))
27
-
26
+ Request::Authentication.stubs(:new).returns(stub(:auth_token => 'toke'))
27
+
28
28
  Session.login('email', 'password')
29
29
  assert_equal 'email', Session.email
30
30
  end
@@ -44,10 +44,10 @@ module Garb
44
44
  setup do
45
45
  @session = Session.new
46
46
  end
47
-
47
+
48
48
  should "be able retrieve an auth_token for a user" do
49
49
  auth_request = mock {|m| m.expects(:auth_token).with({}).returns('toke') }
50
- AuthenticationRequest.expects(:new).with('email', 'password', {}).returns(auth_request)
50
+ Request::Authentication.expects(:new).with('email', 'password', {}).returns(auth_request)
51
51
 
52
52
  @session.login('email', 'password')
53
53
  assert_equal 'toke', @session.auth_token
@@ -56,15 +56,15 @@ module Garb
56
56
  should "be able retrieve an auth_token for a user with secure ssl" do
57
57
  opts = {:secure => true, :account_type => 'GOOGLE'}
58
58
  auth_request = mock {|m| m.expects(:auth_token).with(opts).returns('toke') }
59
- AuthenticationRequest.expects(:new).with('email', 'password', opts).returns(auth_request)
59
+ Request::Authentication.expects(:new).with('email', 'password', opts).returns(auth_request)
60
60
 
61
61
  @session.login('email', 'password', opts)
62
62
  assert_equal 'toke', @session.auth_token
63
63
  end
64
-
64
+
65
65
  should "retain the email address for this session" do
66
- AuthenticationRequest.stubs(:new).returns(stub(:auth_token => 'toke'))
67
-
66
+ Request::Authentication.stubs(:new).returns(stub(:auth_token => 'toke'))
67
+
68
68
  @session.login('email', 'password')
69
69
  assert_equal 'email', @session.email
70
70
  end
@@ -7,20 +7,13 @@ class GarbTest < MiniTest::Unit::TestCase
7
7
  assert_equal 'ga:bob', Garb.to_google_analytics('bob')
8
8
  end
9
9
 
10
- should 'remove ga: prefix' do
11
- assert_equal 'bob', Garb.from_google_analytics('ga:bob')
10
+ should 'parse out - and put it before ga:' do
11
+ assert_equal '-ga:pageviews', Garb.to_google_analytics('-pageviews')
12
12
  end
13
13
 
14
- should "have a helper to parse properties out of entries" do
15
- entry = {"dxp:property"=>[{"name"=>"ga:accountId", "value"=>"1189765"}, {"name"=>"ga:webPropertyId", "value"=>"UA-1189765-1"}]}
16
-
17
- assert_equal({"account_id" => '1189765', "web_property_id" => "UA-1189765-1"}, Garb.parse_properties(entry))
14
+ should 'remove ga: prefix' do
15
+ assert_equal 'bob', Garb.from_google_analytics('ga:bob')
18
16
  end
19
17
 
20
- should "parse out the self link" do
21
- entry = {"link" => [{"rel" => "self", "href" => "http://google.com/accounts/12345"}]}
22
-
23
- assert_equal "http://google.com/accounts/12345", Garb.parse_link(entry, "self")
24
- end
25
18
  end
26
19
  end
@@ -19,16 +19,16 @@ class SymbolOperatorTest < MiniTest::Unit::TestCase
19
19
  # op2 = SymbolOperator.new(:hello, "==")
20
20
  # assert_equal op1, op2
21
21
  # end
22
- #
22
+ #
23
23
  # should "not be equal to another operator if target, operator, or prefix is different" do
24
24
  # op1 = SymbolOperator.new(:hello, "==")
25
25
  # op2 = SymbolOperator.new(:hello, "==", true)
26
26
  # refute_equal op1, op2
27
- #
27
+ #
28
28
  # op1 = SymbolOperator.new(:hello1, "==")
29
29
  # op2 = SymbolOperator.new(:hello2, "==")
30
30
  # refute_equal op1, op2
31
- #
31
+ #
32
32
  # op1 = SymbolOperator.new(:hello, "!=")
33
33
  # op2 = SymbolOperator.new(:hello, "==")
34
34
  # refute_equal op1, op2
metadata CHANGED
@@ -1,70 +1,67 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: garb
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 9
8
- - 1
9
- version: 0.9.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.7
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Tony Pitale
8
+ - Sijawusz Pur Rahnama
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-01-08 00:00:00 -05:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: crack
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 1
31
- - 6
32
- version: 0.1.6
33
- type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
12
+ date: 2013-12-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
36
15
  name: activesupport
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '2.2'
21
+ type: :runtime
37
22
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 2
45
- - 2
46
- - 0
47
- version: 2.2.0
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '2.2'
28
+ - !ruby/object:Gem::Dependency
29
+ name: multi_json
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '1.3'
48
35
  type: :runtime
49
- version_requirements: *id002
50
- description:
51
- email: tony.pitale@viget.com
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '1.3'
42
+ description: ''
43
+ email:
44
+ - tony.pitale@viget.com
45
+ - sija@sija.pl
52
46
  executables: []
53
-
54
47
  extensions: []
55
-
56
48
  extra_rdoc_files: []
57
-
58
- files:
49
+ files:
50
+ - .gitignore
51
+ - .travis.yml
52
+ - CHANGELOG.md
53
+ - Gemfile
59
54
  - README.md
60
55
  - Rakefile
61
- - lib/garb/account.rb
62
- - lib/garb/account_feed_request.rb
63
- - lib/garb/authentication_request.rb
64
- - lib/garb/data_request.rb
56
+ - garb.gemspec
57
+ - lib/garb.rb
58
+ - lib/garb/attributes.rb
59
+ - lib/garb/core_ext/array.rb
60
+ - lib/garb/core_ext/string.rb
61
+ - lib/garb/core_ext/symbol.rb
65
62
  - lib/garb/destination.rb
63
+ - lib/garb/errors.rb
66
64
  - lib/garb/filter_parameters.rb
67
- - lib/garb/goal.rb
68
65
  - lib/garb/management/account.rb
69
66
  - lib/garb/management/feed.rb
70
67
  - lib/garb/management/goal.rb
@@ -72,130 +69,36 @@ files:
72
69
  - lib/garb/management/segment.rb
73
70
  - lib/garb/management/web_property.rb
74
71
  - lib/garb/model.rb
75
- - lib/garb/profile.rb
72
+ - lib/garb/path_attribute.rb
76
73
  - lib/garb/profile_reports.rb
77
- - lib/garb/report.rb
78
74
  - lib/garb/report_parameter.rb
79
75
  - lib/garb/report_response.rb
76
+ - lib/garb/reports.rb
80
77
  - lib/garb/reports/bounces.rb
81
78
  - lib/garb/reports/exits.rb
82
79
  - lib/garb/reports/pageviews.rb
83
80
  - lib/garb/reports/unique_pageviews.rb
84
81
  - lib/garb/reports/visits.rb
85
- - lib/garb/reports.rb
86
- - lib/garb/resource.rb
82
+ - lib/garb/request/authentication.rb
83
+ - lib/garb/request/data.rb
87
84
  - lib/garb/result_set.rb
88
85
  - lib/garb/session.rb
89
86
  - lib/garb/step.rb
87
+ - lib/garb/support.rb
90
88
  - lib/garb/version.rb
91
- - lib/garb.rb
92
- - lib/support.rb
89
+ - test/fixtures/account_management.json
93
90
  - test/fixtures/cacert.pem
91
+ - test/fixtures/ga_profile_management.json
92
+ - test/fixtures/ga_segment_management.json
93
+ - test/fixtures/ga_webproperty_management.json
94
+ - test/fixtures/goal_management.json
95
+ - test/fixtures/profile_feed.json
94
96
  - test/fixtures/profile_feed.xml
97
+ - test/fixtures/report_feed.json
95
98
  - test/fixtures/report_feed.xml
96
99
  - test/test_helper.rb
97
- - test/unit/garb/account_feed_request_test.rb
98
- - test/unit/garb/account_test.rb
99
- - test/unit/garb/authentication_request_test.rb
100
- - test/unit/garb/coverage/assets/0.3.9/app.js
101
- - test/unit/garb/coverage/assets/0.3.9/fancybox/blank.gif
102
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_close.png
103
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_loading.png
104
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_nav_left.png
105
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_nav_right.png
106
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_e.png
107
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_n.png
108
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_ne.png
109
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_nw.png
110
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_s.png
111
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_se.png
112
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_sw.png
113
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_w.png
114
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_left.png
115
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_main.png
116
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_over.png
117
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_right.png
118
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancybox-x.png
119
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancybox-y.png
120
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancybox.png
121
- - test/unit/garb/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.css
122
- - test/unit/garb/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.pack.js
123
- - test/unit/garb/coverage/assets/0.3.9/favicon.png
124
- - test/unit/garb/coverage/assets/0.3.9/jquery-1.4.2.min.js
125
- - test/unit/garb/coverage/assets/0.3.9/jquery.dataTables.min.js
126
- - test/unit/garb/coverage/assets/0.3.9/jquery.timeago.js
127
- - test/unit/garb/coverage/assets/0.3.9/jquery.url.js
128
- - test/unit/garb/coverage/assets/0.3.9/loading.gif
129
- - test/unit/garb/coverage/assets/0.3.9/magnify.png
130
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
131
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
132
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
133
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
134
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_dadada_1x400.png
135
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
136
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
137
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
138
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_222222_256x240.png
139
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_2e83ff_256x240.png
140
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_454545_256x240.png
141
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_888888_256x240.png
142
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_cd0a0a_256x240.png
143
- - test/unit/garb/coverage/assets/0.3.9/smoothness/jquery-ui-1.8.4.custom.css
144
- - test/unit/garb/coverage/assets/0.3.9/stylesheet.css
145
- - test/unit/garb/coverage/index.html
146
- - test/unit/garb/coverage/resultset.yml
147
- - test/unit/garb/data_request_test.rb
148
- - test/unit/garb/destination_test.rb
149
100
  - test/unit/garb/filter_parameters_test.rb
150
- - test/unit/garb/goal_test.rb
151
101
  - test/unit/garb/management/account_test.rb
152
- - test/unit/garb/management/coverage/assets/0.3.9/app.js
153
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/blank.gif
154
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_close.png
155
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_loading.png
156
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_nav_left.png
157
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_nav_right.png
158
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_e.png
159
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_n.png
160
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_ne.png
161
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_nw.png
162
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_s.png
163
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_se.png
164
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_sw.png
165
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_w.png
166
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_left.png
167
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_main.png
168
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_over.png
169
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_right.png
170
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancybox-x.png
171
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancybox-y.png
172
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancybox.png
173
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.css
174
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.pack.js
175
- - test/unit/garb/management/coverage/assets/0.3.9/favicon.png
176
- - test/unit/garb/management/coverage/assets/0.3.9/jquery-1.4.2.min.js
177
- - test/unit/garb/management/coverage/assets/0.3.9/jquery.dataTables.min.js
178
- - test/unit/garb/management/coverage/assets/0.3.9/jquery.timeago.js
179
- - test/unit/garb/management/coverage/assets/0.3.9/jquery.url.js
180
- - test/unit/garb/management/coverage/assets/0.3.9/loading.gif
181
- - test/unit/garb/management/coverage/assets/0.3.9/magnify.png
182
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
183
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
184
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
185
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
186
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_dadada_1x400.png
187
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
188
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
189
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
190
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_222222_256x240.png
191
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_2e83ff_256x240.png
192
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_454545_256x240.png
193
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_888888_256x240.png
194
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_cd0a0a_256x240.png
195
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/jquery-ui-1.8.4.custom.css
196
- - test/unit/garb/management/coverage/assets/0.3.9/stylesheet.css
197
- - test/unit/garb/management/coverage/index.html
198
- - test/unit/garb/management/coverage/resultset.yml
199
102
  - test/unit/garb/management/feed_test.rb
200
103
  - test/unit/garb/management/goal_test.rb
201
104
  - test/unit/garb/management/profile_test.rb
@@ -204,154 +107,51 @@ files:
204
107
  - test/unit/garb/model_test.rb
205
108
  - test/unit/garb/oauth_session_test.rb
206
109
  - test/unit/garb/profile_reports_test.rb
207
- - test/unit/garb/profile_test.rb
208
110
  - test/unit/garb/report_parameter_test.rb
209
111
  - test/unit/garb/report_response_test.rb
210
- - test/unit/garb/report_test.rb
211
- - test/unit/garb/resource_test.rb
112
+ - test/unit/garb/request/authentication_test.rb
113
+ - test/unit/garb/request/data_test.rb
212
114
  - test/unit/garb/session_test.rb
213
- - test/unit/garb/step_test.rb
214
115
  - test/unit/garb_test.rb
215
116
  - test/unit/symbol_operator_test.rb
216
- has_rdoc: true
217
- homepage: http://github.com/vigetlabs/garb
218
- licenses: []
219
-
117
+ homepage: http://github.com/Sija/garb
118
+ licenses:
119
+ - MIT
120
+ metadata: {}
220
121
  post_install_message:
221
122
  rdoc_options: []
222
-
223
- require_paths:
123
+ require_paths:
224
124
  - lib
225
- required_ruby_version: !ruby/object:Gem::Requirement
226
- none: false
227
- requirements:
228
- - - ">="
229
- - !ruby/object:Gem::Version
230
- segments:
231
- - 0
232
- version: "0"
233
- required_rubygems_version: !ruby/object:Gem::Requirement
234
- none: false
235
- requirements:
236
- - - ">="
237
- - !ruby/object:Gem::Version
238
- segments:
239
- - 0
240
- version: "0"
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
241
135
  requirements: []
242
-
243
- rubyforge_project: viget
244
- rubygems_version: 1.3.7
136
+ rubyforge_project:
137
+ rubygems_version: 2.0.14
245
138
  signing_key:
246
- specification_version: 3
139
+ specification_version: 4
247
140
  summary: Google Analytics API Ruby Wrapper
248
- test_files:
141
+ test_files:
142
+ - test/fixtures/account_management.json
249
143
  - test/fixtures/cacert.pem
144
+ - test/fixtures/ga_profile_management.json
145
+ - test/fixtures/ga_segment_management.json
146
+ - test/fixtures/ga_webproperty_management.json
147
+ - test/fixtures/goal_management.json
148
+ - test/fixtures/profile_feed.json
250
149
  - test/fixtures/profile_feed.xml
150
+ - test/fixtures/report_feed.json
251
151
  - test/fixtures/report_feed.xml
252
152
  - test/test_helper.rb
253
- - test/unit/garb/account_feed_request_test.rb
254
- - test/unit/garb/account_test.rb
255
- - test/unit/garb/authentication_request_test.rb
256
- - test/unit/garb/coverage/assets/0.3.9/app.js
257
- - test/unit/garb/coverage/assets/0.3.9/fancybox/blank.gif
258
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_close.png
259
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_loading.png
260
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_nav_left.png
261
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_nav_right.png
262
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_e.png
263
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_n.png
264
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_ne.png
265
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_nw.png
266
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_s.png
267
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_se.png
268
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_sw.png
269
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_shadow_w.png
270
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_left.png
271
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_main.png
272
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_over.png
273
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancy_title_right.png
274
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancybox-x.png
275
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancybox-y.png
276
- - test/unit/garb/coverage/assets/0.3.9/fancybox/fancybox.png
277
- - test/unit/garb/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.css
278
- - test/unit/garb/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.pack.js
279
- - test/unit/garb/coverage/assets/0.3.9/favicon.png
280
- - test/unit/garb/coverage/assets/0.3.9/jquery-1.4.2.min.js
281
- - test/unit/garb/coverage/assets/0.3.9/jquery.dataTables.min.js
282
- - test/unit/garb/coverage/assets/0.3.9/jquery.timeago.js
283
- - test/unit/garb/coverage/assets/0.3.9/jquery.url.js
284
- - test/unit/garb/coverage/assets/0.3.9/loading.gif
285
- - test/unit/garb/coverage/assets/0.3.9/magnify.png
286
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
287
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
288
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
289
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
290
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_dadada_1x400.png
291
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
292
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
293
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
294
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_222222_256x240.png
295
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_2e83ff_256x240.png
296
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_454545_256x240.png
297
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_888888_256x240.png
298
- - test/unit/garb/coverage/assets/0.3.9/smoothness/images/ui-icons_cd0a0a_256x240.png
299
- - test/unit/garb/coverage/assets/0.3.9/smoothness/jquery-ui-1.8.4.custom.css
300
- - test/unit/garb/coverage/assets/0.3.9/stylesheet.css
301
- - test/unit/garb/coverage/index.html
302
- - test/unit/garb/coverage/resultset.yml
303
- - test/unit/garb/data_request_test.rb
304
- - test/unit/garb/destination_test.rb
305
153
  - test/unit/garb/filter_parameters_test.rb
306
- - test/unit/garb/goal_test.rb
307
154
  - test/unit/garb/management/account_test.rb
308
- - test/unit/garb/management/coverage/assets/0.3.9/app.js
309
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/blank.gif
310
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_close.png
311
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_loading.png
312
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_nav_left.png
313
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_nav_right.png
314
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_e.png
315
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_n.png
316
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_ne.png
317
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_nw.png
318
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_s.png
319
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_se.png
320
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_sw.png
321
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_shadow_w.png
322
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_left.png
323
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_main.png
324
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_over.png
325
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancy_title_right.png
326
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancybox-x.png
327
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancybox-y.png
328
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/fancybox.png
329
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.css
330
- - test/unit/garb/management/coverage/assets/0.3.9/fancybox/jquery.fancybox-1.3.1.pack.js
331
- - test/unit/garb/management/coverage/assets/0.3.9/favicon.png
332
- - test/unit/garb/management/coverage/assets/0.3.9/jquery-1.4.2.min.js
333
- - test/unit/garb/management/coverage/assets/0.3.9/jquery.dataTables.min.js
334
- - test/unit/garb/management/coverage/assets/0.3.9/jquery.timeago.js
335
- - test/unit/garb/management/coverage/assets/0.3.9/jquery.url.js
336
- - test/unit/garb/management/coverage/assets/0.3.9/loading.gif
337
- - test/unit/garb/management/coverage/assets/0.3.9/magnify.png
338
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
339
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
340
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
341
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
342
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_dadada_1x400.png
343
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
344
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
345
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
346
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_222222_256x240.png
347
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_2e83ff_256x240.png
348
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_454545_256x240.png
349
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_888888_256x240.png
350
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/images/ui-icons_cd0a0a_256x240.png
351
- - test/unit/garb/management/coverage/assets/0.3.9/smoothness/jquery-ui-1.8.4.custom.css
352
- - test/unit/garb/management/coverage/assets/0.3.9/stylesheet.css
353
- - test/unit/garb/management/coverage/index.html
354
- - test/unit/garb/management/coverage/resultset.yml
355
155
  - test/unit/garb/management/feed_test.rb
356
156
  - test/unit/garb/management/goal_test.rb
357
157
  - test/unit/garb/management/profile_test.rb
@@ -360,12 +160,10 @@ test_files:
360
160
  - test/unit/garb/model_test.rb
361
161
  - test/unit/garb/oauth_session_test.rb
362
162
  - test/unit/garb/profile_reports_test.rb
363
- - test/unit/garb/profile_test.rb
364
163
  - test/unit/garb/report_parameter_test.rb
365
164
  - test/unit/garb/report_response_test.rb
366
- - test/unit/garb/report_test.rb
367
- - test/unit/garb/resource_test.rb
165
+ - test/unit/garb/request/authentication_test.rb
166
+ - test/unit/garb/request/data_test.rb
368
167
  - test/unit/garb/session_test.rb
369
- - test/unit/garb/step_test.rb
370
168
  - test/unit/garb_test.rb
371
169
  - test/unit/symbol_operator_test.rb