simplificator-withings 0.4.4 → 0.4.5
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/README.rdoc +9 -1
- data/lib/withings/measurement_group.rb +1 -1
- data/lib/withings/user.rb +1 -1
- data/simplificator-withings.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -4,7 +4,15 @@ This is a ruby implementation for the Withings API. Description of the API can b
|
|
4
4
|
|
5
5
|
== Versions ==
|
6
6
|
|
7
|
-
|
7
|
+
|
8
|
+
=== 0.4.5 ===
|
9
|
+
E-Mail Address is downcased before hashing it (authentication)
|
10
|
+
|
11
|
+
=== 0.4.4 ===
|
12
|
+
Various fixes for the support of Blood Pressure Monitor
|
13
|
+
|
14
|
+
=== 0.4.0 ===
|
15
|
+
Note that this release breaks the API of previous releases:
|
8
16
|
|
9
17
|
=== User.authenticate ===
|
10
18
|
|
@@ -56,7 +56,7 @@ class Withings::MeasurementGroup
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def to_s
|
59
|
-
"[ Weight: #{self.weight}, Fat: #{self.fat}, Size: #{self.size}, Ratio: #{self.ratio}, Free: #{self.fat_free}, Blood Pressure: #{self.diastolic_blood_pressure}/#{self.systolic_blood_pressure} @ #{self.heart_pulse}, ID: #{self.group_id} (
|
59
|
+
"[ Weight: #{self.weight}, Fat: #{self.fat}, Size: #{self.size}, Ratio: #{self.ratio}, Free: #{self.fat_free}, Blood Pressure: #{self.diastolic_blood_pressure}/#{self.systolic_blood_pressure} @ #{self.heart_pulse}, ID: #{self.group_id} (taken at: #{self.taken_at.strftime("%d.%m.%Y %H:%M:%S")})]"
|
60
60
|
end
|
61
61
|
|
62
62
|
def inspect
|
data/lib/withings/user.rb
CHANGED
@@ -117,7 +117,7 @@ class Withings::User
|
|
117
117
|
|
118
118
|
def self.auth_hash(email, password)
|
119
119
|
hashed_password = Digest::MD5.hexdigest(password)
|
120
|
-
Digest::MD5.hexdigest("#{email}:#{hashed_password}:#{once}")
|
120
|
+
Digest::MD5.hexdigest("#{email.downcase}:#{hashed_password}:#{once}")
|
121
121
|
end
|
122
122
|
|
123
123
|
def self.once()
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplificator-withings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 5
|
10
|
+
version: 0.4.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- pascalbetz
|