knife-dns-update 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZGE4MjQwMmM0YzcxNWExNTczYjdlOTE0ZjJlMTNjNjFmYjcwMWQ2YQ==
5
- data.tar.gz: !binary |-
6
- ZWJkYzljZTRlMTM1NGNiMmJhNTRkMDgyNGU5ZmFiMjlmZjFkZjczMw==
2
+ SHA1:
3
+ metadata.gz: a4db1be062b05de86a528c1f9a8dc4da6c284f76
4
+ data.tar.gz: f321004fa2574c181c8eb9def1a2b8fe5152420d
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ODdjZTBiN2RmZDFkNmZjYzJjNDU0YzE5NjEwZmEzNDJjOWU4MGZmYjMxMTUw
10
- NzYwMTgyYzA5MjI3NTRhNDczZjgwZDhjODYwMzQ1YmI2ZTI4OTEwZDRhNDk5
11
- ODE1OGE1MWEyNzNmZTMzZjRkMzQ5NjVlOGI4YjM3OTY4YTlhYzM=
12
- data.tar.gz: !binary |-
13
- M2FjNjJjODg5MGMyOTM2M2ZjMjA5YjEwNzZlMzQxMmVkYmM0MjcyMDRmM2E4
14
- ZTg5MjJkMGEzNzdhNGUxYjg2ZTY4Njg5YWI0YmU0OWU4MmNkNjdhZjk5NTIz
15
- M2U2YmRkYjdlNDQwN2JlOTk1YjViN2JmNzJiMjc1ZjAzNmNjNDM=
6
+ metadata.gz: b5e0fdc5283060dbe03f97d2abbf439e34a83dc27d18be956ddd98da0dbff9457cbc766800d1d4ecbf0a68fae88937e900b626e44c49f741e1cf27c1e959ecfa
7
+ data.tar.gz: 24e12dd465c4d3902fa36a8af5d57ff6248d3d297a384554e29af22812ae1d6a27b24659f44a29ac2cb73a1d6ca1cd5fb0ac3cbf64e72f50730e8d56271e2983
@@ -1,13 +1,12 @@
1
1
  ---
2
2
  bundler_args: --without developer_workstation
3
- script: bundle exec thor spec:ci
3
+ script: bundle exec rake spec
4
4
  rvm:
5
- - 1.9.3
6
- - 2.0.0
5
+ - 2.0
6
+ - 2.1
7
+ - 2.2
7
8
  notifications:
8
9
  hipchat:
9
10
  secure: ! 'XggFlX0Al0nEMLl0X3Fsyr8X5NSdXwfyhBhKg3bskYoKzbIcexA8eDJBiuSa
10
-
11
11
  ych7knx0SI/Dzhvs+WnQjWyBhu5VwHBnQvBxMGqVZ71WLn7IbzAME1W8q0b0
12
-
13
12
  mRzkvCIRWuMaPz3m24LuTyga9w0XB1AFN5+tlP6fCuYXglCOYws='
data/Gemfile CHANGED
@@ -7,7 +7,4 @@ gemspec
7
7
  group :developer_workstation do
8
8
  gem 'awesome_print'
9
9
  gem 'pry'
10
- gem 'pry-debugger'
11
- gem 'pry-rescue'
12
- gem 'pry-stack_explorer'
13
10
  end
@@ -0,0 +1,15 @@
1
+ $:.push File.expand_path('../lib', __FILE__)
2
+ require 'rubygems'
3
+
4
+ require 'bundler/setup'
5
+
6
+ require 'rake/testtask'
7
+
8
+ namespace :gem do
9
+ Bundler::GemHelper.install_tasks
10
+ end
11
+
12
+ Rake::TestTask.new :spec do |task|
13
+ task.libs << 'spec'
14
+ task.test_files = FileList['spec/**/*_spec.rb']
15
+ end
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "minitest"
25
25
  spec.add_development_dependency "mocha"
26
26
  spec.add_development_dependency 'simplecov'
27
- spec.add_development_dependency "thor", "~> 0.18.1"
27
+ spec.add_development_dependency "rake", "~> 10.4"
28
28
  spec.add_development_dependency "wrong", ">= 0.7.0"
29
29
  end
