rake_easy_rsa 0.2.0.pre.1 → 0.2.0.pre.2

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: 0c17d82900099c90a2e0893d57c30e3af979f75ca85c89f7ab823d46ae62aae9
4
- data.tar.gz: b339ab6f4ae3a76c10e281fff6edad75e001128ed34e54c6c2eb1d2db013f370
3
+ metadata.gz: 28cf4cb285273fd87298b857d2fa3a2b464d3ef6e524b101c784c332d7f2f33e
4
+ data.tar.gz: 4691116c29c6ca25ce2bff1c45d74aed5f33d94ce74efb59c51dd4a43a34bda2
5
5
  SHA512:
6
- metadata.gz: a76631116d5ace827fb91d389da49a0afc841827fbbd8a3da855ef2e4625d9bd75f93978ec801b78194a33975ab978dc7450cc0d735e1088ca9c6081ad3a9e22
7
- data.tar.gz: bc18ce478e6ae54446dd661cc377a84970e1a182d1c226b262a0889186b223aae2242ae6dab9a1aacb01fa57d2752efa63e63e99c3bcb0838117a1cd96ca8a2e
6
+ metadata.gz: 103ff953471c147d6e9de16fef25be13bd3bcabbb4bc8fbdfb7134a8f5b5765a3a0b789c481c7e615e39fd10644aaa5ee8debb1d65a8b708e9ecd9bc8b2e0a81
7
+ data.tar.gz: 2b5b10850644336407d03ecb91a90f28b96187592d1b9d6a1153b9aebcde4ed2f7eed2c5e7f0e73b0ac7fc1eceea3520d2c1ad95994503ae71539896186abee8
@@ -1,9 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_easy_rsa (0.2.0.pre.1)
4
+ rake_easy_rsa (0.2.0.pre.2)
5
5
  rake_dependencies (~> 2, < 3)
6
6
  rake_factory (>= 0.23, < 1)
7
+ ruby_easy_rsa (= 0.2.0.pre.9)
7
8
  semantic (~> 1.6.1)
8
9
 
9
10
  GEM
@@ -30,15 +31,19 @@ GEM
30
31
  concurrent-ruby (~> 1.0)
31
32
  i18n (1.8.2)
32
33
  concurrent-ruby (~> 1.0)
34
+ lino (1.2.0.pre.2)
35
+ hamster (~> 3.0)
36
+ open4 (~> 1.3)
33
37
  minitar (0.9)
34
38
  minitest (5.14.0)
35
39
  multipart-post (2.1.1)
36
40
  octokit (4.18.0)
37
41
  faraday (>= 0.9)
38
42
  sawyer (~> 0.8.0, >= 0.5.3)
43
+ open4 (1.3.4)
39
44
  public_suffix (4.0.4)
40
45
  rake (13.0.1)
41
- rake_circle_ci (0.5.0)
46
+ rake_circle_ci (0.7.0)
42
47
  colored2 (~> 3.1)
43
48
  excon (~> 0.72)
44
49
  rake_factory (~> 0.23)
@@ -73,6 +78,8 @@ GEM
73
78
  diff-lcs (>= 1.2.0, < 2.0)
74
79
  rspec-support (~> 3.9.0)
75
80
  rspec-support (3.9.2)
81
+ ruby_easy_rsa (0.2.0.pre.9)
82
+ lino (= 1.2.0.pre.2)
76
83
  rubyzip (2.3.0)
77
84
  sawyer (0.8.2)
78
85
  addressable (>= 2.3.5)
@@ -97,7 +104,7 @@ DEPENDENCIES
97
104
  fakefs (~> 0.18)
98
105
  gem-release (~> 2.0)
99
106
  rake (~> 13.0)
100
- rake_circle_ci (~> 0.3)
107
+ rake_circle_ci (~> 0.7)
101
108
  rake_easy_rsa!
102
109
  rake_github (~> 0.3)
103
110
  rake_ssh (~> 0.2)
data/Rakefile CHANGED
@@ -53,6 +53,7 @@ end
53
53
 
54
54
  namespace :pipeline do
