health_graph 0.5.4 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,20 +1,2 @@
1
- source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
-
6
- gem "oauth2", "= 0.5.2"
7
- gem "faraday", "= 0.7.4"
8
- gem "faraday_middleware", "= 0.7.0"
9
- gem "hashie", "= 1.2"
10
- gem "json"
11
-
12
- # Add dependencies to develop your gem here.
13
- # Include everything needed to run rake, tests, features, etc.
14
- group :development do
15
- gem "shoulda", ">= 0"
16
- gem "webmock", "= 1.7.4"
17
- gem "bundler", "~> 1.0.0"
18
- gem "jeweler", "~> 1.6.4"
19
- gem "rcov", ">= 0"
20
- end
1
+ source "https://rubygems.org"
2
+ gemspec
data/Rakefile CHANGED
@@ -1,19 +1,9 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
3
+ task :default => :test
13
4
 
14
5
  require 'jeweler'
15
6
  Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
7
  gem.name = "health_graph"
18
8
  gem.homepage = "http://github.com/kennyma/health_graph"
19
9
  gem.license = "MIT"
@@ -21,13 +11,16 @@ Jeweler::Tasks.new do |gem|
21
11
  gem.description = "This is a wrapper for RunKeeper Health Graph RESTful API."
22
12
  gem.email = "kenny@kennyma.me"
23
13
  gem.authors = ["Kenny Ma"]
24
- # dependencies defined in Gemfile
25
- gem.add_dependency 'oauth2', '= 0.5.2'
26
- gem.add_dependency 'faraday', '= 0.7.4'
27
- gem.add_dependency 'faraday_middleware', '= 0.7.0'
28
- gem.add_dependency 'hashie', '= 1.2'
29
- gem.add_dependency 'webmock', '= 1.7.6'
30
- gem.add_dependency 'json'
14
+
15
+ gem.add_dependency "oauth2", ">= 0.5.2"
16
+ gem.add_dependency "faraday", ">= 0.7.4"
17
+ gem.add_dependency "faraday_middleware", ">= 0.7.8"
18
+ gem.add_dependency "hashie", ">= 1.2"
19
+ gem.add_dependency "webmock", ">= 1.7.6"
20
+
21
+ gem.add_development_dependency "shoulda"
22
+ gem.add_development_dependency "simplecov"
23
+ gem.add_development_dependency "jeweler"
31
24
  end
32
25
  Jeweler::RubygemsDotOrgTasks.new
33
26
 
@@ -38,17 +31,7 @@ Rake::TestTask.new(:test) do |test|
38
31
  test.verbose = true
39
32
  end
40
33
 
41
- require 'rcov/rcovtask'
42
- Rcov::RcovTask.new do |test|
43
- test.libs << 'test'
44
- test.pattern = 'test/**/test_*.rb'
45
- test.verbose = true
46
- test.rcov_opts << '--exclude "gems/*"'
47
- end
48
-
49
- task :default => :test
50
-
51
- require 'rake/rdoctask'
34
+ require 'rdoc/task'
52
35
  Rake::RDocTask.new do |rdoc|
53
36
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
54
37
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.4
1
+ 0.5.6
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{health_graph}
8
- s.version = "0.5.4"
7
+ s.name = "health_graph"
8
+ s.version = "0.5.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kenny Ma"]
12
- s.date = %q{2012-03-09}
13
- s.description = %q{This is a wrapper for RunKeeper Health Graph RESTful API.}
14
- s.email = %q{kenny@kennyma.me}
12
+ s.date = "2012-05-09"
13
+ s.description = "This is a wrapper for RunKeeper Health Graph RESTful API."
14
+ s.email = "kenny@kennyma.me"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.rdoc"
@@ -19,7 +19,6 @@ Gem::Specification.new do |s|
19
19
  s.files = [
20
20
  ".document",
21
21
  "Gemfile",
22
- "Gemfile.lock",
23
22
  "LICENSE.txt",
24
23
  "README.rdoc",
25
24
  "Rakefile",
@@ -31,6 +30,7 @@ Gem::Specification.new do |s|
31
30
  "lib/health_graph/configuration.rb",
32
31
  "lib/health_graph/model.rb",
33
32
  "lib/health_graph/models/fitness_activities_feed.rb",
33
+ "lib/health_graph/models/fitness_activity_delete.rb",
34
34
  "lib/health_graph/models/fitness_activity_update.rb",
35
35
  "lib/health_graph/models/new_fitness_activity.rb",
36
36
  "lib/health_graph/models/profile.rb",
@@ -58,68 +58,55 @@ Gem::Specification.new do |s|
58
58
  "test/helper.rb",
59
59
  "test/test_health_graph.rb"
60
60
  ]
61
- s.homepage = %q{http://github.com/kennyma/health_graph}
61
+ s.homepage = "http://github.com/kennyma/health_graph"
62
62
  s.licenses = ["MIT"]
63
63
  s.require_paths = ["lib"]
64
- s.rubygems_version = %q{1.3.7}
65
- s.summary = %q{Ruby gem for RunKeeper Health Graph API}
64
+ s.rubygems_version = "1.8.24"
65
+ s.summary = "Ruby gem for RunKeeper Health Graph API"
66
66
 
67
67
  if s.respond_to? :specification_version then
68
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
69
68
  s.specification_version = 3
70
69
 
71
70
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
72
- s.add_runtime_dependency(%q<oauth2>, ["= 0.5.2"])
73
- s.add_runtime_dependency(%q<faraday>, ["= 0.7.4"])
74
- s.add_runtime_dependency(%q<faraday_middleware>, ["= 0.7.0"])
75
- s.add_runtime_dependency(%q<hashie>, ["= 1.2"])
76
- s.add_runtime_dependency(%q<json>, [">= 0"])
71
+ s.add_runtime_dependency(%q<health_graph>, [">= 0"])
77
72
  s.add_development_dependency(%q<shoulda>, [">= 0"])
78
- s.add_development_dependency(%q<webmock>, ["= 1.7.4"])
79
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
80
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
81
- s.add_development_dependency(%q<rcov>, [">= 0"])
82
- s.add_runtime_dependency(%q<oauth2>, ["= 0.5.2"])
83
- s.add_runtime_dependency(%q<faraday>, ["= 0.7.4"])
84
- s.add_runtime_dependency(%q<faraday_middleware>, ["= 0.7.0"])
85
- s.add_runtime_dependency(%q<hashie>, ["= 1.2"])
86
- s.add_runtime_dependency(%q<webmock>, ["= 1.7.6"])
87
- s.add_runtime_dependency(%q<json>, [">= 0"])
73
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
74
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
75
+ s.add_runtime_dependency(%q<oauth2>, [">= 0.5.2"])
76
+ s.add_runtime_dependency(%q<faraday>, [">= 0.7.4"])
77
+ s.add_runtime_dependency(%q<faraday_middleware>, [">= 0.7.8"])
78
+ s.add_runtime_dependency(%q<hashie>, [">= 1.2"])
79
+ s.add_runtime_dependency(%q<webmock>, [">= 1.7.6"])
80
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
81
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
82
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
88
83
  else
89
- s.add_dependency(%q<oauth2>, ["= 0.5.2"])
90
- s.add_dependency(%q<faraday>, ["= 0.7.4"])
91
- s.add_dependency(%q<faraday_middleware>, ["= 0.7.0"])
92
- s.add_dependency(%q<hashie>, ["= 1.2"])
93
- s.add_dependency(%q<json>, [">= 0"])
84
+ s.add_dependency(%q<health_graph>, [">= 0"])
85
+ s.add_dependency(%q<shoulda>, [">= 0"])
86
+ s.add_dependency(%q<simplecov>, [">= 0"])
87
+ s.add_dependency(%q<jeweler>, [">= 0"])
88
+ s.add_dependency(%q<oauth2>, [">= 0.5.2"])
89
+ s.add_dependency(%q<faraday>, [">= 0.7.4"])
90
+ s.add_dependency(%q<faraday_middleware>, [">= 0.7.8"])
91
+ s.add_dependency(%q<hashie>, [">= 1.2"])
92
+ s.add_dependency(%q<webmock>, [">= 1.7.6"])
94
93
  s.add_dependency(%q<shoulda>, [">= 0"])
95
- s.add_dependency(%q<webmock>, ["= 1.7.4"])
96
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
97
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
98
- s.add_dependency(%q<rcov>, [">= 0"])
99
- s.add_dependency(%q<oauth2>, ["= 0.5.2"])
100
- s.add_dependency(%q<faraday>, ["= 0.7.4"])
101
- s.add_dependency(%q<faraday_middleware>, ["= 0.7.0"])
102
- s.add_dependency(%q<hashie>, ["= 1.2"])
103
- s.add_dependency(%q<webmock>, ["= 1.7.6"])
104
- s.add_dependency(%q<json>, [">= 0"])
94
+ s.add_dependency(%q<simplecov>, [">= 0"])
95
+ s.add_dependency(%q<jeweler>, [">= 0"])
105
96
  end
106
97
  else
107
- s.add_dependency(%q<oauth2>, ["= 0.5.2"])
108
- s.add_dependency(%q<faraday>, ["= 0.7.4"])
109
- s.add_dependency(%q<faraday_middleware>, ["= 0.7.0"])
110
- s.add_dependency(%q<hashie>, ["= 1.2"])
111
- s.add_dependency(%q<json>, [">= 0"])
98
+ s.add_dependency(%q<health_graph>, [">= 0"])
99
+ s.add_dependency(%q<shoulda>, [">= 0"])
100
+ s.add_dependency(%q<simplecov>, [">= 0"])
101
+ s.add_dependency(%q<jeweler>, [">= 0"])
102
+ s.add_dependency(%q<oauth2>, [">= 0.5.2"])
103
+ s.add_dependency(%q<faraday>, [">= 0.7.4"])
104
+ s.add_dependency(%q<faraday_middleware>, [">= 0.7.8"])
105
+ s.add_dependency(%q<hashie>, [">= 1.2"])
106
+ s.add_dependency(%q<webmock>, [">= 1.7.6"])
112
107
  s.add_dependency(%q<shoulda>, [">= 0"])
113
- s.add_dependency(%q<webmock>, ["= 1.7.4"])
114
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
115
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
116
- s.add_dependency(%q<rcov>, [">= 0"])
117
- s.add_dependency(%q<oauth2>, ["= 0.5.2"])
118
- s.add_dependency(%q<faraday>, ["= 0.7.4"])
119
- s.add_dependency(%q<faraday_middleware>, ["= 0.7.0"])
120
- s.add_dependency(%q<hashie>, ["= 1.2"])
121
- s.add_dependency(%q<webmock>, ["= 1.7.6"])
122
- s.add_dependency(%q<json>, [">= 0"])
108
+ s.add_dependency(%q<simplecov>, [">= 0"])
109
+ s.add_dependency(%q<jeweler>, [">= 0"])
123
110
  end
124
111
  end
125
112
 
@@ -12,6 +12,7 @@ require 'health_graph/models/sleep_feed'
12
12
  require 'health_graph/models/fitness_activities_feed'
13
13
  require 'health_graph/models/new_fitness_activity'
14
14
  require 'health_graph/models/fitness_activity_update'
15
+ require 'health_graph/models/fitness_activity_delete'
15
16
 
16
17
  module HealthGraph
17
18
  extend Configuration
@@ -44,7 +44,7 @@ module HealthGraph
44
44
 
45
45
  Faraday.new(merged_options) do |builder|
46
46
  builder.use Faraday::Request::UrlEncoded
47
- builder.use Faraday::Request::JSON if method == :post
47
+ builder.use FaradayMiddleware::EncodeJson if method == :post
48
48
  builder.use Faraday::Response::Mashify
49
49
  builder.use Faraday::Response::ParseJson
50
50
  builder.adapter(HealthGraph.adapter)
@@ -0,0 +1,15 @@
1
+ module HealthGraph
2
+ class FitnessActivityDelete
3
+ include Model
4
+
5
+ hash_attr_accessor :location, :status
6
+
7
+ def initialize access_token, params
8
+ self.access_token = access_token
9
+ response = delete params["uri"], HealthGraph.accept_headers[:fitness_activity], params
10
+
11
+ self.location = response.headers[:location]
12
+ self.status = response.status
13
+ end
14
+ end
15
+ end
@@ -34,5 +34,9 @@ module HealthGraph
34
34
  def fitness_activity_update params
35
35
  HealthGraph::FitnessActivityUpdate.new self.access_token, params
36
36
  end
37
+
38
+ def fitness_activity_delete params
39
+ HealthGraph::FitnessActivityDelete.new self.access_token, params
40
+ end
37
41
  end
38
42
  end
@@ -3,17 +3,17 @@ require 'helper'
3
3
  class TestFitnessActivitiesFeed < Test::Unit::TestCase
4
4
  context "fitness activities" do
5
5
  setup do
6
- stub_request(:get, HealthGraph.endpoint + '/user')
7
- .with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:user]})
8
- .to_return(:body => fixture('user_get.json'))
6
+ stub_request(:get, HealthGraph.endpoint + '/user'
7
+ ).with(:header => { 'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:user]}
8
+ ).to_return(:body => fixture('user_get.json'))
9
9
 
10
- stub_request(:get, HealthGraph.endpoint + '/fitnessActivities')
11
- .with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:fitness_activities_feed]})
12
- .to_return(:body => fixture('fitness_activities_feed.json'))
10
+ stub_request(:get, HealthGraph.endpoint + '/fitnessActivities'
11
+ ).with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:fitness_activities_feed]}
12
+ ).to_return(:body => fixture('fitness_activities_feed.json'))
13
13
 
14
- stub_request(:get, HealthGraph.endpoint + '/fitnessActivities?pageSize=3')
15
- .with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:fitness_activities_feed]})
16
- .to_return(:body => fixture('fitness_activities_feed.json'))
14
+ stub_request(:get, HealthGraph.endpoint + '/fitnessActivities?pageSize=3'
15
+ ).with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:fitness_activities_feed]}
16
+ ).to_return(:body => fixture('fitness_activities_feed.json'))
17
17
 
18
18
  @user = HealthGraph::User.new(TEST_USER_TOKEN)
19
19
  end
@@ -3,14 +3,14 @@ require 'helper'
3
3
  class TestNewFitnessActivity < Test::Unit::TestCase
4
4
  context "New Fitness Activity" do
5
5
  setup do
6
- stub_request(:post, HealthGraph.endpoint + '/fitnessActivities')
7
- .with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:new_fitness_activity]})
8
- .to_return(:status => 201, :headers => {'location' => '/fitnessActivities/20'})
6
+ stub_request(:post, HealthGraph.endpoint + '/fitnessActivities'
7
+ ).with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:new_fitness_activity]}
8
+ ).to_return(:status => 201, :headers => {'location' => '/fitnessActivities/20'})
9
9
  end
10
10
 
11
11
  should "make request to api" do
