From ca1ab0a6f2b4c64670ed2ed336b07941af922f5b Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 14 Sep 2022 10:35:02 +0200 Subject: [PATCH] crystal init -s app . --- .editorconfig | 9 +++++++ .gitignore | 63 ++++----------------------------------------- README.md | 2 +- shard.lock | 2 ++ shard.yml | 19 ++++++++++++++ spec/myhunt_spec.cr | 9 +++++++ spec/spec_helper.cr | 2 ++ src/myhunt.cr | 6 +++++ 8 files changed, 53 insertions(+), 59 deletions(-) create mode 100644 .editorconfig create mode 100644 shard.lock create mode 100644 shard.yml create mode 100644 spec/myhunt_spec.cr create mode 100644 spec/spec_helper.cr create mode 100644 src/myhunt.cr diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..163eb75 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.gitignore b/.gitignore index d6aa672..0bb75ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,58 +1,5 @@ -# ---> Ruby -*.gem -*.rbc -/.config -/coverage/ -/InstalledFiles -/pkg/ -/spec/reports/ -/spec/examples.txt -/test/tmp/ -/test/version_tmp/ -/tmp/ - -# Used by dotenv library to load environment variables. -# .env - -# Ignore Byebug command history file. -.byebug_history - -## Specific to RubyMotion: -.dat* -.repl_history -build/ -*.bridgesupport -build-iPhoneOS/ -build-iPhoneSimulator/ - -## Specific to RubyMotion (use of CocoaPods): -# -# We recommend against adding the Pods directory to your .gitignore. However -# you should judge for yourself, the pros and cons are mentioned at: -# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control -# -# vendor/Pods/ - -## Documentation cache and generated files: -/.yardoc/ -/_yardoc/ -/doc/ -/rdoc/ - -## Environment normalization: -/.bundle/ -/vendor/bundle -/lib/bundler/man/ - -# for a library or gem, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# Gemfile.lock -# .ruby-version -# .ruby-gemset - -# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: -.rvmrc - -# Used by RuboCop. Remote config files pulled in from inherit_from directive. -# .rubocop-https?--* - +/docs/ +/lib/ +/bin/ +/.shards/ +*.dwarf diff --git a/README.md b/README.md index 6fb425a..77180ac 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # myhunt -Implementing HP {48,49,50} minehunt game \ No newline at end of file +Implementing HP {48,49,50} minehunt game diff --git a/shard.lock b/shard.lock new file mode 100644 index 0000000..4f3e149 --- /dev/null +++ b/shard.lock @@ -0,0 +1,2 @@ +version: 2.0 +shards: {} diff --git a/shard.yml b/shard.yml new file mode 100644 index 0000000..b857883 --- /dev/null +++ b/shard.yml @@ -0,0 +1,19 @@ +name: myhunt +version: 0.1.0 + +authors: + - Gwenhael Le Moine + +description: | + Implementing HP {48,49,50} minehunt game + +# dependencies: +# pg: +# github: will/crystal-pg +# version: "~> 0.5" + +# development_dependencies: +# webmock: +# github: manastech/webmock.cr + +license: https://www.gnu.org/licenses/gpl.html diff --git a/spec/myhunt_spec.cr b/spec/myhunt_spec.cr new file mode 100644 index 0000000..9ca7922 --- /dev/null +++ b/spec/myhunt_spec.cr @@ -0,0 +1,9 @@ +require "./spec_helper" + +describe Myhunt do + # TODO: Write tests + + it "works" do + false.should eq(true) + end +end diff --git a/spec/spec_helper.cr b/spec/spec_helper.cr new file mode 100644 index 0000000..de5e08b --- /dev/null +++ b/spec/spec_helper.cr @@ -0,0 +1,2 @@ +require "spec" +require "../src/myhunt" diff --git a/src/myhunt.cr b/src/myhunt.cr new file mode 100644 index 0000000..191d0c9 --- /dev/null +++ b/src/myhunt.cr @@ -0,0 +1,6 @@ +# TODO: Write documentation for `Myhunt` +module Myhunt + VERSION = "0.1.0" + + # TODO: Put your code here +end