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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37ff56377034a897b8728a5cc91d58dd272e9b9d
4
- data.tar.gz: 387f07977520261141793be61c372de4533e2dc3
3
+ metadata.gz: 8cafe3529c5385f3d3fbcd5c182298b9dea96de2
4
+ data.tar.gz: 6ed6a63dbe46beeaaf57a002d4f8517bd442a024
5
5
  SHA512:
6
- metadata.gz: 1688ff9d3bd3e4bbdba42339a1d5f7f2cce42c75eb1b8287c9f0f2ca96633e19a2140767dfbe5d992fdcfa87843ea2199e27908fee0e4b6405e2a9aca725fae7
7
- data.tar.gz: fcff68d995e1e382750422984989a2d6772c974ae4c2d9720f66bff3c22a96c5461846b889f1f53943b652e4498745faaba1fd05218ee8cef369cee5e3bde77a
6
+ metadata.gz: 8a2773b618bab31c079fe8b831eef9bcc59eae06aba4e7739cab24f70f260de43661e3a97142ca1869cfff914652a89b8b127b4f21777b86e280e22a00ddf3cd
7
+ data.tar.gz: 56a9c0f2f0ad38add74164e80fa874ba2d8d677edddd76c7ab351f2f921d1c022189989f82a677bb8dc04668c1a96b826c574c5aa577e7f10e292c955559a84a
@@ -1,3 +1,8 @@
1
+ # 0.1.0
2
+ * Register settings through plugin registry
3
+ * Require my_timeline 0.1.0
4
+ * Slight refactoring
5
+
1
6
  # 0.0.2
2
7
  * Added Rails 4 compatibility
3
8
  * Require my_timeline 0.0.4
@@ -5,6 +5,10 @@ module MyTimeline
5
5
  belongs_to :event, dependent: :destroy
6
6
 
7
7
  attr_protected unless rails4?
8
+
9
+ def self.keep_original_time_zone?
10
+ true
11
+ end
8
12
  end
9
13
  end
10
14
  end
@@ -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 = '0e5a8f038da04633bd539ec664037ea9' #user.settings(:health_graph).client_id
12
- config.client_secret = '838ad884eb644ebab93d09f302196244' #user.settings(:health_graph).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.config_object.key :health_graph, defaults: {user_token: nil}
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
@@ -1,5 +1,5 @@
1
1
  module MyTimeline
2
2
  module HealthGraph
3
- VERSION = "0.0.2"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -15,6 +15,6 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.files = `git ls-files`.split("\n")
17
17
 
18
- s.add_runtime_dependency "my_timeline", '>= 0.0.4'
18
+ s.add_runtime_dependency "my_timeline", '>= 0.1.0'
19
19
  s.add_runtime_dependency "health_graph"
20
20
  end
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.2
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-10 00:00:00.000000000 Z
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.4
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.4
26
+ version: 0.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: health_graph
29
29
  requirement: !ruby/object:Gem::Requirement