12
- activity = HealthGraph::NewFitnessActivity.new(TEST_USER_TOKEN, json_fixture('new_fitness_activity_params.json'))
13
- assert_requested :post, HealthGraph.endpoint + '/fitnessActivities', :header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:new_fitness_activity]}, :times => 1
12
+ activity = HealthGraph::NewFitnessActivity.new(TEST_USER_TOKEN, json_fixture('new_fitness_activity_params.json'))
13
+ assert_requested :post, HealthGraph.endpoint + '/fitnessActivities', :header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:new_fitness_activity]}, :times => 1
14
14
  end
15
15
 
16
16
  should "get location" do
@@ -3,13 +3,13 @@ require 'helper'
3
3
  class TestProfile < Test::Unit::TestCase
4
4
  context "profile" do
5
5
  setup do
6
- stub_request(:get, HealthGraph.endpoint + '/user')
7
- .with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:user]})
8
- .to_return(:body => fixture('user_get.json'))
6
+ stub_request(:get, HealthGraph.endpoint + '/user'
7
+ ).with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:user]}
8
+ ).to_return(:body => fixture('user_get.json'))
9
9
 
10
- stub_request(:get, HealthGraph.endpoint + '/profile')
11
- .with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:profile]})
12
- .to_return(:body => fixture('profile_get.json'))
10
+ stub_request(:get, HealthGraph.endpoint + '/profile'
11
+ ).with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:profile]}
12
+ ).to_return(:body => fixture('profile_get.json'))
13
13
 
