fileverse 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 202c582c5236ee0e4b32a6bb4dbf1d41481f95105ebed2ba6ee4a513d9418ffd
4
+ data.tar.gz: 1872caba0bcc0529dc7e28c47292931968713d50556ce0ba759453527aa72542
5
+ SHA512:
6
+ metadata.gz: 4586d70ff46c42133741962c33ea9330bbf4cba10b75f58d5b27aa467c55a4a0470900c38c92cbc237604dc016b5cc99c877631cf33f316ecab1d33a13d959cf
7
+ data.tar.gz: a5979631dbef6fd0eee5950beca5947774f9efe3212870df45ebb84c6b3c0b8b8c73930cb57f5a8be73ce7423cad8115a8a69247f5be99430e3f8958cabe503b
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.0
3
+
4
+ Style/StringLiterals:
5
+ EnforcedStyle: double_quotes
6
+
7
+ Style/StringLiteralsInInterpolation:
8
+ EnforcedStyle: double_quotes
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2025-03-24
4
+
5
+ - Initial release
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [INSERT CONTACT METHOD].
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Unegbu Kingsley
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Fileverse
2
+
3
+ A simple ruby cli tool for keeping different versions of a file.
4
+
5
+ ## Installation
6
+
7
+ $ gem install fileverse
8
+
9
+ ## Usage
10
+
11
+ $ fileverse {file_path} {command} {options}
12
+
13
+ ## Commands / Shortcuts
14
+ - snap {file_path} (s)
15
+ - preview --<< {file_path} (p)
16
+ - preview -->> {file_path} (p)
17
+ - preview --name="" {file_path} (p)
18
+ - preview --index=0 {file_path} (p)
19
+ - reset {file_path} (x)
20
+ - snapshots {file_path} (c)
21
+ - restore {file_path} (r)
22
+
23
+ ## Development
24
+
25
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+
27
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/urchmaney/fileverse. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/fileverse/blob/master/CODE_OF_CONDUCT.md).
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the Fversion project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/fversion/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/exe/fileverse ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "fileverse"
5
+
6
+ Fileverse::CLI.start
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "thor"
4
+
5
+ module Fileverse
6
+ # CLI class
7
+ class CLI < Thor
8
+ desc "snap file content", "store current file content"
9
+ def snap(path)
10
+ parser, full_hidden_path = parser_and_hidden_path path
11
+ parser.parse
12
+ parser.add_snapshot(Files.read(path))
13
+ Files.wrie_content(path)
14
+ Files.wrie_content(full_hidden_path, parser.to_writable_lines)
15
+ end
16
+ map "s" => "snap"
17
+
18
+ desc "restore content", "restore content in the current cursor"
19
+ def restore(path)
20
+ parser, full_hidden_path = parser_and_hidden_path path
21
+ parser.parse
22
+ Files.wrie_content(path, parser.cursor_content)
23
+ parser.remove_cursor_snapshot
24
+ Files.wrie_content(full_hidden_path, parser.to_writable_lines)
25
+ end
26
+ map "r" => "restore"
27
+
28
+ # desc "preview snapshot", "preview snapshot at different index or name"
29
+ # def preview(path)
30
+
31
+ # end
32
+ # map "p" => "preview"
33
+
34
+ private
35
+
36
+ def parser_and_hidden_path(path)
37
+ full_hidden_path = Files.expand_hidden_path(path)
38
+ parser = Parser::Header.new(full_hidden_path)
39
+ [parser, full_hidden_path]
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Fileverse
4
+ class Error < StandardError; end
5
+
6
+ # File not found error
7
+ class FileNotFoundError < StandardError
8
+ def initialize(file)
9
+ super("Could not find file: #{file}")
10
+ end
11
+ end
12
+
13
+ # Error for corrupt config file
14
+ class CorruptFormat < StandardError
15
+ def initialize(section = nil)
16
+ super("The configuration file is corrupt.#{section}")
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Fileverse
4
+ module Files # rubocop:disable Style/Documentation
5
+ module_function
6
+
7
+ def expand_hidden_path(path)
8
+ path = File.join(File.dirname(path), ".verse.#{File.basename(path)}")
9
+ File.expand_path path, Dir.pwd
10
+ end
11
+
12
+ def read(path)
13
+ full_path = File.expand_path path, Dir.pwd
14
+ File.readlines(full_path)
15
+ end
16
+
17
+ def wrie_content(path, content = [])
18
+ full_path = File.expand_path path, Dir.pwd
19
+ File.open(full_path, "w") { |file| file.puts content }
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,241 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Fileverse
4
+ module Parser
5
+ # Fileverse::Parser::Header : is the main parser for the storage file.
6
+ # Lets take a storage file example:
7
+ #
8
+ # == Storage file Example content
9
+ #
10
+ # <######0
11
+ # template>shot> 6 ~> 9
12
+ # 9 ~> 12
13
+ # 12 ~> 15
14
+ # 15 ~> 18
15
+ # ######>
16
+ # // New file
17
+ # // Write here
18
+ # // When you can
19
+ # File 1
20
+ # Content 1 of file 1
21
+ # Content 2 of file 1
22
+ # File 2
23
+ # Content 1 of file 2
24
+ # Content 2 of file 2
25
+ # File 3
26
+ # Content 1 of file 3
27
+ # Content 2 of file 3
28
+ #
29
+ #
30
+ # == Example end
31
+ #
32
+ # It uses the head section which is what is between "<######{cursor}" and "######>".
33
+ # It starts with "templates" and then "files". Each has a range which is represented like "{start} ~> {stop}".
34
+ # templates are represented as "template>{name}>{range}". While files are just represented as "{range}".
35
+ # so the above example will parse as follows:
36
+ #
37
+ # - template>shot> 6 ~> 9
38
+ #
39
+ # =======================================
40
+ # | // New file
41
+ # | // Write here
42
+ # | // When you can
43
+ # ======================================
44
+ #
45
+ # - 9 ~> 12
46
+ #
47
+ # =======================================
48
+ # | File 1
49
+ # | Content 1 of file 1
50
+ # | Content 2 of file 1
51
+ # ======================================
52
+ #
53
+ # - 12 ~> 15
54
+ #
55
+ # =======================================
56
+ # | File 2
57
+ # | Content 1 of file 2
58
+ # | Content 2 of file 2
59
+ # ======================================
60
+ #
61
+ # - 15 ~> 18
62
+ #
63
+ # =======================================
64
+ # | File 3
65
+ # | Content 1 of file 3
66
+ # | Content 2 of file 3
67
+ # ======================================
68
+ #
69
+ class Header # rubocop:disable Metrics/ClassLength
70
+ START_TAG = "<######"
71
+ CLOSE_TAG = "######>"
72
+
73
+ attr_reader :path, :cursor, :line_index
74
+
75
+ def initialize(path)
76
+ @path = path
77
+ @iterator = File.foreach(path, chomp: true)
78
+ @line_index = 0
79
+ @cursor = -1
80
+ @snapshots = []
81
+ @templates = []
82
+ end
83
+
84
+ def parse
85
+ return if @iterator.size.zero? # rubocop:disable Style/ZeroLengthPredicate
86
+
87
+ verify_first_header
88
+ parse_header_template_lines
89
+ parse_header_snapshot_lines
90
+ parse_snapshots
91
+
92
+ raise CorruptFormat, " Content remains after parsing." unless peek_line.nil?
93
+ end
94
+
95
+ def snapshot_count
96
+ @snapshots.length
97
+ end
98
+
99
+ def add_snapshot(content)
100
+ last_snapshot = @snapshots[-1]
101
+ start = last_snapshot&.stop || 3
102
+ snapshot = Snapshot.new(start, start + content.length)
103
+ snapshot.content = content
104
+ last_snapshot&.next_snapshot = snapshot
105
+ @snapshots.push(snapshot)
106
+ reset_cursor
107
+ end
108
+
109
+ def cursor_content
110
+ @snapshots[@cursor]&.content
111
+ end
112
+
113
+ def remove_cursor_snapshot
114
+ snapshot = @snapshots[@cursor]
115
+ return unless snapshot
116
+
117
+ snapshot_before = @snapshots[@cursor - 1]
118
+ snapshot_before.next_snapshot = snapshot.next_snapshot if snapshot_before
119
+ @snapshots = @snapshots[0, @cursor].concat(@snapshots[@cursor + 1..])
120
+ end
121
+
122
+ def to_writable_lines
123
+ [*head_lines, *template_lines, *snapshot_lines]
124
+ end
125
+
126
+ private
127
+
128
+ def reset_cursor
129
+ @cursor = @snapshots.length - 1
130
+ end
131
+
132
+ def verify_first_header
133
+ first_line = next_line
134
+ /\A<\#{6}(?<cursor>\d+)\z/ =~ first_line
135
+ raise CorruptFormat unless cursor
136
+
137
+ @cursor = cursor.to_i
138
+ end
139
+
140
+ def parse_header_template_lines
141
+ loop do
142
+ break unless /\A\s*template>(?<name>\w+)>\s*(?<start>\d+)\s*~>\s*(?<stop>\d+)\s*\z/ =~ peek_line
143
+
144
+ next_line
145
+ @templates.push(Snapshot.new(start.to_i, stop.to_i, name))
146
+ end
147
+ end
148
+
149
+ def parse_header_snapshot_lines
150
+ loop do
151
+ line = next_line
152
+ unless /\A\s*(?<start>\d+)\s*~>\s*(?<stop>\d+)\s*\z/ =~ line
153
+ break if line == CLOSE_TAG
154
+
155
+ raise CorruptFormat
156
+ end
157
+ raise CorruptFormat if stop.to_i < start.to_i
158
+
159
+ @snapshots.push Snapshot.new(start.to_i, stop.to_i)
160
+ end
161
+ end
162
+
163
+ def parse_snapshots
164
+ last_snap = nil
165
+ [*@templates, *@snapshots].each do |snap|
166
+ raise CorruptFormat, " Wrong indexing in header." if line_index != snap.start
167
+
168
+ snap.content = parse_snap_content(snap)
169
+
170
+ last_snap&.next_snapshot = snap
171
+ last_snap = snap
172
+ end
173
+ end
174
+
175
+ def parse_snap_content(snap)
176
+ result = []
177
+ (snap.stop - snap.start).times { result.push next_line }
178
+ result
179
+ end
180
+
181
+ def next_line
182
+ @line_index += 1
183
+ @iterator.next
184
+ rescue StopIteration
185
+ raise CorruptFormat, " No content to parse."
186
+ end
187
+
188
+ def peek_line
189
+ @iterator.peek
190
+ rescue StopIteration
191
+ nil
192
+ end
193
+
194
+ def head_lines
195
+ [
196
+ "#{START_TAG}#{cursor}",
197
+ *@templates.map { |template| "template>#{template.name}> #{template.start} ~> #{template.stop}" },
198
+ *@snapshots.map { |snap| "#{snap.start} ~> #{snap.stop}" },
199
+ CLOSE_TAG
200
+ ]
201
+ end
202
+
203
+ def template_lines
204
+ @templates.map(&:content).flatten
205
+ end
206
+
207
+ def snapshot_lines
208
+ @snapshots.map(&:content).flatten
209
+ end
210
+
211
+ # Snapshot for each file
212
+ class Snapshot
213
+ attr_reader :start, :stop, :name, :content
214
+ attr_accessor :next_snapshot
215
+
216
+ def initialize(start, stop, name = nil)
217
+ @start = start
218
+ @stop = stop
219
+ @name = name
220
+ end
221
+
222
+ def content=(value)
223
+ @content = value
224
+ update_stop
225
+ end
226
+
227
+ def update_start(new_start)
228
+ @start = new_start
229
+ update_stop
230
+ end
231
+
232
+ private
233
+
234
+ def update_stop
235
+ @stop = start + content.length
236
+ next_snapshot&.update_start @stop
237
+ end
238
+ end
239
+ end
240
+ end
241
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "English"
4
+
5
+ module Fileverse
6
+ # Previewer parses the main file to check if there is preview content
7
+ # and parse it if there is.
8
+ class Previewer
9
+ PREVIEW_HEAD = "=============SNAPSHOT============"
10
+ PREVIEW_FOOTER = "=================================="
11
+
12
+ attr_accessor :preview_content
13
+
14
+ def initialize(path)
15
+ @path = path
16
+ @main_content = []
17
+ @preview_content = []
18
+ end
19
+
20
+ def parse
21
+ content = File.read @path
22
+ # match = /#{TEMPLATE_HEAD}?(.*)#{TEMPLATE_FOOTER}?(.*)/ =~ conent
23
+ match = /(#{PREVIEW_HEAD})?(?(1)(.*)(#{PREVIEW_FOOTER})(.*)|(.*))/m =~ content
24
+ raise CorruptFormat, " Error: Parsing preview content" if match.nil?
25
+
26
+ @preview_content = $LAST_MATCH_INFO[2]&.split("\n") || []
27
+ @main_content = ($LAST_MATCH_INFO[5] || $LAST_MATCH_INFO[4]).split("\n") || []
28
+ end
29
+
30
+ def to_writable_lines
31
+ [*writable_preview_section, *@main_content]
32
+ end
33
+
34
+ private
35
+
36
+ def writable_preview_section
37
+ return @preview_content if @preview_content.empty?
38
+
39
+ [PREVIEW_HEAD, *@preview_content, PREVIEW_FOOTER]
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Fileverse
4
+ VERSION = "0.1.0"
5
+ end
data/lib/fileverse.rb ADDED
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "fileverse/version"
4
+ require_relative "fileverse/errors"
5
+ require_relative "fileverse/files"
6
+ require_relative "fileverse/parser"
7
+ require_relative "fileverse/previewer"
8
+
9
+ # Parent module
10
+ module Fileverse
11
+ def self.create_hidden_file(path)
12
+ File.open(path, "w") do |writer|
13
+ writer.write(inital_header)
14
+ end
15
+ end
16
+ end
17
+
18
+ require_relative "fileverse/cli"
data/sig/fileverse.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Fversion
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fileverse
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Unegbu Kingsley
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2025-04-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ description: |-
28
+ A ruby gem for keeping different versions for a file.
29
+ Allowing you to specify which version you want to use
30
+ email:
31
+ - kingsobino@gmail.com
32
+ executables:
33
+ - fileverse
34
+ extensions: []
35
+ extra_rdoc_files: []
36
+ files:
37
+ - ".rspec"
38
+ - ".rubocop.yml"
39
+ - CHANGELOG.md
40
+ - CODE_OF_CONDUCT.md
41
+ - LICENSE.txt
42
+ - README.md
43
+ - Rakefile
44
+ - exe/fileverse
45
+ - lib/fileverse.rb
46
+ - lib/fileverse/cli.rb
47
+ - lib/fileverse/errors.rb
48
+ - lib/fileverse/files.rb
49
+ - lib/fileverse/parser.rb
50
+ - lib/fileverse/previewer.rb
51
+ - lib/fileverse/version.rb
52
+ - sig/fileverse.rbs
53
+ homepage: https://github.com/urchmaney/fileverse
54
+ licenses:
55
+ - MIT
56
+ metadata:
57
+ homepage_uri: https://github.com/urchmaney/fileverse
58
+ source_code_uri: https://github.com/urchmaney/fileverse
59
+ changelog_uri: https://github.com/urchmaney/fileverse/changelog.md.
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 3.0.0
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubygems_version: 3.5.11
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: A ruby gem for keeping different versions for a file.
79
+ test_files: []