facebook_commerce 0.1.0 → 0.2.0
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 +4 -4
- data/Gemfile +1 -4
- data/README.md +9 -7
- data/lib/facebook_commerce/version.rb +1 -1
- data/lib/facebook_commerce.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b78f5ab22f816682cf4ba61c7a01aeafb4cf1aa890557fc7d8ea8adf0a139d6e
|
4
|
+
data.tar.gz: 7c92a5524ca12b9caccf60f17ff390a9457fe8eda06005a03bb75614581a56d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b6d74a8947b80a9620180280d98869153586e8b25287c0f6e7da0349e4df8bc63da95c41251205940ca740e9fccf6d775f7fac71556cc79544594130a27c5dd
|
7
|
+
data.tar.gz: 0cfdbe8cdd1cb7ec8654824837845611485923df2dbd4e7e932efdf3989992eaa12a21f76b1b8843df2dd9ab0f881dc5a0573f581fc3830367826ab1883a323a
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,17 +2,14 @@
|
|
2
2
|
|
3
3
|
Unofficial Ruby wrapper for the Facebook Commerce API.
|
4
4
|
|
5
|
-
|
5
|
+
[![Version ][rubygems_badge]][rubygems]
|
6
|
+
[![Github Actions ][actions_badge]][actions]
|
6
7
|
|
7
|
-
|
8
|
+
## Installation
|
8
9
|
|
9
10
|
Install the gem and add to the application's Gemfile by executing:
|
10
11
|
|
11
|
-
$ bundle add
|
12
|
-
|
13
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
14
|
-
|
15
|
-
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
12
|
+
$ bundle add facebook_commerce
|
16
13
|
|
17
14
|
## Usage
|
18
15
|
|
@@ -31,3 +28,8 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/varyon
|
|
31
28
|
## License
|
32
29
|
|
33
30
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
31
|
+
|
32
|
+
[rubygems_badge]: http://img.shields.io/gem/v/facebook_commerce.svg
|
33
|
+
[rubygems]: https://rubygems.org/gems/facebook_commerce
|
34
|
+
[actions_badge]: https://github.com/varyonic/facebook_commerce/workflows/main/badge.svg
|
35
|
+
[actions]: https://github.com/varyonic/facebook_commerce/actions
|
data/lib/facebook_commerce.rb
CHANGED
@@ -166,7 +166,7 @@ module FacebookCommerce
|
|
166
166
|
# @return [Hash] Return response, eg. { id: '1234567890' }
|
167
167
|
def create_return(order_id, items, return_status, return_message, merchant_return_id)
|
168
168
|
data = {
|
169
|
-
items: items
|
169
|
+
items: CGI.escape(JSON.generate items),
|
170
170
|
return_status: return_status,
|
171
171
|
return_message: return_message,
|
172
172
|
merchant_return_id: merchant_return_id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facebook_commerce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piers Chambers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|