Permalink
Browse files

added descending to symbol operators until we can get DM to share our…

… implementation, upped version to 0.8.4
  • Loading branch information...
1 parent 8d20f74 commit 113c2001d53d245a99d02d939091f069cee157cc @tpitale tpitale committed Oct 11, 2010
Showing with 7 additions and 6 deletions.
  1. +2 −2 garb.gemspec
  2. +1 −1 lib/garb/version.rb
  3. +4 −3 lib/support.rb
View
@@ -2,11 +2,11 @@
Gem::Specification.new do |s|
s.name = %q{garb}
- s.version = "0.8.3"
+ s.version = "0.8.4"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Tony Pitale"]
- s.date = %q{2010-10-10}
+ s.date = %q{2010-10-11}
s.email = %q{tony.pitale@viget.com}
s.files = ["README.md", "Rakefile", "lib/garb", "lib/garb/account.rb", "lib/garb/account_feed_request.rb", "lib/garb/authentication_request.rb", "lib/garb/data_request.rb", "lib/garb/destination.rb", "lib/garb/filter_parameters.rb", "lib/garb/goal.rb", "lib/garb/management", "lib/garb/management/account.rb", "lib/garb/management/feed.rb", "lib/garb/management/goal.rb", "lib/garb/management/profile.rb", "lib/garb/management/web_property.rb", "lib/garb/model.rb", "lib/garb/profile.rb", "lib/garb/profile_reports.rb", "lib/garb/report.rb", "lib/garb/report_parameter.rb", "lib/garb/report_response.rb", "lib/garb/reports", "lib/garb/reports/bounces.rb", "lib/garb/reports/exits.rb", "lib/garb/reports/pageviews.rb", "lib/garb/reports/unique_pageviews.rb", "lib/garb/reports/visits.rb", "lib/garb/reports.rb", "lib/garb/resource.rb", "lib/garb/session.rb", "lib/garb/step.rb", "lib/garb/version.rb", "lib/garb.rb", "lib/support.rb", "test/fixtures", "test/fixtures/cacert.pem", "test/fixtures/profile_feed.xml", "test/fixtures/report_feed.xml", "test/test_helper.rb", "test/unit", "test/unit/garb", "test/unit/garb/account_feed_request_test.rb", "test/unit/garb/account_test.rb", "test/unit/garb/authentication_request_test.rb", "test/unit/garb/data_request_test.rb", "test/unit/garb/destination_test.rb", "test/unit/garb/filter_parameters_test.rb", "test/unit/garb/goal_test.rb", "test/unit/garb/management", "test/unit/garb/management/account_test.rb", "test/unit/garb/management/profile_test.rb", "test/unit/garb/management/web_property_test.rb", "test/unit/garb/model_test.rb", "test/unit/garb/oauth_session_test.rb", "test/unit/garb/profile_reports_test.rb", "test/unit/garb/profile_test.rb", "test/unit/garb/report_parameter_test.rb", "test/unit/garb/report_response_test.rb", "test/unit/garb/report_test.rb", "test/unit/garb/resource_test.rb", "test/unit/garb/session_test.rb", "test/unit/garb/step_test.rb", "test/unit/garb_test.rb", "test/unit/symbol_operator_test.rb"]
s.homepage = %q{http://github.com/vigetlabs/garb}
View
@@ -3,7 +3,7 @@ module Version
MAJOR = 0
MINOR = 8
- TINY = 3
+ TINY = 4
def self.to_s # :nodoc:
[MAJOR, MINOR, TINY].join('.')
View
@@ -17,18 +17,19 @@ def to_google_analytics
:does_not_contain => '!~',
:substring => '=@',
:not_substring => '!@',
- :desc => '-'
+ :desc => '-',
+ :descending => '-'
}
target = Garb.to_google_analytics(@field)
operator = operators[@operator]
- @operator == :desc ? "#{operator}#{target}" : "#{target}#{operator}"
+ [:desc, :descending].include?(@operator) ? "#{operator}#{target}" : "#{target}#{operator}"
end
end
class Symbol
- [:eql, :not_eql, :gt, :gte, :lt, :lte, :desc,
+ [:eql, :not_eql, :gt, :gte, :lt, :lte, :desc, :descending,
:matches, :does_not_match, :contains, :does_not_contain,
:substring, :not_substring].each do |operator|

0 comments on commit 113c200

Please sign in to comment.