wash 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wash/entry.rb +18 -0
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b87c836762091e36c54cfb1fc4873db4daddd3ae7d384e1a37cf7cfe5b67698d
4
- data.tar.gz: a597868aaeee769935af33d6512c6a827114c1d20955a835f1947162909152c1
3
+ metadata.gz: d0efbc4193e251302ab30ff5c4129b3c4fadfbe3bdad702a4ed15d1cbee4b6b3
4
+ data.tar.gz: 79a8f082569acfa7f2afb967ebd0d28297d69245d74ab531760d2536f293e4de
5
5
  SHA512:
6
- metadata.gz: 4306cb5878a58478fbdd2b56fbcff026772f3e88307d1a361a698c6230741ce94f1f5499e7e7a6c42c6894f5cb9842983c0083e7ffb15f1f8be1bd83ef71d011
7
- data.tar.gz: 2d4003b4a969f6a122fe7210b2798723b5d94c1963da4b8fa3006669c16004622d0cb9d025856c29b83bf07260fe89c56c9a077c2c895cf60e50876c9e0e12c4
6
+ metadata.gz: c13c4d83e6da4c7894eb6a7afac17faf1dbaa935658f389a9d0d813085f929c55c04245916028ee37e3efd0214f0ff0b885930469691dccfef34fa72a593c263
7
+ data.tar.gz: ba0d5f0ecc23364ed9e5dbce6d1af2596bbc1e85174a770b6b9ba25e4c092dd263eb0d5c852d516934e48dc3554c7acef8fd23daac6976921e5807d515d154a1
@@ -14,6 +14,11 @@ module Wash
14
14
  # class Foo
15
15
  # # Instances of Foo will be able to set the @mtime and @meta fields
16
16
  # attributes :mtime, :meta
17
+ #
18
+ # def initialize(mtime, meta)
19
+ # @mtime = mtime
20
+ # @meta = meta
21
+ # end
17
22
  # end
18
23
  #
19
24
  # @param [Symbol] attr An attribute that will be set
@@ -55,6 +60,10 @@ module Wash
55
60
  # # the @api_key field). Thus, plugin authors do not have to manage their entries'
56
61
  # # states; the gem will do it for them via the state tag.
57
62
  # state :api_key
63
+ #
64
+ # def initialize(api_key)
65
+ # @api_key = api_key
66
+ # end
58
67
  # end
59
68
  #
60
69
  # Note that Wash.run uses {Class#allocate} when it reconstructs the entries, so
@@ -91,6 +100,14 @@ module Wash
91
100
  @singleton = true
92
101
  end
93
102
 
103
+ # description is a class-level tag specifying the entry's description. It is a helper
104
+ # for Entry schemas.
105
+ #
106
+ # @param description The description.
107
+ def description(description)
108
+ @description = description
109
+ end
110
+
94
111
  # meta_attribute_schema sets the meta attribute's schema to schema. It is a helper
95
112
  # for Entry schemas.
96
113
  #
@@ -148,6 +165,7 @@ module Wash
148
165
  label: @label,
149
166
  methods: methods,
150
167
  singleton: @singleton,
168
+ description: @description,
151
169
  meta_attribute_schema: @meta_attribute_schema,
152
170
  metadata_schema: @metadata_schema,
153
171
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-24 00:00:00.000000000 Z
11
+ date: 2019-10-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A library for building Wash external plugins
14
14
  email:
@@ -40,8 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  requirements: []
43
- rubyforge_project:
44
- rubygems_version: 2.7.10
43
+ rubygems_version: 3.0.4
45
44
  signing_key:
46
45
  specification_version: 4
47
46
  summary: A library for building Wash external plugins