ruby_leiningen 0.15.0 → 0.20.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 772882430aa9cf79a5b4bd21fc35a5dd9a1ae1edb7960586204901884d7d7ab7
4
- data.tar.gz: a57376a9020ba0fcbbca12a6461467133c892ccef9dc8197cd1e0d0e36057baf
3
+ metadata.gz: 00b70c38cd754da90a447b5afadda27a36b48cc5e2c03704b991b95d2a0387ca
4
+ data.tar.gz: 9cc8447859796905d74544d295223b8acc2e5233f76148603baf8898e596ad2f
5
5
  SHA512:
6
- metadata.gz: 141397915cab453b41e5eb9cb8d9f423bd20d4a41381bc4ff6eb7c90140fe9dc607e8c37e6a11e28a15d2c13478a2c41f8ae8a0551aa2744f5d480b0f3ec793f
7
- data.tar.gz: 9ac9894b84fe5c6538c02092676938cb35dcc40113fb5be2bc7687cc2c0ed7b91025f95ab5f366313d29ba6c1e3cc77aa46e6cb2256328331a935412759a3bc6
6
+ metadata.gz: 195a3a0572dbdb3a70970be7aad487a6a874e79774e0af7920d5796e7670703992ed018eecb691687fbf24f5f81fad2d58a0a8d965f4bbd6cb9c8fbb7bf1cfeb
7
+ data.tar.gz: c7957756a1adeb7f41c397a31fc7b59b28fffa32f8f4b1a5699fa976f789029f7ca3e555009b0e634e3524ad6e4c4acfdf9f6224289241727a866a114f4f87a7
@@ -1,42 +1,43 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_leiningen (0.15.0)
4
+ ruby_leiningen (0.20.0.pre.1)
5
5
  activesupport (~> 6.0, >= 6.0.2)
6
- lino (~> 1.1)
6
+ lino (>= 1.5)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.0.3.1)
11
+ activesupport (6.1.0)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (>= 0.7, < 2)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- zeitwerk (~> 2.2, >= 2.2.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.6)
21
- diff-lcs (1.3)
22
- excon (0.73.0)
23
- faraday (1.0.1)
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
- gem-release (2.1.1)
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.2)
29
+ i18n (1.8.5)
29
30
  concurrent-ruby (~> 1.0)
30
- lino (1.3.0)
31
+ lino (1.5.0)
31
32
  hamster (~> 3.0)
32
33
  open4 (~> 1.3)
33
- minitest (5.14.1)
34
+ minitest (5.14.2)
34
35
  multipart-post (2.1.1)
35
- octokit (4.18.0)
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.5)
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.9.0)
59
- rspec-core (~> 3.9.0)
60
- rspec-expectations (~> 3.9.0)
61
- rspec-mocks (~> 3.9.0)
62
- rspec-core (3.9.2)
63
- rspec-support (~> 3.9.3)
64
- rspec-expectations (3.9.2)
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.9.0)
67
- rspec-mocks (3.9.1)
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.9.0)
70
- rspec-support (3.9.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
- thread_safe (0.3.6)
76
- tzinfo (1.2.7)
77
- thread_safe (~> 0.1)
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.1.4
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
@@ -13,6 +13,7 @@ module RubyLeiningen
13
13
  end
14
14
 
15
15
  def configure_command(builder, opts)
16
+ builder = super(builder, opts)
16
17
  profile = opts[:profile] || @profile
17
18
  if profile
18
19
  builder = builder
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module RubyLeiningen
2
- VERSION = '0.15.0'
2
+ VERSION = '0.20.0.pre.1'
3
3
  end
@@ -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', '~> 1.1'
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
@@ -12,6 +12,11 @@ cd "$PROJECT_DIR"
12
12
  git pull
13
13
 
14
14
  ./go version:bump[minor]
15
+
16
+ bundle install
17
+ LAST_MESSAGE="$(git log -1 --pretty=%B)"
18
+ git commit -a --amend -m "${LAST_MESSAGE} [ci skip]"
19
+
15
20
  ./go release
16
21
 
17
22
  git status
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.15.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-06-09 00:00:00.000000000 Z
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.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.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: '0'
226
+ version: 1.3.1
225
227
  requirements: []
226
228
  rubygems_version: 3.0.1
227
229
  signing_key: