dns_one 0.4.26 → 0.4.27

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: f6d9b8c5bc88e5515580d820944a757efcb4e89c
4
- data.tar.gz: c23c698a4da7c599e879a2fdd9a1e3e1260900f6
3
+ metadata.gz: 63df770ef159cb42a3e3b9ea616871d8716c2911
4
+ data.tar.gz: e5f2bbd34d708cb3475fa630001fe1bc783f2f72
5
5
  SHA512:
6
- metadata.gz: bdf38a98b59259886be51d89a2507cfb27d3fb0db4b065448447a501282fea0e58bdf03257920ad5d9f4c1dfa98ad99114310cad35c0dbf99f35f7155a16747b
7
- data.tar.gz: '0946a808e96a9e15773f23c4a7744d1528b7deaba46502b4a7af1c6cfe2b3882d4785bfcd3ca208ef89c1cda1fd6801634db26192f4e2587c513ca1921c558c2'
6
+ metadata.gz: e0ebd71c102d6a186f81a755370d939be121a93874fe5591cb1b1a32ab766230527fc9be96a16a4ea5b6e6ff0d516fbff2430d5fd4f377dc574f9ee735026d39
7
+ data.tar.gz: b4664880b77c503a7a55eadcf8516840f359301fdacc93c05bb49848f140604038863acdc711c413f840d5732d5f815cdd7d71319215c3f165d04b76a89776df
data/README.md CHANGED
@@ -10,6 +10,8 @@ Instead having a complex data schema to assign record sets to DNS zones, dns_one
10
10
 
11
11
  Configure your record sets in YML files and fetch your domains from a database or YML backend.
12
12
 
13
+ *DnsOne is written on top of the great gem [https://github.com/socketry/rubydns](https://github.com/socketry/rubydns). Big thanks!
14
+
13
15
  ## Installation
14
16
 
15
17
  # gem install dns_one
data/dns_one.gemspec CHANGED
@@ -28,5 +28,6 @@ Gem::Specification.new do |spec|
28
28
  spec.add_runtime_dependency "thor", '~> 0.19'
29
29
  spec.add_runtime_dependency "rubydns", '~> 1.0'
30
30
  spec.add_runtime_dependency "rexec", '~> 1.6'
31
+ spec.add_runtime_dependency "pg", '~> 1.0'
31
32
 
32
33
  end
@@ -40,7 +40,7 @@ module DnsOne; module Backend; class DB
40
40
  end
41
41
 
42
42
  def setup_db
43
- require_deps
43
+ #require_deps
44
44
  ActiveRecord::Base.logger = Log.logger
45
45
  ActiveRecord::Base.establish_connection @conf
46
46
  end
data/lib/dns_one/setup.rb CHANGED
@@ -14,13 +14,13 @@ module DnsOne; class Setup
14
14
 
15
15
  def install
16
16
  check_root
17
- check_ruby_version
17
+ #check_ruby_version
18
18
  unless Util.has_systemd?
19
19
  STDERR.puts "DnsOne requires systemd. Aborting install."
20
20
  exit 1
21
21
  end
22
22
  mkdirs
23
- set_ruby_version
23
+ #set_ruby_version
24
24
  copy_sample_conf
25
25
  add_user
26
26
  install_systemd_service
@@ -1,3 +1,3 @@
1
1
  module DnsOne
2
- VERSION = "0.4.26"
2
+ VERSION = "0.4.27"
3
3
  end
data/lib/dns_one.rb CHANGED
@@ -3,11 +3,14 @@ require 'syslog'
3
3
  require 'syslog/logger'
4
4
  require 'ostruct'
5
5
  require 'singleton'
6
+ require 'fileutils'
6
7
 
7
8
  # Gems
8
9
  require 'rexec'
9
10
  require 'rubydns'
10
11
  require 'yaml'
12
+ require 'pg'
13
+ require 'active_record'
11
14
 
12
15
  # DnsOne
13
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dns_one
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.26
4
+ version: 0.4.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lobato
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-29 00:00:00.000000000 Z
11
+ date: 2018-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.6'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pg
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.0'
97
111
  description: Instead having a complex data schema to assign record sets to DNS zones,
98
112
  dns_one assigns one or a few record sets to many zones. Configure your record sets
99
113
  in YML files and fetch your domains from a database or YML backend.
@@ -155,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
169
  version: '0'
156
170
  requirements: []
157
171
  rubyforge_project:
158
- rubygems_version: 2.5.2
172
+ rubygems_version: 2.6.13
159
173
  signing_key:
160
174
  specification_version: 4
161
175
  summary: DNS server for many zones sharing only one or few records, written in Ruby.