postman_mta 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d6d5fffa4743f5f68aca42d85ce8504cd3b1438e87b08b9aab67f8c86dcd1a8
4
- data.tar.gz: 9e533b9344643973321ed86143708bd19db68424f995499478a24c0e5b5c05e6
3
+ metadata.gz: bc04ac2c8ab40ed842b78143e7cac798f1876defb5e9aa8bbe7f67cc9ab32144
4
+ data.tar.gz: 8f5f477cc5b86bdf800702f2d13545a9d250cac8e3fdcb23257bb33123a17cbf
5
5
  SHA512:
6
- metadata.gz: f1eec23222904c934a81f5e1a867f9a0bb0a670403e984274ae4a941a6acd6d702c630fd623c05bb6c155b2fe3a32280699be1e8aa58d2c750de866aa5f100f1
7
- data.tar.gz: ca7da62ced3248c0735e49f7fa4f4f323fab93cd72e59cd32f2a7d65d5ba836ba9c70fcc544d038eab9b231d8989f37292ecb2dbba66317b4df205080130014a
6
+ metadata.gz: af548b6ed0b23aa31817c3dddd8b6c5eea15c863e75c8c45bdb2a8ff005b6966f794466754e691db2ed43eef5f6a0455c5954664f2e18879cc1c39ff927e86ef
7
+ data.tar.gz: 975fe8c004c5e843f2a38b4ddf10e64ee39af9fa61fbfc6ed0d618a8b277dbacd68535f9fc8037aec0e59939c447a2427ec3cbd643a499bca6a57c094e34c5f3
@@ -9,6 +9,10 @@ module PostmanMta
9
9
  render conversation.find(params[:id])
10
10
  end
11
11
 
12
+ def move
13
+ render conversation.move(permitted_params)
14
+ end
15
+
12
16
  private
13
17
 
14
18
  def conversation
@@ -8,6 +8,10 @@ module PostmanMta
8
8
  def find(conversation_id)
9
9
  get("/archive/conversations/#{conversation_id}")
10
10
  end
11
+
12
+ def move(params = {})
13
+ patch('/archive/conversations/move', body: params)
14
+ end
11
15
  end
12
16
  end
13
17
  end
@@ -25,7 +25,9 @@ PostmanMta::Engine.routes.draw do
25
25
  end
26
26
 
27
27
  namespace :archive do
28
- resources :conversations, only: [:index, :show]
28
+ resources :conversations, only: [:index, :show] do
29
+ match :move, on: :collection, via: [:put, :patch]
30
+ end
29
31
  end
30
32
 
31
33
  resources :routes, only: :index
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PostmanMta
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postman_mta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Malinovskiy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-21 00:00:00.000000000 Z
11
+ date: 2020-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler