celery_api 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a8598314784d75e9bb905db8fcb48e9d45fbf1e3
4
+ data.tar.gz: f7d8de13cdaa6ef127f16e1faac2fb96e068fbe0
5
+ SHA512:
6
+ metadata.gz: 198391d92176187ca8084916f2c7f422797b2261aac124dcce24a4d3cb9789f6d06dd41c55679fe6bf5fb9a8459f08dcf9ac372c7b7c608c68fa5a43ea350c0d
7
+ data.tar.gz: 20545288e7bde5583c30000938af02ab7f48fd79222f096b357cd0ebee8cd3a7b7d35443e7d2f6e927dc7f8be583a6748004f3dd1cfd3de19c27ae1d4ce71b83
@@ -0,0 +1,8 @@
1
+ module Celery
2
+
3
+ class Address < Base
4
+ attr_accessor :company_name, :street, :street2,
5
+ :city, :state, :zip, :country, :phone
6
+ end
7
+
8
+ end
@@ -0,0 +1,9 @@
1
+ module Celery
2
+
3
+ class Base
4
+ def initialize(attrs={})
5
+ attrs.each { |key, value| self.send("#{key}=", value) }
6
+ end
7
+ end
8
+
9
+ end
@@ -0,0 +1,7 @@
1
+ module Celery
2
+
3
+ class Billing < Base
4
+ attr_accessor :street, :city, :state, :zip, :country
5
+ end
6
+
7
+ end
@@ -0,0 +1,15 @@
1
+ module Celery
2
+
3
+ class Buyer < Base
4
+ attr_accessor :email, :name, :address, :billing
5
+
6
+ def address=(address)
7
+ @address = Celery::Address.new(address)
8
+ end
9
+
10
+ def billing=(billing)
11
+ @billing = Celery::Billing.new(billing)
12
+ end
13
+ end
14
+
15
+ end
@@ -0,0 +1,7 @@
1
+ module Celery
2
+
3
+ class Card < Base
4
+ attr_accessor :last4, :type, :exp_month, :exp_year
5
+ end
6
+
7
+ end
@@ -0,0 +1,24 @@
1
+ module Celery
2
+
3
+ class Client
4
+ attr_accessor :access_token
5
+
6
+ def initialize(args={})
7
+ @access_token = args[:access_token]
8
+ end
9
+
10
+ def orders
11
+ @orders ||= Celery::OrdersProcessor.new(endpoint, access_token)
12
+ end
13
+
14
+ def products
15
+ @products ||= Celery::ProductsProcessor.new(endpoint, access_token)
16
+ end
17
+
18
+ private
19
+ def endpoint
20
+ @endpoint ||= "https://api.trycelery.com/v1/"
21
+ end
22
+ end
23
+
24
+ end
@@ -0,0 +1,35 @@
1
+ module Celery
2
+
3
+ class Order < Base
4
+ attr_accessor :id, :status, :name, :image, :slug,
5
+ :auto_charge, :seller, :buyer, :payment, :products,
6
+ :coupon, :subtotal, :total, :deposit, :balance, :discount,
7
+ :shipping, :taxes, :currency, :celery_payment_token, :card,
8
+ :tracking, :fulfillment, :notes, :confirmation_url, :updated,
9
+ :updated_date, :created, :created_date, :_id, :metadata, :flags
10
+
11
+ def products=(products)
12
+ @products = []
13
+ products.each do |product|
14
+ @products << Celery::Product.new(product)
15
+ end
16
+ end
17
+
18
+ def buyer=(buyer)
19
+ @buyer = Celery::Buyer.new(buyer)
20
+ end
21
+
22
+ def seller=(seller)
23
+ @seller = Celery::Seller.new(seller)
24
+ end
25
+
26
+ def tracking=(tracking)
27
+ @tracking = Celery::Tracking.new(tracking)
28
+ end
29
+
30
+ def card=(card)
31
+ @card = Celery::Card.new(card)
32
+ end
33
+ end
34
+
35
+ end
@@ -0,0 +1,15 @@
1
+ module Celery
2
+
3
+ class Orders < Base
4
+ attr_accessor :total, :count, :limit,
5
+ :offset, :has_more, :orders
6
+
7
+ def orders=(orders)
8
+ @orders = []
9
+ orders.each do |order|
10
+ @orders << Celery::Order.new(order)
11
+ end
12
+ end
13
+ end
14
+
15
+ end
@@ -0,0 +1,22 @@
1
+ require 'base64'
2
+
3
+ module Celery
4
+
5
+ class OrdersProcessor < ProcessorBase
6
+ def initialize(endpoint=nil, access_token=nil)
7
+ super
8
+ @endpoint_path = endpoint + "orders" if endpoint
9
+ end
10
+
11
+ def all(args={})
12
+ response = HTTParty.get("#{endpoint_path}?#{parameterize_options(args)}")
13
+ @orders = Celery::Orders.new(response)
14
+ end
15
+
16
+ def decode_order(encoded_string)
17
+ decoded_string = Base64.decode64(encoded_string)
18
+ Celery::Order.new(JSON.parse(decoded_string))
19
+ end
20
+ end
21
+
22
+ end
@@ -0,0 +1,21 @@
1
+ module Celery
2
+
3
+ class ProcessorBase
4
+ attr_reader :endpoint_path, :access_token
5
+
6
+ def initialize(endpoint=nil, access_token=nil)
7
+ @access_token = access_token
8
+ end
9
+
10
+ private
11
+
12
+
13
+ def parameterize_options(args={})
14
+ args.merge!(access_token: access_token)
15
+ uri = Addressable::URI.new
16
+ uri.query_values = args.merge(access_token: access_token)
17
+ uri.query
18
+ end
19
+ end
20
+
21
+ end
@@ -0,0 +1,17 @@
1
+ module Celery
2
+
3
+ class Product < Base
4
+ attr_accessor :id, :_id, :user_id, :slug, :name,
5
+ :image, :price, :deposit, :shipping,
6
+ :quantity, :campaign, :options, :extras, :analytics,
7
+ :billing_notes, :created, :created_date, :css, :description,
8
+ :pitch, :published, :purchase_receipt, :quantity_limit,
9
+ :slug, :tagline, :updated, :updated_date, :video, :flags
10
+
11
+ def _id=(id)
12
+ @_id = id
13
+ @id = id
14
+ end
15
+ end
16
+
17
+ end
@@ -0,0 +1,15 @@
1
+ module Celery
2
+
3
+ class Products < Base
4
+ attr_accessor :total, :count, :limit,
5
+ :offset, :has_more, :products
6
+
7
+ def products=(products)
8
+ @products = []
9
+ products.each do |product|
10
+ @products << Celery::Product.new(product)
11
+ end
12
+ end
13
+ end
14
+
15
+ end
@@ -0,0 +1,15 @@
1
+ module Celery
2
+
3
+ class ProductsProcessor < ProcessorBase
4
+ def initialize(endpoint=nil, access_token=nil)
5
+ super
6
+ @endpoint_path = endpoint + "products" if endpoint
7
+ end
8
+
9
+ def all(args={})
10
+ response = HTTParty.get("#{endpoint_path}?#{parameterize_options(args)}")
11
+ @orders = Celery::Products.new(response)
12
+ end
13
+ end
14
+
15
+ end
@@ -0,0 +1,7 @@
1
+ module Celery
2
+
3
+ class Seller < Base
4
+ attr_accessor :_id, :email, :name, :paypal_email
5
+ end
6
+
7
+ end
@@ -0,0 +1,7 @@
1
+ module Celery
2
+
3
+ class Tracking < Base
4
+ attr_accessor :type, :index, :domain
5
+ end
6
+
7
+ end
@@ -0,0 +1,3 @@
1
+ module Celery
2
+ VERSION = "0.0.1"
3
+ end
data/lib/celery.rb ADDED
@@ -0,0 +1,20 @@
1
+ require 'httparty'
2
+ require 'addressable/uri'
3
+
4
+ module Celery
5
+ autoload :Base, "celery/base"
6
+ autoload :Buyer, "celery/buyer"
7
+ autoload :Card, "celery/card"
8
+ autoload :Order, "celery/order"
9
+ autoload :Client, "celery/client"
10
+ autoload :Orders, "celery/orders"
11
+ autoload :Seller, "celery/seller"
12
+ autoload :Address, "celery/address"
13
+ autoload :Billing, "celery/billing"
14
+ autoload :Product, "celery/product"
15
+ autoload :Products, "celery/products"
16
+ autoload :Tracking, "celery/tracking"
17
+ autoload :ProcessorBase, "celery/processor_base"
18
+ autoload :OrdersProcessor, "celery/orders_processor"
19
+ autoload :ProductsProcessor, "celery/products_processor"
20
+ end
data/lib/celery_api.rb ADDED
@@ -0,0 +1 @@
1
+ require 'celery'
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Celery::Base do
4
+ Celery::Base.class_eval do
5
+ attr_accessor :foo
6
+ end
7
+
8
+ it 'calls the accessor' do
9
+ expect_any_instance_of(Celery::Base).to receive(:foo=)
10
+ Celery::Base.new(foo: 'foo')
11
+ end
12
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Celery::Buyer do
4
+ let!(:attrs) do
5
+ {
6
+ "email" => Faker::Internet.email,
7
+ "name" => Faker::Name.name,
8
+ "address" => { },
9
+ "billing" => { }
10
+ }
11
+ end
12
+ let!(:buyer) { Celery::Buyer.new(attrs) }
13
+
14
+ it 'creates a new instance of address' do
15
+ expect(buyer.address).to be_kind_of Celery::Address
16
+ end
17
+
18
+ it 'creates a new instance of billing' do
19
+ expect(buyer.billing).to be_kind_of Celery::Billing
20
+ end
21
+ end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe Celery::Client do
4
+ let!(:access_token) { "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI1Mzg4ZTcxYzVkNTE5NDA1MDA0ZTNjM2MifQ.Vw1dikATVaAK5YLZFTPOXKpJJexa8T6NiRuE3nh1nAU" }
5
+ let!(:client) { Celery::Client.new(access_token: access_token) }
6
+
7
+ it 'has the access_token' do
8
+ expect(client.access_token).to eq(access_token)
9
+ end
10
+
11
+ it 'has the API endpoint defined' do
12
+ expect(client.send(:endpoint)).to eq("https://api.trycelery.com/v1/")
13
+ end
14
+
15
+ it 'returns an instance of the orders processor object' do
16
+ expect(client.orders).to be_kind_of Celery::OrdersProcessor
17
+ end
18
+
19
+ it 'returns an instance of the products processor object' do
20
+ expect(client.products).to be_kind_of Celery::ProductsProcessor
21
+ end
22
+ end
@@ -0,0 +1,26 @@
1
+ require 'spec_helper'
2
+
3
+ describe Celery::Order do
4
+ let!(:order) { celery_decoded_order }
5
+
6
+ it 'returns an instance of the celery product' do
7
+ expect(order.products).to be_kind_of Array
8
+ expect(order.products.first).to be_kind_of Celery::Product
9
+ end
10
+
11
+ it 'returns an instance of the celery buyer' do
12
+ expect(order.buyer).to be_kind_of Celery::Buyer
13
+ end
14
+
15
+ it 'returns an instance of the celery seller' do
16
+ expect(order.seller).to be_kind_of Celery::Seller
17
+ end
18
+
19
+ it 'returns an instance of the celery tracking' do
20
+ expect(order.tracking).to be_kind_of Celery::Tracking
21
+ end
22
+
23
+ it 'returns an instance of the celery card' do
24
+ expect(order.card).to be_kind_of Celery::Card
25
+ end
26
+ end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+
3
+ describe Celery::OrdersProcessor do
4
+ let!(:access_token) { "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI1Mzg4ZTcxYzVkNTE5NDA1MDA0ZTNjM2MifQ.Vw1dikATVaAK5YLZFTPOXKpJJexa8T6NiRuE3nh1nAU" }
5
+ let!(:orders) { Celery::OrdersProcessor.new('https://api.trycelery.com/v1/', access_token) }
6
+
7
+ it 'has the path for the endpoint' do
8
+ expect(orders.endpoint_path).to eq('https://api.trycelery.com/v1/orders')
9
+ end
10
+
11
+ it 'receives all orders' do
12
+ all_orders = orders.all
13
+ expect(all_orders).to be_kind_of Celery::Orders
14
+ expect(all_orders.orders).to be_kind_of Array
15
+ expect(all_orders.orders.first).to be_kind_of Celery::Order
16
+ end
17
+
18
+ it 'receives 5 orders' do
19
+ expect(orders.all(limit: 5).orders.count).to eq(5)
20
+ expect(orders.all(limit: 7).orders.count).to eq(7)
21
+ end
22
+
23
+ it 'decodes an order from an encoded string' do
24
+ order = JSON.parse(Base64.decode64(celery_encoded_order))
25
+ celery_order = orders.decode_order(celery_encoded_order)
26
+
27
+ expect(celery_order).to be_kind_of Celery::Order
28
+ expect(celery_order.id).to eq(order['id'])
29
+ end
30
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Celery::Orders do
4
+ let!(:attrs) do
5
+ {
6
+ "total" => 10,
7
+ "count" => 10,
8
+ "limit" => 0,
9
+ "offset" => 0,
10
+ "has_more" => false,
11
+ "orders" => [ { "id" => 'foo' } ]
12
+ }
13
+ end
14
+
15
+ let!(:orders) { Celery::Orders.new(attrs) }
16
+
17
+ it 'returns an instance of the celery order' do
18
+ expect(orders.orders).to be_kind_of Array
19
+ expect(orders.orders.first).to be_kind_of Celery::Order
20
+ end
21
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe Celery::ProcessorBase do
4
+ let!(:access_token) { "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI1Mzg4ZTcxYzVkNTE5NDA1MDA0ZTNjM2MifQ.Vw1dikATVaAK5YLZFTPOXKpJJexa8T6NiRuE3nh1nAU" }
5
+ let!(:base_processor) { Celery::ProcessorBase.new('https://api.trycelery.com/v1/', access_token) }
6
+
7
+ it 'receives the access token' do
8
+ expect(base_processor.access_token).to eq(access_token)
9
+ end
10
+
11
+ it 'parameterizes a hash of arguments' do
12
+ hash = { limit: 0 } ; uri = Addressable::URI.new ; uri.query_values = hash.merge(access_token: access_token)
13
+ expect(base_processor.send(:parameterize_options, hash)).to eq(uri.query)
14
+ end
15
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Celery::ProductsProcessor do
4
+ let!(:access_token) { "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI1Mzg4ZTcxYzVkNTE5NDA1MDA0ZTNjM2MifQ.Vw1dikATVaAK5YLZFTPOXKpJJexa8T6NiRuE3nh1nAU" }
5
+ let!(:products) { Celery::ProductsProcessor.new('https://api.trycelery.com/v1/', access_token) }
6
+
7
+ it 'has the path for the endpoint' do
8
+ expect(products.endpoint_path).to eq('https://api.trycelery.com/v1/products')
9
+ end
10
+
11
+ it 'receives all products' do
12
+ all_products = products.all
13
+ expect(all_products).to be_kind_of Celery::Products
14
+ expect(all_products.products).to be_kind_of Array
15
+ expect(all_products.products.first).to be_kind_of Celery::Product
16
+ end
17
+
18
+ it 'receives 5 products' do
19
+ expect(products.all(limit: 1).products.count).to eq(1)
20
+ end
21
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe Celery::Products do
4
+ let!(:attrs) do
5
+ {
6
+ "total" => 10,
7
+ "count" => 10,
8
+ "limit" => 0,
9
+ "offset" => 0,
10
+ "has_more" => false,
11
+ "products" => [ { "id" => 'foo' } ]
12
+ }
13
+ end
14
+ let!(:products) { Celery::Products.new(attrs) }
15
+
16
+ it 'returns an instance of the celery product' do
17
+ expect(products.products).to be_kind_of Array
18
+ expect(products.products.first).to be_kind_of Celery::Product
19
+ end
20
+ end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe Celery do
4
+ it { should be_kind_of Module }
5
+ end
@@ -0,0 +1,11 @@
1
+ require 'celery_api'
2
+ require 'faker'
3
+ require 'pry'
4
+
5
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
6
+
7
+ I18n.enforce_available_locales = true
8
+
9
+ RSpec.configure do |config|
10
+ config.include CeleryOrderHelper
11
+ end
@@ -0,0 +1,9 @@
1
+ module CeleryOrderHelper
2
+ def celery_encoded_order
3
+ @celery_encoded_order ||= File.read("#{File.dirname(__FILE__)}/fixtures/celery_encoded_order.txt")
4
+ end
5
+
6
+ def celery_decoded_order
7
+ @decoded_order ||= Celery::OrdersProcessor.new.decode_order(celery_encoded_order)
8
+ end
9
+ end
@@ -0,0 +1 @@
1
+ eyJpZCI6IjEwMTQ3MjQwNCIsInN0YXR1cyI6InBhaWRfYmFsYW5jZSIsIm5hbWUiOiJDaG9jaG9sYXRlIGNha2UiLCJpbWFnZSI6Imh0dHBzOi8vd3d3LmZpbGVwaWNrZXIuaW8vYXBpL2ZpbGUvR1JQcXlOUjFUamE3dDJnREFUUWEiLCJzbHVnIjoiY2hvY28tY2FrZSIsImF1dG9fY2hhcmdlIjoibm8iLCJzZWxsZXIiOnsiX2lkIjoiNTM4OGU3MWM1ZDUxOTQwNTAwNGUzYzNjIiwiZW1haWwiOiJjYXZqenpAZ21haWwuY29tIiwibmFtZSI6ImNhdmp6eiIsInBheXBhbF9lbWFpbCI6IiJ9LCJidXllciI6eyJlbWFpbCI6ImNhdmp6ekBnbWFpbC5jb20iLCJuYW1lIjoiSnVhbiBBbnRvbmlvIENoYXZleiBWYWxlbmNpYSIsImFkZHJlc3MiOnsiY29tcGFueV9uYW1lIjoiIiwic3RyZWV0IjoiYXNkZmFzZGYiLCJzdHJlZXQyIjoiIiwiY2l0eSI6ImFzZGZhc2RmIiwic3RhdGUiOiJhc2RmYXNkZiIsInppcCI6IjEyMzQxMjM0IiwiY291bnRyeSI6Ik1YIiwicGhvbmUiOiIifSwiYmlsbGluZyI6eyJzdHJlZXQiOiIiLCJjaXR5IjoiIiwic3RhdGUiOiIiLCJ6aXAiOiIiLCJjb3VudHJ5IjoiIn19LCJwYXltZW50Ijp7fSwicHJvZHVjdHMiOlt7Il9pZCI6IjUzODhlNzc0OWVlMTk1MDQwMGRlMDU1NSIsInVzZXJfaWQiOiI1Mzg4ZTcxYzVkNTE5NDA1MDA0ZTNjM2MiLCJzbHVnIjoiY2hvY28tY2FrZSIsIm5hbWUiOiJDaG9jaG9sYXRlIGNha2UiLCJpbWFnZSI6Imh0dHBzOi8vd3d3LmZpbGVwaWNrZXIuaW8vYXBpL2ZpbGUvR1JQcXlOUjFUamE3dDJnREFUUWEiLCJwcmljZSI6MCwiZGVwb3NpdCI6MCwic2hpcHBpbmciOjAsInF1YW50aXR5IjoxLCJjYW1wYWlnbiI6eyJlbmFibGVkIjpmYWxzZSwicmV2ZW51ZV9nb2FsIjowLCJzb2xkX2dvYWwiOjB9LCJvcHRpb25zIjpbXSwiZXh0cmFzIjpbXX1dLCJjb3Vwb24iOnt9LCJzdWJ0b3RhbCI6MCwidG90YWwiOjAsImRlcG9zaXQiOjAsImJhbGFuY2UiOjAsImRpc2NvdW50IjowLCJzaGlwcGluZyI6MCwidGF4ZXMiOjAsImN1cnJlbmN5IjoidXNkIiwiY2VsZXJ5X3BheW1lbnRfdG9rZW4iOm51bGwsImNhcmQiOnsibGFzdDQiOm51bGwsInR5cGUiOm51bGwsImV4cF9tb250aCI6bnVsbCwiZXhwX3llYXIiOm51bGx9LCJ0cmFja2luZyI6eyJ0eXBlIjoib3ZlcmxheSIsImluZGV4IjoiMSIsImRvbWFpbiI6Ind3dy50cnljZWxlcnkuY29tIn0sImZ1bGZpbGxtZW50Ijp7InNoaXBwZWQiOmZhbHNlfSwibm90ZXMiOiIiLCJjb25maXJtYXRpb25fdXJsIjoiaHR0cDovL2x2aC5tZTozMDAwL2NlbGVyeS9vcmRlciIsInVwZGF0ZWQiOjE0MDI0MjAwMTM0ODgsInVwZGF0ZWRfZGF0ZSI6IjIwMTQtMDYtMTBUMTc6MDY6NTMuNDg4WiIsImNyZWF0ZWQiOjE0MDI0MjAwMTM0ODgsImNyZWF0ZWRfZGF0ZSI6IjIwMTQtMDYtMTBUMTc6MDY6NTMuNDg4WiIsIl9pZCI6IjUzOTczYjJkOTIxM2IyMDQwMDVhMTFhOSJ9
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: celery_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Antonio Chavez
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-14 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'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: addressable
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
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: rspec-core
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
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: rspec-expectations
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: rspec-mocks
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: faker
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
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
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
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: This is an Ruby library that wraps the Celery data model
126
+ email:
127
+ - cavjzz@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - lib/celery.rb
133
+ - lib/celery/address.rb
134
+ - lib/celery/base.rb
135
+ - lib/celery/billing.rb
136
+ - lib/celery/buyer.rb
137
+ - lib/celery/card.rb
138
+ - lib/celery/client.rb
139
+ - lib/celery/order.rb
140
+ - lib/celery/orders.rb
141
+ - lib/celery/orders_processor.rb
142
+ - lib/celery/processor_base.rb
143
+ - lib/celery/product.rb
144
+ - lib/celery/products.rb
145
+ - lib/celery/products_processor.rb
146
+ - lib/celery/seller.rb
147
+ - lib/celery/tracking.rb
148
+ - lib/celery/version.rb
149
+ - lib/celery_api.rb
150
+ - spec/celery/base_spec.rb
151
+ - spec/celery/buyer_spec.rb
152
+ - spec/celery/client_spec.rb
153
+ - spec/celery/order_spec.rb
154
+ - spec/celery/orders_processor_spec.rb
155
+ - spec/celery/orders_spec.rb
156
+ - spec/celery/processor_base_spec.rb
157
+ - spec/celery/products_processor_spec.rb
158
+ - spec/celery/products_spec.rb
159
+ - spec/celery_spec.rb
160
+ - spec/spec_helper.rb
161
+ - spec/support/celery_order_helper.rb
162
+ - spec/support/fixtures/celery_encoded_order.txt
163
+ homepage: https://github.com/TheNaoX/celery_api
164
+ licenses:
165
+ - MIT
166
+ metadata: {}
167
+ post_install_message:
168
+ rdoc_options: []
169
+ require_paths:
170
+ - lib
171
+ required_ruby_version: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ required_rubygems_version: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ requirements: []
182
+ rubyforge_project:
183
+ rubygems_version: 2.2.2
184
+ signing_key:
185
+ specification_version: 4
186
+ summary: Celery API wrapper
187
+ test_files:
188
+ - spec/celery/base_spec.rb
189
+ - spec/celery/buyer_spec.rb
190
+ - spec/celery/client_spec.rb
191
+ - spec/celery/order_spec.rb
192
+ - spec/celery/orders_processor_spec.rb
193
+ - spec/celery/orders_spec.rb
194
+ - spec/celery/processor_base_spec.rb
195
+ - spec/celery/products_processor_spec.rb
196
+ - spec/celery/products_spec.rb
197
+ - spec/celery_spec.rb
198
+ - spec/spec_helper.rb
199
+ - spec/support/celery_order_helper.rb
200
+ - spec/support/fixtures/celery_encoded_order.txt