devdnsd 1.1.10 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the devdns gem. Copyright (C) 2012 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the devdnsd gem. Copyright (C) 2012 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
 
@@ -8,20 +8,6 @@ require "spec_helper"
8
8
  require "tempfile"
9
9
 
10
10
  describe DevDNSd::Configuration do
11
- class DevDNSd::Application
12
- def logger
13
- Bovem::Logger.new("/dev/null")
14
- end
15
- end
16
-
17
- let(:log_file) { "/tmp/devdnsd-test-log-#{Time.now.strftime("%Y%m%d-%H:%M:%S")}" }
18
-
19
- let(:new_application) {
20
- app = DevDNSd::Application.new({:log_file => log_file})
21
- app.logger = Bovem::Logger.create("/dev/null", Bovem::Logger::DEBUG)
22
- app
23
- }
24
-
25
11
  describe "#initialize" do
26
12
  it "sets default arguments and rules" do
27
13
  config = DevDNSd::Configuration.new
@@ -47,4 +33,4 @@ describe DevDNSd::Configuration do
47
33
  expect { config.add_rule("RULE") }.to raise_error(DevDNSd::Errors::InvalidRule)
48
34
  end
49
35
  end
50
- end
36
+ end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the devdns gem. Copyright (C) 2012 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the devdnsd gem. Copyright (C) 2012 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
 
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  #
3
- # This file is part of the devdns gem. Copyright (C) 2012 and above Shogun <shogun_panda@me.com>.
3
+ # This file is part of the devdnsd gem. Copyright (C) 2012 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
 
data/utils/tester.rb CHANGED
@@ -8,7 +8,6 @@
8
8
  basedir = File.expand_path(File.dirname(__FILE__))
9
9
  require "rubygems"
10
10
  require "bovem"
11
- require "rainbow"
12
11
  require "net/dns"
13
12
 
14
13
  # Patch to avoid resolving of hostname containing numbers.
@@ -73,7 +72,7 @@ def devdnsd_resolv(address = "match.dev", type = "ANY", nameserver = "127.0.0.1"
73
72
  rv = []
74
73
 
75
74
  logger = Bovem::Logger.new("/dev/null", Bovem::Logger::DEBUG) if !logger
76
- logger.info("Resolving address #{address.bright} with type #{type.to_s.bright} at nameserver #{nameserver.bright}:#{port.to_s.bright} ...")
75
+ logger.info(::Bovem::Console.replace_markers("Resolving address {mark=bright}#{address}{/mark} with type {mark=bright}#{type}{/mark} at nameserver {mark=bright}#{nameserver}{/mark}:{mark=bright}#{port.to_s}{/mark} ..."))
77
76
  tmpfile = "/tmp/devdnsd-test-tester-#{Time.now.strftime("%Y%m%d-%H:%M:%S")}"
78
77
 
79
78
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devdnsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.10
4
+ version: 1.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,32 +9,16 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-04 00:00:00.000000000 Z
12
+ date: 2012-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: bovem
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 0.5.0
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: 0.5.0
30
- - !ruby/object:Gem::Dependency
31
- name: gli
15
+ name: mamertes
32
16
  requirement: !ruby/object:Gem::Requirement
33
17
  none: false
34
18
  requirements:
35
19
  - - ~>
36
20
  - !ruby/object:Gem::Version
37
- version: 1.6.0
21
+ version: 1.1.0
38
22
  type: :runtime
39
23
  prerelease: false
40
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +26,7 @@ dependencies:
42
26
  requirements:
43
27
  - - ~>
44
28
  - !ruby/object:Gem::Version
45
- version: 1.6.0
29
+ version: 1.1.0
46
30
  - !ruby/object:Gem::Dependency
47
31
  name: rubydns
48
32
  requirement: !ruby/object:Gem::Requirement
@@ -222,6 +206,27 @@ files:
222
206
  - bin/devdnsd
223
207
  - config/devdnsd_config.sample
224
208
  - devdnsd.gemspec
209
+ - doc/DevDNSd.html
210
+ - doc/DevDNSd/Application.html
211
+ - doc/DevDNSd/Configuration.html
212
+ - doc/DevDNSd/Errors.html
213
+ - doc/DevDNSd/Errors/InvalidRule.html
214
+ - doc/DevDNSd/Rule.html
215
+ - doc/DevDNSd/Version.html
216
+ - doc/_index.html
217
+ - doc/class_list.html
218
+ - doc/css/common.css
219
+ - doc/css/full_list.css
220
+ - doc/css/style.css
221
+ - doc/file.README.html
222
+ - doc/file_list.html
223
+ - doc/frames.html
224
+ - doc/index.html
225
+ - doc/js/app.js
226
+ - doc/js/full_list.js
227
+ - doc/js/jquery.js
228
+ - doc/method_list.html
229
+ - doc/top-level-namespace.html
225
230
  - lib/devdnsd.rb
226
231
  - lib/devdnsd/application.rb
227
232
  - lib/devdnsd/configuration.rb
@@ -248,7 +253,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
248
253
  version: '0'
249
254
  segments:
250
255
  - 0
251
- hash: 1821900105084633995
256
+ hash: -552963886880312959
252
257
  required_rubygems_version: !ruby/object:Gem::Requirement
253
258
  none: false
254
259
  requirements:
@@ -257,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
262
  version: '0'
258
263
  segments:
259
264
  - 0
260
- hash: 1821900105084633995
265
+ hash: -552963886880312959
261
266
  requirements: []
262
267
  rubyforge_project: devdnsd
263
268
  rubygems_version: 1.8.24