rake_leiningen 0.2.0 → 0.3.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: e05e0ad00f0b623ca527ef5a870fb3d2922ef266727802563a1d950d209892d1
4
- data.tar.gz: 4438117ceee5e25762ad300b53942023d6c34b28ace8fe168a5670a739554379
3
+ metadata.gz: 5ab9ae70dde5be80ea0173bf7e86a20c271b9fdfe50b15382f41799e0061f343
4
+ data.tar.gz: dedfc9148d01697c77f47e349623dc27b7ef3949e35376ca06f062dd8035b6e7
5
5
  SHA512:
6
- metadata.gz: f2c516498d42f2e58f1a3860f0ff02c8ebc67b4389662571d7b2f55d725363ee8e72c5f1d0bba4f9b13218f10215b78d3b3af3f19c27b2efe71490e9260db888
7
- data.tar.gz: 571463a3e05c9dcfb32c9e0452b729bb1d4922e806ee8d1a521f40f14c852d6d5113fb69082ab8cccc5038c50450ecf396615935d6a292063296e5057a50cdbf
6
+ metadata.gz: 3b5291c4feb5a8beacdc9608d3ef6158b8fed24d15889d0a1fdf5e3f98480425c0ba07596a7465395c590c1a978eb255d0ed902b966443208a0d8a365fe17338
7
+ data.tar.gz: e873d169aa167933c5df65466e10e77062db81a6509e97d5dd3b1c8f17fe0ce4e3a7b92e108932103d9138df27d8247a32b637dc30a37240969a0bb1e8990385
data/.circleci/config.yml CHANGED
@@ -3,14 +3,14 @@ jobs:
3
3
  test:
4
4
  working_directory: ~/rake-leiningen
5
5
  docker:
6
- - image: ruby:2.4.7
6
+ - image: ruby:2.6.0
7
7
  steps:
8
8
  - checkout
9
9
  - run: ./scripts/ci/steps/test.sh
10
10
  prerelease:
11
11
  working_directory: ~/rake-leiningen
12
12
  docker:
13
- - image: ruby:2.4.7
13
+ - image: ruby:2.6.0
14
14
  steps:
15
15
  - checkout
16
16
  - run: ./scripts/ci/common/install-git-crypt.sh
@@ -21,7 +21,7 @@ jobs:
21
21
  release:
22
22
  working_directory: ~/rake-leiningen
23
23
  docker:
24
- - image: ruby:2.4.7
24
+ - image: ruby:2.6.0
25
25
  steps:
26
26
  - checkout
27
27
  - run: ./scripts/ci/common/install-git-crypt.sh
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4.7
1
+ 2.6.0
data/Gemfile.lock CHANGED
@@ -1,14 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_leiningen (0.2.0)
5
- rake_dependencies (~> 0.19)
4
+ rake_leiningen (0.3.0.pre.1)
5
+ rake_dependencies (~> 1.10)
6
+ rake_factory (~> 0.17)
6
7
  semantic (~> 1.6.1)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
11
- activesupport (5.2.4)
12
+ activesupport (5.2.4.1)
12
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
14
  i18n (>= 0.7, < 2)
14
15
  minitest (~> 5.1)
@@ -16,34 +17,38 @@ GEM
16
17
  concurrent-ruby (1.1.5)
17
18
  diff-lcs (1.3)
18
19
  docile (1.3.2)
19
- fakefs (0.20.1)
20
+ fakefs (1.0.0)
20
21
  gem-release (2.1.1)
21
22
  hamster (3.0.0)
22
23
  concurrent-ruby (~> 1.0)
23
- i18n (1.7.0)
24
+ i18n (1.8.2)
24
25
  concurrent-ruby (~> 1.0)
25
- json (2.2.0)
26
+ json (2.3.0)
26
27
  minitar (0.9)
27
- minitest (5.13.0)
28
- rake (12.3.3)
29
- rake_dependencies (0.23.0)
28
+ minitest (5.14.0)
29
+ rake (13.0.1)
30
+ rake_dependencies (1.10.0)
30
31
  hamster (~> 3.0)
31
- minitar (~> 0.7)
32
- rubyzip (>= 1.2.2)
32
+ minitar (~> 0.9)
33
+ rake_factory (>= 0.11)
34
+ rubyzip (~> 2.0)
35
+ rake_factory (0.17.0)
36
+ activesupport (~> 5.2)
37
+ rake (~> 13.0)
33
38
  rspec (3.9.0)
34
39
  rspec-core (~> 3.9.0)
35
40
  rspec-expectations (~> 3.9.0)
36
41
  rspec-mocks (~> 3.9.0)
37
- rspec-core (3.9.0)
38
- rspec-support (~> 3.9.0)
42
+ rspec-core (3.9.1)
43
+ rspec-support (~> 3.9.1)
39
44
  rspec-expectations (3.9.0)
40
45
  diff-lcs (>= 1.2.0, < 2.0)
41
46
  rspec-support (~> 3.9.0)
42
- rspec-mocks (3.9.0)
47
+ rspec-mocks (3.9.1)
43
48
  diff-lcs (>= 1.2.0, < 2.0)
44
49
  rspec-support (~> 3.9.0)
45
- rspec-support (3.9.0)
46
- rubyzip (2.0.0)
50
+ rspec-support (3.9.2)
51
+ rubyzip (2.1.0)
47
52
  semantic (1.6.1)
48
53
  simplecov (0.17.1)
49
54
  docile (~> 1.1)
@@ -51,7 +56,7 @@ GEM
51
56
  simplecov-html (~> 0.10.0)
52
57
  simplecov-html (0.10.2)
53
58
  thread_safe (0.3.6)
54
- tzinfo (1.2.5)
59
+ tzinfo (1.2.6)
55
60
  thread_safe (~> 0.1)
56
61
 
57
62
  PLATFORMS
@@ -59,13 +64,13 @@ PLATFORMS
59
64
 
60
65
  DEPENDENCIES
61
66
  activesupport (~> 5.2)
62
- bundler (~> 2.0.2)
63
- fakefs (~> 0.18)
67
+ bundler (~> 2.1)
68
+ fakefs (~> 1.0)
64
69
  gem-release (~> 2.0)
65
- rake (~> 12.3)
70
+ rake (~> 13.0)
66
71
  rake_leiningen!
67
72
  rspec (~> 3.8)
68
73
  simplecov (~> 0.16)
69
74
 
70
75
  BUNDLED WITH
71
- 2.0.2
76
+ 2.1.4
@@ -1,3 +1,3 @@
1
1
  module RakeLeiningen
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0.pre.1'
3
3
  end
@@ -4,36 +4,40 @@ require 'rake_leiningen/version'
4
4
  module RakeLeiningen
5
5
  def self.define_installation_tasks(opts = {})
6
6
  namespace = opts[:namespace] || :leiningen
7
+ dependency = 'lein'
7
8
  version = opts[:version] || '2.9.1'
8
9
  path = opts[:path] || File.join('vendor', 'leiningen')
10
+ type = :uncompressed
11
+ uri_template = "https://raw.githubusercontent.com/technomancy/" +
12
+ "leiningen/<%= @version %>/bin/lein"
13
+ file_name_template = "lein"
9
14
 
10
- RakeDependencies::Tasks::All.new do |t|
11
- t.namespace = namespace
12
- t.dependency = 'lein'
13
- t.version = version
14
- t.path = path
15
- t.type = :uncompressed
15
+ needs_fetch_checker = lambda do |t|
16
+ binary = File.join(t.path, t.binary_directory, 'lein')
17
+ version_string = StringIO.new
16
18
 
17
- t.uri_template = "https://raw.githubusercontent.com/technomancy/leiningen/<%= @version %>/bin/lein"
18
- t.file_name_template = "lein"
19
+ if File.exist?(binary)
20
+ Lino::CommandLineBuilder.for_command(binary)
21
+ .with_flag('-version')
22
+ .build
23
+ .execute(stdout: version_string)
19
24
 
20
- t.needs_fetch = lambda do |parameters|
21
- binary = File.join(parameters[:path], parameters[:binary_directory], 'lein')
22
- version_string = StringIO.new
23
-
24
- if File.exist?(binary)
25
- Lino::CommandLineBuilder.for_command(binary)
26
- .with_flag('-version')
27
- .build
28
- .execute(stdout: version_string)
29
-
30
- if version_string.string.lines.first =~ /#{version}/
31
- return false
32
- end
25
+ if version_string.string.lines.first =~ /#{version}/
26
+ return false
33
27
  end
34
-
35
- return true
36
28
  end
29
+
30
+ return true
37
31
  end
32
+
33
+ RakeDependencies::TaskSets::All.define(
34
+ namespace: namespace,
35
+ dependency: dependency,
36
+ version: version,
37
+ path: path,
38
+ type: type,
39
+ uri_template: uri_template,
40
+ file_name_template: file_name_template,
41
+ needs_fetch: needs_fetch_checker)
38
42
  end
39
43
  end
@@ -22,16 +22,17 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.required_ruby_version = '>= 2.4.7'
25
+ spec.required_ruby_version = '>= 2.6.0'
26
26
 
27
- spec.add_dependency 'rake_dependencies', '~> 0.19'
27
+ spec.add_dependency 'rake_dependencies', '~> 1.10'
28
+ spec.add_dependency 'rake_factory', '~> 0.17'
28
29
  spec.add_dependency 'semantic', '~> 1.6.1'
29
30
 
30
- spec.add_development_dependency 'bundler', '~> 2.0.2'
31
- spec.add_development_dependency 'rake', '~> 12.3'
31
+ spec.add_development_dependency 'bundler', '~> 2.1'
32
+ spec.add_development_dependency 'rake', '~> 13.0'
32
33
  spec.add_development_dependency 'rspec', '~> 3.8'
33
34
  spec.add_development_dependency 'gem-release', '~> 2.0'
34
35
  spec.add_development_dependency 'activesupport', '~> 5.2'
35
- spec.add_development_dependency 'fakefs', '~> 0.18'
36
+ spec.add_development_dependency 'fakefs', '~> 1.0'
36
37
  spec.add_development_dependency 'simplecov', '~> 0.16'
37
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_leiningen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.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: 2019-12-02 00:00:00.000000000 Z
11
+ date: 2020-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake_dependencies
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.19'
19
+ version: '1.10'
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: '0.19'
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake_factory
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.17'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.17'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: semantic
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +58,28 @@ dependencies:
44
58
  requirements:
45
59
  - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: 2.0.2
61
+ version: '2.1'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: 2.0.2
68
+ version: '2.1'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rake
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: '12.3'
75
+ version: '13.0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '12.3'
82
+ version: '13.0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rspec
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +128,14 @@ dependencies:
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '0.18'
131
+ version: '1.0'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '0.18'
138
+ version: '1.0'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: simplecov
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -192,14 +206,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
192
206
  requirements:
193
207
  - - ">="
194
208
  - !ruby/object:Gem::Version
195
- version: 2.4.7
209
+ version: 2.6.0
196
210
  required_rubygems_version: !ruby/object:Gem::Requirement
197
211
  requirements:
198
- - - ">="
212
+ - - ">"
199
213
  - !ruby/object:Gem::Version
200
- version: '0'
214
+ version: 1.3.1
201
215
  requirements: []
202
- rubygems_version: 3.0.3
216
+ rubygems_version: 3.0.1
203
217
  signing_key:
204
218
  specification_version: 4
205
219
  summary: Rake tasks for interoperating with a leiningen project.