14
14
  @user = HealthGraph::User.new(TEST_USER_TOKEN)
15
15
  end
@@ -3,13 +3,13 @@ require 'helper'
3
3
  class TestSleepFeed < Test::Unit::TestCase
4
4
  context "sleep" do
5
5
  setup do
6
- stub_request(:get, HealthGraph.endpoint + '/user')
7
- .with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:user]})
8
- .to_return(:body => fixture('user_get.json'))
6
+ stub_request(:get, HealthGraph.endpoint + '/user'
7
+ ).with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:user]}
8
+ ).to_return(:body => fixture('user_get.json'))
9
9
 
10
- stub_request(:get, HealthGraph.endpoint + '/sleep')
11
- .with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:sleep_feed]})
12
- .to_return(:body => fixture('sleep_feed_get.json'))
10
+ stub_request(:get, HealthGraph.endpoint + '/sleep'
11
+ ).with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:sleep_feed]}
12
+ ).to_return(:body => fixture('sleep_feed_get.json'))
13
13
 
14
14
  @user = HealthGraph::User.new(TEST_USER_TOKEN)
15
15
  end
@@ -3,9 +3,9 @@ require 'helper'
3
3
  class TestUser < Test::Unit::TestCase
4
4
  context "user" do
5
5
  setup do
6
- stub_request(:get, HealthGraph.endpoint + '/user')
7
- .with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:user]})
8
- .to_return(:body => fixture('user_get.json'))
6
+ stub_request(:get, HealthGraph.endpoint + '/user'
7
+ ).with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:user]}
8
+ ).to_return(:body => fixture('user_get.json'))
9
9
  end
10
10
 
11
11
  should "make request to api" do
@@ -3,13 +3,13 @@ require 'helper'
3
3
  class TestWeightFeed < Test::Unit::TestCase
4
4
  context "weight" do
5
5
  setup do
6
- stub_request(:get, HealthGraph.endpoint + '/user')
7
- .with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:user]})
8
- .to_return(:body => fixture('user_get.json'))
6
+ stub_request(:get, HealthGraph.endpoint + '/user'
7
+ ).with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:user]}
8
+ ).to_return(:body => fixture('user_get.json'))
9
9
 
10
- stub_request(:get, HealthGraph.endpoint + '/weight')
11
- .with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:weight_feed]})
12
- .to_return(:body => fixture('weight_feed_get.json'))
10
+ stub_request(:get, HealthGraph.endpoint + '/weight'
11
+ ).with(:header => {'Authorization' => 'Bearer ' + TEST_USER_TOKEN, 'Accept' => HealthGraph.accept_headers[:weight_feed]}
12
+ ).to_return(:body => fixture('weight_feed_get.json'))
13
13
 
14
14
  @user = HealthGraph::User.new(TEST_USER_TOKEN)
15
15
  end
@@ -1,12 +1,6 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
10
4
  require 'test/unit'
11
5
  require 'shoulda'
12
6
  require 'webmock/test_unit'
