syncwrap 2.10.0 → 2.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/History.rdoc +13 -1
  3. data/README.rdoc +16 -28
  4. data/bin/syncwrap +1 -1
  5. data/lib/syncwrap.rb +1 -1
  6. data/lib/syncwrap/amazon_ec2.rb +1 -1
  7. data/lib/syncwrap/amazon_ws.rb +1 -1
  8. data/lib/syncwrap/base.rb +2 -2
  9. data/lib/syncwrap/change_key_listener.rb +1 -1
  10. data/lib/syncwrap/cli.rb +1 -1
  11. data/lib/syncwrap/component.rb +1 -1
  12. data/lib/syncwrap/components/amazon_linux.rb +14 -12
  13. data/lib/syncwrap/components/arch.rb +1 -1
  14. data/lib/syncwrap/components/bundle.rb +1 -1
  15. data/lib/syncwrap/components/bundled_iyyov_daemon.rb +1 -1
  16. data/lib/syncwrap/components/bundler_gem.rb +1 -1
  17. data/lib/syncwrap/components/centos.rb +1 -1
  18. data/lib/syncwrap/components/change_guard.rb +1 -1
  19. data/lib/syncwrap/components/commercial_jdk.rb +1 -1
  20. data/lib/syncwrap/components/cruby_vm.rb +30 -26
  21. data/lib/syncwrap/components/debian.rb +1 -1
  22. data/lib/syncwrap/components/etc_hosts.rb +1 -1
  23. data/lib/syncwrap/components/geminabox.rb +1 -1
  24. data/lib/syncwrap/components/hashdot.rb +1 -1
  25. data/lib/syncwrap/components/iyyov.rb +1 -1
  26. data/lib/syncwrap/components/iyyov_daemon.rb +1 -1
  27. data/lib/syncwrap/components/jruby_vm.rb +15 -14
  28. data/lib/syncwrap/components/lvm_cache.rb +1 -1
  29. data/lib/syncwrap/components/mdraid.rb +1 -1
  30. data/lib/syncwrap/components/network.rb +1 -1
  31. data/lib/syncwrap/components/open_jdk.rb +1 -1
  32. data/lib/syncwrap/components/postgresql.rb +39 -17
  33. data/lib/syncwrap/components/puma.rb +1 -1
  34. data/lib/syncwrap/components/qpid.rb +1 -1
  35. data/lib/syncwrap/components/rake_gem.rb +1 -1
  36. data/lib/syncwrap/components/rhel.rb +1 -1
  37. data/lib/syncwrap/components/run_user.rb +1 -1
  38. data/lib/syncwrap/components/source_tree.rb +1 -1
  39. data/lib/syncwrap/components/tarpit_gem.rb +1 -1
  40. data/lib/syncwrap/components/time_checker.rb +1 -1
  41. data/lib/syncwrap/components/ubuntu.rb +2 -1
  42. data/lib/syncwrap/components/users.rb +1 -1
  43. data/lib/syncwrap/context.rb +1 -1
  44. data/lib/syncwrap/distro.rb +1 -1
  45. data/lib/syncwrap/formatter.rb +1 -1
  46. data/lib/syncwrap/git_help.rb +1 -1
  47. data/lib/syncwrap/hash_support.rb +1 -1
  48. data/lib/syncwrap/host.rb +1 -1
  49. data/lib/syncwrap/main.rb +1 -1
  50. data/lib/syncwrap/path_util.rb +1 -1
  51. data/lib/syncwrap/rsync.rb +1 -1
  52. data/lib/syncwrap/ruby_support.rb +1 -1
  53. data/lib/syncwrap/shell.rb +1 -1
  54. data/lib/syncwrap/sudoers.rb +1 -1
  55. data/lib/syncwrap/systemd.rb +1 -1
  56. data/lib/syncwrap/systemd_service.rb +1 -1
  57. data/lib/syncwrap/user_data.rb +1 -1
  58. data/lib/syncwrap/version_support.rb +1 -1
  59. data/lib/syncwrap/zone_balancer.rb +1 -1
  60. data/sync/postgresql/postgresql.conf.erb +52 -37
  61. data/test/setup.rb +1 -1
  62. data/test/test_components.rb +4 -2
  63. data/test/test_context.rb +1 -1
  64. data/test/test_context_rput.rb +1 -1
  65. data/test/test_rsync.rb +1 -1
  66. data/test/test_shell.rb +1 -1
  67. data/test/test_space.rb +1 -1
  68. data/test/test_space_main.rb +1 -1
  69. data/test/test_version_support.rb +1 -1
  70. data/test/test_zone_balancer.rb +1 -1
  71. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b332ef7c3b7cd3a26930594f9ff9d0e22054295
