my_timeline-health_graph 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/models/my_timeline/health_graph/cardio_activity.rb +4 -0
- data/app/scrapers/my_timeline/health_graph/health_graph_scraper.rb +5 -6
- data/lib/my_timeline/health_graph/engine.rb +1 -2
- data/lib/my_timeline/health_graph/version.rb +1 -1
- data/my_timeline-health_graph.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cafe3529c5385f3d3fbcd5c182298b9dea96de2
|
4
|
+
data.tar.gz: 6ed6a63dbe46beeaaf57a002d4f8517bd442a024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a2773b618bab31c079fe8b831eef9bcc59eae06aba4e7739cab24f70f260de43661e3a97142ca1869cfff914652a89b8b127b4f21777b86e280e22a00ddf3cd
|
7
|
+
data.tar.gz: 56a9c0f2f0ad38add74164e80fa874ba2d8d677edddd76c7ab351f2f921d1c022189989f82a677bb8dc04668c1a96b826c574c5aa577e7f10e292c955559a84a
|
data/CHANGELOG.md
CHANGED
@@ -7,15 +7,14 @@ module MyTimeline
|
|
7
7
|
attr_accessor :user, :activities, :health_graph_user, :count
|
8
8
|
|
9
9
|
def initialize(user)
|
10
|
+
@user = user
|
11
|
+
|
10
12
|
::HealthGraph.configure do |config|
|
11
|
-
config.client_id =
|
12
|
-
config.client_secret =
|
13
|
+
config.client_id = user.settings(:health_graph).client_id
|
14
|
+
config.client_secret = user.settings(:health_graph).client_secret
|
13
15
|
config.authorization_redirect_url = ""
|
14
16
|
end
|
15
|
-
|
16
|
-
@user = user
|
17
|
-
|
18
|
-
@health_graph_user = ::HealthGraph::User.new(user.settings(:health_graph).user_token)
|
17
|
+
@health_graph_user = ::HealthGraph::User.new user.settings(:health_graph).user_token
|
19
18
|
end
|
20
19
|
|
21
20
|
def scrape(type = :cardio_activities)
|
@@ -14,8 +14,7 @@ module MyTimeline
|
|
14
14
|
end
|
15
15
|
|
16
16
|
config.after_initialize do |app|
|
17
|
-
MyTimeline.
|
18
|
-
MyTimeline.register_plugin :health_graph
|
17
|
+
MyTimeline.register_plugin :health_graph, defaults: {user_token: nil}
|
19
18
|
end
|
20
19
|
|
21
20
|
rake_tasks do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_timeline-health_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Aiken
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: my_timeline
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.0
|
19
|
+
version: 0.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.0
|
26
|
+
version: 0.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: health_graph
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|