metadata CHANGED
@@ -1,265 +1,158 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: health_graph
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 5
8
- - 4
9
- version: 0.5.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.6
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Kenny Ma
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-03-09 00:00:00 -08:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: oauth2
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - "="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 5
30
- - 2
31
- version: 0.5.2
32
- type: :runtime
33
- prerelease: false
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: faraday
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - "="
41
- - !ruby/object:Gem::Version
42
- segments:
43
- - 0
44
- - 7
45
- - 4
46
- version: 0.7.4
12
+ date: 2012-05-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: health_graph
16
+ requirement: &70365878809860 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
47
22
  type: :runtime
48
23
  prerelease: false
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: faraday_middleware
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
55
- - - "="
56
- - !ruby/object:Gem::Version
57
- segments:
58
- - 0
59
- - 7
60
- - 0
61
- version: 0.7.0
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: hashie
67
- requirement: &id004 !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
70
- - - "="
71
- - !ruby/object:Gem::Version
72
- segments:
73
- - 1
74
- - 2
75
- version: "1.2"
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: json
81
- requirement: &id005 !ruby/object:Gem::Requirement
82
- none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- segments:
87
- - 0
88
- version: "0"
89
- type: :runtime
90
- prerelease: false
91
- version_requirements: *id005
92
- - !ruby/object:Gem::Dependency
24
+ version_requirements: *70365878809860
25
+ - !ruby/object:Gem::Dependency
93
26
  name: shoulda
94
- requirement: &id006 !ruby/object:Gem::Requirement
95
- none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- segments:
100
- - 0
101
- version: "0"
102
- type: :development
103
- prerelease: false
104
- version_requirements: *id006
105
- - !ruby/object:Gem::Dependency
106
- name: webmock
107
- requirement: &id007 !ruby/object:Gem::Requirement
27
+ requirement: &70365878809380 !ruby/object:Gem::Requirement
108
28
  none: false
109
- requirements:
110
- - - "="
111
- - !ruby/object:Gem::Version
112
- segments:
113
- - 1
114
- - 7
115
- - 4
116
- version: 1.7.4
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
117
33
  type: :development
118
34
  prerelease: false
119
- version_requirements: *id007
120
- - !ruby/object:Gem::Dependency
121
- name: bundler
122
- requirement: &id008 !ruby/object:Gem::Requirement
35
+ version_requirements: *70365878809380
36
+ - !ruby/object:Gem::Dependency
37
+ name: simplecov
38
+ requirement: &70365878825260 !ruby/object:Gem::Requirement
123
39
  none: false
124
- requirements:
125
- - - ~>
126
- - !ruby/object:Gem::Version
127
- segments:
128
- - 1
129
- - 0
130
- - 0
131
- version: 1.0.0
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
132
44
  type: :development
133
45
  prerelease: false
134
- version_requirements: *id008
135
- - !ruby/object:Gem::Dependency
46
+ version_requirements: *70365878825260
47
+ - !ruby/object:Gem::Dependency
136
48
  name: jeweler
137
- requirement: &id009 !ruby/object:Gem::Requirement
49
+ requirement: &70365878824780 !ruby/object:Gem::Requirement
138
50
  none: false
139
- requirements:
140
- - - ~>
141
- - !ruby/object:Gem::Version
142
- segments:
143
- - 1
144
- - 6
145
- - 4
146
- version: 1.6.4
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
147
55
  type: :development
148
56
  prerelease: false
149
- version_requirements: *id009
150
- - !ruby/object:Gem::Dependency
151
- name: rcov
152
- requirement: &id010 !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ">="
156
- - !ruby/object:Gem::Version
157
- segments:
158
- - 0
159
- version: "0"
160
- type: :development
161
- prerelease: false
162
- version_requirements: *id010
163
- - !ruby/object:Gem::Dependency
57
+ version_requirements: *70365878824780
58
+ - !ruby/object:Gem::Dependency
164
59
  name: oauth2
165
- requirement: &id011 !ruby/object:Gem::Requirement
60
+ requirement: &70365878824300 !ruby/object:Gem::Requirement
166
61
  none: false
