Initial commit

This commit is contained in:
2026-07-15 17:29:31 -06:00
commit e1eb492535
10 changed files with 121 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
root = true
[*.cr]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
+5
View File
@@ -0,0 +1,5 @@
/docs/
/lib/
/bin/
/.shards/
*.dwarf
+17
View File
@@ -0,0 +1,17 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2026 koffee.zip
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
+27
View File
@@ -0,0 +1,27 @@
# rete
TODO: Write a description here
## Installation
TODO: Write installation instructions here
## Usage
TODO: Write usage instructions here
## Development
TODO: Write development instructions here
## Contributing
1. Fork it (<https://github.com/your-github-user/rete/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [koffee.zip](https://github.com/your-github-user) - creator and maintainer
+3
View File
@@ -0,0 +1,3 @@
403
200
301
+10
View File
@@ -0,0 +1,10 @@
version: 2.0
shards:
prop:
git: https://github.com/nicolab/crystal-prop.git
version: 0.7.1
validator:
git: https://github.com/nicolab/crystal-validator.git
version: 1.11.0
+17
View File
@@ -0,0 +1,17 @@
name: rete
version: 0.1.0
authors:
- koffee.zip <koffeejava@tuta.io>
targets:
rete:
main: src/rete.cr
dependencies:
validator:
github: nicolab/crystal-validator
crystal: '>= 1.20.3'
license: GPL
+9
View File
@@ -0,0 +1,9 @@
require "./spec_helper"
describe Rete do
# TODO: Write tests
it "works" do
false.should eq(true)
end
end
+2
View File
@@ -0,0 +1,2 @@
require "spec"
require "../src/rete"
+22
View File
@@ -0,0 +1,22 @@
require "http/client"
require "validator"
repeat = 0
config = File.read("config.txt")
while repeat < ARGV.size
if Valid.url? ARGV[repeat]
response = HTTP::Client.get(ARGV[repeat])
if config.includes?(response.status_code.to_s)
puts "#{ARGV[repeat]} is a valid URL and works. #{response.status_code}"
else
puts "#{ARGV[repeat]} is a valid URL but does not work. #{response.status_code}"
end
elsif
puts "#{ARGV[repeat]} is not a valid URL"
end
repeat += 1
end
puts "=======================\nFinished"