improvmx 0.1.4 → 0.2

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: 8ad58d967068df9cddb1cc030cda9564e75decd4c458ad8fa8a2108836dfb4e3
4
- data.tar.gz: 4b2e7e553835c593da542f9d170d24f9356c0fbd066882a1ce529e81dfe8be06
3
+ metadata.gz: cda727e34e3f195024c8f79b1c1b1ea1f2fd91513bf5fbfb673259ba214f8905
4
+ data.tar.gz: b2614061c64a98dabe42ca0cd7fc50b8b2229178b745d1a775ab958f6ab5ba26
5
5
  SHA512:
6
- metadata.gz: dd69f07344a7dac2b0a472ebd99660829e968a8965654b63bb55733aeb4d80820c4208c2f67d5903485a925e848ed4edc7098149991ff97f4bdb00ea7b53ce30
7
- data.tar.gz: 6c79b547a86874f0b801cd9d42b23635fc5cabf95786ca57d2109ddb141267df0db550049ef393eafc907fba8f1c36ae105292d4a75ad230f387877481adeff5
6
+ metadata.gz: a8f566d825c3c781dd2b6054d06dded9b703ed897b179fbed7857cbd39312c468a52f9c48db4e73321c3e2daf97da41fe12f0e2a0b1b6b21f694beea37c5458d
7
+ data.tar.gz: cf9a201d07085fadc677d321d62acfb27a97025f8ceb27c8338763a21b7781feddf388eb62f501a8f73c935b2a4ba4374425551b1387f636c3204b714805c373
data/README.md CHANGED
@@ -77,5 +77,5 @@ Deployment
77
77
  This part is for maintaincers only. In order to deploy this gem to rubygem follow those steps:
78
78
 
79
79
  1. Bump the version in `lib/improvmx/version.rb`
80
- 2. Build the gem using `gem build improvmx.gemspec`
81
- 3. Push it to rubygems `gem push improvmx-x.x.x.gem`
80
+ 1. Build the gem using `gem build improvmx.gemspec`
81
+ 1. Push it to rubygems `gem push improvmx-x.x.x.gem`
@@ -14,17 +14,14 @@ module Improvmx
14
14
  rest_client_params = {
15
15
  user: 'api',
16
16
  password: api_key,
17
- user_agent: "improvmx-ruby/#{Improvmx::VERSION}",
18
- headers: {
19
- content_type: "application/json"
20
- }
17
+ user_agent: "improvmx-ruby/#{Improvmx::VERSION}"
21
18
  }
22
19
 
23
20
  @http_client = RestClient::Resource.new('https://api.improvmx.com/v3', rest_client_params)
24
21
  end
25
22
 
26
23
  def post(resource_path, data, headers = {})
27
- response = @http_client[resource_path].post(data.to_json, headers)
24
+ response = @http_client[resource_path].post(data, headers)
28
25
  Response.new(response)
29
26
  rescue StandardError => e
30
27
  raise communication_error e
@@ -38,7 +35,7 @@ module Improvmx
38
35
  end
39
36
 
40
37
  def put(resource_path, data)
41
- response = @http_client[resource_path].put(data.to_json)
38
+ response = @http_client[resource_path].put(data)
42
39
  Response.new(response)
43
40
  rescue StandardError => e
44
41
  raise communication_error e
@@ -1,3 +1,3 @@
1
1
  module Improvmx
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: improvmx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - C.S.V. Alpha
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-09-08 00:00:00.000000000 Z
12
+ date: 2021-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
- rubygems_version: 3.2.33
64
+ rubygems_version: 3.2.14
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: Ruby interface for the ImprovMX API