flowcommerce 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af689547c1cb19cfe9d3e00793ac8caa39f91f3b
4
- data.tar.gz: 9ef792eb61d56ed1af67fce82d141c22fbec04b4
3
+ metadata.gz: f938d9bd95c750e4c013dd5098a10e5ea2d17061
4
+ data.tar.gz: 04f5b4e9fc0e5bb9bbf0634566d31d670f2fe869
5
5
  SHA512:
6
- metadata.gz: 4ba0f90e9185b695dd31f3ee848fc9f59875e3fc6063d5fc84215feb4112274a5ac2c4f847d33d1d99e0a6b808b1fda76935ebdc4cab06f6b9dc2fb0eb6f0536
7
- data.tar.gz: a930773716cdbfe3c3bd256f976012dbcfc803638f6ccdbcd090a799eacfc95540b7ac9eab6f86cb8b0a32c61e8c0fb99c244ae0a43408add80fb4d8a0199bb0
6
+ metadata.gz: 4482e0556efcbc235c069f85b9ef758cbf5ab90cd2b4be1b9276103aa33e949b5f59a7c7ac657780f0f37ce2cd7fe323452509c0a41e669232a57649d0a05cd9
7
+ data.tar.gz: 5938bb36bd431d036f16b3fb987fe9ffee52e90a9d5565b15dfb9611631ef18388900d2fe8abb99f988d1220b732a1bc4fccb9285ce092b52ee7ed6624514778
data/README.md CHANGED
@@ -33,3 +33,9 @@ The full API is documented at http://apidoc.me/flow/catalog/latest
33
33
  Also look at
34
34
  https://github.com/flowcommerce/ruby-sdk/blob/master/lib/clients/flow_catalog_v0_client.rb
35
35
  for the complete Ruby implementation of the API.
36
+
37
+
38
+ ## Release a new version of the gem
39
+
40
+ go run release.go
41
+
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
2
  # Service version: 0.0.11
3
- # apidoc:0.11.19 http://www.apidoc.me/flow/catalog/0.0.11/ruby_client
3
+ # apidoc:0.11.19 http://localhost:9000/flow/catalog/0.0.11/ruby_client
4
4
 
5
5
  require 'cgi'
6
6
  require 'net/http'
@@ -24,7 +24,7 @@ module Io
24
24
 
25
25
  BASE_URL = 'https://catalog.api.flow.io' unless defined?(Constants::BASE_URL)
26
26
  NAMESPACE = 'io.flow.catalog.v0' unless defined?(Constants::NAMESPACE)
27
- USER_AGENT = 'apidoc:0.11.19 http://www.apidoc.me/flow/catalog/0.0.11/ruby_client' unless defined?(Constants::USER_AGENT)
27
+ USER_AGENT = 'apidoc:0.11.19 http://localhost:9000/flow/catalog/0.0.11/ruby_client' unless defined?(Constants::USER_AGENT)
28
28
  VERSION = '0.0.11' unless defined?(Constants::VERSION)
29
29
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
30
30
 
@@ -602,7 +602,7 @@ module Io
602
602
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
603
603
  @locale = HttpClient::Preconditions.assert_class('locale', opts.delete(:locale), String)
604
604
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
605
- @price = HttpClient::Preconditions.assert_class('price', opts.delete(:price), Float)
605
+ @price = HttpClient::Preconditions.assert_class('price', opts.delete(:price), Numeric)
606
606
  @categories = HttpClient::Preconditions.assert_class('categories', (x = opts.delete(:categories); x.nil? ? [] : x), Array).map { |v| HttpClient::Preconditions.assert_class('categories', v, String) }
607
607
  @description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String))
608
608
  @dimensions = HttpClient::Preconditions.assert_class('dimensions', (x = opts.delete(:dimensions); x.nil? ? [] : x), Array).map { |v| (x = v; x.is_a?(::Io::Flow::Catalog::V0::Models::Dimension) ? x : ::Io::Flow::Catalog::V0::Models::Dimension.new(x)) }
@@ -647,7 +647,7 @@ module Io
647
647
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
648
648
  @locale = HttpClient::Preconditions.assert_class('locale', opts.delete(:locale), String)
649
649
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
650
- @price = HttpClient::Preconditions.assert_class('price', opts.delete(:price), Float)
650
+ @price = HttpClient::Preconditions.assert_class('price', opts.delete(:price), Numeric)
651
651
  @categories = (x = opts.delete(:categories); x.nil? ? nil : HttpClient::Preconditions.assert_class('categories', x, Array).map { |v| HttpClient::Preconditions.assert_class('categories', v, String) })
652
652
  @description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String))
653
653
  @dimensions = (x = opts.delete(:dimensions); x.nil? ? nil : HttpClient::Preconditions.assert_class('dimensions', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::Catalog::V0::Models::Dimension) ? x : ::Io::Flow::Catalog::V0::Models::Dimension.new(x)) })
@@ -1,6 +1,6 @@
1
1
  # Generated by apidoc - http://www.apidoc.me
2
2
  # Service version: 0.0.11
3
- # apidoc:0.11.19 http://www.apidoc.me/flow/common/0.0.11/ruby_client
3
+ # apidoc:0.11.19 http://localhost:9000/flow/common/0.0.11/ruby_client
4
4
 
5
5
  require 'cgi'
6
6
  require 'net/http'
@@ -23,7 +23,7 @@ module Io
23
23
  module Constants
24
24
 
25
25
  NAMESPACE = 'io.flow.common.v0' unless defined?(Constants::NAMESPACE)
26
- USER_AGENT = 'apidoc:0.11.19 http://www.apidoc.me/flow/common/0.0.11/ruby_client' unless defined?(Constants::USER_AGENT)
26
+ USER_AGENT = 'apidoc:0.11.19 http://localhost:9000/flow/common/0.0.11/ruby_client' unless defined?(Constants::USER_AGENT)
27
27
  VERSION = '0.0.11' unless defined?(Constants::VERSION)
28
28
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
29
29
 
@@ -694,7 +694,7 @@ module Io
694
694
  def initialize(incoming={})
695
695
  opts = HttpClient::Helper.symbolize_keys(incoming)
696
696
  HttpClient::Preconditions.require_keys(opts, [:value, :units], 'Dimension')
697
- @value = HttpClient::Preconditions.assert_class('value', opts.delete(:value), Float)
697
+ @value = HttpClient::Preconditions.assert_class('value', opts.delete(:value), Numeric)
698
698
  @units = (x = opts.delete(:units); x.is_a?(::Io::Flow::Common::V0::Models::UnitOfMeasurement) ? x : ::Io::Flow::Common::V0::Models::UnitOfMeasurement.apply(x))
699
699
  end
700
700
 
@@ -945,7 +945,7 @@ module Io
945
945
  def initialize(incoming={})
946
946
  opts = HttpClient::Helper.symbolize_keys(incoming)
947
947
  HttpClient::Preconditions.require_keys(opts, [:amount, :currency], 'Price')
948
- @amount = HttpClient::Preconditions.assert_class('amount', opts.delete(:amount), Float)
948
+ @amount = HttpClient::Preconditions.assert_class('amount', opts.delete(:amount), Numeric)
949
949
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
950
950
  end
951
951
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flow Commerce, Inc.