167
- requirements:
168
- - - "="
169
- - !ruby/object:Gem::Version
170
- segments:
171
- - 0
172
- - 5
173
- - 2
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
174
65
  version: 0.5.2
175
66
  type: :runtime
176
67
  prerelease: false
177
- version_requirements: *id011
178
- - !ruby/object:Gem::Dependency
68
+ version_requirements: *70365878824300
69
+ - !ruby/object:Gem::Dependency
179
70
  name: faraday
180
- requirement: &id012 !ruby/object:Gem::Requirement
71
+ requirement: &70365878823820 !ruby/object:Gem::Requirement
181
72
  none: false
182
- requirements:
183
- - - "="
184
- - !ruby/object:Gem::Version
185
- segments:
186
- - 0
187
- - 7
188
- - 4
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
189
76
  version: 0.7.4
190
77
  type: :runtime
191
78
  prerelease: false
192
- version_requirements: *id012
193
- - !ruby/object:Gem::Dependency
79
+ version_requirements: *70365878823820
80
+ - !ruby/object:Gem::Dependency
194
81
  name: faraday_middleware
195
- requirement: &id013 !ruby/object:Gem::Requirement
82
+ requirement: &70365878823340 !ruby/object:Gem::Requirement
196
83
  none: false
197
- requirements:
198
- - - "="
199
- - !ruby/object:Gem::Version
200
- segments:
201
- - 0
202
- - 7
203
- - 0
204
- version: 0.7.0
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: 0.7.8
205
88
  type: :runtime
206
89
  prerelease: false
207
- version_requirements: *id013
208
- - !ruby/object:Gem::Dependency
90
+ version_requirements: *70365878823340
91
+ - !ruby/object:Gem::Dependency
209
92
  name: hashie
210
- requirement: &id014 !ruby/object:Gem::Requirement
93
+ requirement: &70365878822860 !ruby/object:Gem::Requirement
211
94
  none: false
212
- requirements:
213
- - - "="
214
- - !ruby/object:Gem::Version
215
- segments:
216
- - 1
217
- - 2
218
- version: "1.2"
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '1.2'
219
99
  type: :runtime
220
100
  prerelease: false
221
- version_requirements: *id014
222
- - !ruby/object:Gem::Dependency
101
+ version_requirements: *70365878822860
102
+ - !ruby/object:Gem::Dependency
223
103
  name: webmock
224
- requirement: &id015 !ruby/object:Gem::Requirement
104
+ requirement: &70365878822380 !ruby/object:Gem::Requirement
225
105
  none: false
226
- requirements:
227
- - - "="
228
- - !ruby/object:Gem::Version
229
- segments:
230
- - 1
231
- - 7
232
- - 6
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
233
109
  version: 1.7.6
234
110
  type: :runtime
235
111
  prerelease: false
236
- version_requirements: *id015
237
- - !ruby/object:Gem::Dependency
238
- name: json
239
- requirement: &id016 !ruby/object:Gem::Requirement
112
+ version_requirements: *70365878822380
113
+ - !ruby/object:Gem::Dependency
114
+ name: shoulda
115
+ requirement: &70365878821900 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *70365878821900
124
+ - !ruby/object:Gem::Dependency
125
+ name: simplecov
126
+ requirement: &70365878821420 !ruby/object:Gem::Requirement
240
127
  none: false
241
- requirements:
242
- - - ">="
243
- - !ruby/object:Gem::Version
244
- segments:
245
- - 0
246
- version: "0"
247
- type: :runtime
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: *70365878821420
135
+ - !ruby/object:Gem::Dependency
136
+ name: jeweler
137
+ requirement: &70365878820940 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ type: :development
248
144
  prerelease: false
249
- version_requirements: *id016
145
+ version_requirements: *70365878820940
250
146
  description: This is a wrapper for RunKeeper Health Graph RESTful API.
251
147
  email: kenny@kennyma.me
252
148
  executables: []
