facile 0.0.1

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.
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ # certs
2
+ *.key
3
+ *.crt
4
+
5
+ # misc
6
+ .DS_Store
7
+
8
+ # ruby
9
+ .bundle
10
+ .gem
11
+ .bin
12
+
13
+ # testing
14
+ .rspec
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 1.9.3-p448
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.0.0
5
+ - 1.9.3
6
+ - jruby-19mode
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in facile.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,78 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ facile (0.0.1)
5
+ activesupport (~> 3.1)
6
+ addressable
7
+ faraday
8
+ hashie
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ activesupport (3.2.15)
14
+ i18n (~> 0.6, >= 0.6.4)
15
+ multi_json (~> 1.0)
16
+ addressable (2.3.5)
17
+ celluloid (0.15.2)
18
+ timers (~> 1.1.0)
19
+ coderay (1.1.0)
20
+ diff-lcs (1.2.5)
21
+ faraday (0.8.8)
22
+ multipart-post (~> 1.2.0)
23
+ ffi (1.9.3)
24
+ formatador (0.2.4)
25
+ guard (2.2.4)
26
+ formatador (>= 0.2.4)
27
+ listen (~> 2.1)
28
+ lumberjack (~> 1.0)
29
+ pry (>= 0.9.12)
30
+ thor (>= 0.18.1)
31
+ guard-rspec (4.0.4)
32
+ guard (>= 2.1.1)
33
+ rspec (~> 2.14)
34
+ hashie (2.0.5)
35
+ i18n (0.6.5)
36
+ listen (2.2.0)
37
+ celluloid (>= 0.15.2)
38
+ rb-fsevent (>= 0.9.3)
39
+ rb-inotify (>= 0.9)
40
+ lumberjack (1.0.4)
41
+ method_source (0.8.2)
42
+ multi_json (1.8.2)
43
+ multipart-post (1.2.0)
44
+ pry (0.9.12.4)
45
+ coderay (~> 1.0)
46
+ method_source (~> 0.8)
47
+ slop (~> 3.4)
48
+ rake (10.1.0)
49
+ rb-fsevent (0.9.3)
50
+ rb-inotify (0.9.2)
51
+ ffi (>= 0.5.0)
52
+ rspec (2.14.1)
53
+ rspec-core (~> 2.14.0)
54
+ rspec-expectations (~> 2.14.0)
55
+ rspec-mocks (~> 2.14.0)
56
+ rspec-core (2.14.7)
57
+ rspec-expectations (2.14.4)
58
+ diff-lcs (>= 1.1.3, < 2.0)
59
+ rspec-mocks (2.14.4)
60
+ rspec-nc (0.0.6)
61
+ rspec (~> 2.9)
62
+ terminal-notifier (~> 1.4.2)
63
+ slop (3.4.7)
64
+ terminal-notifier (1.4.2)
65
+ thor (0.18.1)
66
+ timers (1.1.0)
67
+
68
+ PLATFORMS
69
+ ruby
70
+
71
+ DEPENDENCIES
72
+ bundler (~> 1.3)
73
+ facile!
74
+ guard
75
+ guard-rspec
76
+ rake
77
+ rspec
78
+ rspec-nc
data/Guardfile ADDED
@@ -0,0 +1,6 @@
1
+ guard 'rspec' do
2
+ watch(%r{^spec/.+_spec\.rb$})
3
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
4
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
5
+ watch('spec/spec_helper.rb') { "spec" }
6
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Simon Thulbourn
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,48 @@
1
+ # Facile
2
+
3
+ [![Code
4
+ Climate](https://codeclimate.com/github/sthulb/facile.png)](https://codeclimate.com/github/sthulb/facile)
5
+ [![Build
6
+ Status](https://travis-ci.org/sthulb/facile.png?branch=master)](https://travis-ci.org/sthulb/facile)
7
+
8
+ API simplicity gem
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ gem 'facile'
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install facile
23
+
24
+ ## Usage
25
+
26
+ TODO: Write usage instructions here
27
+
28
+ An example script, to fetch the weather data from the BBC.
29
+ ```ruby
30
+ require 'facile'
31
+
32
+ class Foo < Facile::Api
33
+ self.url = 'http://open.live.bbc.co.uk/weather/feeds/en/{id}/3dayforecast.json'
34
+ end
35
+
36
+ foo = Foo.find('2643743')
37
+
38
+ # gets forecast date for the first day.
39
+ foo.forecastContent.forecasts.first.date
40
+ ```
41
+
42
+ ## Contributing
43
+
44
+ 1. Fork it
45
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
46
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
47
+ 4. Push to the branch (`git push origin my-new-feature`)
48
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/facile.gemspec ADDED
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'facile/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'facile'
8
+ spec.version = Facile::VERSION
9
+ spec.authors = ['Simon Thulbourn']
10
+ spec.email = ['simon+github@thulbourn.com']
11
+ spec.description = 'Facile: API simplicity gem'
12
+ spec.summary = 'Facile: API simplicity gem'
13
+ spec.homepage = ''
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files`.split($/)
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_runtime_dependency 'faraday'
22
+ spec.add_runtime_dependency 'activesupport', '~> 3.1'
23
+ spec.add_runtime_dependency 'addressable'
24
+ spec.add_runtime_dependency 'hashie'
25
+
26
+ spec.add_development_dependency 'bundler', '~> 1.3'
27
+ spec.add_development_dependency 'rake'
28
+ spec.add_development_dependency 'guard'
29
+ spec.add_development_dependency 'guard-rspec'
30
+ spec.add_development_dependency 'rspec'
31
+ spec.add_development_dependency 'rspec-nc'
32
+ end
data/lib/facile/api.rb ADDED
@@ -0,0 +1,55 @@
1
+ require 'addressable/template'
2
+ require 'active_support/core_ext/class/attribute_accessors'
3
+
4
+ class Facile::Api
5
+ cattr_accessor :url, :headers, :body, :params, :options
6
+
7
+ def self.find(*args)
8
+ id, options = args[0] || nil, args[1] || {}
9
+ new().find(id, options)
10
+ end
11
+
12
+ def initialize(response = {})
13
+ @response = response if !response.empty?
14
+ end
15
+
16
+ def method_missing(method, *args, &block)
17
+ raise NoMethodError, "'#{method}' doesn't exist" if response.nil?
18
+
19
+ response.send(method)
20
+ end
21
+
22
+ def find(id, options = {})
23
+ url = generate_url(id, self.class.url)
24
+ req_options = request_options(url)
25
+
26
+ self.class.new(create_request(req_options).body)
27
+ end
28
+
29
+ protected
30
+ attr_reader :response
31
+
32
+ def create_request(req_options = {})
33
+ req = Facile::Request.new(req_options)
34
+
35
+ req.go
36
+ end
37
+
38
+ def generate_url(id, url)
39
+ template = Addressable::Template.new(url)
40
+ expanded = template.partial_expand(:id => id)
41
+
42
+ expanded.pattern
43
+ end
44
+
45
+ def request_options(url)
46
+ {
47
+ :url => url,
48
+ :method => :get,
49
+ :headers => self.class.headers || {},
50
+ :options => self.class.options || {},
51
+ :body => self.class.body,
52
+ :params => self.class.params
53
+ }
54
+ end
55
+ end
@@ -0,0 +1,56 @@
1
+ require 'faraday'
2
+
3
+ class Facile::Request
4
+ def self.method_missing(method, *args, &block)
5
+ supported_methods = [:get, :post, :delete, :options, :patch, :put]
6
+
7
+ raise NoMethodError, "undefined method '#{method}'" if !supported_methods.include?(method)
8
+
9
+ args = args.count == 0 ? {} : args
10
+ args.merge!({:method => method || :get })
11
+
12
+ new(args, &block).go
13
+ end
14
+
15
+ def initialize(options = {}, &block)
16
+ options.merge!({ :method => :get }) unless options.has_key?(:method)
17
+
18
+ options.each do |k, v|
19
+ self.send("#{k}=", v) if respond_to?("#{k}=")
20
+ end
21
+
22
+ instance_eval(&block) if block_given?
23
+ end
24
+
25
+ def go
26
+ begin
27
+ conn = Faraday.new(options || {})
28
+
29
+ res = conn.send(method) do |req|
30
+ req.url url
31
+
32
+ headers.map { |k,v| req.headers[k] = v } if !headers.nil?
33
+ params.map { |k,v| req.params[k] = v } if !params.nil?
34
+ req.body = body if !body.nil?
35
+ end
36
+ rescue => e
37
+ raise e
38
+ end
39
+
40
+ parse_response(res)
41
+ end
42
+
43
+ def parse_response(res)
44
+ ::Facile::Response.new({
45
+ :request => self,
46
+ :response => res,
47
+ :status => res.status,
48
+ :headers => res.headers,
49
+ :raw_body => res.body,
50
+ })
51
+ end
52
+
53
+ attr_accessor :method, :headers, :url, :params, :body, :options
54
+
55
+ class RequestError < ::StandardError; end
56
+ end
@@ -0,0 +1,14 @@
1
+ require 'json'
2
+
3
+ class Facile::Response::Wrapper::Json
4
+ def initialize(body)
5
+ @body = body
6
+ @parsed_body = ::Facile::Response::Wrapper::Mash.new(JSON.parse(body))
7
+ end
8
+
9
+ def to_s
10
+ @body
11
+ end
12
+
13
+ attr_reader :body, :parsed_body
14
+ end
@@ -0,0 +1,10 @@
1
+ require 'active_support/inflector'
2
+ require 'hashie'
3
+
4
+ class Facile::Response::Wrapper::Mash < Hashie::Mash
5
+ def convert_key(key)
6
+ key = key.to_s.underscore
7
+
8
+ super(key)
9
+ end
10
+ end
@@ -0,0 +1,15 @@
1
+ class Facile::Response::Wrapper::Raw
2
+ def initialize(body)
3
+ @body = body
4
+ end
5
+
6
+ def parsed_body
7
+ @body
8
+ end
9
+
10
+ def to_s
11
+ @body
12
+ end
13
+
14
+ attr_accessor :body
15
+ end
@@ -0,0 +1,40 @@
1
+ class Facile::Response::Wrapper
2
+ autoload :Raw, 'facile/response/wrapper/raw'
3
+ autoload :Json, 'facile/response/wrapper/json'
4
+ autoload :Mash, 'facile/response/wrapper/mash'
5
+
6
+ def self.parse(body, options = {})
7
+ wrapper = new(body, options)
8
+
9
+ wrapper.parse
10
+ end
11
+
12
+ def initialize(body, headers = {})
13
+ @body, @headers = body, headers
14
+ end
15
+
16
+ def parse
17
+ wrapper = "Raw"
18
+
19
+ if headers.has_key?('content-type')
20
+ wrapper = content_type_to_class(headers['content-type'])
21
+ end
22
+
23
+ klass = "Facile::Response::Wrapper::#{wrapper}".split('::').inject(Object) do |o, c|
24
+ o.const_get(c)
25
+ end
26
+
27
+ klass.new(@body).parsed_body
28
+ end
29
+
30
+ def content_type_to_class(content_type)
31
+ case content_type
32
+ when /application\/json/
33
+ 'Json'
34
+ else
35
+ 'Raw'
36
+ end
37
+ end
38
+
39
+ attr_reader :body, :headers
40
+ end
@@ -0,0 +1,26 @@
1
+ class Facile::Response
2
+ autoload :Wrapper, 'facile/response/wrapper'
3
+
4
+ def initialize(options)
5
+ options.each do |k,v|
6
+ self.send("#{k}=", v)
7
+ end
8
+
9
+ wrap_body(raw_body)
10
+ end
11
+
12
+ def wrap_body(body)
13
+ @body = ::Facile::Response::Wrapper.parse(body, headers)
14
+ end
15
+
16
+ def method_missing(method, *args, &block)
17
+ if body.respond_to?(method)
18
+ body.send(method, args.first)
19
+ end
20
+ end
21
+
22
+ attr_reader :request, :response, :raw_body, :headers, :status, :body
23
+
24
+ protected
25
+ attr_writer :request, :response, :raw_body, :headers, :status, :body
26
+ end
@@ -0,0 +1,3 @@
1
+ module Facile
2
+ VERSION = '0.0.1'
3
+ end
data/lib/facile.rb ADDED
@@ -0,0 +1,8 @@
1
+ require 'facile/version'
2
+
3
+ module Facile
4
+ autoload :Api, 'facile/api'
5
+ autoload :Request, 'facile/request'
6
+ autoload :Response, 'facile/response'
7
+ end
8
+
@@ -0,0 +1,38 @@
1
+ require 'spec_helper'
2
+ require 'faraday'
3
+
4
+ describe 'test api' do
5
+ it 'can create an api instance' do
6
+ api = ::Facile::Api.new
7
+
8
+ expect(api).to be_kind_of(::Facile::Api)
9
+ end
10
+
11
+ it 'can find items' do
12
+ ::Facile::Request.any_instance.stub(:go => ::Facile::Response.new(
13
+ :status => 200,
14
+ :headers => {'content-type' => 'application/json'},
15
+ :raw_body => '{"foo": "bar"}'
16
+ ))
17
+
18
+
19
+ api = ::Facile::Api.new
20
+ api.class.url = 'http://foo.com'
21
+
22
+ returned_api = api.find('2643743')
23
+
24
+ expect(returned_api.foo).to eq('bar')
25
+ end
26
+
27
+ it 'can use class method' do
28
+ ::Facile::Request.any_instance.stub(:go => ::Facile::Response.new(
29
+ :status => 200,
30
+ :headers => {'content-type' => 'application/json'},
31
+ :raw_body => '{"foo": "bar"}'
32
+ ))
33
+
34
+ ::Facile::Api.url = 'http://foo.com'
35
+
36
+ ::Facile::Api.find(123)
37
+ end
38
+ end
@@ -0,0 +1,43 @@
1
+ require 'spec_helper'
2
+ require 'faraday'
3
+
4
+ describe 'test request' do
5
+ it 'can be used as a convienence method' do
6
+ faraday_response = Faraday::Response.new({
7
+ :method => :get,
8
+ :response_headers => {'content-type' => 'text/plain'},
9
+ :body => 'foo',
10
+ :url => 'http://foo.com'
11
+ })
12
+
13
+ Faraday::Connection.any_instance.stub(:get => faraday_response)
14
+
15
+ response = ::Facile::Request.get do |req|
16
+ req.url = 'http://foo.com'
17
+ end
18
+
19
+ expect(response.body).to eq('foo')
20
+ end
21
+
22
+ it 'can create request instance' do
23
+ request = ::Facile::Request.new
24
+
25
+ expect(request).to be_kind_of(::Facile::Request)
26
+ end
27
+
28
+ it 'can parse a response' do
29
+ request = ::Facile::Request.new
30
+
31
+ faraday_response = Faraday::Response.new({
32
+ :method => :get,
33
+ :response_headers => {'content-type' => 'text/plain'},
34
+ :body => 'foo',
35
+ :url => 'http://foo.com'
36
+ })
37
+
38
+ response = request.parse_response(faraday_response)
39
+
40
+ expect(response).to be_kind_of(::Facile::Response)
41
+ expect(response.body).to eq('foo')
42
+ end
43
+ end
@@ -0,0 +1,57 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'hashie'
4
+
5
+ describe 'test response' do
6
+ it 'can create instance' do
7
+ response = ::Facile::Response.new({
8
+ :headers => {},
9
+ :raw_body => 'test'
10
+ })
11
+
12
+ expect(response).to be_kind_of(::Facile::Response)
13
+ end
14
+
15
+ it 'can read attributes' do
16
+ response = ::Facile::Response.new({
17
+ :headers => {'Foo' => 'bar'},
18
+ :raw_body => 'body'
19
+ })
20
+
21
+ expect(response.headers).to eq({'Foo' => 'bar'})
22
+ expect(response.raw_body).to eq('body')
23
+ end
24
+
25
+ it 'can create wrappers successfully' do
26
+ body = {'foo' => 'bar'}
27
+
28
+ response = ::Facile::Response.new({
29
+ :headers => {'content-type' => 'application/json'},
30
+ :raw_body => JSON.generate(body)
31
+ })
32
+
33
+ expect(response.body).to eq(Hashie::Mash.new(body))
34
+ end
35
+
36
+ it 'can proxy methods' do
37
+ body = {'foo' => 'bar'}
38
+
39
+ response = ::Facile::Response.new({
40
+ :headers => {'content-type' => 'application/json'},
41
+ :raw_body => JSON.generate(body)
42
+ })
43
+
44
+ expect(response.body.foo).to eq('bar')
45
+ end
46
+
47
+ it 'can mash' do
48
+ body = {'fooZOMG' => 'bar', 'foo' => 1, 'BAR' => 2, 'BaR' => 3}
49
+
50
+ mash = ::Facile::Response::Wrapper::Mash.new(body)
51
+
52
+ body.keys.each do |key|
53
+ expect(mash.has_key?(key.underscore)).to eq(true)
54
+ end
55
+ end
56
+
57
+ end
@@ -0,0 +1,11 @@
1
+ $: << File.expand_path('..', __FILE__)
2
+ $: << File.expand_path('../../lib', __FILE__)
3
+
4
+ if not defined?(JRUBY_VERSION)
5
+ require 'pry'
6
+ end
7
+
8
+ require 'facile'
9
+
10
+ RSpec.configure do |conf|
11
+ end
metadata ADDED
@@ -0,0 +1,233 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: facile
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Simon Thulbourn
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-11-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: faraday
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: activesupport
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '3.1'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.1'
46
+ - !ruby/object:Gem::Dependency
47
+ name: addressable
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: hashie
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: bundler
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: '1.3'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '1.3'
94
+ - !ruby/object:Gem::Dependency
95
+ name: rake
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: guard
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: guard-rspec
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: rspec
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: rspec-nc
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ description: ! 'Facile: API simplicity gem'
175
+ email:
176
+ - simon+github@thulbourn.com
177
+ executables: []
178
+ extensions: []
179
+ extra_rdoc_files: []
180
+ files:
181
+ - .gitignore
182
+ - .ruby-version
183
+ - .travis.yml
184
+ - Gemfile
185
+ - Gemfile.lock
186
+ - Guardfile
187
+ - LICENSE.txt
188
+ - README.md
189
+ - Rakefile
190
+ - facile.gemspec
191
+ - lib/facile.rb
192
+ - lib/facile/api.rb
193
+ - lib/facile/request.rb
194
+ - lib/facile/response.rb
195
+ - lib/facile/response/wrapper.rb
196
+ - lib/facile/response/wrapper/json.rb
197
+ - lib/facile/response/wrapper/mash.rb
198
+ - lib/facile/response/wrapper/raw.rb
199
+ - lib/facile/version.rb
200
+ - spec/facile/api_spec.rb
201
+ - spec/facile/request_spec.rb
202
+ - spec/facile/response_spec.rb
203
+ - spec/spec_helper.rb
204
+ homepage: ''
205
+ licenses:
206
+ - MIT
207
+ post_install_message:
208
+ rdoc_options: []
209
+ require_paths:
210
+ - lib
211
+ required_ruby_version: !ruby/object:Gem::Requirement
212
+ none: false
213
+ requirements:
214
+ - - ! '>='
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ required_rubygems_version: !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ! '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ requirements: []
224
+ rubyforge_project:
225
+ rubygems_version: 1.8.23
226
+ signing_key:
227
+ specification_version: 3
228
+ summary: ! 'Facile: API simplicity gem'
229
+ test_files:
230
+ - spec/facile/api_spec.rb
231
+ - spec/facile/request_spec.rb
232
+ - spec/facile/response_spec.rb
233
+ - spec/spec_helper.rb