postman_mta 0.2.4 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/postman_mta/notes_controller.rb +21 -0
- data/app/models/postman_mta/note.rb +11 -0
- data/config/routes.rb +1 -0
- data/lib/postman_mta/api_client.rb +1 -1
- data/lib/postman_mta/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce5f34f0b7d6545969d804b0f436f005c88ac34b4701c275bd4a187adc30f289
|
4
|
+
data.tar.gz: 0136705aa5bcaba15afb6fbdbdc87f1286a1596a5182d430d15815dbda99e032
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17c3bfff16a3b6bb6fed2a4d16757972124e7918c8291b244e3695a0e533dbc4298eb817d1eb7982dfc4e49697e1d2615f9c3c3cb32922cdd58f85e800cff649
|
7
|
+
data.tar.gz: 91f42bf727261fbdeb214af08f482c1038dc2bb91d8242f0f16e29863defa039965d8482fea25eb72e925efa93792b1908dd701dba0a11c46c1eb9bbb35a6ebe
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module PostmanMta
|
2
|
+
class NotesController < ApplicationController
|
3
|
+
def create
|
4
|
+
render note.create(notes_params)
|
5
|
+
end
|
6
|
+
|
7
|
+
def update
|
8
|
+
render note.update(notes_params[:id], notes_params)
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def note
|
14
|
+
@note ||= PostmanMta::Note.new
|
15
|
+
end
|
16
|
+
|
17
|
+
def notes_params
|
18
|
+
params.permit!
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/config/routes.rb
CHANGED
data/lib/postman_mta/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.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:
|
11
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -154,6 +154,7 @@ files:
|
|
154
154
|
- app/controllers/postman_mta/domains_controller.rb
|
155
155
|
- app/controllers/postman_mta/labels_controller.rb
|
156
156
|
- app/controllers/postman_mta/messages_controller.rb
|
157
|
+
- app/controllers/postman_mta/notes_controller.rb
|
157
158
|
- app/controllers/postman_mta/routes_controller.rb
|
158
159
|
- app/controllers/postman_mta/stats/messages_controller.rb
|
159
160
|
- app/controllers/postman_mta/tags_controller.rb
|
@@ -166,6 +167,7 @@ files:
|
|
166
167
|
- app/models/postman_mta/domain.rb
|
167
168
|
- app/models/postman_mta/label.rb
|
168
169
|
- app/models/postman_mta/message.rb
|
170
|
+
- app/models/postman_mta/note.rb
|
169
171
|
- app/models/postman_mta/route.rb
|
170
172
|
- app/models/postman_mta/tag.rb
|
171
173
|
- bin/console
|