devdnsd 1.7.0 → 2.0.0

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.
data/.travis-gemfile ADDED
@@ -0,0 +1,14 @@
1
+ # encoding: utf-8
2
+ #
3
+ # This file is part of the devdnsd gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
4
+ # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
+ #
6
+
7
+ source "http://rubygems.org"
8
+
9
+ gemspec
10
+
11
+ # Testing
12
+ gem "rspec", "~> 2.12.0"
13
+ gem "rake", "~> 10.0.3"
14
+ gem "net-dns", "~> 0.7.1"
data/.travis.yml CHANGED
@@ -1,8 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
- - 1.9.2
5
3
  - 1.9.3
6
- script: bundle exec rake spec:coverage
4
+ - 2.0.0
5
+ script: bundle exec rake spec
6
+ gemfile: .travis-gemfile
7
7
  notifications:
8
- email: false
8
+ email: false
data/Gemfile CHANGED
@@ -1,9 +1,21 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the devdnsd gem. Copyright (C) 2012 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the devdnsd gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
7
7
  source "http://rubygems.org"
8
8
 
9
9
  gemspec
10
+
11
+ # Testing
12
+ gem "rspec", "~> 2.12.0"
13
+ gem "rake", "~> 10.0.3"
14
+ gem "net-dns", "~> 0.7.1"
15
+
16
+ # Documentation
17
+ gem "simplecov", ">= 0.7.1"
18
+ gem "pry", ">= 0"
19
+ gem "yard", ">= 0.8.4"
20
+ gem "kramdown", ">= 0.14.2"
21
+ gem "github-markup", ">= 0.7.5"
data/README.md CHANGED
@@ -6,7 +6,9 @@
6
6
 
7
7
  A small DNS server to enable local .dev domain resolution.
8
8
 
9
- http://github.com/ShogunPanda/devdnsd
9
+ http://sw.cow.tc/devdnsd
10
+
11
+ http://rdoc.info/gems/devdnsd
10
12
 
11
13
  ## Description
12
14
 
@@ -81,5 +83,6 @@ You can, anyway, run the software as DNS server.
81
83
 
82
84
  ## Copyright
83
85
 
84
- Copyright (C) 2012 and above Shogun <[shogun_panda@me.com](mailto:shogun_panda@me.com)>.
85
- Licensed under the MIT license, which can be found at [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php).
86
+ Copyright (C) 2013 and above Shogun (shogun_panda@me.com).
87
+
88
+ Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
data/Rakefile CHANGED
@@ -8,11 +8,4 @@ require "bundler/gem_tasks"
8
8
  require "rspec/core/rake_task"
9
9
 
10
10
  RSpec::Core::RakeTask.new("spec")
11
-
12
- namespace :spec do
13
- desc "Run all specs with coverage"
14
- task :coverage do
15
- ENV["DEVDNSD_COVERAGE"] = "TRUE"
16
- Rake::Task["spec"].invoke
17
- end
18
- end
11
+ RSpec::Core::RakeTask.new("spec:coverage") { |t| t.ruby_opts = "-r./spec/coverage_helper" }
data/bin/devdnsd CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
3
  #
4
- # This file is part of the devdnsd gem. Copyright (C) 2012 and above Shogun <shogun_panda@me.com>.
4
+ # This file is part of the devdnsd gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
5
5
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
6
6
  #
7
7
 
@@ -9,35 +9,37 @@ require "rubygems"
9
9
  require "devdnsd"
10
10
 
11
11
  Mamertes.App do
12
+ localizer = Lazier::Localizer.new(:devdnsd, ::File.absolute_path(::Pathname.new(::File.dirname(__FILE__)).to_s + "/../locales/")).i18n
13
+
12
14
  name "DevDNSd"
13
- description "A small DNS server to enable local domain resolution."
15
+ description localizer.application_description
14
16
  version DevDNSd::Version::STRING
15
17
 
