mite-rb 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,6 +1,10 @@
1
1
  ## mite-rb Changelog
2
2
 
3
- ### 0.4.0 / 2012-12-31
3
+ ### 0.4.1 / 2012-02-01
4
+
5
+ * Fixed Mite.version
6
+
7
+ ### 0.4.0 / 2012-01-31
4
8
 
5
9
  * Default to https
6
10
  * Removed jeweler release dependency; now using bundler
data/lib/mite/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mite
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/lib/mite-rb.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'active_support'
2
2
  require 'active_resource'
3
- require 'yaml'
4
3
 
5
4
  # The official ruby library for interacting with the RESTful API of mite,
6
5
  # a sleek time tracking webapp.
@@ -63,12 +62,7 @@ module Mite
63
62
  end
64
63
 
65
64
  def version
66
- @version ||= begin
67
- config = YAML.load(File.read(File.join(File.dirname(__FILE__), "..", "VERSION.yml")))
68
- "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
69
- rescue
70
- "0.0.0"
71
- end
65
+ Mite::VERSION
72
66
  end
73
67
  end
74
68
 
@@ -76,7 +70,7 @@ module Mite
76
70
  self.domain_format = '%s.mite.yo.lk'
77
71
  self.protocol = 'https'
78
72
  self.port = ''
79
- self.user_agent = "mite-rb/#{Mite.version}"
73
+ self.user_agent = "mite-rb/#{Mite::VERSION}"
80
74
 
81
75
  class MethodNotAvaible < StandardError; end
82
76
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mite-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-31 00:00:00.000000000 Z
12
+ date: 2012-02-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activeresource
16
- requirement: &2159817620 !ruby/object:Gem::Requirement
16
+ requirement: &2159817640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 2.3.14
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2159817620
24
+ version_requirements: *2159817640
25
25
  description: The official ruby library for interacting with the RESTful mite.api.
26
26
  email:
27
27
  - sebastian@yo.lk
@@ -35,7 +35,6 @@ files:
35
35
  - LICENSE
36
36
  - README.md
37
37
  - Rakefile
38
- - VERSION.yml
39
38
  - lib/mite-rb.rb
40
39
  - lib/mite/account.rb
41
40
  - lib/mite/customer.rb
data/VERSION.yml DELETED
@@ -1,5 +0,0 @@
1
- ---
2
- :patch: 0
3
- :major: 0
4
- :build:
5
- :minor: 3