justprep 0.1.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -1
- data/README.md +1 -7
- data/justfile +44 -0
- data/justprep.gemspec +1 -2
- data/lib/justprep.rb +11 -24
- data/lib/justprep/version.rb +1 -1
- metadata +18 -4
- data/CHANGELOG.md +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed914c21c366068ea71cd655d4244ab64d09c23d84aa96c3e5ffee1da293c1ff
|
4
|
+
data.tar.gz: d511e8cc0a4f1b39a0a9a6154d3a2ce17f9953d5c7040f5216302cbb9de763b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b896b41fb0b38201332c7d37440383f6d2bffa4e6e3890c49dd8103a0c183dc537ee32ede80ffb655fa49627eeb6d76aa94e07e67cb5b2e70e05e913419636f
|
7
|
+
data.tar.gz: e1c08ac5bf2b996810cc56eaaf498e7c37de2332891633a274a4959d0cb48854d09c2fcca6f7a3f7972ec0d8e17cceb856c29e62f22f32a1f4acad0b13849218
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
justprep (
|
4
|
+
justprep (1.0.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
bump (0.10.0)
|
9
10
|
minitest (5.14.4)
|
10
11
|
rake (13.0.4)
|
11
12
|
|
@@ -13,6 +14,7 @@ PLATFORMS
|
|
13
14
|
x86_64-darwin-20
|
14
15
|
|
15
16
|
DEPENDENCIES
|
17
|
+
bump
|
16
18
|
justprep!
|
17
19
|
minitest (~> 5.0)
|
18
20
|
rake (~> 13.0)
|
data/README.md
CHANGED
@@ -8,13 +8,7 @@ A pre-processor to the "just" command-line utility packaged as a Ruby Gem.
|
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
## Development
|
14
|
-
|
15
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
16
|
-
|
17
|
-
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).
|
11
|
+
See the top-level README.md file.
|
18
12
|
|
19
13
|
## Contributing
|
20
14
|
|
data/justfile
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# github.com/MadBomber/justprep/**/ruby/justfile
|
2
|
+
#
|
3
|
+
# gem install bump
|
4
|
+
|
5
|
+
set positional-arguments := true
|
6
|
+
|
7
|
+
# List available recipes
|
8
|
+
@list:
|
9
|
+
echo
|
10
|
+
echo "Available Recipes at"
|
11
|
+
echo `pwd`
|
12
|
+
echo "are:"
|
13
|
+
echo
|
14
|
+
just -l --list-prefix 'just ' --list-heading ''
|
15
|
+
echo
|
16
|
+
|
17
|
+
|
18
|
+
# Build the current gem
|
19
|
+
build:
|
20
|
+
rake clean clobber build
|
21
|
+
|
22
|
+
|
23
|
+
#################################################
|
24
|
+
## Recipes that deal with the source code version
|
25
|
+
## Version manager is handled by the "bump" gem
|
26
|
+
|
27
|
+
# Set the version: major . minor . patch
|
28
|
+
@set version:
|
29
|
+
bump set {{version}} --no-commit --replace-in ../crystal/version.cr
|
30
|
+
|
31
|
+
|
32
|
+
# Show current version
|
33
|
+
@show:
|
34
|
+
bump current
|
35
|
+
|
36
|
+
|
37
|
+
# Bump the level: major . minor . patch
|
38
|
+
bump level='patch':
|
39
|
+
#!/bin/bash
|
40
|
+
if [[ "{{level}}" =~ ^(major|minor|patch)$ ]]; then
|
41
|
+
bump {{level}} --no-commit --replace-in ../crystal/version.cr
|
42
|
+
else
|
43
|
+
echo "ERROR: level must be one of: major, minor, patch"
|
44
|
+
fi
|
data/justprep.gemspec
CHANGED
data/lib/justprep.rb
CHANGED
@@ -1,31 +1,18 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
# warn_indent: true
|
4
|
-
|
5
4
|
##########################################################
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
## final text is written out to the "justfile" for processing
|
18
|
-
## with the "just" tool.
|
19
|
-
##
|
20
|
-
## The following system environment variable are supported:
|
21
|
-
##
|
22
|
-
## variable name default value
|
23
|
-
## --------------------- -------------
|
24
|
-
## JUSTPREP_FILENAME_IN ... main.just
|
25
|
-
## JUSTPREP_FILENAME_OUT ... justfile
|
26
|
-
## JUSTPREP_KEYWORDS ... 'import include require with'
|
27
|
-
##
|
28
|
-
## By: Dewayne VanHoozer (dvanhoozer@gmail.com)
|
5
|
+
# File: justprep.rb
|
6
|
+
# Desc: A preprocessor to "just" cli tool
|
7
|
+
# By: Dewayne VanHoozer (dvanhoozer@gmail.com)
|
8
|
+
#
|
9
|
+
# The following system environment variable are supported:
|
10
|
+
#
|
11
|
+
# variable name default value
|
12
|
+
# --------------------- -------------
|
13
|
+
# JUSTPREP_FILENAME_IN ... main.just
|
14
|
+
# JUSTPREP_FILENAME_OUT ... justfile
|
15
|
+
# JUSTPREP_KEYWORDS ... 'import include require with'
|
29
16
|
#
|
30
17
|
|
31
18
|
require "pathname"
|
data/lib/justprep/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: justprep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dewayne VanHoozer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
12
|
-
dependencies:
|
11
|
+
date: 2021-07-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bump
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
description: |
|
14
28
|
allows a "justfile" to be auto-generated from a seperate source file
|
15
29
|
that contains inclusionary keywords such as include, import, require
|
@@ -26,7 +40,6 @@ extensions: []
|
|
26
40
|
extra_rdoc_files: []
|
27
41
|
files:
|
28
42
|
- ".gitignore"
|
29
|
-
- CHANGELOG.md
|
30
43
|
- Gemfile
|
31
44
|
- Gemfile.lock
|
32
45
|
- LICENSE.txt
|
@@ -34,6 +47,7 @@ files:
|
|
34
47
|
- Rakefile
|
35
48
|
- bin/justprep
|
36
49
|
- bin/setup
|
50
|
+
- justfile
|
37
51
|
- justprep.gemspec
|
38
52
|
- lib/justprep.rb
|
39
53
|
- lib/justprep/version.rb
|