postman_mta 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/app/controllers/postman_mta/stats/messages_controller.rb +15 -0
- data/app/models/postman_mta/message.rb +4 -0
- data/config/routes.rb +6 -0
- data/lib/postman_mta/api_client.rb +6 -2
- data/lib/postman_mta/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b309a9971701fffbe7b109643b4b73d8ae3f425f
|
4
|
+
data.tar.gz: 758fa3e2ff2ce4fb0bda965cd3553472f60af739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3763172291f97da79b59eafcd4cff608be6214207405c9cb74f603a4d6a5cfb992a6af1afcb4087e60cf8e813e3fb1d0c6c0895ac3b690e38a368b0bbf9eed86
|
7
|
+
data.tar.gz: 7cfe0a78718469feba6dd2167c3f8709ae5ebb7c90efb01b4e761f2685b8d0a41eb470e5949dd106c7c58559bf4be7a8b869f92c95f04d11f594b8c711ef469a
|
data/Gemfile
CHANGED
data/config/routes.rb
CHANGED
@@ -18,9 +18,13 @@ module PostmanMta
|
|
18
18
|
request_method: request_type.upcase, path: path
|
19
19
|
).headers
|
20
20
|
|
21
|
-
response = self.class.send(
|
21
|
+
response = self.class.send(
|
22
|
+
request_type.downcase,
|
23
|
+
path,
|
24
|
+
{ headers: headers, format: :json }.merge(options)
|
25
|
+
)
|
22
26
|
|
23
|
-
{ json: response.parsed_response
|
27
|
+
{ json: response.parsed_response, status: response.code }
|
24
28
|
end
|
25
29
|
end
|
26
30
|
end
|
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.1.
|
4
|
+
version: 0.1.2
|
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-
|
11
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- app/controllers/postman_mta/labels_controller.rb
|
124
124
|
- app/controllers/postman_mta/messages_controller.rb
|
125
125
|
- app/controllers/postman_mta/routes_controller.rb
|
126
|
+
- app/controllers/postman_mta/stats/messages_controller.rb
|
126
127
|
- app/controllers/postman_mta/tags_controller.rb
|
127
128
|
- app/models/postman_mta/application_model.rb
|
128
129
|
- app/models/postman_mta/conversation.rb
|