puma_dynamic_tags 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: ee74951e2533774c1d0569c9a03c6fad6e9c27233381642dd606a1a6e4109452
4
- data.tar.gz: 541012449a729831dfcf61b852f9d7f1b8dc0953c407eca45e9a8d5fd2c87a52
3
+ metadata.gz: 529dc06aeb20f634932e05a5dfad386636e6cbad19784a31d15e4809f5ff4a98
4
+ data.tar.gz: ca79679e00c56b4146a66160ea8764153978552c116326dff7be08c84e4dcc31
5
5
  SHA512:
6
- metadata.gz: 84e983b29c92ed3f03d162530a3bdff84054b50569f3580e8446a9044589448a56b8e13106b4d8e70ee817f218548d17fd7e5ee7567a92df140126adae9b2d58
7
- data.tar.gz: 22791f612fd01e096db680f8a0ec2486b127d4313982e4f2a5ff657533b4b09632e548ba72a21e95c9cd8448d8d111f741b39e9141a79fda3b388ff750fc183e
6
+ metadata.gz: 5dc990399d3987517ad107770c56cfcd7d365e908c0fe9bd359e64ccae52312a33e0c796b79de186e9ffb3360e287aa275932beee6c3fa12b95876bc1838c538
7
+ data.tar.gz: 688a90958b586a5913e69892840dff2ac346a5f0a9ee20c1f33945623c37283302bc9a1d510404d86f6e1dc9b81ebcfff912d76ff50ca37e65fe66664e61dcc8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [0.1.1] - 2022-04-8
5
+
6
+ - Initial release
7
+
4
8
  ## [0.1.0] - 2022-04-08
5
9
 
6
10
  - Initial release
data/README.md CHANGED
@@ -19,20 +19,27 @@ bundle install
19
19
 
20
20
  ## Usage
21
21
 
22
- ```ruby
23
- # in your gem requirements
24
- require "puma_dynamic_tags"
25
- ```
26
-
27
22
  ```ruby
28
23
  # config/puma.rb
29
- plugin :puma_dynamic_tags
24
+ plugin "puma_dynamic_tags"
30
25
 
31
26
  tag do
32
- # your dynamic code
27
+ "some_dynamic_result" # your dynamic code
33
28
  end
34
29
  ```
35
30
 
31
+ and then:
32
+
33
+ ```shell
34
+ puma
35
+ ```
36
+
37
+ and then:
38
+
39
+ ```shell
40
+ pas aux | grep puma
41
+ ```
42
+
36
43
  ## Contributing
37
44
 
38
45
  - Fork it ( https://github.com/0exp/puma_dynamic_tags )
@@ -10,6 +10,12 @@ module Puma::Plugin::DuynamicTags
10
10
  tag_option
11
11
  end
12
12
  end
13
+
14
+ module DSLTagExtension
15
+ def tag(string = nil, &block)
16
+ @options[:tag] = block_given? ? block : string.to_s
17
+ end
18
+ end
13
19
  end
14
20
 
15
21
  Puma::Launcher.prepend(Module.new do
@@ -21,3 +27,5 @@ Puma::Launcher.prepend(Module.new do
21
27
  @options
22
28
  end
23
29
  end)
30
+
31
+ Puma::DSL.prepend(Puma::Plugin::DuynamicTags::DSLTagExtension)
@@ -4,7 +4,7 @@ Gem::Specification.new do |spec|
4
4
  spec.required_ruby_version = '>= 2.6.0'
5
5
 
6
6
  spec.name = 'puma_dynamic_tags'
7
- spec.version = '0.1.0'
7
+ spec.version = '0.1.1'
8
8
  spec.authors = ['Rustam Ibragimov']
9
9
  spec.email = ['exfivedaiver@gmail.com']
10
10
  spec.homepage = 'https://github.com/0exp/puma_dynamic_tags'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma_dynamic_tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov