Skip to content

Commit

Permalink
Fix version number
Browse files Browse the repository at this point in the history
Accidentally marked version down as 0.3.3 instead of 0.3.2. This commit
fixes that mistake.
  • Loading branch information
leesharma committed May 22, 2016
1 parent e0f3a1c commit 5e4769f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/rescuetime/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def valid_credentials?
#
# @param [#emtpy?] obj
# @return [Boolean]
# @since v0.3.3
# @since v0.3.2
def present?(obj)
blank = obj.respond_to?(:empty?) ? obj.empty? : obj.nil?
!blank
Expand Down
2 changes: 1 addition & 1 deletion lib/rescuetime/date_parser.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Rescuetime
# Responsible for formatting user-inputted dates into proper Rescuetime format
# @since v0.3.3
# @since v0.3.2
class DateParser
# Valid string formats for date parsing. The key is a human-readable pattern
# (ex. 'yyyy-mm-dd'), and the value is the corresponding regular expression.
Expand Down
8 changes: 4 additions & 4 deletions lib/rescuetime/query_buildable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,15 @@ def add_to_query(**terms)
# Returns a list of valid orders
#
# @return [Array<String>] a list of valid order arguments
# @since v0.3.3
# @since v0.3.2
def valid_orders
VALID[:order_by]
end

# Returns a list of valid intervals
#
# @return [Array<String>] a list of valid interval arguments
# @since v0.3.3
# @since v0.3.2
def valid_intervals
VALID[:interval]
end
Expand All @@ -400,7 +400,7 @@ def valid_intervals
#
# @param [#to_s] order order to check for validity
# @return [Boolean] true if the order is valid
# @since v0.3.3
# @since v0.3.2
def valid_order?(order)
valid_orders.include? order.to_s
end
Expand All @@ -409,7 +409,7 @@ def valid_order?(order)
#
# @param [#to_s] interval interval to check for validity
# @return [Boolean] true if the interval is valid
# @since v0.3.3
# @since v0.3.2
def valid_interval?(interval)
return true if interval.nil? # intervals aren't required
valid_intervals.include? interval.to_s
Expand Down
4 changes: 2 additions & 2 deletions lib/rescuetime/requester.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def fail_or_return(response)
# @return [Lambda] a lambda that returns true if the api key was not found
#
# @see Rescuetime::Requester::INVALID
# @since v0.3.3
# @since v0.3.2
def key_not_found?
->(body) { body =~ /#{INVALID[:key_not_found]}/ }
end
Expand All @@ -90,7 +90,7 @@ def key_not_found?
# @return [Lambda] a lambda that returns true if the query was invalid
#
# @see Rescuetime::Requester::INVALID
# @since v0.3.3
# @since v0.3.2
def invalid_query?
->(body) { body =~ /#{INVALID[:query]}/ }
end
Expand Down
3 changes: 2 additions & 1 deletion lib/rescuetime/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# lib/rescuetime/version.rb
module Rescuetime
# rescuetime gem version number
VERSION = '0.3.3'
VERSION = '0.3.2'
end

0 comments on commit 5e4769f

Please sign in to comment.