ruby_leiningen 0.15.0 → 0.16.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: 66540fa7d77fcbaa5c1297be8ff33f270f876556ee599fd4d0fe890a319fc5cb
4
+ data.tar.gz: 9d867df1bdabee379cf01ef782a71e517c00d5dbb789c2eb6f60715582286f3e
5
5
  SHA512:
6
- metadata.gz: 141397915cab453b41e5eb9cb8d9f423bd20d4a41381bc4ff6eb7c90140fe9dc607e8c37e6a11e28a15d2c13478a2c41f8ae8a0551aa2744f5d480b0f3ec793f
7
- data.tar.gz: 9ac9894b84fe5c6538c02092676938cb35dcc40113fb5be2bc7687cc2c0ed7b91025f95ab5f366313d29ba6c1e3cc77aa46e6cb2256328331a935412759a3bc6
6
+ metadata.gz: f1cc603511d3625a7c461b41b49ebb63bf9f0989effbe8e490164b218143f02cf211d32981f138453cc0d4785e0131840bc726cecd0b680af356a63998bb36d7
7
+ data.tar.gz: d4a430254bd9b681cdfbc5f8239fb4de567654d1399d37c30a62ecefb749677d42ec59f6c5f57b25847b525893e7400cdf0f4f721814739825d5637ff29ae7bd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_leiningen (0.15.0)
4
+ ruby_leiningen (0.16.0.pre.1)
5
5
  activesupport (~> 6.0, >= 6.0.2)
6
6
  lino (~> 1.1)
7
7
 
@@ -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
@@ -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.16.0.pre.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.16.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
@@ -184,6 +184,7 @@ 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
@@ -219,9 +220,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
219
220
  version: '2.6'
220
221
  required_rubygems_version: !ruby/object:Gem::Requirement
221
222
  requirements:
222
- - - ">="
223
+ - - ">"
223
224
  - !ruby/object:Gem::Version
224
- version: '0'
225
+ version: 1.3.1
225
226
  requirements: []
226
227
  rubygems_version: 3.0.1
227
228
  signing_key: