transcriptic_kit 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +71 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/example.rb +37 -0
- data/lib/transcriptic_kit/client.rb +55 -0
- data/lib/transcriptic_kit/configuration.rb +11 -0
- data/lib/transcriptic_kit/error_handling_resourcable.rb +19 -0
- data/lib/transcriptic_kit/mappings/error_mapping.rb +19 -0
- data/lib/transcriptic_kit/mappings/organization_mapping.rb +12 -0
- data/lib/transcriptic_kit/mappings/project_mapping.rb +15 -0
- data/lib/transcriptic_kit/models/base_model.rb +13 -0
- data/lib/transcriptic_kit/models/organization.rb +7 -0
- data/lib/transcriptic_kit/models/project.rb +9 -0
- data/lib/transcriptic_kit/resources/organization_resource.rb +9 -0
- data/lib/transcriptic_kit/resources/project_resource.rb +37 -0
- data/lib/transcriptic_kit/version.rb +3 -0
- data/lib/transcriptic_kit.rb +44 -0
- data/transcriptic_kit.gemspec +39 -0
- metadata +188 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 43b5a0346f7056f9d306113ad326b0ba4808e4c1
|
4
|
+
data.tar.gz: 341ddd4472e13d11fcb97187ed7e63cc3b1c10b9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 91ba94b9e0b5fd9d970a4f3e4f422b464cc96c389971fc9bd1574ed36bc76d6b132042c578e9c647ac5b09472eb5635e7f68de8650c873e9c8a0fa7a95ce884d
|
7
|
+
data.tar.gz: 89933f0e0fe0f0a4ae6b46b6d366b9ca5695ffa173784c6a7615dc710068dd6287331fcb782dd68fb577b5c49deba206581d9132551a78df8cd71bf27a5b72f4
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at ben.miles2@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Ben Miles
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# TranscripticKit
|
2
|
+
|
3
|
+
Based on DropletKit from Digital Ocean
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'transcriptic_kit'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install transcriptic_kit
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
With your account details, retrieve a client instance with it.
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
client = TranscripticKit::Client.new(
|
27
|
+
email: 'TRANSCRIPTIC_EMAIL',
|
28
|
+
key: 'TRANSCRIPTIC_API_KEY',
|
29
|
+
org_name: 'TRANSCRIPTIC_ORG_NAME_URL'
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
33
|
+
## Design
|
34
|
+
|
35
|
+
TranscripticKit follows a strict design of resources as methods on your client. For examples, for projects, you will call your client like this:
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
client = TranscripticKit::Client.new(
|
39
|
+
email: 'TRANSCRIPTIC_EMAIL',
|
40
|
+
key: 'TRANSCRIPTIC_API_KEY',
|
41
|
+
org_name: 'TRANSCRIPTIC_ORG_NAME_URL'
|
42
|
+
)
|
43
|
+
client.projects #=> ProjectsResource
|
44
|
+
```
|
45
|
+
|
46
|
+
TranscripticKit will return Plain Old Ruby objects(tm) that contain the information provided by the API. For example:
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
client = TranscripticKit::Client.new(
|
50
|
+
email: 'TRANSCRIPTIC_EMAIL',
|
51
|
+
key: 'TRANSCRIPTIC_API_KEY',
|
52
|
+
org_name: 'TRANSCRIPTIC_ORG_NAME_URL'
|
53
|
+
)
|
54
|
+
client.projects.all
|
55
|
+
# => [ TranscripticKit::Project(id: "pbar", name: 'Some study', ...), TranscripticKit::Project(id: "pfoo", name: 'Mammoth Cloning', ...) ]
|
56
|
+
```
|
57
|
+
|
58
|
+
## Development
|
59
|
+
|
60
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
61
|
+
|
62
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
63
|
+
|
64
|
+
## Contributing
|
65
|
+
|
66
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/transcriptic_kit. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
67
|
+
|
68
|
+
|
69
|
+
## License
|
70
|
+
|
71
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "transcriptic_kit"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/example.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
require './lib/transcriptic_kit'
|
2
|
+
require 'dotenv'
|
3
|
+
Dotenv.load
|
4
|
+
|
5
|
+
## Create the API client
|
6
|
+
client = TranscripticKit::Client.new(
|
7
|
+
email: ENV['TRANSCRIPTIC_EMAIL'],
|
8
|
+
key: ENV['TRANSCRIPTIC_API_KEY'],
|
9
|
+
org_name: ENV['TRANSCRIPTIC_ORG_NAME_URL']
|
10
|
+
)
|
11
|
+
|
12
|
+
## Work with your Organization
|
13
|
+
puts client.organization.info.name
|
14
|
+
|
15
|
+
## Work with Projects
|
16
|
+
|
17
|
+
## Get all projects
|
18
|
+
projects = client.projects.all
|
19
|
+
|
20
|
+
## Instantiate a new a project, then save it on the server
|
21
|
+
project = TranscripticKit::Project.new(name: "My New Project", bsl:1)
|
22
|
+
created = client.projects.create(project)
|
23
|
+
puts project.bsl
|
24
|
+
# => 1
|
25
|
+
puts created.bsl
|
26
|
+
# => 1
|
27
|
+
|
28
|
+
project.bsl = "a"
|
29
|
+
puts project.bsl
|
30
|
+
# => 2
|
31
|
+
|
32
|
+
## Update on the server
|
33
|
+
updated = client.projects.update(project, id: project.id)
|
34
|
+
puts updated.bsl
|
35
|
+
# => 2
|
36
|
+
|
37
|
+
## Work with Runs
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
|
3
|
+
module TranscripticKit
|
4
|
+
class Client
|
5
|
+
|
6
|
+
attr_reader :email, :key, :org_name, :org_url
|
7
|
+
|
8
|
+
def initialize(options = {})
|
9
|
+
@email = options.with_indifferent_access[:email]
|
10
|
+
@key = options.with_indifferent_access[:key]
|
11
|
+
@org_name = options.with_indifferent_access[:org_name]
|
12
|
+
@org_url = "https://secure.transcriptic.com/#{options.with_indifferent_access[:org_name]}"
|
13
|
+
end
|
14
|
+
|
15
|
+
def connection
|
16
|
+
Faraday.new(connection_options) do |req|
|
17
|
+
req.adapter :net_http
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.resources
|
22
|
+
{
|
23
|
+
projects: ProjectResource,
|
24
|
+
organization: OrganizationResource
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
def method_missing(name, *args, &block)
|
29
|
+
if self.class.resources.keys.include?(name)
|
30
|
+
resources[name] ||= self.class.resources[name].new(connection: connection)
|
31
|
+
resources[name]
|
32
|
+
else
|
33
|
+
super
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def resources
|
38
|
+
@resources ||= {}
|
39
|
+
end
|
40
|
+
|
41
|
+
private
|
42
|
+
|
43
|
+
def connection_options
|
44
|
+
{
|
45
|
+
url: org_url,
|
46
|
+
headers: {
|
47
|
+
content_type: 'application/json',
|
48
|
+
accept: 'application/json',
|
49
|
+
"X-User-Email": email,
|
50
|
+
"X-User-Token": key
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module Transcriptic
|
2
|
+
class Configuration
|
3
|
+
attr_accessor :transcriptic_email, :transcriptic_api_key, :transcriptic_org_name_url
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@transcriptic_email = nil
|
7
|
+
@transcriptic_api_key = nil
|
8
|
+
@transcriptic_org_name_url = nil
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module ErrorHandlingResourcable
|
2
|
+
def self.included(base)
|
3
|
+
base.send(:resources) do
|
4
|
+
default_handler do |response|
|
5
|
+
if (200...299).include?(response.status)
|
6
|
+
next
|
7
|
+
elsif response.status == 429
|
8
|
+
error = TranscripticKit::RateLimitReached.new("#{response.status}: #{response.body}")
|
9
|
+
error.limit = response.headers['RateLimit-Limit']
|
10
|
+
error.remaining = response.headers['RateLimit-Remaining']
|
11
|
+
error.reset_at = response.headers['RateLimit-Reset']
|
12
|
+
raise error
|
13
|
+
else
|
14
|
+
raise TranscripticKit::Error.new("#{response.status}: #{response.body}")
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TranscripticKit
|
2
|
+
class ErrorMapping
|
3
|
+
Error = Struct.new(:message, :id)
|
4
|
+
|
5
|
+
include Kartograph::DSL
|
6
|
+
|
7
|
+
kartograph do
|
8
|
+
mapping Error
|
9
|
+
|
10
|
+
property :id, scopes: [:read]
|
11
|
+
property :message, scopes: [:read]
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.fail_with(klass, content)
|
15
|
+
error = extract_single(content, :read)
|
16
|
+
raise klass, error.message
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TranscripticKit
|
2
|
+
class OrganizationMapping
|
3
|
+
include Kartograph::DSL
|
4
|
+
|
5
|
+
kartograph do
|
6
|
+
mapping Organization
|
7
|
+
root_key plural: 'results', scopes: [:read]
|
8
|
+
|
9
|
+
property :id, :name, :created_at, :subdomain, :profile_photo_attachment_url, :collaborators, :addresses, scopes: [:read]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module TranscripticKit
|
2
|
+
class ProjectMapping
|
3
|
+
include Kartograph::DSL
|
4
|
+
|
5
|
+
kartograph do
|
6
|
+
mapping Project
|
7
|
+
root_key plural: 'results', scopes: [:read]
|
8
|
+
root_key singular: 'project', scopes: [:update]
|
9
|
+
|
10
|
+
property :name, :webhook_url, :bsl, scopes: [:read, :create]
|
11
|
+
property :id, :created_at, :updated_at, :archived_at, :users, scopes: [:read]
|
12
|
+
property :name, :bsl, :webhook_url, scopes: [:update]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'virtus'
|
2
|
+
|
3
|
+
module TranscripticKit
|
4
|
+
class BaseModel
|
5
|
+
include Virtus.model
|
6
|
+
include Virtus::Equalizer.new(name || inspect)
|
7
|
+
|
8
|
+
def inspect
|
9
|
+
values = Hash[instance_variables.map { |name| [name, instance_variable_get(name)] } ]
|
10
|
+
"<#{self.class.name} #{values}>"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module TranscripticKit
|
2
|
+
class ProjectResource < ResourceKit::Resource
|
3
|
+
include ErrorHandlingResourcable
|
4
|
+
|
5
|
+
resources do
|
6
|
+
default_handler(422) { |response| ErrorMapping.extract_single(response.body, :read) }
|
7
|
+
default_handler(:ok, :created) { |response| ProjectMapping.extract_single(response.body, :read) }
|
8
|
+
default_handler { |response| raise "Unexpected response status #{response.status}... #{response.inspect}" }
|
9
|
+
|
10
|
+
action :all do
|
11
|
+
verb :get
|
12
|
+
path 'swiftpharma/projects.json'
|
13
|
+
handler(200) { |response| ProjectMapping.extract_collection(response.body, :read) }
|
14
|
+
end
|
15
|
+
|
16
|
+
action :find do
|
17
|
+
verb :get
|
18
|
+
path ':id.json'
|
19
|
+
handler(200) { |response| ProjectMapping.extract_single(response.body, :read) }
|
20
|
+
end
|
21
|
+
|
22
|
+
action :create do
|
23
|
+
verb :post
|
24
|
+
path 'swiftpharma'
|
25
|
+
body { |object| ProjectMapping.representation_for(:create, object) }
|
26
|
+
handler(202) { |response| ProjectMapping.extract_single(response.body, :read) }
|
27
|
+
end
|
28
|
+
|
29
|
+
action :update do
|
30
|
+
verb :put
|
31
|
+
path 'swiftpharma/:id'
|
32
|
+
body { |object| ProjectMapping.representation_for(:update, object) }
|
33
|
+
handler(200) { |response, object| ProjectMapping.extract_into_object(object, response.body, :read) }
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'active_support/all'
|
2
|
+
require 'resource_kit'
|
3
|
+
require 'kartograph'
|
4
|
+
|
5
|
+
module TranscripticKit
|
6
|
+
require_relative 'transcriptic_kit/client'
|
7
|
+
|
8
|
+
# Utils
|
9
|
+
# autoload :PaginatedResource, 'droplet_kit/paginated_resource'
|
10
|
+
require_relative 'transcriptic_kit/error_handling_resourcable'
|
11
|
+
|
12
|
+
# Models
|
13
|
+
require_relative 'transcriptic_kit/models/base_model'
|
14
|
+
require_relative 'transcriptic_kit/models/project'
|
15
|
+
require_relative 'transcriptic_kit/models/organization'
|
16
|
+
|
17
|
+
# Resources
|
18
|
+
require_relative 'transcriptic_kit/resources/project_resource'
|
19
|
+
require_relative 'transcriptic_kit/resources/organization_resource'
|
20
|
+
|
21
|
+
# JSON Maps
|
22
|
+
require_relative 'transcriptic_kit/mappings/project_mapping'
|
23
|
+
require_relative 'transcriptic_kit/mappings/organization_mapping'
|
24
|
+
|
25
|
+
# Errors
|
26
|
+
require_relative 'transcriptic_kit/mappings/error_mapping'
|
27
|
+
# autoload :ErrorHandlingResourcable, 'transcriptic_kit/mappings/error_mapping'
|
28
|
+
Error = Class.new(StandardError)
|
29
|
+
FailedCreate = Class.new(TranscripticKit::Error)
|
30
|
+
FailedUpdate = Class.new(TranscripticKit::Error)
|
31
|
+
|
32
|
+
class RateLimitReached < TranscripticKit::Error
|
33
|
+
attr_accessor :reset_at
|
34
|
+
attr_writer :limit, :remaining
|
35
|
+
|
36
|
+
def limit
|
37
|
+
@limit.to_i if @limit
|
38
|
+
end
|
39
|
+
|
40
|
+
def remaining
|
41
|
+
@remaining.to_i if @remaining
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'transcriptic_kit/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "transcriptic_kit"
|
8
|
+
spec.version = TranscripticKit::VERSION
|
9
|
+
spec.authors = ["Ben Miles"]
|
10
|
+
spec.email = ["ben.miles2@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{TranscripticKit is a Transcriptic API client for Ruby}
|
13
|
+
spec.homepage = "https://github.com/bmiles/transcriptic_kit"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
17
|
+
# delete this section to allow pushing this gem to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
20
|
+
else
|
21
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
22
|
+
end
|
23
|
+
|
24
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
spec.bindir = "exe"
|
26
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
+
spec.require_paths = ["lib"]
|
28
|
+
|
29
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
30
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
31
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
32
|
+
spec.add_dependency 'virtus', '~> 1.0.5'
|
33
|
+
spec.add_dependency "resource_kit", '~> 0.1.5'
|
34
|
+
spec.add_dependency "kartograph", '~> 0.2.4'
|
35
|
+
spec.add_dependency "activesupport", '> 3.0', '< 5.1'
|
36
|
+
spec.add_dependency "faraday", '~> 0.9.2'
|
37
|
+
|
38
|
+
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: transcriptic_kit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ben Miles
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.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: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: virtus
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.0.5
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.0.5
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: resource_kit
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.1.5
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.1.5
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: kartograph
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.2.4
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.2.4
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: activesupport
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
- - "<"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '5.1'
|
107
|
+
type: :runtime
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '3.0'
|
114
|
+
- - "<"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '5.1'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: faraday
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 0.9.2
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 0.9.2
|
131
|
+
description:
|
132
|
+
email:
|
133
|
+
- ben.miles2@gmail.com
|
134
|
+
executables: []
|
135
|
+
extensions: []
|
136
|
+
extra_rdoc_files: []
|
137
|
+
files:
|
138
|
+
- ".gitignore"
|
139
|
+
- ".rspec"
|
140
|
+
- ".travis.yml"
|
141
|
+
- CODE_OF_CONDUCT.md
|
142
|
+
- Gemfile
|
143
|
+
- LICENSE.txt
|
144
|
+
- README.md
|
145
|
+
- Rakefile
|
146
|
+
- bin/console
|
147
|
+
- bin/setup
|
148
|
+
- example.rb
|
149
|
+
- lib/transcriptic_kit.rb
|
150
|
+
- lib/transcriptic_kit/client.rb
|
151
|
+
- lib/transcriptic_kit/configuration.rb
|
152
|
+
- lib/transcriptic_kit/error_handling_resourcable.rb
|
153
|
+
- lib/transcriptic_kit/mappings/error_mapping.rb
|
154
|
+
- lib/transcriptic_kit/mappings/organization_mapping.rb
|
155
|
+
- lib/transcriptic_kit/mappings/project_mapping.rb
|
156
|
+
- lib/transcriptic_kit/models/base_model.rb
|
157
|
+
- lib/transcriptic_kit/models/organization.rb
|
158
|
+
- lib/transcriptic_kit/models/project.rb
|
159
|
+
- lib/transcriptic_kit/resources/organization_resource.rb
|
160
|
+
- lib/transcriptic_kit/resources/project_resource.rb
|
161
|
+
- lib/transcriptic_kit/version.rb
|
162
|
+
- transcriptic_kit.gemspec
|
163
|
+
homepage: https://github.com/bmiles/transcriptic_kit
|
164
|
+
licenses:
|
165
|
+
- MIT
|
166
|
+
metadata:
|
167
|
+
allowed_push_host: https://rubygems.org
|
168
|
+
post_install_message:
|
169
|
+
rdoc_options: []
|
170
|
+
require_paths:
|
171
|
+
- lib
|
172
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
requirements: []
|
183
|
+
rubyforge_project:
|
184
|
+
rubygems_version: 2.4.8
|
185
|
+
signing_key:
|
186
|
+
specification_version: 4
|
187
|
+
summary: TranscripticKit is a Transcriptic API client for Ruby
|
188
|
+
test_files: []
|