fulfil-io 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -4
- data/lib/fulfil/version.rb +1 -1
- data/lib/fulfil-io.rb +13 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d85caade2af0ca4d9ede6a970d0c9b802960e5bc192a41d70eb9c70f153640b1
|
4
|
+
data.tar.gz: 13b43002ee089a9781221b7c42cef81a12474a11ccdb9f6e9df248eaabff8f84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 415418f4c4a54490b95d3823272096e481b064bf0be0f45cd44dc2c093af7616d93e56b46e0286447febf154f1187fbcbf31a0d3f3d8e456846a5590b636bc04
|
7
|
+
data.tar.gz: 854d989c8b343dabd2317850f578a7a2c37c9a19d04873b19eb278c278a78a51c94a928d5cf24f5a7265f05a63ff6d1dfcb5853971448843957827af9554bb9e
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ A Ruby library for the [Fulfil.io](https://fulfil.io) API.
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'fulfil-io'
|
12
|
+
gem 'fulfil-io'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -37,8 +37,6 @@ if oauth doesn't work, returning an Unauthorized error, to use the
|
|
37
37
|
`FULFIL_API_KEY`, the `FULFIL_OAUTH_TOKEN` shouldn't be specified.
|
38
38
|
|
39
39
|
```ruby
|
40
|
-
require 'fulfil' # this is necessary only in case of running without bundler
|
41
|
-
|
42
40
|
fulfil = Fulfil::Client.new # or, to enable request debugging, Fulfil::Client.new(debug: true)
|
43
41
|
|
44
42
|
sale_model = Fulfil::Model.new(
|
@@ -47,7 +45,7 @@ sale_model = Fulfil::Model.new(
|
|
47
45
|
)
|
48
46
|
|
49
47
|
sales = sale_model.search(
|
50
|
-
domain: [['id', '=',
|
48
|
+
domain: [['id', '=', 10]],
|
51
49
|
fields: ['id', 'rec_name', 'lines']
|
52
50
|
)
|
53
51
|
|
data/lib/fulfil/version.rb
CHANGED
data/lib/fulfil-io.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# By convention, Bundler will attempt to load the `fulfil/io.rb` or `fulfil-io.rb` file.
|
4
|
+
# See https://guides.rubygems.org/name-your-gem/
|
5
|
+
#
|
6
|
+
# Due to this convention, the developer using this gem will need to manually
|
7
|
+
# require fulfil in the Gemfile or anywhere else in their application.
|
8
|
+
#
|
9
|
+
# To make it a little bit more convenient, we've added the `fulfil-io.rb` file
|
10
|
+
# that is loaded by default by Bundler and it's only job is to include all of
|
11
|
+
# the other gem files.
|
12
|
+
|
13
|
+
require 'fulfil'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fulfil-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: http
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- LICENSE.txt
|
150
150
|
- README.md
|
151
151
|
- Rakefile
|
152
|
+
- lib/fulfil-io.rb
|
152
153
|
- lib/fulfil.rb
|
153
154
|
- lib/fulfil/client.rb
|
154
155
|
- lib/fulfil/error.rb
|