Skip to content
Browse files

Merge pull request #13 from yolk/master

mite-rb update / default https
  • Loading branch information...
2 parents d04fbd8 + 8fcca0e commit b885ab08e477edfdbe45382f9310d086bef9a925 @thomasklein thomasklein committed Feb 17, 2012
Showing with 6 additions and 9 deletions.
  1. +3 −9 lib/mite-rb.rb
  2. +3 −0 lib/mite/version.rb
View
12 lib/mite-rb.rb 100755 → 100644
@@ -1,6 +1,5 @@
require 'active_support'
require 'active_resource'
-require 'yaml'
# The official ruby library for interacting with the RESTful API of mite,
# a sleek time tracking webapp.
@@ -63,20 +62,15 @@ def validate!
end
def version
- @version ||= begin
- config = YAML.load(File.read(File.join(File.dirname(__FILE__), "..", "VERSION.yml")))
- "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
- rescue
- "0.0.0"
- end
+ Mite::VERSION
end
end
self.host_format = '%s://%s%s'
self.domain_format = '%s.mite.yo.lk'
- self.protocol = 'http'
+ self.protocol = 'https'
self.port = ''
- self.user_agent = "mite-rb/#{Mite.version}"
+ self.user_agent = "mite-rb/#{Mite::VERSION}"
class MethodNotAvaible < StandardError; end
View
3 lib/mite/version.rb
@@ -0,0 +1,3 @@
+module Mite
+ VERSION = "0.4.1"
+end

0 comments on commit b885ab0

Please sign in to comment.
Something went wrong with that request. Please try again.