omniauth-withings 1.0.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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MWMxYzRlYWZjZmUyY2IyNDRmYmFlZjI2YmQxOTljY2RkZGI0MWMwNg==
5
+ data.tar.gz: !binary |-
6
+ NzZmZjYyYTRiYWI1ZDg5Y2FkYmM4MjFlNjgxYWIxMDBmZTNiOTM3OA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YjNkMzg3MGIzNTY0YWNkMWUxZjZiZDAwNzkxN2ZhMjIyOWZmMDRhODcwOWU4
10
+ ZjAzNjBmZDRiYzBkMmNkMTM1OTBjOGYyZDJlZjhlZTFkZjliOGJmZDI5NDAy
11
+ MmU0Nzk4ZDk3YzE0MjlmOTQ3MWVmNGFlYjQ2OTg5Y2ZlNjQ3ZmI=
12
+ data.tar.gz: !binary |-
13
+ OGVkNmYwMDU4ZTJkY2QxZWU5MjdiYTY5NDkzMjYzOWJjNjAxYWYyMmU3OWMx
14
+ YWM0MmU3NDVkMTVmZmFlNjAyMzFiMTJlMGJlZDFjZWU0YmFiYTkxYzFmNjY1
15
+ N2Q3MTJhZTdiYzgyNTYyYTJiYjkxMDViYmIwZDUzNzQxYzEyMGU=
@@ -0,0 +1,16 @@
1
+ *.rbc
2
+ *.sassc
3
+ .sass-cache
4
+ capybara-*.html
5
+ .rspec
6
+ /.bundle
7
+ /vendor/bundle
8
+ /log/*
9
+ /tmp/*
10
+ /db/*.sqlite3
11
+ /public/system/*
12
+ /coverage/
13
+ /spec/tmp/*
14
+ **.orig
15
+ rerun.txt
16
+ pickle-email-*.html
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in omniauth-SForce.gemspec
4
+ gemspec
5
+
6
+ gem 'omniauth-oauth', '~> 1.0'
7
+
8
+ group :development, :test do
9
+ gem 'rspec'
10
+ gem 'rspec-mocks'
11
+ gem 'webmock'
12
+ gem 'multi_json'
13
+ gem 'nokogiri'
14
+ gem 'multi_xml'
15
+ gem 'rack-test'
16
+ end
@@ -0,0 +1,112 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ actionmailer (3.2.12)
5
+ actionpack (= 3.2.12)
6
+ mail (~> 2.4.4)
7
+ actionpack (3.2.12)
8
+ activemodel (= 3.2.12)
9
+ activesupport (= 3.2.12)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ journey (~> 1.0.4)
13
+ rack (~> 1.4.5)
14
+ rack-cache (~> 1.2)
15
+ rack-test (~> 0.6.1)
16
+ sprockets (~> 2.2.1)
17
+ activemodel (3.2.12)
18
+ activesupport (= 3.2.12)
19
+ builder (~> 3.0.0)
20
+ activerecord (3.2.12)
21
+ activemodel (= 3.2.12)
22
+ activesupport (= 3.2.12)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activeresource (3.2.12)
26
+ activemodel (= 3.2.12)
27
+ activesupport (= 3.2.12)
28
+ activesupport (3.2.12)
29
+ i18n (~> 0.6)
30
+ multi_json (~> 1.0)
31
+ arel (3.0.2)
32
+ builder (3.0.4)
33
+ coffee-rails (3.2.2)
34
+ coffee-script (>= 2.2.0)
35
+ railties (~> 3.2.0)
36
+ coffee-script (2.2.0)
37
+ coffee-script-source
38
+ execjs
39
+ coffee-script-source (1.6.1)
40
+ erubis (2.7.0)
41
+ execjs (1.4.0)
42
+ multi_json (~> 1.0)
43
+ hike (1.2.1)
44
+ i18n (0.6.4)
45
+ journey (1.0.4)
46
+ jquery-rails (2.2.1)
47
+ railties (>= 3.0, < 5.0)
48
+ thor (>= 0.14, < 2.0)
49
+ json (1.7.7)
50
+ mail (2.4.4)
51
+ i18n (>= 0.4.0)
52
+ mime-types (~> 1.16)
53
+ treetop (~> 1.4.8)
54
+ mime-types (1.21)
55
+ multi_json (1.6.1)
56
+ polyglot (0.3.3)
57
+ rack (1.4.5)
58
+ rack-cache (1.2)
59
+ rack (>= 0.4)
60
+ rack-ssl (1.3.3)
61
+ rack
62
+ rack-test (0.6.2)
63
+ rack (>= 1.0)
64
+ rails (3.2.12)
65
+ actionmailer (= 3.2.12)
66
+ actionpack (= 3.2.12)
67
+ activerecord (= 3.2.12)
68
+ activeresource (= 3.2.12)
69
+ activesupport (= 3.2.12)
70
+ bundler (~> 1.0)
71
+ railties (= 3.2.12)
72
+ railties (3.2.12)
73
+ actionpack (= 3.2.12)
74
+ activesupport (= 3.2.12)
75
+ rack-ssl (~> 1.3.2)
76
+ rake (>= 0.8.7)
77
+ rdoc (~> 3.4)
78
+ thor (>= 0.14.6, < 2.0)
79
+ rake (10.0.3)
80
+ rdoc (3.12.2)
81
+ json (~> 1.4)
82
+ sass (3.2.7)
83
+ sass-rails (3.2.6)
84
+ railties (~> 3.2.0)
85
+ sass (>= 3.1.10)
86
+ tilt (~> 1.3)
87
+ sprockets (2.2.2)
88
+ hike (~> 1.2)
89
+ multi_json (~> 1.0)
90
+ rack (~> 1.0)
91
+ tilt (~> 1.1, != 1.3.0)
92
+ sqlite3 (1.3.7)
93
+ thor (0.17.0)
94
+ tilt (1.3.5)
95
+ treetop (1.4.12)
96
+ polyglot
97
+ polyglot (>= 0.3.1)
98
+ tzinfo (0.3.37)
99
+ uglifier (1.3.0)
100
+ execjs (>= 0.3.0)
101
+ multi_json (~> 1.0, >= 1.0.2)
102
+
103
+ PLATFORMS
104
+ ruby
105
+
106
+ DEPENDENCIES
107
+ coffee-rails (~> 3.2.1)
108
+ jquery-rails
109
+ rails (= 3.2.12)
110
+ sass-rails (~> 3.2.3)
111
+ sqlite3
112
+ uglifier (>= 1.0.3)
@@ -0,0 +1,10 @@
1
+ guard 'rspec', :version => 2 do
2
+ watch(%r{^spec/.+_spec\.rb$})
3
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
4
+ watch('spec/spec_helper.rb') { "spec" }
5
+ end
6
+
7
+ guard 'bundler' do
8
+ watch('Gemfile')
9
+ watch('omniauth-withings.gemspec')
10
+ end
@@ -0,0 +1,2 @@
1
+ # Omniauth Strategy for Withings
2
+ This is a strategy to connect with Withings using Ommniauth and OAuth
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+ require 'rspec/core/rake_task'
4
+
5
+ desc 'Default: run specs.'
6
+ task :default => :spec
7
+
8
+ desc "Run specs"
9
+ RSpec::Core::RakeTask.new
10
+
11
+ desc 'Run specs'
12
+ task :default => :spec
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run OmniauthWithings::Application
@@ -0,0 +1,2 @@
1
+ require "omniauth-withings/version"
2
+ require 'omniauth/strategies/withings'
@@ -0,0 +1,5 @@
1
+ module OmniAuth
2
+ module Withings
3
+ VERSION = "1.0.3"
4
+ end
5
+ end
@@ -0,0 +1,23 @@
1
+ require 'omniauth-oauth'
2
+ require 'multi_json'
3
+
4
+ module OmniAuth
5
+ module Strategies
6
+
7
+ class Withings < OmniAuth::Strategies::OAuth
8
+
9
+ option :name, "withings"
10
+
11
+ option :client_options, {
12
+ :site => 'https://oauth.withings.com',
13
+ :request_token_path => '/account/request_token',
14
+ :access_token_path => '/account/access_token',
15
+ :authorize_path => '/account/authorize'
16
+ }
17
+
18
+ uid do
19
+ access_token.params['userid']
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/omniauth-withings/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Victor Vargas"]
6
+ gem.email = ["v.vargas2009@gmail.com.com"]
7
+ gem.description = %q{OmniAuth strategy for Withings.com.}
8
+ gem.summary = %q{OmniAuth strategy for Withings.com.}
9
+ gem.homepage = "https://github.com/vargasreyesv-UCSF/omniauth-withings"
10
+
11
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
+ gem.files = `git ls-files`.split("\n")
13
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
+ gem.name = "omniauth-withings"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = OmniAuth::Withings::VERSION
17
+
18
+ gem.add_dependency 'omniauth', '~> 1.0'
19
+ gem.add_runtime_dependency 'multi_xml'
20
+ gem.add_development_dependency 'rspec', '~> 2.7'
21
+ gem.add_development_dependency 'rack-test'
22
+ gem.add_development_dependency 'simplecov'
23
+ gem.add_development_dependency 'webmock'
24
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe OmniAuth::Strategies::Withings do
4
+ it 'should do some testing' do
5
+ pending
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ $:.unshift File.expand_path('..', __FILE__)
2
+ $:.unshift File.expand_path('../../lib', __FILE__)
3
+ require 'simplecov'
4
+ SimpleCov.start
5
+ require 'rspec'
6
+ require 'rack/test'
7
+ require 'webmock/rspec'
8
+ require 'omniauth'
9
+ require 'omniauth-withings'
10
+
11
+ RSpec.configure do |config|
12
+ config.include WebMock::API
13
+ config.include Rack::Test::Methods
14
+ config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
15
+ end
metadata ADDED
@@ -0,0 +1,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: omniauth-withings
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Victor Vargas
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-06-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: omniauth
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: multi_xml
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '2.7'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '2.7'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rack-test
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: OmniAuth strategy for Withings.com.
98
+ email:
99
+ - v.vargas2009@gmail.com.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - .gitignore
105
+ - Gemfile
106
+ - Gemfile.lock
107
+ - Guardfile
108
+ - README.md
109
+ - Rakefile
110
+ - config.ru
111
+ - lib/omniauth-withings.rb
112
+ - lib/omniauth-withings/version.rb
113
+ - lib/omniauth/strategies/withings.rb
114
+ - omniauth-withings.gemspec
115
+ - spec/omniauth/strategies/withings_spec.rb
116
+ - spec/spec_helper.rb
117
+ homepage: https://github.com/vargasreyesv-UCSF/omniauth-withings
118
+ licenses: []
119
+ metadata: {}
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ requirements: []
135
+ rubyforge_project:
136
+ rubygems_version: 2.0.3
137
+ signing_key:
138
+ specification_version: 4
139
+ summary: OmniAuth strategy for Withings.com.
140
+ test_files:
141
+ - spec/omniauth/strategies/withings_spec.rb
142
+ - spec/spec_helper.rb