peplum-template 0.1.0 → 0.2.0

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: c0d6c39c431c4ade9a4d96500048847342b80a0a15c5d4f7cfe123278662bb0f
4
- data.tar.gz: bf8d5f760b771c9409c49befdff81a2c58403142d62a9b6276397cc93f7183ee
3
+ metadata.gz: 98ad2059ef9d2f8a27def0755a3cede49283b387877aae06c53786d34dbee5f2
4
+ data.tar.gz: 26e595152ae3e70495bbb69008a5d3b73b1c3826b4cb0e35bc2e0daea4aa659a
5
5
  SHA512:
6
- metadata.gz: 9b4f72c06b677097b32268507e4f57a84ff5785b363b3fd1370aacac342efd8c1eaa15c73599eca14b7c027e44789cf1472c2f850c3c11c893ef3111e0763735
7
- data.tar.gz: ba15f06884e7646db3f7d96b4f06baf606b0ebe9db82d40e56aba2d3516c76289f5d734b5a40e03eca3a88e27e8006e2a28daa5dc4c8d75fe0078aea6e508d60
6
+ metadata.gz: 739176a880d8ae56bbeccc44baeb947309c6f3554deacc285bf9f41c1eba0176ed99976b805e52a4c224955489303b929b16df90cfc58fd73f07303ca0125cab
7
+ data.tar.gz: 3db8aed3e72aff2e2719cefe84fa3311dd7c6d4bd9e766c0b129ce991c3f000f00f5ceb13884ea7a867b87edcf8d8b9dd3dffb131d782651ce3f92a65fab33e8
data/examples/rest.rb CHANGED
@@ -28,7 +28,7 @@ request :post, 'instances', {
28
28
  objects: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0],
29
29
  max_workers: 5
30
30
  },
31
- native: {
31
+ payload: {
32
32
  my_option_bool: true,
33
33
  my_option_array: [1,2,3],
34
34
  my_option_hash: { 4 => '5', '6' => 7 }
data/examples/rpc.rb CHANGED
@@ -15,7 +15,7 @@ template.run(
15
15
  objects: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0],
16
16
  max_workers: 5
17
17
  },
18
- native: {
18
+ payload: {
19
19
  my_option_bool: true,
20
20
  my_option_array: [1,2,3],
21
21
  my_option_hash: { 4 => '5', '6' => 7 }
@@ -2,7 +2,7 @@ module Peplum
2
2
  class Template
3
3
  class Application
4
4
 
5
- module Native
5
+ module Payload
6
6
 
7
7
  # TODO: Populate it with some actual payload code.
8
8
  #
@@ -6,7 +6,7 @@ module Peplum
6
6
  class Template
7
7
 
8
8
  class Application < Peplum::Application
9
- require_relative "application/native"
9
+ require_relative "application/payload"
10
10
  require_relative 'application/services/my_service'
11
11
 
12
12
  # TODO: Adjust accordingly.
@@ -18,8 +18,8 @@ class Application < Peplum::Application
18
18
  # TODO: Is a service necessary?
19
19
  instance_service_for :my_service, Services::MyService
20
20
 
21
- def native_app
22
- Native
21
+ def payload
22
+ Payload
23
23
  end
24
24
 
25
25
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Peplum
4
4
  class Template
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peplum-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tasos Laskos
@@ -38,7 +38,7 @@ files:
38
38
  - examples/rpc.rb
39
39
  - lib/peplum/template.rb
40
40
  - lib/peplum/template/application.rb
41
- - lib/peplum/template/application/native.rb
41
+ - lib/peplum/template/application/payload.rb
42
42
  - lib/peplum/template/application/services/my_service.rb
43
43
  - lib/peplum/template/version.rb
44
44
  - peplum-template.gemspec