55
55
  task :prepare => [
56
+ :'circle_ci:project:follow',
56
57
  :'circle_ci:env_vars:ensure',
57
58
  :'circle_ci:ssh_keys:ensure',
58
59
  :'github:deploy_keys:ensure'
@@ -1,3 +1,37 @@
1
+ require 'rake_dependencies'
2
+ require 'ruby_easy_rsa'
3
+
1
4
  module RakeEasyRSA
5
+ def self.define_installation_tasks(opts = {})
6
+ namespace = opts[:namespace] || :easy_rsa
7
+ version = opts[:version] || '3.0.7'
8
+ path = opts[:path] || File.join('vendor', 'easy-rsa')
9
+ type = :tgz
10
+ binary_directory = ''
11
+ uri_template = 'https://github.com/OpenVPN/easy-rsa/releases/' +
12
+ 'download/v<%= @version %>/' +
13
+ 'EasyRSA-nix-<%= @version %>.tgz'
14
+ file_name_template = 'EasyRSA-<%= @version %>.tgz'
15
+ strip_path_template = 'EasyRSA-<%= @version %>'
16
+
17
+ task_set_opts = {
18
+ namespace: namespace,
19
+ dependency: 'easy-rsa',
20
+ version: version,
21
+ path: path,
22
+ type: type,
23
+ binary_directory: binary_directory,
24
+ uri_template: uri_template,
25
+ file_name_template: file_name_template,
26
+ strip_path_template: strip_path_template,
27
+ needs_fetch: lambda { |t|
28
+ !File.exist?(File.join(t.path, 'easyrsa'))
29
+ }}
30
+
31
+ RubyEasyRSA.configure do |c|
32
+ c.binary = File.join(path, 'easyrsa')
33
+ end
2
34
 
35
+ RakeDependencies::TaskSets::All.define(task_set_opts)
36
+ end
3
37
  end
@@ -1,3 +1,3 @@
1
1
  module RakeEasyRSA
2
- VERSION = '0.2.0.pre.1'
2
+ VERSION = '0.2.0.pre.2'
3
3
  end
@@ -25,11 +25,12 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_dependency 'rake_dependencies', '~> 2', '< 3'
27
27
  spec.add_dependency 'rake_factory', '>= 0.23', '< 1'
28
+ spec.add_dependency 'ruby_easy_rsa', '0.2.0.pre.9'
28
29
  spec.add_dependency 'semantic', '~> 1.6.1'
29
30
 
30
31
  spec.add_development_dependency 'bundler', '~> 2.1'
31
32
  spec.add_development_dependency 'rake', '~> 13.0'
32
- spec.add_development_dependency 'rake_circle_ci', '~> 0.3'
33
+ spec.add_development_dependency 'rake_circle_ci', '~> 0.7'
33
34
  spec.add_development_dependency 'rake_github', '~> 0.3'
34
35
  spec.add_development_dependency 'rake_ssh', '~> 0.2'
35
36
  spec.add_development_dependency 'rspec', '~> 3.9'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_easy_rsa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.1
4
+ version: 0.2.0.pre.2
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-04-15 00:00:00.000000000 Z
11
+ date: 2020-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake_dependencies
@@ -50,6 +50,20 @@ dependencies:
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '1'
53
+ - !ruby/object:Gem::Dependency
54
+ name: ruby_easy_rsa
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - '='
58
+ - !ruby/object:Gem::Version
59
+ version: 0.2.0.pre.9
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - '='
65
+ - !ruby/object:Gem::Version
66
+ version: 0.2.0.pre.9
53
67
  - !ruby/object:Gem::Dependency
54
68
  name: semantic
55
69
  requirement: !ruby/object:Gem::Requirement
@@ -98,14 +112,14 @@ dependencies:
98
112
  requirements:
99
113
  - - "~>"
100
114
  - !ruby/object:Gem::Version
101
- version: '0.3'
115
+ version: '0.7'
102
116
  type: :development
103
117
  prerelease: false
104
118
  version_requirements: !ruby/object:Gem::Requirement
105
119
  requirements:
106
120
  - - "~>"
107
121
  - !ruby/object:Gem::Version
108
- version: '0.3'
122
+ version: '0.7'
109
123
  - !ruby/object:Gem::Dependency
110
124
  name: rake_github
111
125
  requirement: !ruby/object:Gem::Requirement