253
-
254
149
  extensions: []
255
-
256
- extra_rdoc_files:
150
+ extra_rdoc_files:
257
151
  - LICENSE.txt
258
152
  - README.rdoc
259
- files:
153
+ files:
260
154
  - .document
261
155
  - Gemfile
262
- - Gemfile.lock
263
156
  - LICENSE.txt
264
157
  - README.rdoc
265
158
  - Rakefile
@@ -271,6 +164,7 @@ files:
271
164
  - lib/health_graph/configuration.rb
272
165
  - lib/health_graph/model.rb
273
166
  - lib/health_graph/models/fitness_activities_feed.rb
167
+ - lib/health_graph/models/fitness_activity_delete.rb
274
168
  - lib/health_graph/models/fitness_activity_update.rb
275
169
  - lib/health_graph/models/new_fitness_activity.rb
276
170
  - lib/health_graph/models/profile.rb
@@ -297,38 +191,29 @@ files:
297
191
  - test/health_graph/test_weight_feed.rb
298
192
  - test/helper.rb
299
193
  - test/test_health_graph.rb
300
- has_rdoc: true
301
194
  homepage: http://github.com/kennyma/health_graph
302
- licenses:
195
+ licenses:
303
196
  - MIT
304
197
  post_install_message:
305
198
  rdoc_options: []
306
-
307
- require_paths:
199
+ require_paths:
308
200
  - lib
309
- required_ruby_version: !ruby/object:Gem::Requirement
201
+ required_ruby_version: !ruby/object:Gem::Requirement
310
202
  none: false
311
- requirements:
312
- - - ">="
313
- - !ruby/object:Gem::Version
314
- hash: 4201451913972246663
315
- segments:
316
- - 0
317
- version: "0"
318
- required_rubygems_version: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ! '>='
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
207
+ required_rubygems_version: !ruby/object:Gem::Requirement
319
208
  none: false
320
- requirements:
321
- - - ">="
322
- - !ruby/object:Gem::Version
323
- segments:
324
- - 0
325
- version: "0"
209
+ requirements:
210
+ - - ! '>='
211
+ - !ruby/object:Gem::Version
212
+ version: '0'
326
213
  requirements: []
327
-
328
214
  rubyforge_project:
329
- rubygems_version: 1.3.7
215
+ rubygems_version: 1.8.13
330
216
  signing_key:
331
217
  specification_version: 3
332
218
  summary: Ruby gem for RunKeeper Health Graph API
333
219
  test_files: []
334
-
@@ -1,45 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- addressable (2.2.6)
5
- crack (0.3.1)
6
- faraday (0.7.4)
7
- addressable (~> 2.2.6)
8
- multipart-post (~> 1.1.0)
9
- rack (>= 1.1.0, < 2)
10
- faraday_middleware (0.7.0)
11
- faraday (~> 0.7.3)
12
- git (1.2.5)
13
- hashie (1.2.0)
14
- jeweler (1.6.4)
15
- bundler (~> 1.0)
16
- git (>= 1.2.5)
17
- rake
18
- json (1.6.5)
19
- multi_json (1.0.4)
20
- multipart-post (1.1.3)
21
- oauth2 (0.5.2)
22
- faraday (~> 0.7)
23
- multi_json (~> 1.0)
24
- rack (1.3.4)
25
- rake (0.9.2)
26
- rcov (0.9.10)
27
- shoulda (2.11.3)
28
- webmock (1.7.4)
29
- addressable (~> 2.2, > 2.2.5)
30
- crack (>= 0.1.7)
31
-
32
- PLATFORMS
33
- ruby
34
-
35
- DEPENDENCIES
36
- bundler (~> 1.0.0)
37
- faraday (= 0.7.4)
38
- faraday_middleware (= 0.7.0)
39
- hashie (= 1.2)
40
- jeweler (~> 1.6.4)
41
- json
42
- oauth2 (= 0.5.2)
43
- rcov
44
- shoulda
45
- webmock (= 1.7.4)