4
- data.tar.gz: a8ef0a95a638f7449dda4ab994be73bc9e08f8af
3
+ metadata.gz: 522f0f83b66b5502b06a057b18e828e328dd0953
4
+ data.tar.gz: 851e8eca428ec3ea1a40c8de352654def02b2589
5
5
  SHA512:
6
- metadata.gz: 448c97cf5df5774e541c57297bb0c4224dc278068551d06031175e9179b9418dfdb098792643b61af19ef3dd492c263e03946147fb2923932395d4fa8cd069aa
7
- data.tar.gz: cb9bd08e0b91b65df2bf86bbd99183126ed8ab83c421a2a88fb257e22c6b4af268fc1eb115f328f31f04f0ae2844a91b7d1339b0bee78f2aefb8c17287e1d462
6
+ metadata.gz: 0fc19a9b7fc0d27e93b3f9131c959e5a365c560897c38e30e22113905c72116d9458f56a1e95a375d5fb825f76fbd75cd902a1ba5885735bdf7fa8cf6238dd64
7
+ data.tar.gz: 55e933f1856425da4fd59f8c4a33a61ffaba7e196b045d7c1a885558455827109b9a16249771cfce2e79d5f457cd0b2930a42342938ef5346aa407e52e907421
data/History.rdoc CHANGED
@@ -1,5 +1,17 @@
1
+ === 2.10.1 (2018-9-7)
2
+ * SyncWrap::PostgreSQL; Update component and postgresql.conf for
3
+ support of version 10. Changes are mostly cosmetic and remain
4
+ backward compatible with Postgres 9.4+
5
+ * SyncWrap::Ubuntu; Versions ≥ 18.4 (LTS, "bionic") knows its
6
+ debian_version is (atleast) 10.
7
+ * SyncWrap::CRubyVM
8
+ * Add hashes of 2.2.9, 2.2.10, 2.3.6, 2.3.7, 2.4.3, 2.4.4, 2.5.1
9
+ * Install libssl1.0-dev with ruby < 2.4 when on debian ≥ 10
10
+ * SyncWrap::JRubyVM; Add hashes of 9.1.14, 9.1.15, 9.1.17
11
+ * SyncWrap::AmazonLinux; Finally has systemd as of 2017.12
12
+
1
13
  === 2.10.0 (2017-10-26)
2
- * SyncWrap::Debian: dist_update condition based on local context
14
+ * SyncWrap::Debian; dist_update condition based on local context
3
15
  hasn't worked properly since 2.7.0, when remote conditional install
4
16
  was implemented. Fix this by using a remote lock file and running
5
17
  prior to any install (inside install conditional) if it hasn't been
data/README.rdoc CHANGED
@@ -82,25 +82,25 @@ examples directory and LAYOUT.
82
82
  Component hierarchy implementing SyncWrap::Distro, for common methods
83
83
  like dist_install and other distribution-specific behaviors:
84
84
 
85
- * SyncWrap::Arch (limited support)
86
85
  * SyncWrap::Debian
87
86
  * SyncWrap::Ubuntu
