diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4834e46 --- /dev/null +++ b/.gitignore @@ -0,0 +1,44 @@ +*.gem +*.rbc +*.so + +/.byebug_history +/.config/ +/.rake_tasks~ +/InstalledFiles/ +/pkg/ +/tmp/ + +# Used by dotenv library to load environment variables. +/.env + +# RSpec configuration and generated files. +/.rspec +/coverage/ +/spec/examples.txt +/spec/reports/ +/test/tmp/ +/test/version_tmp/ + +# 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?--* diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..3b87b26 --- /dev/null +++ b/Gemfile @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +source 'https://rubygems.org' + +# Specify your gem's dependencies in diversipub.gemspec +gemspec diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..42b739c --- /dev/null +++ b/Rakefile @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +require 'bundler/gem_tasks' + +task default: [] + +desc 'Open development console' +task :console do + sh 'bundle', 'exec', File.expand_path(File.join('bin', 'console'), __dir__) +end diff --git a/bin/console b/bin/console new file mode 100755 index 0000000..96ce2c4 --- /dev/null +++ b/bin/console @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +require 'bundler/setup' +require 'diversipub' +require 'pry' + +Pry.start diff --git a/bin/setup b/bin/setup new file mode 100755 index 0000000..b0f0b0a --- /dev/null +++ b/bin/setup @@ -0,0 +1,7 @@ +#!/bin/sh + +set -eux + +bundle install + +# Do any other automated setup that you need to do here diff --git a/diversipub.gemspec b/diversipub.gemspec new file mode 100644 index 0000000..d8a8a83 --- /dev/null +++ b/diversipub.gemspec @@ -0,0 +1,46 @@ +# frozen_string_literal: true + +require_relative 'lib/diversipub/version' + +Gem::Specification.new do |spec| + repo = 'https://git.causa-arcana.com/causa-arcana/diversipub' + home = repo + bugs = "#{repo}/issues" + docs = "https://www.rubydoc.info/gems/diversipub/#{Diversipub::VERSION}" + + spec.name = 'diversipub' + spec.version = Diversipub::VERSION + spec.license = 'MIT' + spec.homepage = home + spec.platform = Gem::Platform::RUBY + + spec.required_ruby_version = '~> 3.0' + + spec.authors = ['Alex Kotov'] + spec.email = ['kotovalexarian@gmail.com'] + + spec.summary = '' + + spec.description = <<~DESCRIPTION.split("\n").map(&:strip).join ' ' + DESCRIPTION + + spec.metadata['rubygems_mfa_required'] = 'true' + spec.metadata['homepage_uri'] = home + spec.metadata['source_code_uri'] = home + spec.metadata['bug_tracker_uri'] = bugs + spec.metadata['documentation_uri'] = docs + + spec.bindir = 'exe' + spec.require_paths = ['lib'] + + spec.files = Dir.chdir File.expand_path __dir__ do + `git ls-files -z`.split("\x0").reject do |f| + f.match %r{\A(?:test|spec|features)/} + end + end + + spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename f } + + spec.add_development_dependency 'pry', '~> 0.14' + spec.add_development_dependency 'rake', '~> 13.0' +end diff --git a/exe/diversipub b/exe/diversipub new file mode 100755 index 0000000..dd3a09c --- /dev/null +++ b/exe/diversipub @@ -0,0 +1,4 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +require 'diversipub' diff --git a/lib/diversipub.rb b/lib/diversipub.rb new file mode 100644 index 0000000..cbe2631 --- /dev/null +++ b/lib/diversipub.rb @@ -0,0 +1,3 @@ +# frozen_string_literal: true + +require_relative 'diversipub/version' diff --git a/lib/diversipub/version.rb b/lib/diversipub/version.rb new file mode 100644 index 0000000..82c96ae --- /dev/null +++ b/lib/diversipub/version.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +module Diversipub + VERSION = '0.0.0' +end