chart_mogul 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: dacc8e1ab7ea648768a32a8e3cd7a0940d08ba83
4
+ data.tar.gz: d3591d6e6a8dea310da2f3d7b19244e44cd7fedf
5
+ SHA512:
6
+ metadata.gz: 06209d073ba8e80b49191659e818078fdf5663992e31e986398245e4313e35f3cefeb67662028f4a5bac25e60b745a6da8555f3f2f4808140fb68a8610214082
7
+ data.tar.gz: f8dea0e870b94b7fe4c60883418aad0a3ff6b54659b0a01145811b94fa380fda7761e20ff2d9073299ad95f261bf9ad800bbc24c56cdb8a0ed39f7211c2e1c9c
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.2
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in chart_mogul.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Adam Bird
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # ChartMogul
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/chart_mogul`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'chart_mogul'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install chart_mogul
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/chart_mogul. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
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/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "chart_mogul"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'chart_mogul/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "chart_mogul"
8
+ spec.version = ChartMogul::VERSION
9
+ spec.authors = ["Adam Bird"]
10
+ spec.email = ["adam.bird@gmail.com"]
11
+
12
+ spec.summary = %q{Gem for working with the ChartMogul API}
13
+ spec.homepage = "https://github.com/adambird/chart-mogul-ruby"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_runtime_dependency "faraday", "~> 0.9"
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.10"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rspec"
26
+ spec.add_development_dependency "webmock"
27
+ end
@@ -0,0 +1,30 @@
1
+ module ChartMogul
2
+ module Assertive
3
+ def self.included(base)
4
+ base.extend(Assertive)
5
+ end
6
+
7
+ private
8
+
9
+ def assert!(predicate, message)
10
+ return if predicate
11
+
12
+ fail ArgumentError, message
13
+ end
14
+
15
+ def assert_fetch!(hash, key, message = nil)
16
+ hash.fetch(key) do
17
+ message = "#{key} must be defined" unless message
18
+ fail ArgumentError, message
19
+ end
20
+ end
21
+
22
+ def refute!(predicate, message)
23
+ assert! !predicate, message
24
+ end
25
+
26
+ def refute_blank!(value, attribute_name)
27
+ assert! (!value.nil? && value != ""), "#{attribute_name} cannot be nil or blank"
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,75 @@
1
+ require 'faraday'
2
+ require 'json'
3
+
4
+ module ChartMogul
5
+ # Public: Primary class for interacting with the ChartMogul API.
6
+ class Client
7
+ include ImportApi
8
+
9
+ API_ROOT_URL = "https://api.chartmogul.com"
10
+
11
+ attr_reader :account_token
12
+ attr_reader :secret_key
13
+
14
+ # Public: Initialize a new ChartMogul::Client.
15
+ #
16
+ # options - A Hash of options used to initialize the client (default: {}):
17
+ # :account_token - The Account Token assigned to your account
18
+ # (default: ENV["CHART_MOGUL_ACCOUNT_TOKEN"]).
19
+ # :secret_key - The Secret key assigned to your account
20
+ # (default: ENV["CHART_MOGUL_SECRET_KEY"]).
21
+ def initialize(options={})
22
+ @account_token = options.fetch(:account_token, ENV["CHART_MOGUL_ACCOUNT_TOKEN"])
23
+ @secret_key = options.fetch(:secret_key, ENV["CHART_MOGUL_SECRET_KEY"])
24
+ end
25
+
26
+ def connection
27
+ @connection ||= Faraday.new(API_ROOT_URL) do |builder|
28
+ builder.basic_auth(account_token, secret_key)
29
+ builder.adapter Faraday.default_adapter
30
+ end
31
+ end
32
+
33
+ def ping?
34
+ response = connection.get("/v1/ping")
35
+ preprocess_response(response)[:data] == 'pong!'
36
+ end
37
+
38
+ def paged_get(path, params, data_field)
39
+ begin
40
+ result = preprocess_response(connection.get(path, params))
41
+ yield result[data_field]
42
+ params[:page_number] = result[:current_page]
43
+ end while params[:page_number] < result[:total_pages]
44
+ end
45
+
46
+ def preprocess_response(response)
47
+ case response.status
48
+ when 200..299
49
+ JSON.parse(response.body, symbolize_names: true)
50
+ when 401
51
+ raise UnauthorizedError.new
52
+ when 422
53
+ result = JSON.parse(response.body, symbolize_names: true)
54
+ raise ValidationError.new(result[:errors])
55
+ else
56
+ puts response.inspect
57
+ raise StandardError.new("#{response.status} #{response.body.slice(0,50)}")
58
+ end
59
+ end
60
+
61
+ class UnauthorizedError < StandardError
62
+ end
63
+
64
+ class ValidationError < StandardError
65
+
66
+ attr_reader :errors
67
+
68
+ def initialize(errors)
69
+ @errors = errors
70
+ super("validation errors for #{errors.keys.join(', ')}")
71
+ end
72
+
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,25 @@
1
+ module ChartMogul
2
+ module Import
3
+ class Customer
4
+
5
+ attr_reader :uuid
6
+ attr_reader :data_source_uuid
7
+ attr_reader :external_id
8
+
9
+ attr_reader :name
10
+ attr_reader :company
11
+ attr_reader :email
12
+ attr_reader :city
13
+ attr_reader :state
14
+ attr_reader :country
15
+ attr_reader :zip
16
+
17
+ def initialize(args)
18
+ args.each_pair do |key, value|
19
+ instance_variable_set("@#{key}", value)
20
+ end
21
+ end
22
+
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,19 @@
1
+ module ChartMogul
2
+ module Import
3
+ class DataSource
4
+
5
+ attr_reader :created_at
6
+ attr_reader :name
7
+ attr_reader :status
8
+ attr_reader :uuid
9
+
10
+ def initialize(args)
11
+ @name = args[:name]
12
+ @status = args[:status]
13
+ @uuid = args[:uuid]
14
+ @created_at = Time.parse(args[:created_at]) if args[:created_at]
15
+ end
16
+
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,20 @@
1
+ module ChartMogul
2
+ module Import
3
+ class Plan
4
+
5
+ attr_reader :uuid
6
+ attr_reader :data_source_uuid
7
+ attr_reader :name
8
+ attr_reader :interval_count
9
+ attr_reader :interval_unit
10
+
11
+ attr_reader :external_id
12
+
13
+ def initialize(args)
14
+ args.each_pair do |key, value|
15
+ instance_variable_set("@#{key}", value)
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,162 @@
1
+ require_relative 'import/customer'
2
+ require_relative 'import/data_source'
3
+ require_relative 'import/plan'
4
+
5
+ module ChartMogul
6
+ module ImportApi
7
+ include Assertive
8
+
9
+ # Public - list DataSources
10
+ #
11
+ # Returns an Array of ChartMogul::Import::DataSource
12
+ def list_data_sources
13
+ response = connection.get("/v1/import/data_sources")
14
+ preprocess_response(response)[:data_sources]
15
+ .map { |ds| Import::DataSource.new(ds) }
16
+ end
17
+
18
+ # Public - create a DataSource
19
+ #
20
+ # args - Hash of params only :name is supported
21
+ # {
22
+ # name: "Name of data source"
23
+ # }
24
+ #
25
+ # Returns a ChartMogul::Import::DataSource
26
+ def create_data_source(args)
27
+ refute_blank! args[:name], :name
28
+
29
+ response = connection.post do |request|
30
+ request.url "/v1/import/data_sources"
31
+ request.headers['Content-Type'] = "application/json"
32
+ request.body = args.to_json
33
+ end
34
+
35
+ Import::DataSource.new(preprocess_response(response))
36
+ end
37
+
38
+ # Public - purge all data for a DataSource
39
+ # super dangerous
40
+ #
41
+ # Returns nothing but an empty hole where your data was!
42
+ def purge_data_source!(data_source_uuid)
43
+ response = connection.delete do |request|
44
+ request.url "/v1/import/data_sources/#{data_source_uuid}/erase_data"
45
+ request.headers['Content-Type'] = "application/json"
46
+ request.body = { confirm: 1 }.to_json
47
+ end
48
+ response.status == 202
49
+ end
50
+
51
+ # Public - list all Customers.
52
+ # this will page through all customers see #list_customers_each
53
+ # for iterator method to prevent loading the whole array in
54
+ # memory
55
+ #
56
+ # options - see #list_customers_each
57
+ #
58
+ # Returns an Array of ChartMogul::Import::Customer
59
+ def list_customers(options={})
60
+ customers = []
61
+ list_customers_each(options) { |c| customers << c }
62
+ customers
63
+ end
64
+
65
+ # Public - iterate through all customers
66
+ #
67
+ # options - Hash of filter options
68
+ # :data_source_uuid
69
+ #
70
+ # Returns an Enumerable that will yield a ChartMogul::Import::Customer for
71
+ # each record
72
+ def list_customers_each(options={}, &block)
73
+ params = { page_number: 1 }
74
+ params[:data_source_uuid] = options[:data_source_uuid] if options[:data_source_uuid]
75
+
76
+ paged_get("/v1/import/customers", params, :customers) do |customers|
77
+ customers.each do |customer|
78
+ yield Import::Customer.new(customer)
79
+ end
80
+ end
81
+ end
82
+
83
+ # Public - create a Customer
84
+ #
85
+ # args - Hash of params see https://dev.chartmogul.com/docs/customers
86
+ # Mandatory: :data_source_uuid, :external_id, :name
87
+ #
88
+ # Returns a ChartMogul::Import::Customer
89
+ def create_customer(args)
90
+ [:data_source_uuid, :external_id, :name].each do |attribute|
91
+ refute_blank! args[attribute], attribute
92
+ end
93
+
94
+ # ChartMogul API will 500 if nill keys are sent
95
+ args.keys.each do |key|
96
+ refute! args[key].nil?, "nil keys not supported [#{key}]"
97
+ end
98
+
99
+ response = connection.post do |request|
100
+ request.url "/v1/import/customers"
101
+ request.headers['Content-Type'] = "application/json"
102
+ request.body = args.to_json
103
+ end
104
+
105
+ Import::Customer.new(preprocess_response(response))
106
+ end
107
+
108
+ # Public - list all Plans.
109
+ # this will page through all plans see #list_plans_each
110
+ # for iterator method to prevent loading the whole array in
111
+ # memory
112
+ #
113
+ # options - see #list_plans_each
114
+ #
115
+ # Returns an Array of ChartMogul::Import::Plan
116
+ def list_plans(options={})
117
+ plans = []
118
+ list_plans_each(options) { |p| plans << p }
119
+ plans
120
+ end
121
+
122
+ # Public - iterate through all plans
123
+ #
124
+ # options - Hash of filter options
125
+ # :data_source_uuid
126
+ #
127
+ # Returns an Enumerable that will yield a ChartMogul::Import::Plan for
128
+ # each record
129
+ def list_plans_each(options={}, &block)
130
+ params = { page_number: 1 }
131
+ params[:data_source_uuid] = options[:data_source_uuid] if options[:data_source_uuid]
132
+
133
+ paged_get("/v1/import/plans", params, :plans) do |plans|
134
+ plans.each do |plan|
135
+ yield Import::Plan.new(plan)
136
+ end
137
+ end
138
+ end
139
+
140
+ # Public - create a Plan
141
+ #
142
+ # args - Hash of params see https://dev.chartmogul.com/docs/plans
143
+ # Mandatory: :data_source_uuid, :name, :interval_count, :interval_unit
144
+ #
145
+ # Returns a ChartMogul::Import::Plan
146
+ def create_plan(args)
147
+ [:data_source_uuid, :name, :interval_unit, :interval_count].each do |attribute|
148
+ refute_blank! args[attribute], attribute
149
+ end
150
+ assert! (args[:interval_count].is_a?(Integer) && args[:interval_count] > 0), "interval_count must be an integer greater than zero"
151
+ assert! [:day, :month, :year].include?(args[:interval_unit].to_sym), "interval_unit must be one of :day, :month, :year"
152
+
153
+ response = connection.post do |request|
154
+ request.url "/v1/import/plans"
155
+ request.headers['Content-Type'] = "application/json"
156
+ request.body = args.to_json
157
+ end
158
+
159
+ Import::Plan.new(preprocess_response(response))
160
+ end
161
+ end
162
+ end
@@ -0,0 +1,3 @@
1
+ module ChartMogul
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,12 @@
1
+ require "chart_mogul/assertive"
2
+ require "chart_mogul/version"
3
+ require "chart_mogul/import_api"
4
+ require "chart_mogul/client"
5
+
6
+ module ChartMogul
7
+
8
+ def self.client
9
+ @client ||= Client.new
10
+ end
11
+
12
+ end
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chart_mogul
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Adam Bird
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-03-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
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: webmock
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
+ description:
84
+ email:
85
+ - adam.bird@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".travis.yml"
93
+ - CODE_OF_CONDUCT.md
94
+ - Gemfile
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - bin/console
99
+ - bin/setup
100
+ - chart_mogul.gemspec
101
+ - lib/chart_mogul.rb
102
+ - lib/chart_mogul/assertive.rb
103
+ - lib/chart_mogul/client.rb
104
+ - lib/chart_mogul/import/customer.rb
105
+ - lib/chart_mogul/import/data_source.rb
106
+ - lib/chart_mogul/import/plan.rb
107
+ - lib/chart_mogul/import_api.rb
108
+ - lib/chart_mogul/version.rb
109
+ homepage: https://github.com/adambird/chart-mogul-ruby
110
+ licenses:
111
+ - MIT
112
+ metadata: {}
113
+ post_install_message:
114
+ rdoc_options: []
115
+ require_paths:
116
+ - lib
117
+ required_ruby_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ required_rubygems_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ requirements: []
128
+ rubyforge_project:
129
+ rubygems_version: 2.2.2
130
+ signing_key:
131
+ specification_version: 4
132
+ summary: Gem for working with the ChartMogul API
133
+ test_files: []