dns_one 0.4.15 → 0.4.16

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
  SHA1:
3
- metadata.gz: 303a748db4425c8e485e8df8da7d9f0ed74b5417
4
- data.tar.gz: '08d82b4b05a13a7dc1ab3d73bc1376d28257ffb2'
3
+ metadata.gz: 46f4776bc41c27a702698697491fb1eeb30fb8e2
4
+ data.tar.gz: 32350935943b97824b6080a0f70a8a485a009f90
5
5
  SHA512:
6
- metadata.gz: 040dc7b5e7c852eee9135e93c58c41c8925baec933126fd16a3f8ce6ddebc2985c7694d345b0c448bcfa4ca1da05ba0c4cd3fb17856b811b8385608a6c7d074b
7
- data.tar.gz: 97bf69421cf5a236c243d3e00c4b2f4c9b6bebfa6ce22272aa999c67d19b1cf42b32be95cf63a292f97b97829ad6817176fe00d0d1d7c6335158ae43fc17fe66
6
+ metadata.gz: 419a12041cfc52799c764453de38a453a85ae4596a9a6b77e8a97022a91010ba017e3a423e17f3158ad8218e360d5104e5e5b93e4022093ba0326a7febc0a966
7
+ data.tar.gz: 52dd3a8dde11cf5c4b7f55e52f88a4864913a1b5e84045510dbefba25127fa567ed4c993f7329cafcadf63d1642feacfe8088b0a66f4698a98998754f969b7ad
data/lib/dns_one/setup.rb CHANGED
@@ -14,6 +14,7 @@ module DnsOne; class Setup
14
14
 
15
15
  def install
16
16
  check_root
17
+ check_ruby_version
17
18
  unless Util.has_systemd?
18
19
  STDERR.puts "DnsOne requires systemd. Aborting install."
19
20
  exit 1
@@ -39,6 +40,13 @@ module DnsOne; class Setup
39
40
 
40
41
  private
41
42
 
43
+ def check_ruby_version
44
+ if RUBY_VERSION != REQUIRED_RUBY_VERSION
45
+ STDERR.puts "Currently dns_one supports #{REQUIRED_RUBY_VERSION} only. Aborting install."
46
+ exit 1
47
+ end
48
+ end
49
+
42
50
  def add_user
43
51
  # TODO: prompt user
44
52
  system "adduser --system --no-create-home #{DnsOne::Server::DEFAULT_RUN_AS}"
@@ -1,3 +1,3 @@
1
1
  module DnsOne
2
- VERSION = "0.4.15"
2
+ VERSION = "0.4.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dns_one
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.15
4
+ version: 0.4.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lobato