88
87
  * SyncWrap::RHEL
89
88
  * SyncWrap::CentOS
90
89
  * SyncWrap::AmazonLinux
90
+ * SyncWrap::Arch (limited)
91
91
 
92
- Components implementing \#install:
92
+ Non-exhaustive list of components implementing \#install:
93
93
 
94
- * SyncWrap::MDRaid, SyncWrap::LVMCache - Software raid, lvm volumes,
94
+ * SyncWrap::MDRaid, SyncWrap::LVMCache software raid, lvm volumes,
95
95
  lvm cache, filesystems, mounts
96
96
 
97
- * SyncWrap::Network and SyncWrap::EtcHosts - hostname, static names,
97
+ * SyncWrap::Network and SyncWrap::EtcHosts hostname, static names,
98
98
  resolver config
99
99
 
100
- * SyncWrap::Users - developer accounts, home directory files (incl. ssh
100
+ * SyncWrap::Users developer accounts, home directory files (incl. ssh
101
101
  keys), sudoers access
102
102
 
103
- * SyncWrap::RunUser - a user for running deployed daemons, jobs, in
103
+ * SyncWrap::RunUser a user for running deployed daemons, jobs, in
104
104
  var directories.
105
105
 
106
106
  * SyncWrap::PostgreSQL
@@ -109,39 +109,27 @@ Components implementing \#install:
109
109
 
110
110
  * SyncWrap::JRubyVM and/or SyncWrap::CRubyVM (MRI, from source)
111
111
 
112
- * SyncWrap::BundlerGem, SyncWrap::RakeGem, SyncWrap::TarpitGem - base
113
- (pre-bundle) Rubygems
112
+ * SyncWrap::BundlerGem, SyncWrap::RakeGem, SyncWrap::TarpitGem base
113
+ (pre-bundle) rubygems
114
114
 
115
- * SyncWrap::SourceTree, SyncWrap::Bundle
115
+ * SyncWrap::SourceTree
116
116
 
117
- * SyncWrap::ChangeGuard
117
+ * SyncWrap::Bundle — Ruby Bundler installed (source) dependencies
118
118
 
119
119
  * SyncWrap::Puma
120
120
 
121
- * SyncWrap::Iyyov - job scheduler and process monitor with
122
- utilities for SyncWrap::IyyovDaemon deployment.
121
+ Other utilities:
123
122
 
124
- * SyncWrap::Geminabox - private gem server
123
+ * SyncWrap::ChangeGuard make changes transactional via a remote guard file
125
124
 
126
- * SyncWrap::Qpid - AMQP broker
125
+ * SyncWrap::TimeChecker (.check) compare remote host system clocks
127
126
 
128
- === Component wish list
129
-
130
- The above only represents my more recent project needs. Pull requests
131
- to add, for example, the following would be well received:
132
-
133
- * Rails (based on SourceTree, Bundle and ideally without per-host
134
- asset compile)
135
- * Nginx
136
- * Mongo
137
- * Redis
138
-
139
- \SyncWrap makes it reasonable to implement any of the above
140
- yourself.
127
+ \SyncWrap makes customizing the above or implementing new components
128
+ easy, as needed in your own projects.
141
129
 
142
130
  == License
143
131
 
144
- Copyright (c) 2011-2017 David Kellum
132
+ Copyright (c) 2011-2018 David Kellum
145
133
 
146
134
  Licensed under the Apache License, Version 2.0 (the "License"); you
147
135
  may not use this file except in compliance with the License. You
data/bin/syncwrap CHANGED
@@ -2,7 +2,7 @@
2
2
  # -*- ruby -*-
3
3
 
4
4
  #--
5
- # Copyright (c) 2011-2017 David Kellum
5
+ # Copyright (c) 2011-2018 David Kellum
6
6
  #
7
7
  # Licensed under the Apache License, Version 2.0 (the "License"); you
8
8
  # may not use this file except in compliance with the License. You
data/lib/syncwrap.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
data/lib/syncwrap/base.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -15,7 +15,7 @@
15
15
  #++
16
16
 
17
17
  module SyncWrap
18
- VERSION='2.10.0'
18
+ VERSION='2.10.1'
19
19
 
20
20
  GEM_ROOT = File.dirname(File.dirname(File.dirname(__FILE__))) # :nodoc:
21
21
  end
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
data/lib/syncwrap/cli.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -21,22 +21,22 @@ module SyncWrap
21
21
  # Customizations for Amazon Linux.
22
22
  class AmazonLinux < RHEL
23
23
 
24
- # Amazon Linux version, i.e. '2014.09.1'. No default value.
24
+ # Amazon Linux version, e.g. '2014.09.1' or '2017.12'. No default
25
+ # value.
25
26
  attr_accessor :amazon_version
26
27
 
27
28
  alias :distro_version :amazon_version
28
29
 
29
- # Return RHEL#rhel_version if specified, or a comparable
30
- # RHEL version if #amazon_version if specified.
30
+ # Return RHEL#rhel_version if specified, or a comparable RHEL
31
+ # version if #amazon_version is specified. Beyond Amazon Linux
32
+ # 2014.03 this default mapping is fixed at RHEL 7.
31
33
  #
32
- # History of Amazon Linux releases:
34
+ # Relevant history:
33
35
  #
34
36
  # * 2011.09 upgraded to glibc 2.12, parity with RHEL 6
35
37
  #
36
- # * 2014.03 upgraded to 2.17, parity with RHEL 7
38
+ # * 2014.03 upgraded to glibc 2.17, parity with RHEL 7
37
39
  #
38
- # Note however that Amazon is still behind RHEL 7 in other
39
- # respects (ex: systemd), and is ahead on other packages.
40
40
  def rhel_version
41
41
  super ||
42
42
  ( amazon_version &&
@@ -45,11 +45,13 @@ module SyncWrap
45
45
  '5' ) )
46
46
  end
47
47
 
48
- # Despite later versions being comparable to #rhel_version '7',
49
- # Amazon Linux has yet (2015.09) to migrate to systemd. Return
50
- # false.
48
+ # Despite earlier versions being otherwise comparable to RHEL 7,
49
+ # the first version of Amazon Linux with systemd is 2017.12.
51
50
  def systemd?
52
- false
51
+ if @systemd.nil? && amazon_version
52
+ @systemd = version_gte?( amazon_version, [2017,12] )
53
+ end
54
+ @systemd
53
55
  end
54
56
 
55
57
  end
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -15,6 +15,7 @@
15
15
  #++
16
16
 
17
17
  require 'syncwrap/component'
18
+ require 'syncwrap/components/debian'
18
19
  require 'syncwrap/components/rhel'
19
20
  require 'syncwrap/ruby_support'
20
21
  require 'syncwrap/version_support'
@@ -51,29 +52,26 @@ module SyncWrap
51
52
 
52
53
  # A set of known (sha256) cryptographic hashes, keyed by version
53
54
  # string, for the source ruby-(version).tar.gz package.
54
- KNOWN_HASHES = {
55
- '2.1.7' =>
56
- 'f59c1596ac39cc7e60126e7d3698c19f482f04060674fdfe0124e1752ba6dd81',
57
- '2.1.8' =>
58
- 'afd832b8d5ecb2e3e1477ec6a9408fdf9898ee73e4c5df17a2b2cb36bd1c355d',
59
- '2.1.10' =>
60
- 'fb2e454d7a5e5a39eb54db0ec666f53eeb6edc593d1d2b970ae4d150b831dd20',
61
- '2.2.5' =>
62
- '30c4b31697a4ca4ea0c8db8ad30cf45e6690a0f09687e5d483c933c03ca335e3',
63
- '2.2.6' =>
64
- 'de8e192791cb157d610c48a9a9ff6e7f19d67ce86052feae62b82e3682cc675f',
65
- '2.2.7' =>
66
- '374184c6c5bbc88fb7bad422368d4053a236fb6587f0eff76146dcba57f93da5',
67
- '2.2.8' =>
68
- '8f37b9d8538bf8e50ad098db2a716ea49585ad1601bbd347ef84ca0662d9268a',
69
- '2.3.3' =>
70
- '241408c8c555b258846368830a06146e4849a1d58dcaf6b14a3b6a73058115b7',
71
- '2.3.4' =>
72
- '98e18f17c933318d0e32fed3aea67e304f174d03170a38fd920c4fbe49fec0c3',
73
- '2.3.5' =>
74
- '5462f7bbb28beff5da7441968471ed922f964db1abdce82b8860608acc23ddcc',
75
- '2.4.2' =>
76
- '93b9e75e00b262bc4def6b26b7ae8717efc252c47154abb7392e54357e6c8c9c' }
55
+ KNOWN_HASHES = %w[
56
+ 2.1.7 f59c1596ac39cc7e60126e7d3698c19f482f04060674fdfe0124e1752ba6dd81
57
+ 2.1.8 afd832b8d5ecb2e3e1477ec6a9408fdf9898ee73e4c5df17a2b2cb36bd1c355d
58
+ 2.1.10 fb2e454d7a5e5a39eb54db0ec666f53eeb6edc593d1d2b970ae4d150b831dd20
59
+ 2.2.5 30c4b31697a4ca4ea0c8db8ad30cf45e6690a0f09687e5d483c933c03ca335e3
60
+ 2.2.6 de8e192791cb157d610c48a9a9ff6e7f19d67ce86052feae62b82e3682cc675f
61
+ 2.2.7 374184c6c5bbc88fb7bad422368d4053a236fb6587f0eff76146dcba57f93da5
62
+ 2.2.8 8f37b9d8538bf8e50ad098db2a716ea49585ad1601bbd347ef84ca0662d9268a
63
+ 2.2.9 2f47c77054fc40ccfde22501425256d32c4fa0ccaf9554f0d699ed436beca1a6
64
+ 2.2.10 cd51019eb9d9c786d6cb178c37f6812d8a41d6914a1edaf0050c051c75d7c358
65
+ 2.3.3 241408c8c555b258846368830a06146e4849a1d58dcaf6b14a3b6a73058115b7
66
+ 2.3.4 98e18f17c933318d0e32fed3aea67e304f174d03170a38fd920c4fbe49fec0c3
67
+ 2.3.5 5462f7bbb28beff5da7441968471ed922f964db1abdce82b8860608acc23ddcc
68
+ 2.3.6 8322513279f9edfa612d445bc111a87894fac1128eaa539301cebfc0dd51571e
69
+ 2.3.7 35cd349cddf78e4a0640d28ec8c7e88a2ae0db51ebd8926cd232bb70db2c7d7f
70
+ 2.4.2 93b9e75e00b262bc4def6b26b7ae8717efc252c47154abb7392e54357e6c8c9c
71
+ 2.4.3 fd0375582c92045aa7d31854e724471fb469e11a4b08ff334d39052ccaaa3a98
72
+ 2.4.4 254f1c1a79e4cc814d1e7320bc5bdd995dc57e08727d30a767664619a9c8ae5a
73
+ 2.5.1 dac81822325b79c3ba9532b048c2123357d3310b2b40024202f360251d9829b1
74
+ ].map(&:freeze).each_slice(2).to_h.freeze
77
75
 
