twenty3andme 0.0.1
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/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +69 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +56 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/config/routes.rb +3 -0
- data/lib/twenty3andme/callback_handler.rb +8 -0
- data/lib/twenty3andme/callback_listener.rb +19 -0
- data/lib/twenty3andme/client.rb +61 -0
- data/lib/twenty3andme/engine.rb +12 -0
- data/lib/twenty3andme/helpers.rb +7 -0
- data/lib/twenty3andme.rb +11 -0
- data/spec/callback_listener_spec.rb +18 -0
- data/spec/spec_helper.rb +13 -0
- data/spec/twenty3andme_spec.rb +15 -0
- data/twenty3andme.gemspec +79 -0
- metadata +198 -0
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (3.2.10)
|
5
|
+
i18n (~> 0.6)
|
6
|
+
multi_json (~> 1.0)
|
7
|
+
backports (2.6.5)
|
8
|
+
builder (3.1.4)
|
9
|
+
descendants_tracker (0.0.1)
|
10
|
+
diff-lcs (1.1.3)
|
11
|
+
git (1.2.5)
|
12
|
+
grape (0.2.3)
|
13
|
+
activesupport
|
14
|
+
builder
|
15
|
+
hashie (~> 1.2)
|
16
|
+
multi_json (>= 1.3.2)
|
17
|
+
multi_xml
|
18
|
+
rack
|
19
|
+
rack-accept
|
20
|
+
rack-mount
|
21
|
+
virtus
|
22
|
+
hashie (1.2.0)
|
23
|
+
httparty (0.8.1)
|
24
|
+
multi_json
|
25
|
+
multi_xml
|
26
|
+
i18n (0.6.1)
|
27
|
+
jeweler (1.8.4)
|
28
|
+
bundler (~> 1.0)
|
29
|
+
git (>= 1.2.5)
|
30
|
+
rake
|
31
|
+
rdoc
|
32
|
+
json (1.7.6)
|
33
|
+
multi_json (1.5.0)
|
34
|
+
multi_xml (0.5.1)
|
35
|
+
rack (1.4.1)
|
36
|
+
rack-accept (0.4.5)
|
37
|
+
rack (>= 0.4)
|
38
|
+
rack-mount (0.8.3)
|
39
|
+
rack (>= 1.0.0)
|
40
|
+
rack-test (0.6.2)
|
41
|
+
rack (>= 1.0)
|
42
|
+
rake (10.0.3)
|
43
|
+
rdoc (3.12)
|
44
|
+
json (~> 1.4)
|
45
|
+
rspec (2.8.0)
|
46
|
+
rspec-core (~> 2.8.0)
|
47
|
+
rspec-expectations (~> 2.8.0)
|
48
|
+
rspec-mocks (~> 2.8.0)
|
49
|
+
rspec-core (2.8.0)
|
50
|
+
rspec-expectations (2.8.0)
|
51
|
+
diff-lcs (~> 1.1.2)
|
52
|
+
rspec-mocks (2.8.0)
|
53
|
+
virtus (0.5.4)
|
54
|
+
backports (~> 2.6.1)
|
55
|
+
descendants_tracker (~> 0.0.1)
|
56
|
+
wirble (0.1.3)
|
57
|
+
|
58
|
+
PLATFORMS
|
59
|
+
ruby
|
60
|
+
|
61
|
+
DEPENDENCIES
|
62
|
+
bundler
|
63
|
+
grape
|
64
|
+
httparty
|
65
|
+
jeweler (~> 1.8.4)
|
66
|
+
rack-test
|
67
|
+
rdoc (~> 3.12)
|
68
|
+
rspec (~> 2.8.0)
|
69
|
+
wirble
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 Ian Morgan
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
= twenty3andme
|
2
|
+
|
3
|
+
Ruby API client and Rails engine for creating applications that integrate with data from the personal genetic testing service 23AndMe.
|
4
|
+
|
5
|
+
https://api.23andme.com/
|
6
|
+
|
7
|
+
|
8
|
+
== Install
|
9
|
+
|
10
|
+
Bundler via Gemfile
|
11
|
+
|
12
|
+
gem 'twenty3andme'
|
13
|
+
|
14
|
+
|
15
|
+
== Use with Rails
|
16
|
+
|
17
|
+
Use environment variables to configure:
|
18
|
+
|
19
|
+
CLIENT_ID=shdfkjhsdfkj23
|
20
|
+
CLIENT_SECRET=sadiuyf79238
|
21
|
+
REDIRECT_URI=http://localhost:5000/callback_listener/
|
22
|
+
AFTER_REDIRECT_URI=/
|
23
|
+
SCOPE=basic,rs3094315
|
24
|
+
|
25
|
+
Send user to authorize app with 23andme, A URL helper is provided to help with this (url_for_23andme_authorize):
|
26
|
+
|
27
|
+
link_to 'authorize', url_for_23andme_authorize
|
28
|
+
|
29
|
+
Then implement CallbackHandler#handle to use or store token and redirect user. Example:
|
30
|
+
|
31
|
+
module Twenty3AndMe
|
32
|
+
class CallbackHandler
|
33
|
+
def handle(token, refresh_token)
|
34
|
+
User.create(:token => token, :refresh_token => refresh_token)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
Now requests can be made with the stored token:
|
40
|
+
|
41
|
+
user = User.first
|
42
|
+
client = Twenty3AndMe::Client.new
|
43
|
+
client.token = user.token
|
44
|
+
client.genotype('rs3094315')
|
45
|
+
|
46
|
+
|
47
|
+
== Use without Rails
|
48
|
+
|
49
|
+
First, Authorize and receive the code from 23andme: https://api.23andme.com/authorize/?redirect_uri=http://localhost:5000/receive_code/&response_type=code&client_id=a8a1f21d3417b70de786daea7e9ce2a8&scope=ancestry
|
50
|
+
|
51
|
+
c = Twenty3AndMe::Client.new
|
52
|
+
c.request_token('client_id', 'client_secret', 'code_from_above', 'http://localhost:5000/receive_code/', ['ancestry', 'basic', 'rs4778241'])
|
53
|
+
|
54
|
+
Requests can now be made
|
55
|
+
|
56
|
+
c.user
|
data/Rakefile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# encoding: utf-8
|
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'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "twenty3andme"
|
18
|
+
gem.homepage = "http://github.com/seeingidog/twenty3andme"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{23AndMe API client and Rails engine}
|
21
|
+
gem.description = %Q{Ruby API client and Rails engine for creating applications that integrate with data from the personal genetic testing service 23AndMe}
|
22
|
+
gem.email = "ian@ruby-code.com"
|
23
|
+
gem.authors = ["Ian Morgan"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
+
spec.rcov = true
|
37
|
+
end
|
38
|
+
|
39
|
+
task :default => :spec
|
40
|
+
|
41
|
+
require 'rdoc/task'
|
42
|
+
Rake::RDocTask.new do |rdoc|
|
43
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
44
|
+
|
45
|
+
rdoc.rdoc_dir = 'rdoc'
|
46
|
+
rdoc.title = "twenty3andme #{version}"
|
47
|
+
rdoc.rdoc_files.include('README*')
|
48
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
49
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/config/routes.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
module Twenty3AndMe
|
2
|
+
class CallbackListener < Grape::API
|
3
|
+
|
4
|
+
resources do
|
5
|
+
get do
|
6
|
+
code = params.code
|
7
|
+
client = Client.new
|
8
|
+
client.request_token(ENV['CLIENT_ID'], ENV['CLIENT_SECRET'], code, ENV['REDIRECT_URI'], ENV['SCOPE'].split(','))
|
9
|
+
|
10
|
+
handler = Twenty3AndMe::CallbackHandler.new
|
11
|
+
handler.handle(client.token, client.refresh_token)
|
12
|
+
|
13
|
+
status 302
|
14
|
+
header 'Location', ENV['AFTER_REDIRECT_URI']
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module Twenty3AndMe
|
2
|
+
class Client
|
3
|
+
include HTTParty
|
4
|
+
base_uri 'api.23andme.com'
|
5
|
+
VERSION = '/1'
|
6
|
+
|
7
|
+
attr_accessor :token
|
8
|
+
attr_accessor :refresh_token
|
9
|
+
|
10
|
+
def get(path)
|
11
|
+
options = { :headers => {"Authorization" => "Bearer #{@token}"} }
|
12
|
+
fullpath = URI.escape(VERSION + path)
|
13
|
+
self.class.get(fullpath, options).parsed_response
|
14
|
+
end
|
15
|
+
|
16
|
+
def request_token(client_id, client_secret, code, redirect_uri, scope)
|
17
|
+
scope_uri = Array(scope).join(" ")
|
18
|
+
req_body = {:client_id => client_id, :client_secret => client_secret, :grant_type => 'authorization_code', :code => code, :redirect_uri => redirect_uri, :scope => scope_uri}
|
19
|
+
resp = self.class.post("https://api.23andme.com:443/token", :body => req_body)
|
20
|
+
|
21
|
+
@token = resp['access_token']
|
22
|
+
@refresh_token = resp['refresh_token']
|
23
|
+
end
|
24
|
+
|
25
|
+
#TODO
|
26
|
+
def request_refresh_token()
|
27
|
+
end
|
28
|
+
|
29
|
+
### Requests
|
30
|
+
|
31
|
+
def user
|
32
|
+
get('/user')
|
33
|
+
end
|
34
|
+
|
35
|
+
def names
|
36
|
+
get('/names')
|
37
|
+
end
|
38
|
+
|
39
|
+
def haplogroups
|
40
|
+
get('/haplogroups')
|
41
|
+
end
|
42
|
+
|
43
|
+
def genotypes(locations)
|
44
|
+
locations_uri = Array(locations).join(" ")
|
45
|
+
get("/genotypes/?locations=#{locations_uri}")
|
46
|
+
end
|
47
|
+
|
48
|
+
def ancestry(threshold)
|
49
|
+
get("/ancestry/?threshold=#{threshold.to_f}")
|
50
|
+
end
|
51
|
+
|
52
|
+
def relatives
|
53
|
+
get("/relatives")
|
54
|
+
end
|
55
|
+
|
56
|
+
def genomes(profile_id)
|
57
|
+
get("/genomes/#{profile_id}")
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
data/lib/twenty3andme.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
module Twenty3AndMe
|
2
|
+
end
|
3
|
+
|
4
|
+
require 'httparty'
|
5
|
+
require 'grape'
|
6
|
+
|
7
|
+
require_relative 'twenty3andme/client'
|
8
|
+
require_relative 'twenty3andme/callback_listener'
|
9
|
+
require_relative 'twenty3andme/callback_handler'
|
10
|
+
require_relative 'twenty3andme/helpers'
|
11
|
+
require_relative 'twenty3andme/engine' if defined?(Rails)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Twenty3AndMe::CallbackListener do
|
4
|
+
include Rack::Test::Methods
|
5
|
+
|
6
|
+
def app
|
7
|
+
Twenty3AndMe::CallbackListener
|
8
|
+
end
|
9
|
+
|
10
|
+
describe Twenty3AndMe::CallbackListener do
|
11
|
+
describe "GET /?code=adc996063679f1a400aa0e13c54094dc" do
|
12
|
+
it "returns the provided code from 23andme" do
|
13
|
+
get "/?code=adc996063679f1a400aa0e13c54094dc"
|
14
|
+
last_response.status.should == 200
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'twenty3andme'
|
5
|
+
require "rack/test"
|
6
|
+
|
7
|
+
# Requires supporting files with custom matchers and macros, etc,
|
8
|
+
# in ./support/ and its subdirectories.
|
9
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
10
|
+
|
11
|
+
RSpec.configure do |config|
|
12
|
+
|
13
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "twenty3andme"
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Ian Morgan"]
|
12
|
+
s.date = "2013-01-06"
|
13
|
+
s.description = "Ruby API client and Rails engine for creating applications that integrate with data from the personal genetic testing service 23AndMe"
|
14
|
+
s.email = "ian@ruby-code.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"config/routes.rb",
|
29
|
+
"lib/twenty3andme.rb",
|
30
|
+
"lib/twenty3andme/callback_handler.rb",
|
31
|
+
"lib/twenty3andme/callback_listener.rb",
|
32
|
+
"lib/twenty3andme/client.rb",
|
33
|
+
"lib/twenty3andme/engine.rb",
|
34
|
+
"lib/twenty3andme/helpers.rb",
|
35
|
+
"spec/callback_listener_spec.rb",
|
36
|
+
"spec/spec_helper.rb",
|
37
|
+
"spec/twenty3andme_spec.rb",
|
38
|
+
"twenty3andme.gemspec"
|
39
|
+
]
|
40
|
+
s.homepage = "http://github.com/seeingidog/twenty3andme"
|
41
|
+
s.licenses = ["MIT"]
|
42
|
+
s.require_paths = ["lib"]
|
43
|
+
s.rubygems_version = "1.8.24"
|
44
|
+
s.summary = "23AndMe API client and Rails engine"
|
45
|
+
|
46
|
+
if s.respond_to? :specification_version then
|
47
|
+
s.specification_version = 3
|
48
|
+
|
49
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
|
+
s.add_runtime_dependency(%q<grape>, [">= 0"])
|
51
|
+
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
52
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
53
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
54
|
+
s.add_development_dependency(%q<bundler>, [">= 0"])
|
55
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
56
|
+
s.add_development_dependency(%q<wirble>, [">= 0"])
|
57
|
+
s.add_development_dependency(%q<rack-test>, [">= 0"])
|
58
|
+
else
|
59
|
+
s.add_dependency(%q<grape>, [">= 0"])
|
60
|
+
s.add_dependency(%q<httparty>, [">= 0"])
|
61
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
62
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
63
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
64
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
65
|
+
s.add_dependency(%q<wirble>, [">= 0"])
|
66
|
+
s.add_dependency(%q<rack-test>, [">= 0"])
|
67
|
+
end
|
68
|
+
else
|
69
|
+
s.add_dependency(%q<grape>, [">= 0"])
|
70
|
+
s.add_dependency(%q<httparty>, [">= 0"])
|
71
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
72
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
73
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
74
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
75
|
+
s.add_dependency(%q<wirble>, [">= 0"])
|
76
|
+
s.add_dependency(%q<rack-test>, [">= 0"])
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
metadata
ADDED
@@ -0,0 +1,198 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: twenty3andme
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Ian Morgan
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-01-06 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: grape
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: httparty
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.8.0
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.8.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rdoc
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.12'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '3.12'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: bundler
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: jeweler
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.8.4
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.8.4
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: wirble
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rack-test
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
description: Ruby API client and Rails engine for creating applications that integrate
|
143
|
+
with data from the personal genetic testing service 23AndMe
|
144
|
+
email: ian@ruby-code.com
|
145
|
+
executables: []
|
146
|
+
extensions: []
|
147
|
+
extra_rdoc_files:
|
148
|
+
- LICENSE.txt
|
149
|
+
- README.rdoc
|
150
|
+
files:
|
151
|
+
- .document
|
152
|
+
- .rspec
|
153
|
+
- Gemfile
|
154
|
+
- Gemfile.lock
|
155
|
+
- LICENSE.txt
|
156
|
+
- README.rdoc
|
157
|
+
- Rakefile
|
158
|
+
- VERSION
|
159
|
+
- config/routes.rb
|
160
|
+
- lib/twenty3andme.rb
|
161
|
+
- lib/twenty3andme/callback_handler.rb
|
162
|
+
- lib/twenty3andme/callback_listener.rb
|
163
|
+
- lib/twenty3andme/client.rb
|
164
|
+
- lib/twenty3andme/engine.rb
|
165
|
+
- lib/twenty3andme/helpers.rb
|
166
|
+
- spec/callback_listener_spec.rb
|
167
|
+
- spec/spec_helper.rb
|
168
|
+
- spec/twenty3andme_spec.rb
|
169
|
+
- twenty3andme.gemspec
|
170
|
+
homepage: http://github.com/seeingidog/twenty3andme
|
171
|
+
licenses:
|
172
|
+
- MIT
|
173
|
+
post_install_message:
|
174
|
+
rdoc_options: []
|
175
|
+
require_paths:
|
176
|
+
- lib
|
177
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
178
|
+
none: false
|
179
|
+
requirements:
|
180
|
+
- - ! '>='
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
segments:
|
184
|
+
- 0
|
185
|
+
hash: -3107833515902135248
|
186
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
|
+
none: false
|
188
|
+
requirements:
|
189
|
+
- - ! '>='
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '0'
|
192
|
+
requirements: []
|
193
|
+
rubyforge_project:
|
194
|
+
rubygems_version: 1.8.24
|
195
|
+
signing_key:
|
196
|
+
specification_version: 3
|
197
|
+
summary: 23AndMe API client and Rails engine
|
198
|
+
test_files: []
|