klue-langcraft 0.0.2

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: db82a018d629b1b3a091f75c8d198810bf3a9c705fa49bc21803b4e2f2004779
4
+ data.tar.gz: 6bc81295543d0721655e4185e165963556ab7b341f2162e853bfad56fd1f84d3
5
+ SHA512:
6
+ metadata.gz: b76e65a01e6234bbc07be46ab9e2888abae30576c337f9d89e6508024641ab1633d11970ea7fb91c82dadd0e2daedef8069de3d8e892d4157f4966dda25df261
7
+ data.tar.gz: 5d2417bbd30757039d1b8ee2a632d5248297b7860db7530ff7060f329f424cca2a196e24bc08e5f5acc403c5f9da2891b1921f334d8d07ec16ece810ba94eb54
data/.builders/_.rb ADDED
@@ -0,0 +1 @@
1
+ # require_relative './path/here'
data/.builders/boot.rb ADDED
@@ -0,0 +1,39 @@
1
+ # Boot Sequence
2
+
3
+ include KLog::Logging
4
+
5
+ CONFIG_KEY = :klue_langcraft
6
+
7
+ log.kv 'working folder', Dir.pwd
8
+
9
+ KConfig.configure do |config|
10
+ config.handlebars.defaults.add_all_defaults
11
+ end
12
+
13
+ def k_builder
14
+ @k_builder ||= KBuilder::BaseBuilder.init(KConfig.configuration(CONFIG_KEY))
15
+ end
16
+
17
+ KConfig.configure(CONFIG_KEY) do |config|
18
+ builder_folder = Dir.pwd
19
+ base_folder = File.expand_path('../', builder_folder)
20
+ global_template = File.expand_path('~/dev/kgems/k_templates/templates')
21
+
22
+ config.template_folders.add(:global_template , global_template)
23
+ config.template_folders.add(:template , File.expand_path('.templates', Dir.pwd))
24
+
25
+ config.target_folders.add(:app , base_folder)
26
+ config.target_folders.add(:builder , builder_folder)
27
+ end
28
+
29
+ KConfig.configuration(CONFIG_KEY).debug
30
+
31
+ area = KManager.add_area(CONFIG_KEY)
32
+ resource_manager = area.resource_manager
33
+ resource_manager
34
+ .fileset
35
+ .glob('*.rb', exclude: ['boot.rb'])
36
+ .glob('generators/**/*.rb')
37
+ resource_manager.add_resources
38
+
39
+ KManager.boot
@@ -0,0 +1,135 @@
1
+ KManager.action :bootstrap do
2
+ action do
3
+ application_name = 'klue-langcraft'
4
+
5
+ # Ruby Gem Bootstrap
6
+ director = KDirector::Dsls::RubyGemDsl
7
+ .init(k_builder,
8
+ on_exist: :skip, # %i[skip write compare]
9
+ on_action: :queue # %i[queue execute]
10
+ )
11
+ .data(
12
+ ruby_version: '3.0',
13
+ application: application_name,
14
+ application_description: 'Domain Specific Language Crafting',
15
+ application_lib_path: application_name.to_s, # need a specialized handlebars helper to turn this into a path, e.g ps-common => ps/common
16
+ application_lib_namespace: 'Klue::Langcraft',
17
+ namespaces: ['Klue', 'Langcraft'],
18
+ author: 'David Cruwys',
19
+ author_email: 'david@ideasmen.com.au',
20
+ initial_semver: '0.0.1',
21
+ main_story: 'As a DSL designer, I want to testing out Domain Specific Language designs for different usecases, so that I can develop DSLs quickly and effectively',
22
+ copyright_date: '2024',
23
+ website: 'http://appydave.com/gems/klue-langcraft'
24
+ )
25
+ .github(
26
+ active: false,
27
+ repo_name: application_name,
28
+ organization: 'appydave'
29
+ ) do
30
+ create_repository
31
+ # delete_repository
32
+ # list_repositories
33
+ open_repository
34
+ # run_command('git init')
35
+ end
36
+ .blueprint(
37
+ active: false,
38
+ name: :bin_hook,
39
+ description: 'initialize repository',
40
+ on_exist: :write) do
41
+
42
+ cd(:app)
43
+
44
+ run_template_script('bin/runonce/git-setup.sh', dom: dom)
45
+
46
+ add('.githooks/commit-msg').run_command('chmod +x .githooks/commit-msg')
47
+ add('.githooks/pre-commit').run_command('chmod +x .githooks/pre-commit')
48
+
49
+ add('.gitignore')
50
+
51
+ run_command('git config core.hooksPath .githooks') # enable sharable githooks (developer needs to turn this on before editing rep)
52
+
53
+ run_command("git add .; git commit -m 'chore: #{self.options.description.downcase}'; git push")
54
+ run_command("gh repo edit -d \"#{dom[:application_description]}\"")
55
+ end
56
+ .package_json(
57
+ active: false,
58
+ name: :package_json,
59
+ description: 'Set up the package.json file for semantic versioning'
60
+ ) do
61
+ self
62
+ .add('package.json', dom: dom)
63
+ .play_actions
64
+
65
+ self
66
+ .add_script('release', 'semantic-release')
67
+ .sort
68
+ .development
69
+ .npm_add_group('semver-ruby')
70
+
71
+ run_command("git add .; git commit -m 'chore: #{self.options.description.downcase}'; git push")
72
+ end
73
+ .blueprint(
74
+ active: false,
75
+ name: :opinionated,
76
+ description: 'opinionated GEM files',
77
+ on_exist: :write) do
78
+
79
+ cd(:app)
80
+
81
+ add('bin/setup')
82
+ add('bin/console')
83
+
84
+ applet_path = typed_dom.namespaces.map { |ns| ns.downcase }.join('/')
85
+
86
+ add("lib/#{applet_path}.rb" , template_file: 'lib/applet_name.rb' , dom: dom)
87
+ add("lib/#{applet_path}/version.rb" , template_file: 'lib/applet_name/version.rb' , dom: dom)
88
+
89
+ add('spec/spec_helper.rb')
90
+ add("spec/#{applet_path}_spec.rb" , template_file: 'spec/applet_name_spec.rb', dom: dom)
91
+
92
+ add("#{typed_dom.application}.gemspec" , template_file: 'applet_name.gemspec', dom: dom)
93
+ add('Gemfile', dom: dom)
94
+ add('Guardfile', dom: dom)
95
+ add('Rakefile', dom: dom)
96
+ add('.rspec', dom: dom)
97
+ add('.rubocop.yml', dom: dom)
98
+ add('README.md', dom: dom)
99
+ add('CODE_OF_CONDUCT.md', dom: dom)
100
+ add('LICENSE.txt', dom: dom)
101
+
102
+ run_command("rubocop -a")
103
+
104
+ run_command("git add .; git commit -m 'chore: #{self.options.description.downcase}'; git push")
105
+ end
106
+ .blueprint(
107
+ active: true,
108
+ name: :ci_cd,
109
+ description: 'github actions (CI/CD)',
110
+ on_exist: :write) do
111
+
112
+ cd(:app)
113
+
114
+ # run_command("gh secret set SLACK_WEBHOOK --body \"$SLACK_REPO_WEBHOOK\"")
115
+ run_command("gh secret set GEM_HOST_API_KEY --body \"$GEM_HOST_API_KEY\"")
116
+
117
+ add('.github/workflows/main.yml')
118
+ add('.releaserc.json')
119
+
120
+ run_command("git add .; git commit -m 'chore: #{self.options.description.downcase}'; git push")
121
+ end
122
+
123
+ director.play_actions
124
+ # director.builder.logit
125
+ end
126
+ end
127
+
128
+ KManager.opts.app_name = 'klue-langcraft'
129
+ KManager.opts.sleep = 2
130
+ KManager.opts.reboot_on_kill = 0
131
+ KManager.opts.reboot_sleep = 4
132
+ KManager.opts.exception_style = :short
133
+ KManager.opts.show.time_taken = true
134
+ KManager.opts.show.finished = true
135
+ KManager.opts.show.finished_message = 'FINISHED :)'
data/.releaserc.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "branches": [
3
+ "main"
4
+ ],
5
+ "plugins": [
6
+ "@semantic-release/commit-analyzer",
7
+ "@semantic-release/release-notes-generator",
8
+ [
9
+ "@semantic-release/npm",
10
+ {
11
+ "npmPublish": false
12
+ }
13
+ ],
14
+ [
15
+ "@klueless-js/semantic-release-rubygem",
16
+ {
17
+ "gemPublish": true
18
+ }
19
+ ],
20
+ [
21
+ "@semantic-release/changelog",
22
+ {
23
+ "changelogFile": "CHANGELOG.md",
24
+ "changelogFileTitle": "Klue Langcraft Changelog"
25
+ }
26
+ ],
27
+ [
28
+ "@semantic-release/git",
29
+ {
30
+ "assets": [
31
+ "lib/klue-langcraft/version.rb",
32
+ "CHANGELOG.md"
33
+ ],
34
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
35
+ }
36
+ ],
37
+ "@semantic-release/github"
38
+ ],
39
+ "repositoryUrl": "git@github.com:appydave/klue-langcraft.git"
40
+ }
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,106 @@
1
+ inherit_mode:
2
+ merge:
3
+ - Exclude # see: https://stackoverflow.com/a/70818366/473923
4
+ - AllowedNames
5
+ require:
6
+ - rubocop-rspec
7
+ - rubocop-rake
8
+
9
+ AllCops:
10
+ TargetRubyVersion: 3.0
11
+ DisplayCopNames: true
12
+ ExtraDetails: true
13
+ NewCops: enable
14
+ Exclude:
15
+ - ".builders/**/*"
16
+ - "spec/samples/**/*"
17
+
18
+ Metrics/BlockLength:
19
+ Exclude:
20
+ - "**/spec/**/*"
21
+ - "*.gemspec"
22
+ AllowedMethods:
23
+ - configure
24
+ - context
25
+ - define
26
+ - describe
27
+ - draw
28
+ - factory
29
+ - feature
30
+ - guard
31
+ - included
32
+ - it
33
+ - let
34
+ - let!
35
+ - scenario
36
+ - setup
37
+ - shared_context
38
+ - shared_examples
39
+ - shared_examples_for
40
+ - transaction
41
+
42
+ Metrics/MethodLength:
43
+ Max: 25
44
+
45
+ Layout/LineLength:
46
+ Max: 200
47
+ # Ignores annotate output
48
+ # AllowedPatterns: ['\A# \*\*'] # this is renamed to AllowedPatterns and I need to come up with a template for this
49
+ IgnoreCopDirectives: true
50
+
51
+ Lint/UnusedMethodArgument:
52
+ AllowUnusedKeywordArguments: true
53
+
54
+ Style/BlockComments:
55
+ Enabled: false
56
+ Include:
57
+ - "**/spec/*"
58
+
59
+ # My Preferences - Start
60
+ Metrics/ClassLength:
61
+ Enabled: false
62
+ Metrics/ModuleLength:
63
+ Exclude:
64
+ - "**/spec/**/*"
65
+ Naming/MemoizedInstanceVariableName:
66
+ Enabled: false
67
+ Naming/VariableNumber:
68
+ Exclude:
69
+ - "**/spec/**/*"
70
+ Naming/MethodParameterName:
71
+ AllowedNames:
72
+ - as
73
+ Style/EmptyMethod:
74
+ Exclude:
75
+ - "**/spec/**/*"
76
+ Metrics/ParameterLists:
77
+ Exclude:
78
+ - "**/spec/**/*"
79
+ Layout/EmptyLineBetweenDefs:
80
+ Exclude:
81
+ - "**/spec/**/*"
82
+
83
+ Lint/AmbiguousBlockAssociation:
84
+ Exclude:
85
+ - "**/spec/**/*"
86
+
87
+ Style/AccessorGrouping:
88
+ Enabled: false
89
+
90
+ Layout/SpaceBeforeComma:
91
+ Enabled: false
92
+ # My Preferences - End
93
+
94
+ # RSpec Cops
95
+ RSpec/NestedGroups:
96
+ Max: 5
97
+
98
+ RSpec/SpecFilePathFormat:
99
+ Enabled: true
100
+
101
+ RSpec/SpecFilePathSuffix:
102
+ Enabled: true
103
+
104
+ RSpec/NamedSubject:
105
+ Exclude:
106
+ - "**/spec/**/*"
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.3.4
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-09-20
4
+
5
+ - Initial release
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ - Using welcoming and inclusive language
18
+ - Being respectful of differing viewpoints and experiences
19
+ - Gracefully accepting constructive criticism
20
+ - Focusing on what is best for the community
21
+ - Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ - The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ - Trolling, insulting/derogatory comments, and personal or political attacks
28
+ - Public or private harassment
29
+ - Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ - Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at david.cruwys@bugcrowd.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in klue-langcraft.gemspec
6
+ gemspec
7
+
8
+ group :development, :test do
9
+ gem 'guard-bundler'
10
+ gem 'guard-rspec'
11
+ gem 'guard-rubocop'
12
+ gem 'rake'
13
+ gem 'rake-compiler', require: false
14
+ gem 'rspec', '~> 3.0'
15
+ gem 'rubocop'
16
+ gem 'rubocop-rake', require: false
17
+ gem 'rubocop-rspec', require: false
18
+ end
19
+
20
+ group :test do
21
+ gem 'simplecov', require: false
22
+ end
data/Guardfile ADDED
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ guard :bundler, cmd: 'bundle install' do
4
+ watch('Gemfile')
5
+ watch('.gemspec')
6
+ end
7
+
8
+ group :green_pass_then_cop, halt_on_fail: true do
9
+ guard :rspec, cmd: 'bundle exec rspec -f doc' do
10
+ require 'guard/rspec/dsl'
11
+ dsl = Guard::RSpec::Dsl.new(self)
12
+
13
+ # RSpec files
14
+ rspec = dsl.rspec
15
+ watch(rspec.spec_helper) { rspec.spec_dir }
16
+ watch(rspec.spec_support) { rspec.spec_dir }
17
+ watch(rspec.spec_files)
18
+
19
+ # Ruby files
20
+ ruby = dsl.ruby
21
+ dsl.watch_spec_files_for(ruby.lib_files)
22
+ watch(%r{^lib//(.+)\.rb$}) { |m| "spec/unit/#{m[1]}_spec.rb" }
23
+ watch(%r{^lib//commands/(.+)\.rb$}) { |m| "spec/unit/commands/#{m[1]}_spec.rb" }
24
+ end
25
+
26
+ guard :rubocop, all_on_start: false, cli: ['--format', 'clang'] do
27
+ watch(/{.+\.rb$/)
28
+ watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
29
+ end
30
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 David Cruwys
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,109 @@
1
+ # Klue Langcraft
2
+
3
+ > Domain Specific Language Crafting
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'klue-langcraft'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ ```bash
16
+ bundle install
17
+ ```
18
+
19
+ Or install it yourself as:
20
+
21
+ ```bash
22
+ gem install klue-langcraft
23
+ ```
24
+
25
+ ## Stories
26
+
27
+ ### Main Story
28
+
29
+ As a DSL designer, I want to testing out Domain Specific Language designs for different usecases, so that I can develop DSLs quickly and effectively
30
+
31
+ See all [stories](./STORIES.md)
32
+
33
+
34
+ ## Usage
35
+
36
+ See all [usage examples](./USAGE.md)
37
+
38
+
39
+
40
+ ## Development
41
+
42
+ Checkout the repo
43
+
44
+ ```bash
45
+ git clone https://github.com/appydave/klue-langcraft
46
+ ```
47
+
48
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
49
+
50
+ You can also run `bin/console` for an interactive prompt that will allow you to experiment.
51
+
52
+ ```bash
53
+ bin/console
54
+
55
+ Aaa::Bbb::Program.execute()
56
+ # => ""
57
+ ```
58
+
59
+ `klue-langcraft` is setup with Guard, run `guard`, this will watch development file changes and run tests automatically, if successful, it will then run rubocop for style quality.
60
+
61
+ To release a new version, update the version number in `version.rb`, build the gem and push the `.gem` file to [rubygems.org](https://rubygems.org).
62
+
63
+ ```bash
64
+ rake publish
65
+ rake clean
66
+ ```
67
+
68
+ ## Git helpers used by this project
69
+
70
+ Add the follow helpers to your `alias` file
71
+
72
+ ```bash
73
+ function kcommit()
74
+ {
75
+ echo 'git add .'
76
+ git add .
77
+ echo "git commit -m "$1""
78
+ git commit -m "$1"
79
+ echo 'git pull'
80
+ git pull
81
+ echo 'git push'
82
+ git push
83
+ sleep 3
84
+ run_id="$(gh run list --limit 1 | grep -Eo "[0-9]{9,11}")"
85
+ gh run watch $run_id --exit-status && echo "run completed and successful" && git pull && git tag | sort -V | tail -1
86
+ }
87
+ function kchore () { kcommit "chore: $1" }
88
+ function kdocs () { kcommit "docs: $1" }
89
+ function kfix () { kcommit "fix: $1" }
90
+ function kfeat () { kcommit "feat: $1" }
91
+ function ktest () { kcommit "test: $1" }
92
+ function krefactor () { kcommit "refactor: $1" }
93
+ ```
94
+
95
+ ## Contributing
96
+
97
+ Bug reports and pull requests are welcome on GitHub at https://github.com/klueless-io/klue-langcraft. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
98
+
99
+ ## License
100
+
101
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
102
+
103
+ ## Code of Conduct
104
+
105
+ Everyone interacting in the Klue Langcraft project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/klueless-io/klue-langcraft/blob/master/CODE_OF_CONDUCT.md).
106
+
107
+ ## Copyright
108
+
109
+ Copyright (c) David Cruwys. See [MIT License](LICENSE.txt) for further details.
data/Rakefile ADDED
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # source: https://stephenagrice.medium.com/making-a-command-line-ruby-gem-write-build-and-push-aec24c6c49eb
4
+
5
+ GEM_NAME = 'klue_langcraft'
6
+
7
+ require 'bundler/gem_tasks'
8
+ require 'rspec/core/rake_task'
9
+ require 'klue-langcraft/version'
10
+
11
+ RSpec::Core::RakeTask.new(:spec)
12
+
13
+ require 'rake/extensiontask'
14
+
15
+ desc 'Compile all the extensions'
16
+ task build: :compile
17
+
18
+ Rake::ExtensionTask.new('klue-langcraft') do |ext|
19
+ ext.lib_dir = 'lib/klue-langcraft'
20
+ end
21
+
22
+ desc 'Publish the gem to RubyGems.org'
23
+ task :publish do
24
+ version = Klue::Langcraft::VERSION
25
+ system 'gem build'
26
+ system "gem push #{GEM_NAME}-#{version}.gem"
27
+ end
28
+
29
+ desc 'Remove old *.gem files'
30
+ task :clean do
31
+ system 'rm *.gem'
32
+ end
33
+
34
+ task default: %i[clobber compile spec]
data/bin/console ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # frozen_string_literal: true
4
+
5
+ require 'bundler/setup'
6
+ require 'klue_langcraft'
7
+
8
+ # You can add fixtures and/or initialization code here to make experimenting
9
+ # with your gem easier. You can also use a different console, if you like.
10
+
11
+ # (If you use this, don't forget to add pry to your Gemfile!)
12
+ # require 'pry'
13
+ # Pry.start
14
+
15
+ require 'irb'
16
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # frozen_string_literal: true
4
+
5
+ set -euo pipefail
6
+ IFS=$'\n\t'
7
+ set -vx
8
+
9
+ bundle install
10
+
11
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Klue
4
+ module Langcraft
5
+ VERSION = '0.0.2'
6
+ end
7
+ end