78
76
  # The ruby version to install, as it appears in source packages
79
77
  # from ruby-lang.org. Note that starting with 2.1.0, the patch
@@ -165,8 +163,14 @@ module SyncWrap
165
163
  dist_install( %w[ curl gcc make autoconf zlib-devel
166
164
  openssl-devel readline-devel libyaml-devel libffi-devel ] )
167
165
  else
168
- dist_install( %w[ curl gcc make autoconf zlib1g-dev
169
- libssl-dev libreadline-dev libyaml-dev libffi-dev ] )
166
+ dist_install( %w[ curl gcc make autoconf ] )
167
+ if distro.is_a?( Debian )
168
+ dist_install( %w[ zlib1g-dev libssl-dev libreadline-dev
169
+ libyaml-dev libffi-dev ] )
170
+ if version_lt?(ruby_version, [2,4]) && version_gte?(debian_version, [10])
171
+ dist_install( %w[ libssl1.0-dev ] )
172
+ end
173
+ end
170
174
  end
171
175
  end
172
176
 
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2011-2017 David Kellum
2
+ # Copyright (c) 2011-2018 David Kellum
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License"); you
5
5
  # may not use this file except in compliance with the License. You may
@@ -37,22 +37,23 @@ module SyncWrap
37
37
  # A set of known cryptographic hashes, keyed by version
38
38
  # string. We prefer sha256 but sha1 is what is published for
39
39
  # 1.7.x.
40
- KNOWN_HASHES = {
41
- '1.7.22' => '6b9e310a04ad8173d0d6dbe299da04c0ef85fc15',
42
- '1.7.23' => '2b5e796feeed2bcfab02f8bf2ff3d77ca318e310',
43
- '1.7.24' => '0c321d2192768dfec419bee6b44c7190f4db32e1',
44
- '1.7.25' => 'cd15aef419f97cff274491e53fcfb8b88ec36785',
45
- '1.7.26' => 'cca25a1ffb8b75a8d4a4d4667e7f6b20341c2b74',
46
- '1.7.27' => '4a24fe103d3735b23cc58668dec711857125a6f3',
47
- '9.1.12.0' =>
48
- 'ddb23c95f4b3cc3fc1cc57b81cb4ceee776496ede402b9a6eb0622cf15e1a597',
49
- '9.1.13.0' =>
50
- '9d156646623ac2f27174721035b52572a4b05690db7c1293295aa2c04aad3908',
51
- }
40
+ KNOWN_HASHES = %w[
41
+ 1.7.22 6b9e310a04ad8173d0d6dbe299da04c0ef85fc15
42
+ 1.7.23 2b5e796feeed2bcfab02f8bf2ff3d77ca318e310
43
+ 1.7.24 0c321d2192768dfec419bee6b44c7190f4db32e1
44
+ 1.7.25 cd15aef419f97cff274491e53fcfb8b88ec36785
45
+ 1.7.26 cca25a1ffb8b75a8d4a4d4667e7f6b20341c2b74
46
+ 1.7.27 4a24fe103d3735b23cc58668dec711857125a6f3
47
+ 9.1.12.0 ddb23c95f4b3cc3fc1cc57b81cb4ceee776496ede402b9a6eb0622cf15e1a597
48
+ 9.1.13.0 9d156646623ac2f27174721035b52572a4b05690db7c1293295aa2c04aad3908
49
+ 9.1.14.0 074057e672350a6652d92ccaaa5d517fc7d6b980bce8b947515fb64d114d1651
50
+ 9.1.15.0 4a0d9305867ed327a8cf4f7ff8a65c7ff62094a495ec85463d0792656762469e
51
+ 9.1.17.0 6a22f7bf8fef1a52530a9c9781a9d374ad07bbbef0d3d8e2af0ff5cbead0dfd5
52
+ ].map(&:freeze).each_slice(2).to_h.freeze
52
53
 
53
54
  # JRuby version to install (default: DEFAULT_VERSION)
54
55
  #
55
- # Example values: '1.7.27', '9.1.13.0'
56
+ # Example values: '1.7.27', '9.1.15.0'
56
57
  attr_accessor :jruby_version
57
58
 
58
59
  # A cryptographic hash value (hexadecimal, some standard length)