ruby_leiningen 0.15.0 → 0.20.0.pre.1
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 +4 -4
- data/Gemfile.lock +36 -33
- data/Rakefile +1 -4
- data/lib/ruby_leiningen/commands.rb +3 -0
- data/lib/ruby_leiningen/commands/check.rb +2 -0
- data/lib/ruby_leiningen/commands/clean.rb +2 -0
- data/lib/ruby_leiningen/commands/deps.rb +2 -0
- data/lib/ruby_leiningen/commands/mixins/environment.rb +29 -0
- data/lib/ruby_leiningen/commands/mixins/profile.rb +1 -0
- data/lib/ruby_leiningen/commands/plugins/cljstyle.rb +13 -0
- data/lib/ruby_leiningen/commands/release.rb +2 -0
- data/lib/ruby_leiningen/commands/run.rb +2 -0
- data/lib/ruby_leiningen/commands/uberjar.rb +2 -0
- data/lib/ruby_leiningen/commands/version.rb +5 -0
- data/lib/ruby_leiningen/version.rb +1 -1
- data/ruby_leiningen.gemspec +1 -1
- data/scripts/ci/steps/prerelease.sh +5 -0
- data/scripts/ci/steps/release.sh +5 -0
- metadata +10 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00b70c38cd754da90a447b5afadda27a36b48cc5e2c03704b991b95d2a0387ca
|
|
4
|
+
data.tar.gz: 9cc8447859796905d74544d295223b8acc2e5233f76148603baf8898e596ad2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 195a3a0572dbdb3a70970be7aad487a6a874e79774e0af7920d5796e7670703992ed018eecb691687fbf24f5f81fad2d58a0a8d965f4bbd6cb9c8fbb7bf1cfeb
|
|
7
|
+
data.tar.gz: c7957756a1adeb7f41c397a31fc7b59b28fffa32f8f4b1a5699fa976f789029f7ca3e555009b0e634e3524ad6e4c4acfdf9f6224289241727a866a114f4f87a7
|
data/Gemfile.lock
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ruby_leiningen (0.
|
|
4
|
+
ruby_leiningen (0.20.0.pre.1)
|
|
5
5
|
activesupport (~> 6.0, >= 6.0.2)
|
|
6
|
-
lino (
|
|
6
|
+
lino (>= 1.5)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
activesupport (6.0
|
|
11
|
+
activesupport (6.1.0)
|
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
13
|
-
i18n (>=
|
|
14
|
-
minitest (
|
|
15
|
-
tzinfo (~>
|
|
16
|
-
zeitwerk (~> 2.
|
|
13
|
+
i18n (>= 1.6, < 2)
|
|
14
|
+
minitest (>= 5.1)
|
|
15
|
+
tzinfo (~> 2.0)
|
|
16
|
+
zeitwerk (~> 2.3)
|
|
17
17
|
addressable (2.7.0)
|
|
18
18
|
public_suffix (>= 2.0.2, < 5.0)
|
|
19
19
|
colored2 (3.1.2)
|
|
20
|
-
concurrent-ruby (1.1.
|
|
21
|
-
diff-lcs (1.
|
|
22
|
-
excon (0.
|
|
23
|
-
faraday (1.0
|
|
20
|
+
concurrent-ruby (1.1.7)
|
|
21
|
+
diff-lcs (1.4.4)
|
|
22
|
+
excon (0.78.1)
|
|
23
|
+
faraday (1.1.0)
|
|
24
24
|
multipart-post (>= 1.2, < 3)
|
|
25
|
-
|
|
25
|
+
ruby2_keywords
|
|
26
|
+
gem-release (2.2.0)
|
|
26
27
|
hamster (3.0.0)
|
|
27
28
|
concurrent-ruby (~> 1.0)
|
|
28
|
-
i18n (1.8.
|
|
29
|
+
i18n (1.8.5)
|
|
29
30
|
concurrent-ruby (~> 1.0)
|
|
30
|
-
lino (1.
|
|
31
|
+
lino (1.5.0)
|
|
31
32
|
hamster (~> 3.0)
|
|
32
33
|
open4 (~> 1.3)
|
|
33
|
-
minitest (5.14.
|
|
34
|
+
minitest (5.14.2)
|
|
34
35
|
multipart-post (2.1.1)
|
|
35
|
-
octokit (4.
|
|
36
|
+
octokit (4.19.0)
|
|
36
37
|
faraday (>= 0.9)
|
|
37
38
|
sawyer (~> 0.8.0, >= 0.5.3)
|
|
38
39
|
open4 (1.3.4)
|
|
39
|
-
public_suffix (4.0.
|
|
40
|
+
public_suffix (4.0.6)
|
|
40
41
|
rake (13.0.1)
|
|
41
42
|
rake_circle_ci (0.7.0)
|
|
42
43
|
colored2 (~> 3.1)
|
|
@@ -55,30 +56,32 @@ GEM
|
|
|
55
56
|
colored2 (~> 3.1)
|
|
56
57
|
rake_factory (~> 0.23)
|
|
57
58
|
sshkey (~> 2.0)
|
|
58
|
-
rspec (3.
|
|
59
|
-
rspec-core (~> 3.
|
|
60
|
-
rspec-expectations (~> 3.
|
|
61
|
-
rspec-mocks (~> 3.
|
|
62
|
-
rspec-core (3.
|
|
63
|
-
rspec-support (~> 3.
|
|
64
|
-
rspec-expectations (3.
|
|
59
|
+
rspec (3.10.0)
|
|
60
|
+
rspec-core (~> 3.10.0)
|
|
61
|
+
rspec-expectations (~> 3.10.0)
|
|
62
|
+
rspec-mocks (~> 3.10.0)
|
|
63
|
+
rspec-core (3.10.0)
|
|
64
|
+
rspec-support (~> 3.10.0)
|
|
65
|
+
rspec-expectations (3.10.0)
|
|
65
66
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
66
|
-
rspec-support (~> 3.
|
|
67
|
-
rspec-mocks (3.
|
|
67
|
+
rspec-support (~> 3.10.0)
|
|
68
|
+
rspec-mocks (3.10.0)
|
|
68
69
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
69
|
-
rspec-support (~> 3.
|
|
70
|
-
rspec-support (3.
|
|
70
|
+
rspec-support (~> 3.10.0)
|
|
71
|
+
rspec-support (3.10.0)
|
|
72
|
+
ruby2_keywords (0.0.2)
|
|
71
73
|
sawyer (0.8.2)
|
|
72
74
|
addressable (>= 2.3.5)
|
|
73
75
|
faraday (> 0.8, < 2.0)
|
|
74
76
|
sshkey (2.0.0)
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
zeitwerk (2.3.0)
|
|
77
|
+
tzinfo (2.0.4)
|
|
78
|
+
concurrent-ruby (~> 1.0)
|
|
79
|
+
zeitwerk (2.4.2)
|
|
79
80
|
|
|
80
81
|
PLATFORMS
|
|
81
82
|
ruby
|
|
83
|
+
x86_64-darwin-19
|
|
84
|
+
x86_64-linux
|
|
82
85
|
|
|
83
86
|
DEPENDENCIES
|
|
84
87
|
bundler (~> 2.0)
|
|
@@ -91,4 +94,4 @@ DEPENDENCIES
|
|
|
91
94
|
ruby_leiningen!
|
|
92
95
|
|
|
93
96
|
BUNDLED WITH
|
|
94
|
-
2.
|
|
97
|
+
2.2.2
|
data/Rakefile
CHANGED
|
@@ -72,8 +72,5 @@ task :release do
|
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
def bump_version_for(version_type)
|
|
75
|
-
sh "gem bump --version #{version_type}
|
|
76
|
-
"&& bundle install " +
|
|
77
|
-
"&& export LAST_MESSAGE=\"$(git log -1 --pretty=%B)\" " +
|
|
78
|
-
"&& git commit -a --amend -m \"${LAST_MESSAGE} [ci skip]\""
|
|
75
|
+
sh "gem bump --version #{version_type}"
|
|
79
76
|
end
|
|
@@ -19,6 +19,9 @@ module RubyLeiningen
|
|
|
19
19
|
unless options[:include_profile_support] == false
|
|
20
20
|
include Mixins::Profile
|
|
21
21
|
end
|
|
22
|
+
unless options[:include_environment_support] == false
|
|
23
|
+
include Mixins::Environment
|
|
24
|
+
end
|
|
22
25
|
|
|
23
26
|
define_method "configure_command" do |builder, opts|
|
|
24
27
|
config = (config_block || lambda { |conf, _| conf })
|
|
@@ -2,11 +2,13 @@ require 'lino'
|
|
|
2
2
|
|
|
3
3
|
require_relative 'base'
|
|
4
4
|
require_relative 'mixins/profile'
|
|
5
|
+
require_relative 'mixins/environment'
|
|
5
6
|
|
|
6
7
|
module RubyLeiningen
|
|
7
8
|
module Commands
|
|
8
9
|
class Check < Base
|
|
9
10
|
include Mixins::Profile
|
|
11
|
+
include Mixins::Environment
|
|
10
12
|
|
|
11
13
|
def configure_command(builder, opts)
|
|
12
14
|
builder = super(builder, opts)
|
|
@@ -2,11 +2,13 @@ require 'lino'
|
|
|
2
2
|
|
|
3
3
|
require_relative 'base'
|
|
4
4
|
require_relative 'mixins/profile'
|
|
5
|
+
require_relative 'mixins/environment'
|
|
5
6
|
|
|
6
7
|
module RubyLeiningen
|
|
7
8
|
module Commands
|
|
8
9
|
class Clean < Base
|
|
9
10
|
include Mixins::Profile
|
|
11
|
+
include Mixins::Environment
|
|
10
12
|
|
|
11
13
|
def configure_command(builder, opts)
|
|
12
14
|
builder = super(builder, opts)
|
|
@@ -2,11 +2,13 @@ require 'lino'
|
|
|
2
2
|
|
|
3
3
|
require_relative 'base'
|
|
4
4
|
require_relative 'mixins/profile'
|
|
5
|
+
require_relative 'mixins/environment'
|
|
5
6
|
|
|
6
7
|
module RubyLeiningen
|
|
7
8
|
module Commands
|
|
8
9
|
class Deps < Base
|
|
9
10
|
include Mixins::Profile
|
|
11
|
+
include Mixins::Environment
|
|
10
12
|
|
|
11
13
|
def configure_command(builder, opts)
|
|
12
14
|
builder = super(builder, opts)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module RubyLeiningen
|
|
2
|
+
module Commands
|
|
3
|
+
module Mixins
|
|
4
|
+
module Environment
|
|
5
|
+
def initialize(opts={})
|
|
6
|
+
super(opts)
|
|
7
|
+
@environment = opts[:environment]
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def for_environment(environment)
|
|
11
|
+
@environment = environment
|
|
12
|
+
self
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def configure_command(builder, opts)
|
|
16
|
+
builder = super(builder, opts)
|
|
17
|
+
environment = opts[:environment] || @environment
|
|
18
|
+
if environment
|
|
19
|
+
builder = environment.to_a
|
|
20
|
+
.inject(builder) do |b, environment_variable|
|
|
21
|
+
b.with_environment_variable(*environment_variable)
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
builder
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
require_relative '../../commands'
|
|
2
|
+
|
|
3
|
+
RubyLeiningen::Commands.define_custom_command("cljstyle") do |config, opts|
|
|
4
|
+
mode = opts[:mode] || :check
|
|
5
|
+
paths = opts[:paths] || []
|
|
6
|
+
|
|
7
|
+
config.on_command_builder do |command|
|
|
8
|
+
command = command.with_subcommand(mode.to_s)
|
|
9
|
+
paths.inject(command) do |c, path|
|
|
10
|
+
c.with_argument(path)
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -2,11 +2,13 @@ require 'lino'
|
|
|
2
2
|
|
|
3
3
|
require_relative 'base'
|
|
4
4
|
require_relative 'mixins/profile'
|
|
5
|
+
require_relative 'mixins/environment'
|
|
5
6
|
|
|
6
7
|
module RubyLeiningen
|
|
7
8
|
module Commands
|
|
8
9
|
class Release < Base
|
|
9
10
|
include Mixins::Profile
|
|
11
|
+
include Mixins::Environment
|
|
10
12
|
|
|
11
13
|
def configure_command(builder, opts)
|
|
12
14
|
builder = super(builder, opts)
|
|
@@ -2,11 +2,13 @@ require 'lino'
|
|
|
2
2
|
|
|
3
3
|
require_relative 'base'
|
|
4
4
|
require_relative 'mixins/profile'
|
|
5
|
+
require_relative 'mixins/environment'
|
|
5
6
|
|
|
6
7
|
module RubyLeiningen
|
|
7
8
|
module Commands
|
|
8
9
|
class Run < Base
|
|
9
10
|
include Mixins::Profile
|
|
11
|
+
include Mixins::Environment
|
|
10
12
|
|
|
11
13
|
def configure_command(builder, opts)
|
|
12
14
|
builder = super(builder, opts)
|
|
@@ -2,11 +2,13 @@ require 'lino'
|
|
|
2
2
|
|
|
3
3
|
require_relative 'base'
|
|
4
4
|
require_relative 'mixins/profile'
|
|
5
|
+
require_relative 'mixins/environment'
|
|
5
6
|
|
|
6
7
|
module RubyLeiningen
|
|
7
8
|
module Commands
|
|
8
9
|
class Uberjar < Base
|
|
9
10
|
include Mixins::Profile
|
|
11
|
+
include Mixins::Environment
|
|
10
12
|
|
|
11
13
|
def configure_command(builder, opts)
|
|
12
14
|
builder = super(builder, opts)
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
require 'lino'
|
|
2
|
+
|
|
2
3
|
require_relative 'base'
|
|
4
|
+
require_relative 'mixins/environment'
|
|
3
5
|
|
|
4
6
|
module RubyLeiningen
|
|
5
7
|
module Commands
|
|
6
8
|
class Version < Base
|
|
9
|
+
include Mixins::Environment
|
|
10
|
+
|
|
7
11
|
def stdout
|
|
8
12
|
@version_string
|
|
9
13
|
end
|
|
@@ -13,6 +17,7 @@ module RubyLeiningen
|
|
|
13
17
|
end
|
|
14
18
|
|
|
15
19
|
def configure_command(builder, opts)
|
|
20
|
+
builder = super(builder, opts)
|
|
16
21
|
builder.with_argument('version')
|
|
17
22
|
end
|
|
18
23
|
|
data/ruby_leiningen.gemspec
CHANGED
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
|
|
25
25
|
spec.required_ruby_version = '>= 2.6'
|
|
26
26
|
|
|
27
|
-
spec.add_dependency 'lino', '
|
|
27
|
+
spec.add_dependency 'lino', '>= 1.5'
|
|
28
28
|
spec.add_dependency 'activesupport', '~> 6.0', '>= 6.0.2'
|
|
29
29
|
|
|
30
30
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
|
@@ -10,6 +10,11 @@ PROJECT_DIR="$( cd "$SCRIPT_DIR/../../.." && pwd )"
|
|
|
10
10
|
cd "$PROJECT_DIR"
|
|
11
11
|
|
|
12
12
|
./go version:bump[pre]
|
|
13
|
+
|
|
14
|
+
bundle install
|
|
15
|
+
LAST_MESSAGE="$(git log -1 --pretty=%B)"
|
|
16
|
+
git commit -a --amend -m "${LAST_MESSAGE} [ci skip]"
|
|
17
|
+
|
|
13
18
|
./go release
|
|
14
19
|
|
|
15
20
|
git status
|
data/scripts/ci/steps/release.sh
CHANGED
metadata
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby_leiningen
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.20.0.pre.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Toby Clemson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-12-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lino
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.
|
|
19
|
+
version: '1.5'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - "
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.
|
|
26
|
+
version: '1.5'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: activesupport
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -184,9 +184,11 @@ files:
|
|
|
184
184
|
- lib/ruby_leiningen/commands/check.rb
|
|
185
185
|
- lib/ruby_leiningen/commands/clean.rb
|
|
186
186
|
- lib/ruby_leiningen/commands/deps.rb
|
|
187
|
+
- lib/ruby_leiningen/commands/mixins/environment.rb
|
|
187
188
|
- lib/ruby_leiningen/commands/mixins/profile.rb
|
|
188
189
|
- lib/ruby_leiningen/commands/plugins/bikeshed.rb
|
|
189
190
|
- lib/ruby_leiningen/commands/plugins/cljfmt.rb
|
|
191
|
+
- lib/ruby_leiningen/commands/plugins/cljstyle.rb
|
|
190
192
|
- lib/ruby_leiningen/commands/plugins/eastwood.rb
|
|
191
193
|
- lib/ruby_leiningen/commands/plugins/eftest.rb
|
|
192
194
|
- lib/ruby_leiningen/commands/plugins/kibit.rb
|
|
@@ -219,9 +221,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
219
221
|
version: '2.6'
|
|
220
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
223
|
requirements:
|
|
222
|
-
- - "
|
|
224
|
+
- - ">"
|
|
223
225
|
- !ruby/object:Gem::Version
|
|
224
|
-
version:
|
|
226
|
+
version: 1.3.1
|
|
225
227
|
requirements: []
|
|
226
228
|
rubygems_version: 3.0.1
|
|
227
229
|
signing_key:
|