ruby-fitbit 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -53,9 +53,9 @@ class RubyFitbit
53
53
  @fairly_active = page.search("//div[@class='caption fairly']/div[@class='number']").text.strip
54
54
  @very_active = page.search("//div[@class='caption very']/div[@class='number']").text.strip
55
55
  data = {}
56
- data['calories'] = @calories
57
- data['steps'] = @steps
58
- data['miles_walked'] = @miles_walked
56
+ data['calories'] = @calories.to_i
57
+ data['steps'] = @steps.to_i
58
+ data['miles_walked'] = @miles_walked.to_f
59
59
  data['sedentary_active'] = @sedentary_active
60
60
  data['lightly_active'] = @lightly_active
61
61
  data['fairly_active'] = @fairly_active
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruby-fitbit}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Mayer"]
12
- s.date = %q{2010-07-20}
12
+ s.date = %q{2010-07-24}
13
13
  s.default_executable = %q{ruby-fitbit}
14
14
  s.description = %q{This is a Ruby API for Fitbit.com, currently scraping, but soon will use the officail API (when released)}
15
15
  s.email = %q{Danmayer@gmail.com}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dan Mayer
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-20 00:00:00 -04:00
17
+ date: 2010-07-24 00:00:00 -04:00
18
18
  default_executable: ruby-fitbit
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency