Project

fifthgear

0.0
No commit activity in last 3 years
No release in over 3 years
Create objects in Fifthgear's fulfillment system
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
>= 0

Runtime

 Project Readme

Fifthgear

Build Status Code Climate Test Coverage

Ruby gem for interfacing with Fifthgear's api

Installation

Add this line to your application's Gemfile:

gem 'fifthgear'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fifthgear

Usage

Configuration

Fifthgear.configure do |config|
  config.api_root = 'https://commerceservicestest.infifthgear.com'
  config.api_version = '/v2.0/CommerceServices.svc/Rest'
  config.username = 'foo'
  config.password = 'bar'
  config.company_id = 'big_time_biz_1234'
  config.content_type = 'application/json'
  config.debug = true
end

Helpers

Fifthgear requires dates to be in a specific format. We've added a helper function for formatting the dates correctly. Internally it uses Chronic to parse the date.

irb(main):001:0>  Fifthgear::Helper.format_date('12/01/2014')
=> "Date(1417464000000-0800)"
irb(main):002:0>  Fifthgear::Helper.format_date('12/01/2014 12:12:12')
=> "Date(1417464732000-0800)"
irb(main):003:0>

Contributing

  1. Fork it ( https://github.com/WalkerAndCoBrandsInc/fifthgear/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request