pdns 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7581f5a6b0b3bc9fca4a123ae0940a4fbea80b74
4
- data.tar.gz: 60262ba0711ed5da2d87c4e249a62f04e71d6c9a
3
+ metadata.gz: a0ea0cf9cd509c7aa13eb5e92716e0ce72b6cd69
4
+ data.tar.gz: a784a508ecc15be87a77c71944e5432ad369a5ce
5
5
  SHA512:
6
- metadata.gz: 1c219d15df576cac18deb058556a91227a4a97f9a3e34fb93e9cd205f230e6ce71ff625b6405caf3cb7202354967aa81c8fee9cb7a1ade6b887bcd205557036b
7
- data.tar.gz: 7f05241ac60161650bfa26cea4b35ff12e61342db36557c5ea9c2517b1bdc17da557d62e29dc628c3b213ea8d8c2db36de20816195ebb5b65b095670f73e50b1
6
+ metadata.gz: 8c312b38b183d246f0cf619c45a542dfc80999d41d3e010b9d46be7ee9d0c1acd485655aa6feb1a9a89e97447b8dae48e9024b241386002fc280a9445e7a7d61
7
+ data.tar.gz: ff419d9cb1c917d1e8a6ef9a9c97dbf191f2d06e1a538ba420b51c87f29395336e2ff2f11a511712b43ffa4c21e9ca3e99dbd05d0adf21f1c6d9dfb3fe1baf5a
@@ -1,3 +1,3 @@
1
1
  module PDNS
2
- VERSION = '0.8.0'
2
+ VERSION = '0.8.1'
3
3
  end
@@ -2,7 +2,7 @@ require 'pdns'
2
2
  include ActiveRecord::Tasks
3
3
 
4
4
  namespace :pdns do
5
- task :prepare do
5
+ task prepare: %i(environment) do
6
6
  DatabaseTasks.database_configuration = PDNS.db_conf
7
7
  DatabaseTasks.db_dir = PDNS.db_dir_path
8
8
  ActiveRecord::Base.configurations = DatabaseTasks.database_configuration
@@ -19,8 +19,11 @@ namespace :pdns do
19
19
  DatabaseTasks.drop_current
20
20
  end
21
21
 
22
- desc 'Setup database for PDNS'
23
- task setup: %i(prepare) do
22
+ desc 'Load schema for PDNS'
23
+ task migrate: %i(prepare) do
24
24
  DatabaseTasks.load_schema_current(:ruby)
25
25
  end
26
+
27
+ desc 'Setup database for PDNS'
28
+ task setup: %i(prepare create migrate)
26
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
11
+ date: 2017-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -68,8 +68,6 @@ files:
68
68
  - app/models/pdns/application_record.rb
69
69
  - app/models/pdns/domain.rb
70
70
  - app/models/pdns/record.rb
71
- - config/database-pdns.yml
72
- - config/initializers/pdns.rb
73
71
  - config/routes.rb
74
72
  - db/schema.rb
75
73
  - lib/generators/pdns/install_generator.rb
@@ -1,38 +0,0 @@
1
- sqlite: &sqlite
2
- adapter: sqlite3
3
- database: db/development.sqlite3
4
-
5
- mysql: &mysql
6
- adapter: mysql2
7
- username: root
8
- host: localhost
9
- password:
10
- database: pdns_development
11
- encoding: utf8
12
-
13
- postgresql: &postgresql
14
- pool: 16
15
- timeout: 5000
16
- adapter: postgresql
17
- encoding: unicode
18
- username: postgres
19
- password:
20
- database: pdns_development
21
- min_messages: ERROR
22
-
23
- default: &default
24
- <<: *mysql
25
-
26
- development:
27
- <<: *default
28
-
29
- test:
30
- <<: *default
31
- database: pdns_test
32
-
33
- production:
34
- <<: *default
35
- database: pdns
36
- host: <%= ENV['DB_HOST'] %>
37
- username: <%= ENV['DB_USER'] %>
38
- password: <%= ENV['DB_PASS'] %>
@@ -1,8 +0,0 @@
1
- PDNS.setup do |c|
2
- # Defaults:
3
- # c.domain_format = /\A[^-][a-z0-9\-\._]*[^-]\.[a-z0-9-]{2,}\Z/
4
- # c.domain_format_for_routes = /[a-z0-9\-\._]*\.[a-z0-9-]{2,}/
5
- # c.db_name = :pdns
6
- # c.db_conf_path = "config/database-#{self.db_name}.yml"
7
- # c.db_dir_path = File.expand_path('../../db', __FILE__)
8
- end