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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20696062e7f6acdd971a438426a5fca169814aa90aa0182dee07e88c5cf77a2f
4
- data.tar.gz: 56837aeacd2b316bb7bcc7ce16351f4dee3fadb91fb766cb13b60ed014ced976
3
+ metadata.gz: b78f5ab22f816682cf4ba61c7a01aeafb4cf1aa890557fc7d8ea8adf0a139d6e
4
+ data.tar.gz: 7c92a5524ca12b9caccf60f17ff390a9457fe8eda06005a03bb75614581a56d7
5
5
  SHA512:
6
- metadata.gz: 90425ba85eaf12f79e96ae2db351ac45483e3bcda6260d4cb04ba1d1af2fa9ff36a1bcf9c52d77125a178e95c85deb9403e9eb649eeeef171d4de8b73ed240b3
7
- data.tar.gz: 26afb26eb116a583e12d0515fdfa457729fcf6f568b831a77ffcd70097251627adc64bee59178a87fd5d55ac4cf3746f89f4e0f228362ab2b85acb9b0454b94c
6
+ metadata.gz: 0b6d74a8947b80a9620180280d98869153586e8b25287c0f6e7da0349e4df8bc63da95c41251205940ca740e9fccf6d775f7fac71556cc79544594130a27c5dd
7
+ data.tar.gz: 0cfdbe8cdd1cb7ec8654824837845611485923df2dbd4e7e932efdf3989992eaa12a21f76b1b8843df2dd9ab0f881dc5a0573f581fc3830367826ab1883a323a
data/Gemfile CHANGED
@@ -1,10 +1,7 @@
1
- # frozen_string_literal: true
2
-
3
1
  source "https://rubygems.org"
4
2
 
5
- # Specify your gem's dependencies in facebook_commerce.gemspec
6
3
  gemspec
7
4
 
8
5
  gem "rake", "~> 13.0"
9
-
10
6
  gem "rspec", "~> 3.0"
7
+ gem "webmock"
data/README.md CHANGED
@@ -2,17 +2,14 @@
2
2
 
3
3
  Unofficial Ruby wrapper for the Facebook Commerce API.
4
4
 
5
- ## Installation
5
+ [![Version ][rubygems_badge]][rubygems]
6
+ [![Github Actions ][actions_badge]][actions]
6
7
 
7
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
8
+ ## Installation
8
9
 
9
10
  Install the gem and add to the application's Gemfile by executing:
10
11
 
11
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FacebookCommerce
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -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.to_json,
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.1.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: 2024-08-06 00:00:00.000000000 Z
11
+ date: 2025-04-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: