bidsketch 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/Gemfile +11 -0
- data/LICENSE.txt +22 -0
- data/README.md +110 -0
- data/Rakefile +2 -0
- data/bidsketch.gemspec +26 -0
- data/lib/bidsketch/api.rb +40 -0
- data/lib/bidsketch/bidsketch_object.rb +21 -0
- data/lib/bidsketch/client.rb +4 -0
- data/lib/bidsketch/fee.rb +4 -0
- data/lib/bidsketch/proposal.rb +4 -0
- data/lib/bidsketch/section.rb +4 -0
- data/lib/bidsketch/template.rb +4 -0
- data/lib/bidsketch/version.rb +3 -0
- data/lib/bidsketch.rb +20 -0
- data/spec/client_spec.rb +13 -0
- data/spec/fee_spec.rb +13 -0
- data/spec/proposal_spec.rb +14 -0
- data/spec/section_spec.rb +12 -0
- data/spec/shared_examples/findable.rb +9 -0
- data/spec/shared_examples/listable.rb +14 -0
- data/spec/spec_helper.rb +109 -0
- data/spec/template_spec.rb +11 -0
- metadata +146 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: db1598ce2696eb6d78a8419e6aabbf9923064457
|
4
|
+
data.tar.gz: b88a0b4bb73a8751981d118ed9fbe2ea310ba38d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9de03a07de023662048df8ccee3ad58b1909a3b7034a7fa0f016212c771be542a31e49387be2d6d47c265f25184e4103dedd6e200761ae5d20e87aaa11e32cb6
|
7
|
+
data.tar.gz: 5709cabd1d2efb2da1c7d642a366f0f11be6d7260a3d53c6579c589dc05a621e76d31a66cd0caeae807803e05582a3cd8097aaf2e3d93dcda40d31f0b62d126f
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Dylan Montgomery
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
# Bidsketch
|
2
|
+
|
3
|
+
The bidsketch gem is a ruby wrapper for interacting with the [Bidsketch API](https://github.com/Bidsketch/bidsketch-api).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'bidsketch'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install bidsketch
|
20
|
+
|
21
|
+
## Getting Started
|
22
|
+
|
23
|
+
You will need a Bidsketch API key. For instructions on finding your API key: http://help.bidsketch.com/article/76-using-the-bidsketch-api
|
24
|
+
|
25
|
+
## Authentication
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
Bidsketch.api_key = 'YOUR API KEY'
|
29
|
+
```
|
30
|
+
Alternatively you can set your API key as an environment variable:
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
ENV['BIDSKETCH_API_KEY'] = 'YOUR API KEY'
|
34
|
+
```
|
35
|
+
## Clients
|
36
|
+
To get all clients:
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
Bidsketch::Client.all
|
40
|
+
```
|
41
|
+
|
42
|
+
To get a particular client:
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
Bidsketch::Client.find(id)
|
46
|
+
```
|
47
|
+
|
48
|
+
## Fees
|
49
|
+
|
50
|
+
To get all fees:
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
Bidsketch::Fee.all
|
54
|
+
```
|
55
|
+
|
56
|
+
To get a particular fee:
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
Bidsketch::Fee.find(id)
|
60
|
+
```
|
61
|
+
|
62
|
+
## Proposals
|
63
|
+
|
64
|
+
To get all proposals:
|
65
|
+
|
66
|
+
```ruby
|
67
|
+
Bidsketch::Proposal.all
|
68
|
+
```
|
69
|
+
|
70
|
+
To get a particular proposal:
|
71
|
+
|
72
|
+
```ruby
|
73
|
+
Bidsketch::Proposal.find(id)
|
74
|
+
```
|
75
|
+
|
76
|
+
## Sections
|
77
|
+
|
78
|
+
To get all sections
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
Bidsketch::Section.all
|
82
|
+
```
|
83
|
+
|
84
|
+
To get a particular section:
|
85
|
+
|
86
|
+
```ruby
|
87
|
+
Bidsketch::Section.find(id)
|
88
|
+
```
|
89
|
+
|
90
|
+
## Templates
|
91
|
+
|
92
|
+
To get all templates:
|
93
|
+
|
94
|
+
```ruby
|
95
|
+
Bidsketch::Template.all
|
96
|
+
```
|
97
|
+
|
98
|
+
To get a particular template:
|
99
|
+
|
100
|
+
```ruby
|
101
|
+
Bidsketch::Template.find(id)
|
102
|
+
```
|
103
|
+
|
104
|
+
## Contributing
|
105
|
+
|
106
|
+
1. Fork it ( https://github.com/citizens/bidsketch-ruby/fork )
|
107
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
108
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
109
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
110
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bidsketch.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'bidsketch/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "bidsketch"
|
8
|
+
spec.version = Bidsketch::VERSION
|
9
|
+
spec.authors = ["Dylan Montgomery"]
|
10
|
+
spec.email = ["mail@citizensinspace.com"]
|
11
|
+
spec.summary = %q{Ruby wrapper for the Bidsketch API}
|
12
|
+
spec.homepage = "https://github.com/citizens/bidsketch-ruby"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
21
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
+
|
23
|
+
spec.add_dependency 'rest-client'
|
24
|
+
spec.add_dependency 'json'
|
25
|
+
spec.add_dependency 'queryparams'
|
26
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'rest_client'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module Bidsketch
|
5
|
+
class API
|
6
|
+
BASE_URL = 'https://bidsketch.com/api/v1'
|
7
|
+
|
8
|
+
class << self
|
9
|
+
def get(path, options = {})
|
10
|
+
url = api_url(path)
|
11
|
+
if options[:params]
|
12
|
+
url += "&#{querify(options[:params])}"
|
13
|
+
end
|
14
|
+
|
15
|
+
headers = { authorization: "Token token=#{ENV['BIDSKETCH_API_KEY']}" }
|
16
|
+
normalize_response RestClient.get(url, headers)
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def normalize_response(response)
|
23
|
+
JSON.parse(response)
|
24
|
+
end
|
25
|
+
|
26
|
+
def api_url(path)
|
27
|
+
"#{BASE_URL}#{tokenize(path)}"
|
28
|
+
end
|
29
|
+
|
30
|
+
def querify(hash)
|
31
|
+
hash.map { |k, v| "#{k}=#{v}".to_s }.join('&')
|
32
|
+
end
|
33
|
+
|
34
|
+
def tokenize(path)
|
35
|
+
param_separator = path.include?('?') ? '&' : '?'
|
36
|
+
path += "#{param_separator}token=#{Bidsketch.api_key}"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
|
3
|
+
module Bidsketch
|
4
|
+
class BidsketchObject < OpenStruct
|
5
|
+
class << self
|
6
|
+
def all
|
7
|
+
Bidsketch::API.get("#{root_path}.json").map { |object| self.new(object) }
|
8
|
+
end
|
9
|
+
|
10
|
+
def find(id)
|
11
|
+
response = Bidsketch::API.get("#{root_path}/#{id}.json")
|
12
|
+
self.new(response)
|
13
|
+
end
|
14
|
+
|
15
|
+
def root_path
|
16
|
+
class_name = self.to_s.gsub(/^.*::/, '').downcase
|
17
|
+
"/#{class_name}s"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/bidsketch.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require "bidsketch/version"
|
2
|
+
require "bidsketch/api"
|
3
|
+
require "bidsketch/bidsketch_object"
|
4
|
+
require "bidsketch/client"
|
5
|
+
require "bidsketch/fee"
|
6
|
+
require "bidsketch/proposal"
|
7
|
+
require "bidsketch/section"
|
8
|
+
require "bidsketch/template"
|
9
|
+
|
10
|
+
module Bidsketch
|
11
|
+
class << self
|
12
|
+
def api_key
|
13
|
+
@api_key || ENV['BIDSKETCH_API_KEY']
|
14
|
+
end
|
15
|
+
|
16
|
+
def api_key=(key)
|
17
|
+
@api_key = key
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/spec/client_spec.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
describe Bidsketch::Client, vcr: true do
|
2
|
+
it_should_behave_like 'a listable object', Bidsketch::Client, [
|
3
|
+
:id, :first_name, :last_name, :email, :name, :phone,
|
4
|
+
:url, :app_url, :created_at, :updated_at
|
5
|
+
]
|
6
|
+
|
7
|
+
it_should_behave_like 'a findable object', 356834, [
|
8
|
+
:id, :first_name, :last_name, :email, :name, :phone, :alt_phone,
|
9
|
+
:website, :address_field_one, :address_field_two, :city, :state,
|
10
|
+
:postal_zip, :country, :notes, :other_contact, :url, :app_url,
|
11
|
+
:created_at, :updated_at
|
12
|
+
]
|
13
|
+
end
|
data/spec/fee_spec.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
describe Bidsketch::Fee, vcr: true do
|
2
|
+
it_should_behave_like 'a listable object', Bidsketch::Fee, [
|
3
|
+
:id, :name, :url, :app_url, :created_at, :updated_at,
|
4
|
+
:category, :total, :feetype, :details
|
5
|
+
]
|
6
|
+
|
7
|
+
|
8
|
+
it_should_behave_like 'a findable object', 180219, [
|
9
|
+
:id, :name, :url, :app_url, :created_at, :updated_at,
|
10
|
+
:quantity, :category, :total, :currency, :amount, :unit,
|
11
|
+
:details, :feetype, :description
|
12
|
+
]
|
13
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
describe Bidsketch::Proposal, vcr: true do
|
2
|
+
it_should_behave_like 'a listable object', Bidsketch::Proposal, [
|
3
|
+
:id, :url, :app_url, :created_at, :updated_at,
|
4
|
+
:name, :description, :status, :is_draft
|
5
|
+
]
|
6
|
+
|
7
|
+
it_should_behave_like 'a findable object', 189362, [
|
8
|
+
:id, :url, :app_url, :created_at, :updated_at,
|
9
|
+
:proposal_date, :name, :description, :status,
|
10
|
+
:is_draft, :user, :currency, :tax, :tax2, :monthly_fees,
|
11
|
+
:yearly_fees, :one_time_fees, :discount, :total,
|
12
|
+
:settings, :client, :content
|
13
|
+
]
|
14
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
describe Bidsketch::Section, vcr: true do
|
2
|
+
it_should_behave_like 'a listable object', Bidsketch::Section, [
|
3
|
+
:id, :name, :url, :app_url, :created_at, :updated_at,
|
4
|
+
:category, :sectiontype
|
5
|
+
]
|
6
|
+
|
7
|
+
|
8
|
+
it_should_behave_like 'a findable object', 390816, [
|
9
|
+
:id, :name, :url, :app_url, :created_at, :updated_at,
|
10
|
+
:category, :sectiontype, :description
|
11
|
+
]
|
12
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
RSpec.shared_examples 'a findable object' do |id, attributes|
|
2
|
+
let(:object) { VCR.use_cassette("#{subject.class.to_s}_#{id}") { subject.class.find(id) } }
|
3
|
+
|
4
|
+
attributes.each do |attribute|
|
5
|
+
it "should return a value for #{attribute}" do
|
6
|
+
expect(object.respond_to?(attribute)).to be true
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
RSpec.shared_examples 'a listable object' do |subject, attributes = []|
|
2
|
+
let(:list) { VCR.use_cassette(subject.to_s) { subject.all } }
|
3
|
+
|
4
|
+
it "should return an array of objects" do
|
5
|
+
expect(list.class).to eq Array
|
6
|
+
expect(list.first.class).to eq subject
|
7
|
+
end
|
8
|
+
|
9
|
+
attributes.each do |attribute|
|
10
|
+
it "should return a value for #{attribute}" do
|
11
|
+
expect(list.first.respond_to?(attribute)).to be true
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
require 'bidsketch'
|
2
|
+
require 'vcr'
|
3
|
+
require 'dotenv'
|
4
|
+
|
5
|
+
Dotenv.load
|
6
|
+
|
7
|
+
# Load shared examples
|
8
|
+
Dir['./spec/shared_examples/**/*.rb'].sort.each { |f| require f }
|
9
|
+
|
10
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
11
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
12
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
13
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
14
|
+
# files.
|
15
|
+
#
|
16
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
17
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
18
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
19
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
20
|
+
# a separate helper file that requires the additional dependencies and performs
|
21
|
+
# the additional setup, and require it from the spec files that actually need
|
22
|
+
# it.
|
23
|
+
#
|
24
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
25
|
+
# users commonly want.
|
26
|
+
#
|
27
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
28
|
+
|
29
|
+
VCR.configure do |c|
|
30
|
+
c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
|
31
|
+
c.hook_into :webmock
|
32
|
+
c.ignore_localhost = false
|
33
|
+
c.configure_rspec_metadata!
|
34
|
+
c.default_cassette_options = { record: :once }
|
35
|
+
end
|
36
|
+
|
37
|
+
RSpec.configure do |config|
|
38
|
+
# rspec-expectations config goes here. You can use an alternate
|
39
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
40
|
+
# assertions if you prefer.
|
41
|
+
config.expect_with :rspec do |expectations|
|
42
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
43
|
+
# and `failure_message` of custom matchers include text for helper methods
|
44
|
+
# defined using `chain`, e.g.:
|
45
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
46
|
+
# # => "be bigger than 2 and smaller than 4"
|
47
|
+
# ...rather than:
|
48
|
+
# # => "be bigger than 2"
|
49
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
50
|
+
end
|
51
|
+
|
52
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
53
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
54
|
+
config.mock_with :rspec do |mocks|
|
55
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
56
|
+
# a real object. This is generally recommended, and will default to
|
57
|
+
# `true` in RSpec 4.
|
58
|
+
mocks.verify_partial_doubles = true
|
59
|
+
end
|
60
|
+
|
61
|
+
# The settings below are suggested to provide a good initial experience
|
62
|
+
# with RSpec, but feel free to customize to your heart's content.
|
63
|
+
=begin
|
64
|
+
# These two settings work together to allow you to limit a spec run
|
65
|
+
# to individual examples or groups you care about by tagging them with
|
66
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
67
|
+
# get run.
|
68
|
+
config.filter_run :focus
|
69
|
+
config.run_all_when_everything_filtered = true
|
70
|
+
|
71
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
72
|
+
# recommended. For more details, see:
|
73
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
74
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
75
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
76
|
+
config.disable_monkey_patching!
|
77
|
+
|
78
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
79
|
+
# be too noisy due to issues in dependencies.
|
80
|
+
config.warnings = true
|
81
|
+
|
82
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
83
|
+
# file, and it's useful to allow more verbose output when running an
|
84
|
+
# individual spec file.
|
85
|
+
if config.files_to_run.one?
|
86
|
+
# Use the documentation formatter for detailed output,
|
87
|
+
# unless a formatter has already been configured
|
88
|
+
# (e.g. via a command-line flag).
|
89
|
+
config.default_formatter = 'doc'
|
90
|
+
end
|
91
|
+
|
92
|
+
# Print the 10 slowest examples and example groups at the
|
93
|
+
# end of the spec run, to help surface which specs are running
|
94
|
+
# particularly slow.
|
95
|
+
config.profile_examples = 10
|
96
|
+
|
97
|
+
# Run specs in random order to surface order dependencies. If you find an
|
98
|
+
# order dependency and want to debug it, you can fix the order by providing
|
99
|
+
# the seed, which is printed after each run.
|
100
|
+
# --seed 1234
|
101
|
+
config.order = :random
|
102
|
+
|
103
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
104
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
105
|
+
# test failures related to randomization by passing the same `--seed` value
|
106
|
+
# as the one that triggered the failure.
|
107
|
+
Kernel.srand config.seed
|
108
|
+
=end
|
109
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
describe Bidsketch::Template, vcr: true do
|
2
|
+
it_should_behave_like 'a listable object', Bidsketch::Template, [
|
3
|
+
:id, :name, :url, :app_url, :created_at, :updated_at
|
4
|
+
]
|
5
|
+
|
6
|
+
|
7
|
+
it_should_behave_like 'a findable object', 121478, [
|
8
|
+
:id, :name, :url, :app_url, :created_at, :updated_at,
|
9
|
+
:sections, :fees
|
10
|
+
]
|
11
|
+
end
|
metadata
ADDED
@@ -0,0 +1,146 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bidsketch
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dylan Montgomery
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-03 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.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
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: rest-client
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
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: json
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: queryparams
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description:
|
84
|
+
email:
|
85
|
+
- mail@citizensinspace.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- Gemfile
|
92
|
+
- LICENSE.txt
|
93
|
+
- README.md
|
94
|
+
- Rakefile
|
95
|
+
- bidsketch.gemspec
|
96
|
+
- lib/bidsketch.rb
|
97
|
+
- lib/bidsketch/api.rb
|
98
|
+
- lib/bidsketch/bidsketch_object.rb
|
99
|
+
- lib/bidsketch/client.rb
|
100
|
+
- lib/bidsketch/fee.rb
|
101
|
+
- lib/bidsketch/proposal.rb
|
102
|
+
- lib/bidsketch/section.rb
|
103
|
+
- lib/bidsketch/template.rb
|
104
|
+
- lib/bidsketch/version.rb
|
105
|
+
- spec/client_spec.rb
|
106
|
+
- spec/fee_spec.rb
|
107
|
+
- spec/proposal_spec.rb
|
108
|
+
- spec/section_spec.rb
|
109
|
+
- spec/shared_examples/findable.rb
|
110
|
+
- spec/shared_examples/listable.rb
|
111
|
+
- spec/spec_helper.rb
|
112
|
+
- spec/template_spec.rb
|
113
|
+
homepage: https://github.com/citizens/bidsketch-ruby
|
114
|
+
licenses:
|
115
|
+
- MIT
|
116
|
+
metadata: {}
|
117
|
+
post_install_message:
|
118
|
+
rdoc_options: []
|
119
|
+
require_paths:
|
120
|
+
- lib
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
requirements: []
|
132
|
+
rubyforge_project:
|
133
|
+
rubygems_version: 2.4.5
|
134
|
+
signing_key:
|
135
|
+
specification_version: 4
|
136
|
+
summary: Ruby wrapper for the Bidsketch API
|
137
|
+
test_files:
|
138
|
+
- spec/client_spec.rb
|
139
|
+
- spec/fee_spec.rb
|
140
|
+
- spec/proposal_spec.rb
|
141
|
+
- spec/section_spec.rb
|
142
|
+
- spec/shared_examples/findable.rb
|
143
|
+
- spec/shared_examples/listable.rb
|
144
|
+
- spec/spec_helper.rb
|
145
|
+
- spec/template_spec.rb
|
146
|
+
has_rdoc:
|