postman_mta 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 3a2303ada126d03d5308335886180c7229f75845
4
- data.tar.gz: 30aec8f08445f633ef9e2095e60c2d179375ab5b
3
+ metadata.gz: ea6b5ded9ae46bb47985d8515dc5505c9f404390
4
+ data.tar.gz: 2e2c5fb5d4cdd325a76c1ea9fec9e6845541041e
5
5
  SHA512:
6
- metadata.gz: 9a791bafc6ab039bef5cd7045697aa1e693a4cbd5b5c9456bf380fbad61fe545c5c6e3754fcccf181e7f85bb73781b4c8aeaafaa5260d250f9fc1b6f1302c6c2
7
- data.tar.gz: 722b30f24a934c3e6ed3d489fcc9e5c4bf47fb7444b476d83b26d07f219f80b77892fb3380c112f5a7343e9b67578470a5c7c985d0d16f5ff1ac677b5ca02a5e
6
+ metadata.gz: 5f1e354098d5e04fcdaf472a07793e4d5ed27c06dfa4bce821eab08fd53bb47f741ffbb4c846fc01475a68569af185aa03a3392bfa97618a265a6e1158d873bd
7
+ data.tar.gz: 874f5d95b00aa57941046bb7ad626ee87fbf4822eb3abc86d23c4ef76da19d2c832daec05d0ecfadd16a9c98619f1a4177426d727972faa35c3b39fc239474aa
@@ -0,0 +1,11 @@
1
+ module PostmanMta
2
+ class Domain < ApplicationModel
3
+ def index
4
+ get('/api/v1/domains')
5
+ end
6
+
7
+ def create(params = {})
8
+ post('/api/v1/domains', body: params)
9
+ end
10
+ end
11
+ end
@@ -3,5 +3,13 @@ module PostmanMta
3
3
  def index
4
4
  get('/api/v1/routes')
5
5
  end
6
+
7
+ def update(uuid, params = {})
8
+ patch("/api/v1/routes/#{uuid}", body: params)
9
+ end
10
+
11
+ def create(params = {})
12
+ post('/api/v1/routes', body: params)
13
+ end
6
14
  end
7
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PostmanMta
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
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.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Malinovskiy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-22 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -129,6 +129,7 @@ files:
129
129
  - app/models/postman_mta/application_model.rb
130
130
  - app/models/postman_mta/attachment.rb
131
131
  - app/models/postman_mta/conversation.rb
132
+ - app/models/postman_mta/domain.rb
132
133
  - app/models/postman_mta/label.rb
133
134
  - app/models/postman_mta/message.rb
134
135
  - app/models/postman_mta/route.rb