now-do 1.0.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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +19 -0
  3. data/now-do.rb +3 -0
  4. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ecb506ba86bf4fe35d7f619e9701e742a3c66778cb52a5ea19a99d2cbfaa2a30
4
+ data.tar.gz: 1f5612cea2cbfaedb87a0291546be2095fe4409db5858a14cdcade9eece184d5
5
+ SHA512:
6
+ metadata.gz: 615acbfb724f37707e9d09bf54c64c65b6dc4a22fd6d0caf34fa7b59f66af759ab773dfe91e80d566afab8537c9bf6d16148d1628089a3e403f7bcd06556cb54
7
+ data.tar.gz: 7a6d8e9fcb45bcdf26f3efd4ed288a5051097204f942ead5d0d27d2ba26fe647e91b433f6a72d441bf4b2d2f8f5cd7e423b25e964517f484fe66939b8b4e894b
data/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # Now Do
2
+
3
+ IIFE in plain ruby:
4
+ ```rb
5
+ Proc.new {
6
+ name = "violet"
7
+ puts "hello #{name}"
8
+ }.call
9
+ ```
10
+
11
+ IIFE with now-do:
12
+ ```rb
13
+ now do
14
+ name = "flower"
15
+ puts "hello #{name} πŸ’šπŸ’šπŸ’šπŸŒΊπŸŒΊπŸŒΊ"
16
+ end
17
+ ```
18
+
19
+ This seems most idiomatic.
data/now-do.rb ADDED
@@ -0,0 +1,3 @@
1
+ def now
2
+ yield
3
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: now-do
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Violet
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-07-20 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: vi.kitten@proton.me
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - README.md
20
+ - now-do.rb
21
+ homepage: https://github.com/Vi-Kitten/now-do
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - "."
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.3.15
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Clean IIFE semantics.
44
+ test_files: []