bukku_rails 0.2.2 → 0.3.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: ae7834af9fb6e0e658c7983ec8470965dd05895d5e9fb812287abf2138b7cf0b
4
- data.tar.gz: 372206b437586da2dc52d54ecf05c9c3e20df6129115551bb5d537c6fa2ba121
3
+ metadata.gz: 565be27afe248599db5d33a723aaa9a5ad9c57bc25ffab1b7f8e0f9a91fb5bf5
4
+ data.tar.gz: cccbcfb3e2dbdef04b6d851f9504b31f93e5c897e2a198a680a9a2f863e671c6
5
5
  SHA512:
6
- metadata.gz: 34272757719187e556d86f660a2079ea01b2727740fefa86dad212189f0e58557238d141e6ecb8e27dbe4d15665ae83b5210cca645788a7a9263c7bf109a4716
7
- data.tar.gz: 2439395811ac766fe33cac66a6c7632c50fadea7f50322f477510c415847ec8653e075aa9dbb75a5d9afaae1bd57d8254da30e9e577bc41c43aa69d62c0cfca3
6
+ metadata.gz: 01d76b79443c4113cfe1bc605cffea51bf241b9d69f6a98c1b10185939164d8aa75ca39d68ab5ea53d84f63d007883109993fa4188b99a7dff7d9e08424f709f
7
+ data.tar.gz: 0b017d34db3dbe0cfef610aadcf14e2e1dc7987b73aecb1ac179463000569b69fa1a3495f6663a6c68c945ade9242a6972741ee75eaaa37d04cc470d0eed5fe5
data/README.md CHANGED
@@ -36,13 +36,15 @@ Note: Bukku offers 2 type of access:
36
36
 
37
37
  **Bukku Rails** provides usage for both access, under 2 different classes:
38
38
 
39
- 1. *Staging* use the `BukkuTest` class, like so `client = BukkuTest.new(domain: "sub-domain", token: "token-from-bukku-fyi")`
39
+ 1. *Staging* use the `BukkuTest` class, like so
40
+ `client = BukkuTest.new(domain: "sub-domain", token: "api-token-from-bukku-fyi")`
40
41
 
41
- 2. *Production* use `Bukku` class, like so `client = Bukku.new(domain: "sub-domain", token: "token-from-bukku-my")`
42
+ 2. *Production* use `Bukku` class, like so
43
+ `client = Bukku.new(domain: "sub-domain", token: "api-token-from-bukku-my")`
42
44
 
43
45
  ### Available Methods
44
46
 
45
- Just like in Rails the methods follow the singular and plural expression. Methods with arguments are normally plural, while methods without arguments are singular methods calls.
47
+ Just like in Rails the methods follow the singular and plural expression. Methods that might return multiple records are plural expression methods. While methods that returns or create a single records are singular methods. So be careful where you put your ***s***'s 😁
46
48
 
47
49
  #### Sales
48
50
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BukkuRails
4
- VERSION = '0.2.2'
4
+ VERSION = '0.3.0'
5
5
  end
data/lib/bukku_test.rb CHANGED
@@ -4,7 +4,7 @@ class BukkuTest < Client
4
4
  # respond = access.<method>
5
5
 
6
6
  # Testing URL
7
- BASE_URI = 'https://api.bukku.fyi'
7
+ BASE_URI = 'https://api.staging.bukku.dev'
8
8
 
9
9
  ## SALES
10
10
  # Quotation
data/lib/client.rb CHANGED
@@ -49,7 +49,7 @@ class Client
49
49
  http.use_ssl = uri.instance_of?(URI::HTTPS)
50
50
 
51
51
  # Add the 2 lines below because development keeps on failing SSL CRL checks
52
- # Check this article for explanation:
52
+ # Check this article for explanation:
53
53
  # https://dev.to/madhuhari188/how-we-solved-unable-to-get-certificate-crl-in-rails-a-debugging-story-2pna
54
54
  http.verify_mode = OpenSSL::SSL::VERIFY_PEER
55
55
  http.verify_callback = ->(_preverify_ok, _store_ctx) { true }
@@ -58,7 +58,7 @@ class Client
58
58
  end
59
59
 
60
60
  def make_request(klass, path, query: {}, body: {})
61
- # Uncomment below for debuging purpose to see the payload that was sent.
61
+ # Uncomment below for debuging purpose to see payload that was sent.
62
62
  # build_http(uri).set_debug_output($stdout)
63
63
 
64
64
  uri = URI("#{base_uri}#{path}")
@@ -90,5 +90,6 @@ class Client
90
90
  raise Error, "#{response.code}: #{response.body}"
91
91
  end
92
92
  end
93
+
93
94
  class Error < StandardError; end
94
95
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bukku_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muzaffar Ariff
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-02-27 00:00:00.000000000 Z
11
+ date: 2026-05-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Use Rails conventions to call Bukku API requests.
14
14
  email: