fancyhands 0.0.2
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 +22 -0
- data/.rspec +2 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +6 -0
- data/config/fancyhands.yml +2 -0
- data/fancyhands.gemspec +29 -0
- data/lib/fancyhands.rb +14 -0
- data/lib/fancyhands/configuration.rb +32 -0
- data/lib/fancyhands/v1.rb +3 -0
- data/lib/fancyhands/v1/request.rb +6 -0
- data/lib/fancyhands/v1/request/custom.rb +45 -0
- data/lib/fancyhands/v1/request/requester.rb +24 -0
- data/lib/fancyhands/version.rb +3 -0
- data/spec/cassettes/Fancyhands_V1_Request_Requester/_post/creates_custom_requests.yml +50 -0
- data/spec/fancyhands/configuration_spec.rb +37 -0
- data/spec/fancyhands/v1/request/custom_spec.rb +56 -0
- data/spec/fancyhands/v1/request/requester_spec.rb +33 -0
- data/spec/fancyhands_spec.rb +8 -0
- data/spec/spec_helper.rb +17 -0
- metadata +171 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9d212762982aad3d3a25ae604786a168c3b7ffa5
|
4
|
+
data.tar.gz: b10cd465c08ce3d62649518dc93184500836645c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2600ddeaa0413fb12117c026cd49db29500002f15c031bb5ac4f865d242b5d51b8111aaacdf0668a191216fa738f9f8a23668b6c1298c11eb2ff8f40e0d4e929
|
7
|
+
data.tar.gz: 57eec3edc754b5b6d44ca744e009037f893a2bbcfee3f70ca0903f48038b908be1510a6be1049a58f4c7a910c331c4c19f6139d9cddbb14c0f44152449927839
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/.rspec
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Joe Sak
|
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,29 @@
|
|
1
|
+
# Fh::Api
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'fh-api'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install fh-api
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it ( https://github.com/[my-github-username]/fh-api/fork )
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/fancyhands.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'fancyhands/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "fancyhands"
|
8
|
+
spec.version = Fancyhands::VERSION
|
9
|
+
spec.authors = ["Joe Sak", "Jose Casanova"]
|
10
|
+
spec.email = ["joe@joesak.com", "jose@josecasanova.com"]
|
11
|
+
spec.summary = %q{A simple ruby wrapper for Fancyhands API}
|
12
|
+
spec.description = %q{See summary}
|
13
|
+
spec.homepage = "https://github.com/josescasanova/fh-api"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
22
|
+
spec.add_development_dependency "rake", '~> 10.3'
|
23
|
+
spec.add_development_dependency 'rspec', '~> 2.13'
|
24
|
+
spec.add_development_dependency 'vcr', '~> 2.4'
|
25
|
+
spec.add_development_dependency 'webmock', '< 1.10'
|
26
|
+
spec.add_development_dependency 'pry', '~> 0.9'
|
27
|
+
|
28
|
+
spec.add_dependency 'oauth', '~> 0.4'
|
29
|
+
end
|
data/lib/fancyhands.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'forwardable'
|
2
|
+
require "fancyhands/version"
|
3
|
+
require 'fancyhands/configuration'
|
4
|
+
require 'fancyhands/v1'
|
5
|
+
|
6
|
+
module Fancyhands
|
7
|
+
extend SingleForwardable
|
8
|
+
|
9
|
+
def self.config
|
10
|
+
@config ||= Fancyhands::Configuration.from_config
|
11
|
+
end
|
12
|
+
|
13
|
+
def_delegators :config, :key, :secret
|
14
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
|
3
|
+
module Fancyhands
|
4
|
+
class Configuration
|
5
|
+
attr_reader :key, :secret
|
6
|
+
|
7
|
+
def set_key(key)
|
8
|
+
key ||= ENV['FANCYHANDS_KEY']
|
9
|
+
@key = key
|
10
|
+
end
|
11
|
+
|
12
|
+
def set_secret(secret)
|
13
|
+
secret ||= ENV['FANCYHANDS_SECRET']
|
14
|
+
@secret = secret
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.from_config
|
18
|
+
config = Configuration.new
|
19
|
+
config.set_key(config_file['key'])
|
20
|
+
config.set_secret(config_file['secret'])
|
21
|
+
config
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.config_file
|
25
|
+
YAML.load(file)
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.file
|
29
|
+
@file ||= File.read('./config/fancyhands.yml')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module Fancyhands
|
2
|
+
module V1
|
3
|
+
module Request
|
4
|
+
class Custom
|
5
|
+
attr_accessor :title, :description, :bid, :expiration_date, :custom_fields
|
6
|
+
|
7
|
+
def initialize(title, desc, bid, expiration_date, custom_fields = {})
|
8
|
+
@title = title
|
9
|
+
@description = desc
|
10
|
+
@bid = bid
|
11
|
+
@expiration_date = expiration_date
|
12
|
+
@custom_fields = custom_fields
|
13
|
+
|
14
|
+
validate_required_fields
|
15
|
+
end
|
16
|
+
|
17
|
+
def create
|
18
|
+
requester.post('/request/custom',
|
19
|
+
{ title: title,
|
20
|
+
description: description,
|
21
|
+
bid: bid,
|
22
|
+
expiration_date: expiration_date,
|
23
|
+
custom_fields: custom_fields })
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
def requester
|
28
|
+
Requester
|
29
|
+
end
|
30
|
+
|
31
|
+
def validate_required_fields
|
32
|
+
raise TitleRequiredError if title.strip.empty?
|
33
|
+
raise DescriptionRequiredError if description.strip.empty?
|
34
|
+
raise BidRequiredError if bid.nil?
|
35
|
+
raise ExpirationDateRequiredError if expiration_date.strip.empty?
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
class TitleRequiredError < StandardError; end
|
40
|
+
class DescriptionRequiredError < StandardError; end
|
41
|
+
class BidRequiredError < StandardError; end
|
42
|
+
class ExpirationDateRequiredError < StandardError; end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'oauth'
|
2
|
+
|
3
|
+
module Fancyhands
|
4
|
+
module V1
|
5
|
+
module Request
|
6
|
+
class Requester
|
7
|
+
class << self
|
8
|
+
def post(endpoint, body)
|
9
|
+
client.request(:post, endpoint, nil, {}, body)
|
10
|
+
end
|
11
|
+
|
12
|
+
def client
|
13
|
+
OAuth::Consumer.new(Fancyhands.key, Fancyhands.secret, site: base_uri)
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
def base_uri
|
18
|
+
"https://www.fancyhands.com/api/v1"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://www.fancyhands.com/api/v1/request/custom
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: bid=1.0&description=desc&expiration_date=2014-05-16T10%3A09%3A08Z&title=title
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- OAuth gem v0.4.7
|
16
|
+
Content-Length:
|
17
|
+
- '0'
|
18
|
+
Content-Type:
|
19
|
+
- application/x-www-form-urlencoded
|
20
|
+
Authorization:
|
21
|
+
- OAuth oauth_consumer_key="<API_KEY>", oauth_nonce="kFzuGa01xAsJOX2SyY8je9K9F2TwKZoEkKuTP00",
|
22
|
+
oauth_signature="7QsIp4ZI%2Bjw1mhlxAsWSHQVSBX4%3D", oauth_signature_method="HMAC-SHA1",
|
23
|
+
oauth_timestamp="1400125508", oauth_version="1.0"
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 201
|
27
|
+
message: Created
|
28
|
+
headers:
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Content-Type:
|
32
|
+
- application/json
|
33
|
+
Vary:
|
34
|
+
- Accept-Encoding
|
35
|
+
Date:
|
36
|
+
- Thu, 15 May 2014 03:45:10 GMT
|
37
|
+
Server:
|
38
|
+
- Google Frontend
|
39
|
+
Transfer-Encoding:
|
40
|
+
- chunked
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"user_key": "ahBzfmZhbmN5aGFuZHMtaHJkcg8LEgZGSFVzZXIYx8L1BQw", "numeric_status":
|
44
|
+
1, "title": "title", "content": "desc", "date_updated": "2014-05-15T03:45:09.180030",
|
45
|
+
"status": "In Progress", "bonus": 0.0, "price": 0.84999999999999998, "api_bid":
|
46
|
+
1.0, "key": "ahBzfmZhbmN5aGFuZHMtaHJkciULEgZGSFVzZXIYx8L1BQwLEglGSFJlcXVlc3QYgICAgIjgmgoM",
|
47
|
+
"phone_calls": [], "messages": [], "date_created": "2014-05-15T03:45:08.983500"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Thu, 15 May 2014 03:45:10 GMT
|
50
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'fancyhands/configuration'
|
3
|
+
|
4
|
+
module Fancyhands
|
5
|
+
describe Configuration do
|
6
|
+
it 'sets a key' do
|
7
|
+
config = Configuration.new
|
8
|
+
config.set_key('blah')
|
9
|
+
config.key.should == 'blah'
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'sets a secret' do
|
13
|
+
config = Configuration.new
|
14
|
+
config.set_secret('blah')
|
15
|
+
config.secret.should == 'blah'
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '#initialize' do
|
19
|
+
it 'reads from config/fancyhands.yml' do
|
20
|
+
config = Configuration.from_config
|
21
|
+
|
22
|
+
config.key.should == 'example_key'
|
23
|
+
config.secret.should == 'example_secret'
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'fallsback to ENV' do
|
28
|
+
Configuration.stub(:config_file).and_return({})
|
29
|
+
ENV['FANCYHANDS_KEY'] = 'env_key'
|
30
|
+
ENV['FANCYHANDS_SECRET'] = 'env_secret'
|
31
|
+
|
32
|
+
config = Configuration.from_config
|
33
|
+
config.key.should == 'env_key'
|
34
|
+
config.secret.should == 'env_secret'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'fancyhands/v1/request/requester'
|
3
|
+
require 'fancyhands/v1/request/custom'
|
4
|
+
|
5
|
+
module Fancyhands
|
6
|
+
module V1
|
7
|
+
module Request
|
8
|
+
describe Custom do
|
9
|
+
def build_request(title, desc, bid, exp_date, custom_fields = {})
|
10
|
+
Custom.new(title, desc, bid, exp_date, custom_fields)
|
11
|
+
end
|
12
|
+
|
13
|
+
describe '#initialize' do
|
14
|
+
it 'requires the APIs required fields' do
|
15
|
+
expect { build_request('', '', nil, '') }
|
16
|
+
.to raise_error(TitleRequiredError)
|
17
|
+
|
18
|
+
expect { build_request('title', '', nil, '') }
|
19
|
+
.to raise_error(DescriptionRequiredError)
|
20
|
+
|
21
|
+
expect { build_request('title', 'desc', nil, '') }
|
22
|
+
.to raise_error(BidRequiredError)
|
23
|
+
|
24
|
+
expect { build_request('title', 'desc', 1, '') }
|
25
|
+
.to raise_error(ExpirationDateRequiredError)
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'sets the attr accessors with the fields' do
|
29
|
+
request = build_request('title', 'desc', 1.0, '2014-05-15T10:09:08Z')
|
30
|
+
|
31
|
+
request.title.should == 'title'
|
32
|
+
request.description.should == 'desc'
|
33
|
+
request.bid.should == 1.0
|
34
|
+
request.expiration_date.should == '2014-05-15T10:09:08Z'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe '#create' do
|
39
|
+
let(:request) do
|
40
|
+
build_request('title', 'desc', 1.0, '2014-05-15T10:09:08Z', {})
|
41
|
+
end
|
42
|
+
|
43
|
+
it "posts the fields and the fancyhands endpoint to the requester" do
|
44
|
+
Requester.should_receive(:post).with('/request/custom',
|
45
|
+
{ title: 'title',
|
46
|
+
description: 'desc',
|
47
|
+
bid: 1.0,
|
48
|
+
expiration_date: '2014-05-15T10:09:08Z',
|
49
|
+
custom_fields: {} })
|
50
|
+
request.create
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'fancyhands'
|
3
|
+
require 'fancyhands/v1/request/requester'
|
4
|
+
|
5
|
+
module Fancyhands
|
6
|
+
module V1
|
7
|
+
module Request
|
8
|
+
describe Requester do
|
9
|
+
describe '.post' do
|
10
|
+
it 'sends a :post to the oauth client with the given endpoint' do
|
11
|
+
oauth_client = double(:oauth_client)
|
12
|
+
Requester.stub(:client) { oauth_client }
|
13
|
+
|
14
|
+
oauth_client.should_receive(:request).with(:post,
|
15
|
+
'/request/something', nil, {}, { some: 'request_body' })
|
16
|
+
Requester.post('/request/something', { some: 'request_body' })
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'creates custom requests', :vcr do
|
20
|
+
post = Requester.post('/request/custom',
|
21
|
+
{ title: 'title',
|
22
|
+
description: 'desc',
|
23
|
+
bid: 1.0,
|
24
|
+
expiration_date: '2014-05-16T10:09:08Z' })
|
25
|
+
|
26
|
+
post.msg.should == 'Created'
|
27
|
+
post.code.should == '201'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'pry'
|
2
|
+
require 'vcr'
|
3
|
+
|
4
|
+
VCR.configure do |c|
|
5
|
+
c.cassette_library_dir = 'spec/cassettes'
|
6
|
+
c.hook_into :webmock
|
7
|
+
c.configure_rspec_metadata!
|
8
|
+
c.filter_sensitive_data('<API_KEY>') { ENV['FANCYHANDS_KEY'] }
|
9
|
+
c.filter_sensitive_data('<API_SECRET>') { ENV['FANCYHANDS_SECRET'] }
|
10
|
+
end
|
11
|
+
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
14
|
+
config.run_all_when_everything_filtered = true
|
15
|
+
config.filter_run :focus
|
16
|
+
config.order = 'random'
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,171 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fancyhands
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joe Sak
|
8
|
+
- Jose Casanova
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.6'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.6'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '10.3'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '10.3'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rspec
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '2.13'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '2.13'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: vcr
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '2.4'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '2.4'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: webmock
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "<"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1.10'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "<"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.10'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: pry
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0.9'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0.9'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: oauth
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0.4'
|
105
|
+
type: :runtime
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0.4'
|
112
|
+
description: See summary
|
113
|
+
email:
|
114
|
+
- joe@joesak.com
|
115
|
+
- jose@josecasanova.com
|
116
|
+
executables: []
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
120
|
+
- ".gitignore"
|
121
|
+
- ".rspec"
|
122
|
+
- Gemfile
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- config/fancyhands.yml
|
127
|
+
- fancyhands.gemspec
|
128
|
+
- lib/fancyhands.rb
|
129
|
+
- lib/fancyhands/configuration.rb
|
130
|
+
- lib/fancyhands/v1.rb
|
131
|
+
- lib/fancyhands/v1/request.rb
|
132
|
+
- lib/fancyhands/v1/request/custom.rb
|
133
|
+
- lib/fancyhands/v1/request/requester.rb
|
134
|
+
- lib/fancyhands/version.rb
|
135
|
+
- spec/cassettes/Fancyhands_V1_Request_Requester/_post/creates_custom_requests.yml
|
136
|
+
- spec/fancyhands/configuration_spec.rb
|
137
|
+
- spec/fancyhands/v1/request/custom_spec.rb
|
138
|
+
- spec/fancyhands/v1/request/requester_spec.rb
|
139
|
+
- spec/fancyhands_spec.rb
|
140
|
+
- spec/spec_helper.rb
|
141
|
+
homepage: https://github.com/josescasanova/fh-api
|
142
|
+
licenses:
|
143
|
+
- MIT
|
144
|
+
metadata: {}
|
145
|
+
post_install_message:
|
146
|
+
rdoc_options: []
|
147
|
+
require_paths:
|
148
|
+
- lib
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
requirements: []
|
160
|
+
rubyforge_project:
|
161
|
+
rubygems_version: 2.2.2
|
162
|
+
signing_key:
|
163
|
+
specification_version: 4
|
164
|
+
summary: A simple ruby wrapper for Fancyhands API
|
165
|
+
test_files:
|
166
|
+
- spec/cassettes/Fancyhands_V1_Request_Requester/_post/creates_custom_requests.yml
|
167
|
+
- spec/fancyhands/configuration_spec.rb
|
168
|
+
- spec/fancyhands/v1/request/custom_spec.rb
|
169
|
+
- spec/fancyhands/v1/request/requester_spec.rb
|
170
|
+
- spec/fancyhands_spec.rb
|
171
|
+
- spec/spec_helper.rb
|