windm 0.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 (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/windm.rb +27 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6289a9ebc7fa2f219b825eb08b57aba641cc0a325be5271e79ddbf48c625ded7
4
+ data.tar.gz: 429f4a6c093e1b56f8711d56be857d9df5c479907eca07e8cc461b9b3cd661b3
5
+ SHA512:
6
+ metadata.gz: 8782cc374de9e9900c6934f5bf8224556c5f3bbe0f6eed76d6ba40b132071f3da603f64ff4258abc58c68443c2e2a3fbe3630eb1ea93b290bb8114ca9a7ec548
7
+ data.tar.gz: 22f5ce14a6249d399d1378a6178bd3235dfba4b9737968a4132494f443c7264eab38e1e99ac22497c87e9d36f3b460442067538e8ec4b4543dcfccab28874408
data/lib/windm.rb ADDED
@@ -0,0 +1,27 @@
1
+ class Windm
2
+ def self::parse(file, value)
3
+ begin
4
+ file.each_line do |line|
5
+ lineValArray = line.split ": "
6
+ if lineValArray[0] == value
7
+ return lineValArray[1]
8
+ # This is the value of the first thing
9
+ end
10
+ end
11
+ # The value wasn't found in the file
12
+ return false
13
+ rescue
14
+ return "No file found."
15
+ end
16
+ end
17
+
18
+ def self::write(file, name, value)
19
+ begin
20
+ File.write file, "\n#{name}: #{value}\n", mode: "a"
21
+ rescue
22
+ return "File does not exist"
23
+ end
24
+ end
25
+
26
+ end
27
+
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: windm
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Ryuzaki Ikari
8
+ - CliffStone
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2022-06-04 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: The wind markup language, it offers easy data storage for your ruby project.
15
+ email: ikari.ryuzaki@mailfence.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/windm.rb
21
+ homepage: https://rubygems.org/gems/windm
22
+ licenses:
23
+ - GPL-3.0
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
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.2.32
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Wind markup language a simple ruby like markup language
44
+ test_files: []