quasar_rest_client 0.1.0
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.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/.yardopts +1 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/Guardfile +25 -0
- data/LICENSE.txt +21 -0
- data/README.md +116 -0
- data/Rakefile +6 -0
- data/bin/_guard-core +16 -0
- data/bin/console +14 -0
- data/bin/guard +16 -0
- data/bin/rake +16 -0
- data/bin/rspec +16 -0
- data/bin/setup +9 -0
- data/lib/quasar_rest_client/base.rb +7 -0
- data/lib/quasar_rest_client/config.rb +8 -0
- data/lib/quasar_rest_client/proxy.rb +78 -0
- data/lib/quasar_rest_client/version.rb +3 -0
- data/lib/quasar_rest_client.rb +74 -0
- data/quasar_rest_client.gemspec +37 -0
- metadata +164 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4573f4ab0e743f401cfef70607fab0c1b1469eb5
|
4
|
+
data.tar.gz: 6f3304c930a010c41e4b186fd776a4841ae8f67f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 495f054a0495e55766ef1d9a64be452f65249ac0c76a2be1d23ce9de4c0e124434277448ba28482b17db7ffdec88c9f78ab850730afdf72d158ebee32e60d641
|
7
|
+
data.tar.gz: 006013b8135e66a0e2ce556244b38f607be403959cb34baa0ffaecdb57b79a98e9902109a4d76ce967e531f290cefb413d8a6f6c6ceb8a57fb2159cb97900e78
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--markup markdown
|
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 tamouse@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/Guardfile
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
4
|
+
# rspec may be run, below are examples of the most common uses.
|
5
|
+
# * bundler: 'bundle exec rspec'
|
6
|
+
# * bundler binstubs: 'bin/rspec'
|
7
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
8
|
+
# installed the spring binstubs per the docs)
|
9
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
10
|
+
# * 'just' rspec: 'rspec'
|
11
|
+
|
12
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
13
|
+
require "guard/rspec/dsl"
|
14
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
15
|
+
|
16
|
+
# RSpec files
|
17
|
+
rspec = dsl.rspec
|
18
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
19
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
20
|
+
watch(rspec.spec_files)
|
21
|
+
|
22
|
+
# Ruby files
|
23
|
+
ruby = dsl.ruby
|
24
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
25
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Bluewater, LLC
|
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,116 @@
|
|
1
|
+
# QuasarRestClient
|
2
|
+
|
3
|
+
Wrap the [Quasar](http://quasar-analytics.org/ "Quasar NoSQL Analytics
|
4
|
+
Engine") [RESTful API](http://quasar-analytics.org/docs/restapi/
|
5
|
+
"Quasar RESTful API Documentation") to drop into Ruby applications.
|
6
|
+
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Add this line to your application's Gemfile:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem 'quasar_rest_client'
|
14
|
+
```
|
15
|
+
|
16
|
+
And then execute:
|
17
|
+
|
18
|
+
$ bundle
|
19
|
+
|
20
|
+
Or install it yourself as:
|
21
|
+
|
22
|
+
$ gem install quasar_rest_client
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
### Configuration
|
27
|
+
|
28
|
+
#### Endpoint
|
29
|
+
|
30
|
+
Stores the endpoint of the Quasar service:
|
31
|
+
|
32
|
+
QuasarRestClient.config.endpoint = 'http://example.com'
|
33
|
+
|
34
|
+
#### Logger
|
35
|
+
|
36
|
+
Stores an optional logger object implementing the `Logger` interface.
|
37
|
+
|
38
|
+
require 'logger'
|
39
|
+
QuasarRestClient.config.logger = Logger.new($stderr)
|
40
|
+
|
41
|
+
#### Alternate configuration style
|
42
|
+
|
43
|
+
You can also perform the configuration in block-style
|
44
|
+
|
45
|
+
require 'logger'
|
46
|
+
QuasarRestClient.configure do |config|
|
47
|
+
config.endpoint = 'http://example.com'
|
48
|
+
config.logger = Logger.new($stderr)
|
49
|
+
end
|
50
|
+
|
51
|
+
### Queries
|
52
|
+
|
53
|
+
#### Simple Query
|
54
|
+
|
55
|
+
##### REQUEST
|
56
|
+
|
57
|
+
`QuasarRestClient.simple_query(query, options)`
|
58
|
+
|
59
|
+
* Calls your quasar instance with a simple query as described in
|
60
|
+
http://quasar-analytics.org/docs/restapi/#small-query
|
61
|
+
|
62
|
+
* `query` [String] -- contains the SQL^2 query string, for example:
|
63
|
+
|
64
|
+
SELECT * from `/sample/data/SampleJSON` WHERE state="WA"
|
65
|
+
|
66
|
+
Note that the documentation is wrong about quoting. The source name
|
67
|
+
(and other database names) should be **backticked** (like in
|
68
|
+
Postgresql) and strings need to be surrounded with **double
|
69
|
+
quotes**, not single quotes.
|
70
|
+
|
71
|
+
* `options` [Hash] -- a hash object with the following key:
|
72
|
+
|
73
|
+
* `limit` [Numeric Value] -- number of records to retrieve in this
|
74
|
+
query
|
75
|
+
|
76
|
+
* `offset` [Numeric Value] -- record to start retreival at
|
77
|
+
(zero-based)
|
78
|
+
|
79
|
+
* `var` [Hash] -- a hash of key-value pairs where the key
|
80
|
+
corresponds to a variable name used in the query string.
|
81
|
+
|
82
|
+
##### RESPONSE
|
83
|
+
|
84
|
+
The call responds with a JSON object with the result of the query,
|
85
|
+
which could either be data or an error.
|
86
|
+
|
87
|
+
## Exceptions
|
88
|
+
|
89
|
+
There are no exceptions raised explicitly in the library, but
|
90
|
+
underlying libraries may raise them, and as this is a networked
|
91
|
+
utility, one could get errors because of the inherent instability of
|
92
|
+
the network.
|
93
|
+
|
94
|
+
|
95
|
+
## Development
|
96
|
+
|
97
|
+
After checking out the repo, run `bin/setup` to install
|
98
|
+
dependencies. Then, run `rake test` to run the tests. You can also run
|
99
|
+
`bin/console` for an interactive prompt that will allow you to
|
100
|
+
experiment.
|
101
|
+
|
102
|
+
To install this gem onto your local machine, run `bundle exec rake
|
103
|
+
install`. To release a new version, update the version number in
|
104
|
+
`version.rb`, and then run `bundle exec rake release`, which will
|
105
|
+
create a git tag for the version, push git commits and tags, and push
|
106
|
+
the `.gem` file to [rubygems.org](https://rubygems.org).
|
107
|
+
|
108
|
+
## Contributing
|
109
|
+
|
110
|
+
Bug reports and pull requests are welcome on GitHub at
|
111
|
+
https://github.com/riverock/quasar_rest_client.
|
112
|
+
|
113
|
+
This project is intended to be a safe, welcoming space for
|
114
|
+
collaboration, and contributors are expected to adhere to the
|
115
|
+
[Contributor Covenant](http://contributor-covenant.org) code of
|
116
|
+
conduct.
|
data/Rakefile
ADDED
data/bin/_guard-core
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application '_guard-core' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require "pathname"
|
10
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require "rubygems"
|
14
|
+
require "bundler/setup"
|
15
|
+
|
16
|
+
load Gem.bin_path("guard", "_guard-core")
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "quasar_rest_client"
|
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/guard
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'guard' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require "pathname"
|
10
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require "rubygems"
|
14
|
+
require "bundler/setup"
|
15
|
+
|
16
|
+
load Gem.bin_path("guard", "guard")
|
data/bin/rake
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rake' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require "pathname"
|
10
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require "rubygems"
|
14
|
+
require "bundler/setup"
|
15
|
+
|
16
|
+
load Gem.bin_path("rake", "rake")
|
data/bin/rspec
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rspec' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require "pathname"
|
10
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require "rubygems"
|
14
|
+
require "bundler/setup"
|
15
|
+
|
16
|
+
load Gem.bin_path("rspec-core", "rspec")
|
data/bin/setup
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
require "httparty"
|
2
|
+
|
3
|
+
module QuasarRestClient
|
4
|
+
class Proxy
|
5
|
+
include HTTParty
|
6
|
+
|
7
|
+
# @!attribute query_hash
|
8
|
+
# @return [Hash] values to form the query string for the request
|
9
|
+
attr_accessor :query_hash
|
10
|
+
|
11
|
+
# Set up the proxy object
|
12
|
+
#
|
13
|
+
# @param [String] q -- the SQL^2 query string passed in WITHOUT encoding
|
14
|
+
# @param [Hash] opts -- options to pass along to the Quasar request
|
15
|
+
# @option opts [Integer] :limit -- limit to the number of records retrieved
|
16
|
+
# @option opts [Integer] :offset -- starting record
|
17
|
+
# @option opts [Hash] :var -- variable substitutions for parametric queries
|
18
|
+
#
|
19
|
+
# @example
|
20
|
+
# For the last option, `:var`, the hash keys match the variable name used in
|
21
|
+
# the query string. For example, given a query string of:
|
22
|
+
#
|
23
|
+
# SELECT * WHERE pop < :cutoff
|
24
|
+
#
|
25
|
+
# @example
|
26
|
+
#
|
27
|
+
# The var hash should have:
|
28
|
+
#
|
29
|
+
# { cutoff: 100 }
|
30
|
+
#
|
31
|
+
# To set the value of the cutoff.
|
32
|
+
#
|
33
|
+
def initialize(q='', opts={})
|
34
|
+
self.query_hash = Hash.new
|
35
|
+
self.query_hash[:q] = q
|
36
|
+
self.query_hash.merge!(opts)
|
37
|
+
end
|
38
|
+
|
39
|
+
# @return [String] JSON response from query
|
40
|
+
def simple_query
|
41
|
+
self.class.get(
|
42
|
+
path,
|
43
|
+
query: request_query,
|
44
|
+
headers: request_headers,
|
45
|
+
logger: Base.config.logger,
|
46
|
+
base_uri: Base.config.endpoint
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
private
|
51
|
+
|
52
|
+
def endpoint
|
53
|
+
Base.config.endpoint
|
54
|
+
end
|
55
|
+
|
56
|
+
# TODO: return proper path based on query type for future expansion
|
57
|
+
def path
|
58
|
+
'/query/fs'
|
59
|
+
end
|
60
|
+
|
61
|
+
def request_headers
|
62
|
+
{
|
63
|
+
"accept-encoding" => '',
|
64
|
+
"accept" => "application/json"
|
65
|
+
}
|
66
|
+
end
|
67
|
+
|
68
|
+
def request_query
|
69
|
+
stringify_keys(query_hash)
|
70
|
+
end
|
71
|
+
|
72
|
+
def stringify_keys(hash)
|
73
|
+
hash.map do |k,v|
|
74
|
+
[k.to_s, v]
|
75
|
+
end.to_h
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require "quasar_rest_client/version"
|
3
|
+
require "quasar_rest_client/base"
|
4
|
+
require "quasar_rest_client/config"
|
5
|
+
require "quasar_rest_client/proxy"
|
6
|
+
|
7
|
+
# A small library to provide basic interaction with the
|
8
|
+
# [Quasar Rest API](http://quasar-analytics.org/docs/restapi/).
|
9
|
+
#
|
10
|
+
# Copyright © 2016 Bluewater, LLC.
|
11
|
+
#
|
12
|
+
# MIT License
|
13
|
+
#
|
14
|
+
|
15
|
+
module QuasarRestClient
|
16
|
+
|
17
|
+
# Provide block-style configuration:
|
18
|
+
#
|
19
|
+
# QuasarRestClient.configure do |config|
|
20
|
+
# config.endpoint = 'http://example.com'
|
21
|
+
# end
|
22
|
+
def self.configure
|
23
|
+
yield Base.config
|
24
|
+
end
|
25
|
+
|
26
|
+
# Access the configuration to set and retrieve information
|
27
|
+
#
|
28
|
+
# QuasarRestClient.config.endpoint # => returns value
|
29
|
+
# QuasarRestClient.config.endpoint = 'https://example.com' # => sets endpoint
|
30
|
+
#
|
31
|
+
def self.config
|
32
|
+
return Base.config
|
33
|
+
end
|
34
|
+
|
35
|
+
# Call Quasar with a simple query
|
36
|
+
#
|
37
|
+
# @param [String] q -- the SQL^2 query string passed in WITHOUT encoding
|
38
|
+
# @param [Hash] opts -- options to pass along to the Quasar request
|
39
|
+
# @option [Integer] :limit -- limit to the number of records retrieved
|
40
|
+
# @option [Integer] :offset -- starting record
|
41
|
+
# @option [Hash] :var -- variable substitutions for parametric queries
|
42
|
+
#
|
43
|
+
# For the last option, :var, the hash keys match the variable name used in
|
44
|
+
# the query string. For example, given a query string of:
|
45
|
+
#
|
46
|
+
# SELECT * WHERE pop < :cutoff
|
47
|
+
#
|
48
|
+
# The var hash should have:
|
49
|
+
#
|
50
|
+
# { cutoff: 100 }
|
51
|
+
#
|
52
|
+
# To set the value of the cutoff.
|
53
|
+
#
|
54
|
+
#
|
55
|
+
# Example:
|
56
|
+
# --------
|
57
|
+
#
|
58
|
+
# QuasarRestClient.simple_query(
|
59
|
+
# 'SELECT * WHERE pop < :cutoff',
|
60
|
+
# {
|
61
|
+
# limit: 10,
|
62
|
+
# offset: 20,
|
63
|
+
# var: {
|
64
|
+
# cutoff: 100
|
65
|
+
# }
|
66
|
+
# }
|
67
|
+
# )
|
68
|
+
#
|
69
|
+
def self.simple_query(q='', opts={})
|
70
|
+
proxy = Proxy.new(q, opts)
|
71
|
+
proxy.simple_query
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'quasar_rest_client/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "quasar_rest_client"
|
8
|
+
spec.version = QuasarRestClient::VERSION
|
9
|
+
spec.authors = ["Tamara Temple"]
|
10
|
+
spec.email = ["tamara.temple@bluewaterbrand.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Wraps the Quasar RESTful API in a client library.}
|
13
|
+
spec.homepage = "https://github.com/riverock/quasar_rest_client"
|
14
|
+
|
15
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
16
|
+
# delete this section to allow pushing this gem to any host.
|
17
|
+
if spec.respond_to?(:metadata)
|
18
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
19
|
+
else
|
20
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
21
|
+
end
|
22
|
+
|
23
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
+
spec.bindir = "exe"
|
25
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
|
+
spec.require_paths = ["lib"]
|
27
|
+
|
28
|
+
spec.add_dependency "httparty", "~> 0.14"
|
29
|
+
|
30
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
31
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
+
spec.add_development_dependency "rspec", "~> 3.5"
|
33
|
+
spec.add_development_dependency "pry-byebug"
|
34
|
+
spec.add_development_dependency "guard"
|
35
|
+
spec.add_development_dependency "guard-rspec"
|
36
|
+
|
37
|
+
end
|
metadata
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: quasar_rest_client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tamara Temple
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.14'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.14'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.11'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.11'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.5'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.5'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry-byebug
|
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: guard
|
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
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard-rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description:
|
112
|
+
email:
|
113
|
+
- tamara.temple@bluewaterbrand.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".travis.yml"
|
121
|
+
- ".yardopts"
|
122
|
+
- CODE_OF_CONDUCT.md
|
123
|
+
- Gemfile
|
124
|
+
- Guardfile
|
125
|
+
- LICENSE.txt
|
126
|
+
- README.md
|
127
|
+
- Rakefile
|
128
|
+
- bin/_guard-core
|
129
|
+
- bin/console
|
130
|
+
- bin/guard
|
131
|
+
- bin/rake
|
132
|
+
- bin/rspec
|
133
|
+
- bin/setup
|
134
|
+
- lib/quasar_rest_client.rb
|
135
|
+
- lib/quasar_rest_client/base.rb
|
136
|
+
- lib/quasar_rest_client/config.rb
|
137
|
+
- lib/quasar_rest_client/proxy.rb
|
138
|
+
- lib/quasar_rest_client/version.rb
|
139
|
+
- quasar_rest_client.gemspec
|
140
|
+
homepage: https://github.com/riverock/quasar_rest_client
|
141
|
+
licenses: []
|
142
|
+
metadata:
|
143
|
+
allowed_push_host: https://rubygems.org
|
144
|
+
post_install_message:
|
145
|
+
rdoc_options: []
|
146
|
+
require_paths:
|
147
|
+
- lib
|
148
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
requirements: []
|
159
|
+
rubyforge_project:
|
160
|
+
rubygems_version: 2.5.1
|
161
|
+
signing_key:
|
162
|
+
specification_version: 4
|
163
|
+
summary: Wraps the Quasar RESTful API in a client library.
|
164
|
+
test_files: []
|