16
- option "configuration", [], {:type => String, :help => "The configuration file to use. Default is \"~/.devdnsd_config\".", :default => "~/.devdnsd_config", :meta => "FILE"}
17
- option "tld", [], {:type => String, :help => "The TLD to handle. Default is \"dev\".", :default => "dev", :meta => "DOMAIN"}
18
- option "port", [], {:type => Integer, :help => "The port to bind. Default is 7771", :default => 7771}
19
- option "pid-file", [:P], {:type => String, :help => "The PID file to use. Default: \"/var/run/devdnsd.pid\"", :default => "/var/run/devdnsd.pid"}
20
- option "log-file", [], {:type => String, :help => "The default log file. Not used if run in foreground. Default is \"/var/log/devdnsd.log\"", :default => "/var/log/devdnsd.log", :meta => "FILE"}
21
- option "log-level", [:L], {:type => Integer, :help => "The default log level. Valid values are from 0 to 5 where 0 means \"all messages\". Default is 1.", :default => 1, :meta => "LEVEL"}
18
+ option :configuration, [], {:type => String, :help => localizer.application_help_configuration, :default => "~/.devdnsd_config", :meta => localizer.application_meta_file}
19
+ option :tld, [], {:type => String, :help => localizer.application_help_tld, :default => "dev", :meta => localizer.application_meta_domain}
20
+ option :port, [], {:type => Integer, :help => localizer.application_help_port, :default => 7771, :meta => localizer.application_meta_port}
21
+ option :pid_file, [:P, "pid-file"], {:type => String, :help => localizer.application_help_pid_file, :default => "/var/run/devdnsd.pid", :meta => localizer.application_meta_file}
22
+ option :log_file, [:l, "log-file"], {:type => String, :help => localizer.application_help_log_file, :default => "/var/log/devdnsd.log", :meta => localizer.application_meta_file}
23
+ option :log_level, [:L, "log-level"], {:type => Integer, :help => localizer.application_help_log_level, :default => 1, :meta => localizer.application_meta_level}
22
24
 
23
25
  command :start do
24
- description "Starts the server."
25
- option "foreground", [:n], {:help => "Do not daemonize."}
26
+ description localizer.command_start
27
+ option "foreground", [:n], {:help => localizer.application_help_foreground}
26
28
  action { |command| DevDNSd::Application.instance(command).action_start() }
27
29
  end
28
30
 
29
31
  command :stop do
30
- description "Stops the server."
32
+ description localizer.command_stop
31
33
  action { |command| DevDNSd::Application.instance(command).action_stop() }
32
34
  end
33
35
 
34
36
  command :install do
35
- description "Installs the server."
37
+ description localizer.command_install
36
38
  action { |command| DevDNSd::Application.instance(command).action_install() }
37
39
  end
38
40
 
39
41
  command :uninstall do
40
- description "Uninstalls the server."
42
+ description localizer.command_uninstall
41
43
  action { |command| DevDNSd::Application.instance(command).action_uninstall() }
42
44
  end
43
45
 
data/devdnsd.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the devdnsd gem. Copyright (C) 2012 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the devdnsd gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
4
4
  # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
5
  #
6
6
 
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.version = DevDNSd::Version::STRING
12
12
  gem.authors = ["Shogun"]
13
13
  gem.email = ["shogun_panda@me.com"]
14
- gem.homepage = "http://github.com/ShogunPanda/devdnsd"
14
+ gem.homepage = "http://sw.cow.tc/devdnsd"
15
15
  gem.summary = %q{A small DNS server to enable local domain resolution.}
16
16
  gem.description = %q{A small DNS server to enable local domain resolution.}
17
17
 
@@ -21,18 +21,11 @@ Gem::Specification.new do |gem|
21
21
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
22
22
  gem.require_paths = ["lib"]
23
23
 
24
- gem.add_dependency("mamertes", "~> 1.2.0")
25
- gem.add_dependency("rubydns", "~> 0.5.2")
26
- gem.add_dependency("rexec", "~> 1.5.1")
24
+ gem.required_ruby_version = ">= 1.9.3"
27
25
 
28
- gem.add_development_dependency("rspec", "~> 2.11.0")
29
- gem.add_development_dependency("rake", "~> 0.9.0")
30
- gem.add_development_dependency("simplecov", "~> 0.7.0")
31
- gem.add_development_dependency("pry", ">= 0")
32
- gem.add_development_dependency("net-dns", "~> 0.7.0")
33
- gem.add_development_dependency("yard", "~> 0.8.0")
34
- gem.add_development_dependency("redcarpet", "~> 2.2.2")
35
- gem.add_development_dependency("github-markup", "~> 0.7.0")
26
+ gem.add_dependency("mamertes", "~> 2.0.7")
27
+ gem.add_dependency("rubydns", "~> 0.5.4")
28
+ gem.add_dependency("rexec", "~> 1.5.1")
36
29
  end
37
30
 
38
31