cartodb-api 0.0.2
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/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/CONTRIBUTING.md +80 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/Rakefile +10 -0
- data/bin/console +7 -0
- data/bin/setup +7 -0
- data/cartodb-api.gemspec +28 -0
- data/lib/cartodb/api.rb +50 -0
- data/lib/cartodb/api/configuration.rb +69 -0
- data/lib/cartodb/api/error.rb +16 -0
- data/lib/cartodb/api/request.rb +136 -0
- data/lib/cartodb/api/version.rb +5 -0
- metadata +130 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b4935b964b5d6c1696b7d40e4523841b7bb26dd6
|
4
|
+
data.tar.gz: ea948d6ec927b6f216d6acc5b4221d3d2d25a462
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 884bfa172f755b0f343dd7e771c416680e3fc4a0fa96bc664be69fe453fd20d48e6dfd3cfa755103975f576863fb252a75a7f8501e91b486fb326aff1ea0d6ef
|
7
|
+
data.tar.gz: 6cf5f9a1ff09b8744aeae30a09e32d8a374cd47f0480ce00f7cf9ed87f49d206e368674971473ec04c3b1c3c487bf604e4dc21413731263a4e8ab9d0c6c27dab
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# How to contribute
|
2
|
+
|
3
|
+
There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things. You should follow the git branching model and pull request template detailed in the _Additional_ _Resources_ section.
|
4
|
+
|
5
|
+
## Getting Started
|
6
|
+
|
7
|
+
* Make sure you have a [GitHub account](https://github.com/signup/free)
|
8
|
+
* Submit a ticket for your issue, assuming one does not already exist.
|
9
|
+
* Clearly describe the issue including steps to reproduce when it is a bug.
|
10
|
+
* Make sure you fill in the earliest version that you know has the issue.
|
11
|
+
* Fork the repository on GitHub
|
12
|
+
|
13
|
+
## Making Changes
|
14
|
+
|
15
|
+
* Create a topic branch from where you want to base your work.
|
16
|
+
* This is usually the develop branch.
|
17
|
+
* Only target release branches if you are certain your fix must be on that
|
18
|
+
branch.
|
19
|
+
* To quickly create a topic branch based on develop; `git checkout -b
|
20
|
+
my-contribution develop`. Please avoid working directly on the
|
21
|
+
`develop` branch.
|
22
|
+
* Make commits of logical units.
|
23
|
+
* Check for unnecessary whitespace with `git diff --check` before committing.
|
24
|
+
* Make sure your commit messages are in the proper format.
|
25
|
+
* Include in the title between parenthesis the issue it fixes if one exists.
|
26
|
+
|
27
|
+
````
|
28
|
+
(Fixes #97) Make the example in CONTRIBUTING imperative and concrete
|
29
|
+
|
30
|
+
Without this patch applied the example commit message in the CONTRIBUTING
|
31
|
+
document is not a concrete example. This is a problem because the
|
32
|
+
contributor is left to imagine what the commit message should look like
|
33
|
+
based on a description rather than an example. This patch fixes the
|
34
|
+
problem by making the example concrete and imperative.
|
35
|
+
|
36
|
+
The first line is a real life imperative statement with a ticket number
|
37
|
+
from our issue tracker. The body describes the behavior without the patch,
|
38
|
+
why this is a problem, and how the patch fixes the problem when applied.
|
39
|
+
````
|
40
|
+
|
41
|
+
* Make sure you have added the necessary tests for your changes.
|
42
|
+
* Run _all_ the tests to assure nothing else was accidentally broken.
|
43
|
+
|
44
|
+
## Making Trivial Changes
|
45
|
+
|
46
|
+
### Documentation
|
47
|
+
|
48
|
+
For changes of a trivial nature to comments and documentation, it is not
|
49
|
+
always necessary to create a new ticket. In this case, it is
|
50
|
+
appropriate to start the first line of a commit with '(doc)' instead of
|
51
|
+
a ticket number.
|
52
|
+
|
53
|
+
````
|
54
|
+
(doc) Add documentation commit example to CONTRIBUTING
|
55
|
+
|
56
|
+
There is no example for contributing a documentation commit
|
57
|
+
to the repository. This is a problem because the contributor
|
58
|
+
is left to assume how a commit of this nature may appear.
|
59
|
+
|
60
|
+
The first line is a real life imperative statement with '(doc)' in
|
61
|
+
place of what would have been the ticket number in a
|
62
|
+
non-documentation related commit. The body describes the nature of
|
63
|
+
the new documentation or comments added.
|
64
|
+
````
|
65
|
+
|
66
|
+
## Submitting Changes
|
67
|
+
|
68
|
+
* Push your changes to a topic branch in your fork of the repository.
|
69
|
+
* Submit a pull request to the repository in the Github respository.
|
70
|
+
* Update your ticket to mark that you have submitted code and are ready for it to be reviewed (Status: Ready for Merge).
|
71
|
+
* Include a link to the pull request in the ticket.
|
72
|
+
* After feedback has been given you can expect responses within two weeks. After two
|
73
|
+
weeks we may close the pull request if it isn't showing any activity.
|
74
|
+
|
75
|
+
# Additional Resources
|
76
|
+
|
77
|
+
* [Git branching model](http://nvie.com/posts/a-successful-git-branching-model/)
|
78
|
+
* [Pull request template](https://quickleft.com/blog/pull-request-templates-make-code-review-easier/)
|
79
|
+
* [General GitHub documentation](http://help.github.com/)
|
80
|
+
* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Pablo Cárdenas
|
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,45 @@
|
|
1
|
+
[![Code Climate](https://codeclimate.com/github/pablo-co/cartodb-api/badges/gpa.svg)](https://codeclimate.com/github/pablo-co/cartodb-api)
|
2
|
+
|
3
|
+
[![Test Coverage](https://codeclimate.com/github/pablo-co/cartodb-api/badges/coverage.svg)](https://codeclimate.com/github/pablo-co/cartodb-api/coverage)
|
4
|
+
|
5
|
+
# CartoDB::Api
|
6
|
+
|
7
|
+
CartoDB::Api is an API library for Ruby which acts as a wrapper for [CartoDB's API](cartodb.com). All requests are built using a really simple fluid interface.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'cartodb-api'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install cartodb-api
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
TODO: Write usage instructions here
|
28
|
+
|
29
|
+
## Development
|
30
|
+
|
31
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
32
|
+
|
33
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/pablo-co/cartodb-api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
38
|
+
|
39
|
+
There are also a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things. These are detailed in the [Contributing guidelines](contributor-covenant.org).
|
40
|
+
|
41
|
+
|
42
|
+
## License
|
43
|
+
|
44
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
45
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
data/bin/setup
ADDED
data/cartodb-api.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cartodb/api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'cartodb-api'
|
8
|
+
spec.version = CartoDB::Api::VERSION
|
9
|
+
spec.authors = ['Pablo Cárdenas']
|
10
|
+
spec.email = ['pcardenasoliveros@gmail.com']
|
11
|
+
|
12
|
+
spec.summary = %q{A wrapper for CartoDB's API}
|
13
|
+
spec.description = %q{CartoDB::Api is an API wrapper for CartoDB written in Ruby}
|
14
|
+
spec.homepage = 'https://github.com/pablo-co/cartodb-api'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = 'exe'
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
23
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
24
|
+
spec.add_development_dependency 'minitest'
|
25
|
+
|
26
|
+
spec.add_dependency('faraday', '>= 0.9.1')
|
27
|
+
spec.add_dependency('multi_json', '>= 1.11.2')
|
28
|
+
end
|
data/lib/cartodb/api.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'multi_json'
|
3
|
+
|
4
|
+
require 'cartodb/api/version'
|
5
|
+
require 'cartodb/api/request'
|
6
|
+
require 'cartodb/api/configuration'
|
7
|
+
require 'cartodb/api/error'
|
8
|
+
|
9
|
+
module CartoDB
|
10
|
+
module Api
|
11
|
+
class << self
|
12
|
+
# Public: Initializes a new CartoDB::Api::Request.
|
13
|
+
#
|
14
|
+
# configuration - The optional CartoDB::Api::Configuration used to configure
|
15
|
+
# this CartoDB::Api::Request.
|
16
|
+
#
|
17
|
+
# Examples
|
18
|
+
#
|
19
|
+
# CartoDB::Api.new 'http://faraday.com'
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# Returns a CartoDB::Api::Request.
|
23
|
+
def new(configuration)
|
24
|
+
build_request(configuration)
|
25
|
+
end
|
26
|
+
|
27
|
+
def method_missing(sym, *args, &block)
|
28
|
+
build_request.send(sym, *args, &block)
|
29
|
+
end
|
30
|
+
|
31
|
+
def default_configuration=(configuration)
|
32
|
+
@@default_configuration = configuration
|
33
|
+
end
|
34
|
+
|
35
|
+
protected
|
36
|
+
|
37
|
+
def build_request(configuration = nil)
|
38
|
+
configuration = configuration ? default_configuration.merge(configuration) : default_configuration.dup
|
39
|
+
CartoDB::Api::Request.new(configuration)
|
40
|
+
end
|
41
|
+
|
42
|
+
private
|
43
|
+
|
44
|
+
def default_configuration
|
45
|
+
@@default_configuration ||= CartoDB::Api::Configuration.new
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
module CartoDB
|
2
|
+
module Api
|
3
|
+
class Configuration
|
4
|
+
|
5
|
+
PROTOCOL = 'https'
|
6
|
+
DOMAIN = 'cartodb.com'
|
7
|
+
TIMEOUT = 30
|
8
|
+
VERSION = 1
|
9
|
+
|
10
|
+
# Public: Gets or sets the CartoDB account from which all requests are going to be made from.
|
11
|
+
attr_accessor :account
|
12
|
+
|
13
|
+
# Public: Gets or sets the CartoDB API key that will be used for authentication.
|
14
|
+
attr_accessor :api_key
|
15
|
+
|
16
|
+
# Public: Sets the protocol that will be used for requests
|
17
|
+
attr_writer :protocol
|
18
|
+
|
19
|
+
# Public: Sets the domain name for all HTTP requests
|
20
|
+
attr_writer :domain
|
21
|
+
|
22
|
+
# Public: Sets the request timeout
|
23
|
+
attr_writer :timeout
|
24
|
+
|
25
|
+
# Public: Sets the CartoDB API version
|
26
|
+
attr_writer :version
|
27
|
+
|
28
|
+
def protocol
|
29
|
+
@protocol || PROTOCOL
|
30
|
+
end
|
31
|
+
|
32
|
+
def domain
|
33
|
+
@domain || DOMAIN
|
34
|
+
end
|
35
|
+
|
36
|
+
def version
|
37
|
+
@version || VERSION
|
38
|
+
end
|
39
|
+
|
40
|
+
def timeout
|
41
|
+
@timeout || TIMEOUT
|
42
|
+
end
|
43
|
+
|
44
|
+
def base_url
|
45
|
+
assert_configuration
|
46
|
+
"#{protocol}://#{account}.#{domain}/api/"
|
47
|
+
end
|
48
|
+
|
49
|
+
def assert_configuration
|
50
|
+
assert_attr(account, 'Account')
|
51
|
+
assert_attr(api_key, 'API key')
|
52
|
+
assert_in_options(protocol, %w{http https}, 'Protocol')
|
53
|
+
assert_attr(domain, 'Domain')
|
54
|
+
assert_attr(version, 'API version number')
|
55
|
+
end
|
56
|
+
|
57
|
+
def assert_attr(attr, attr_name)
|
58
|
+
raise InvalidConfiguration.new("#{attr_name} should not be nil.") if attr.nil?
|
59
|
+
end
|
60
|
+
|
61
|
+
def assert_in_options(attr, options, attr_name)
|
62
|
+
assert_attr(attr, attr_name)
|
63
|
+
exception_message = "#{attr_name} is not a valid option. Should be any of: #{options.join(', ')}"
|
64
|
+
raise InvalidConfiguration.new(exception_message) unless options.include? attr
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module CartoDB
|
2
|
+
module Api
|
3
|
+
class ConnectionFailed < StandardError
|
4
|
+
end
|
5
|
+
|
6
|
+
class InvalidConfiguration < StandardError
|
7
|
+
end
|
8
|
+
|
9
|
+
class Error < StandardError
|
10
|
+
attr_accessor :title, :details, :body, :raw_body, :status_code
|
11
|
+
end
|
12
|
+
|
13
|
+
class ParsingError < Error
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,136 @@
|
|
1
|
+
module CartoDB
|
2
|
+
module Api
|
3
|
+
class Request
|
4
|
+
extend Forwardable
|
5
|
+
|
6
|
+
attr_accessor :configuration
|
7
|
+
|
8
|
+
def_delegators :configuration, :protocol, :domain, :api_key,
|
9
|
+
:account, :base_url, :version, :timeout
|
10
|
+
|
11
|
+
def initialize(configuration)
|
12
|
+
self.configuration = configuration
|
13
|
+
reset
|
14
|
+
end
|
15
|
+
|
16
|
+
def method_missing(method, *args)
|
17
|
+
@path_steps << method.downcase
|
18
|
+
@path_steps << args if args.length > 0
|
19
|
+
@path_steps.flatten!
|
20
|
+
self
|
21
|
+
end
|
22
|
+
|
23
|
+
def create(params = nil, headers = nil, body = nil)
|
24
|
+
make_request(:post, params, headers, body)
|
25
|
+
end
|
26
|
+
|
27
|
+
def update(params = nil, headers = nil, body = nil)
|
28
|
+
make_request(:patch, params, headers, body)
|
29
|
+
end
|
30
|
+
|
31
|
+
def retrieve(params = nil, headers = nil)
|
32
|
+
make_request(:get, params, headers)
|
33
|
+
end
|
34
|
+
|
35
|
+
def delete(params = nil, headers = nil)
|
36
|
+
make_request(:delete, params, headers)
|
37
|
+
end
|
38
|
+
|
39
|
+
protected
|
40
|
+
|
41
|
+
def reset
|
42
|
+
@path_steps = []
|
43
|
+
end
|
44
|
+
|
45
|
+
def client
|
46
|
+
Faraday.new(url: url) do |client|
|
47
|
+
client.params['api_key'] = api_key
|
48
|
+
client.response :raise_error
|
49
|
+
client.adapter Faraday.default_adapter
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def make_request(method, params = nil, headers = nil, body = nil)
|
54
|
+
begin
|
55
|
+
response = client.send(method) do |request|
|
56
|
+
configure_request(request, params, headers, body)
|
57
|
+
end
|
58
|
+
rescue => e
|
59
|
+
rescue_error(e)
|
60
|
+
end
|
61
|
+
parse(response.body)
|
62
|
+
end
|
63
|
+
|
64
|
+
def configure_request(request, params = nil, headers = nil, body = nil)
|
65
|
+
request.params.merge!(params) if params
|
66
|
+
request.headers['Content-Type'] = 'application/json'
|
67
|
+
request.headers.merge!(headers) if headers
|
68
|
+
request.body = body if body
|
69
|
+
request.options.timeout = timeout
|
70
|
+
end
|
71
|
+
|
72
|
+
def parse(response)
|
73
|
+
return nil if response.nil?
|
74
|
+
|
75
|
+
begin
|
76
|
+
MultiJson.load(response).to_h
|
77
|
+
rescue MultiJson::ParseError
|
78
|
+
exception_message = "Couldn't parse response body: #{response}"
|
79
|
+
exception = ParsingError.new(exception_message)
|
80
|
+
build_error(exception,
|
81
|
+
'Error parsing the response as body.',
|
82
|
+
'The response given by the server is not in JSON format.',
|
83
|
+
response,
|
84
|
+
response)
|
85
|
+
exception.status_code = -1
|
86
|
+
raise exception
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
def url
|
91
|
+
"#{configuration.base_url}#{version_path}#{path}"
|
92
|
+
end
|
93
|
+
|
94
|
+
def version_path
|
95
|
+
"v#{version}/"
|
96
|
+
end
|
97
|
+
|
98
|
+
def path
|
99
|
+
@path_steps.join('/')
|
100
|
+
end
|
101
|
+
|
102
|
+
def rescue_error(exception)
|
103
|
+
cartodb_exception = Error.new(exception.message)
|
104
|
+
|
105
|
+
is_faraday_exception = exception.is_a?(Faraday::Error::ClientError)
|
106
|
+
if is_faraday_exception && exception.response
|
107
|
+
cartodb_exception = build_error_from_faraday(cartodb_exception,
|
108
|
+
exception)
|
109
|
+
end
|
110
|
+
|
111
|
+
raise cartodb_exception
|
112
|
+
end
|
113
|
+
|
114
|
+
def build_error_from_faraday(cartodb_exception, exception)
|
115
|
+
cartodb_exception.status_code = exception.response[:status]
|
116
|
+
begin
|
117
|
+
response = MultiJson.load(exception.response[:body])
|
118
|
+
build_error(cartodb_exception,
|
119
|
+
response['title'],
|
120
|
+
response['detail'],
|
121
|
+
response,
|
122
|
+
exception.response[:body]) if response
|
123
|
+
rescue MultiJson::ParseError => _
|
124
|
+
end
|
125
|
+
cartodb_exception
|
126
|
+
end
|
127
|
+
|
128
|
+
def build_error(exception, title, details, body, raw_body = nil)
|
129
|
+
exception.title = title if title
|
130
|
+
exception.details = details if details
|
131
|
+
exception.body = body
|
132
|
+
exception.raw_body = raw_body if raw_body
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
metadata
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cartodb-api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Pablo Cárdenas
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-10-07 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.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
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: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: faraday
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.9.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: multi_json
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.11.2
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.11.2
|
83
|
+
description: CartoDB::Api is an API wrapper for CartoDB written in Ruby
|
84
|
+
email:
|
85
|
+
- pcardenasoliveros@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".travis.yml"
|
92
|
+
- CODE_OF_CONDUCT.md
|
93
|
+
- CONTRIBUTING.md
|
94
|
+
- Gemfile
|
95
|
+
- LICENSE.txt
|
96
|
+
- README.md
|
97
|
+
- Rakefile
|
98
|
+
- bin/console
|
99
|
+
- bin/setup
|
100
|
+
- cartodb-api.gemspec
|
101
|
+
- lib/cartodb/api.rb
|
102
|
+
- lib/cartodb/api/configuration.rb
|
103
|
+
- lib/cartodb/api/error.rb
|
104
|
+
- lib/cartodb/api/request.rb
|
105
|
+
- lib/cartodb/api/version.rb
|
106
|
+
homepage: https://github.com/pablo-co/cartodb-api
|
107
|
+
licenses:
|
108
|
+
- MIT
|
109
|
+
metadata: {}
|
110
|
+
post_install_message:
|
111
|
+
rdoc_options: []
|
112
|
+
require_paths:
|
113
|
+
- lib
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
requirements: []
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 2.4.8
|
127
|
+
signing_key:
|
128
|
+
specification_version: 4
|
129
|
+
summary: A wrapper for CartoDB's API
|
130
|
+
test_files: []
|