@@ -96,7 +96,7 @@ module KnifeDnsUpdate
96
96
 
97
97
  managed = Set.new
98
98
 
99
- zone.records.each do |rec|
99
+ zone.records.all!.each do |rec|
100
100
  next if %w(NS SOA).include? rec.type
101
101
  ui.info("Looking at: #{rec.name} IN #{rec.type} #{rec.value}") if config[:verbosity] >= 3
102
102
 
@@ -57,7 +57,7 @@ module KnifeDnsUpdate
57
57
  case
58
58
  when block_given?
59
59
  yield node
60
- when !is_root_record && node['cloud'] && node['cloud']['public_hostname']
60
+ when !is_root_record && node['cloud'] && node['cloud']['public_hostname'] && node['cloud']['public_hostname'].include?('.')
61
61
  [ :cname, node['cloud']['public_hostname'] ]
62
62
  when node['cloud'] && node['cloud']['public_ipv4']
63
63
  [ :a, node['cloud']['public_ipv4'] ]
@@ -1,3 +1,3 @@
1
1
  module KnifeDnsUpdate
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-dns-update
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Pasternacki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-07 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fog
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.9'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.9'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mocha
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: thor
98
+ name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.18.1
103
+ version: '10.4'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.18.1
110
+ version: '10.4'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: wrong
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ! '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.7.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ! '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.7.0
125
125
  description: Updates DNS based on Chef database
@@ -129,14 +129,14 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
- - .gitignore
133
- - .travis.yml
132
+ - ".gitignore"
133
+ - ".travis.yml"
134
134
  - CHANGELOG.md
135
135
  - CONTRIBUTING.md
136
136
  - Gemfile
137
137
  - LICENSE.txt
138
138
  - README.md
139
- - Thorfile
139
+ - Rakefile
140
140
  - knife-dns-update.gemspec
141
141
  - lib/chef/knife/dns_update.rb
142
142
  - lib/knife-dns-update.rb
@@ -154,17 +154,17 @@ require_paths:
154
154
  - lib
155
155
  required_ruby_version: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ! '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - ! '>='
162
+ - - ">="
163
163
  - !ruby/object:Gem::Version
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 2.2.2
167
+ rubygems_version: 2.5.0
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Updates Route 53 DNS entries based on Chef database contents
data/Thorfile DELETED
@@ -1,60 +0,0 @@
1
- $:.push File.expand_path('../lib', __FILE__)
2
- require 'rubygems'
3
-
4
- require 'bundler/setup'
5
-
6
- require 'rake/testtask'
7
- require 'thor/rake_compat'
8
-
9
- class Default < Thor
10
- class Gem < Thor
11
- namespace :gem
12
-
13
- include Thor::RakeCompat
14
- Bundler::GemHelper.install_tasks
15
-
16
- desc "build", "Build knife-dns-update-#{KnifeDnsUpdate::VERSION}.gem into the pkg directory"
17
- def build
18
- Rake::Task["build"].execute
19
- end
20
-
21
- desc "release", "Create tag v#{KnifeDnsUpdate::VERSION} and build and push knife-dns-update-#{KnifeDnsUpdate::VERSION}.gem to Rubygems"
22
- def release
23
- Rake::Task["release"].execute
24
- end
25
-
26
- desc "install", "Build and install knife-dns-update-#{KnifeDnsUpdate::VERSION}.gem into system gems"
27
- def install
28
- Rake::Task["install"].execute
29
- end
30
- end
31
-
32
- class Test < Thor
33
- namespace :test
34
- default_command :all
35
-
36
- include Thor::RakeCompat
37
-
38
- Rake::TestTask.new :spec do |task|
39
- task.libs << 'spec'
40
- task.test_files = FileList['spec/**/*_spec.rb']
41
- end
42
-
43
- desc 'spec', 'Run specs'
44
- def spec
45
- Rake::Task['spec'].execute
46
- end
47
-
48
- desc 'all', 'Run all tests'
49
- def all
50
- invoke(:spec)
51
- end
52
-
53
- desc 'ci', 'Run all tests for continuous integration'
54
- def ci
55
- ENV['CI'] = 'true'
56
- invoke(:all)
57
- end
58
- end
59
- end
60
-