diff --git a/resources/entry.rb b/resources/entry.rb index 781e6655..c8299406 100644 --- a/resources/entry.rb +++ b/resources/entry.rb @@ -3,8 +3,8 @@ # Cookbook:: hostsfile # Resource:: entry # -# Copyright 2012-2013, Seth Vargo -# Copyright 2012, CustomInk, LCC +# Copyright:: 2012-2013, Seth Vargo +# Copyright:: 2012, CustomInk, LCC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -32,5 +32,5 @@ # Optional attributes attribute :aliases, kind_of: Array attribute :comment, kind_of: String -attribute :priority, kind_of: Fixnum +attribute :priority, kind_of: Integer attribute :unique, kind_of: [TrueClass, FalseClass] diff --git a/spec/unit/manipulator_spec.rb b/spec/unit/manipulator_spec.rb index 199eac14..8a12871f 100644 --- a/spec/unit/manipulator_spec.rb +++ b/spec/unit/manipulator_spec.rb @@ -10,7 +10,7 @@ '127.0.0.1 localhost', '::1 localhost6', '1.2.3.4 example.com', - '4.5.6.7 foo.example.com' + '4.5.6.7 foo.example.com', ] end @@ -19,7 +19,7 @@ Entry.new(ip_address: '127.0.0.1', hostname: 'localhost', to_line: '127.0.0.1 localhost', priority: 10), Entry.new(ip_address: '::1', hostname: 'localhost6', to_line: '::1 localhost6', priority: 11), Entry.new(ip_address: '1.2.3.4', hostname: 'example.com', to_line: '1.2.3.4 example.com', priority: 20), - Entry.new(ip_address: '4.5.6.7', hostname: 'foo.example.com', to_line: '4.5.6.7 foo.example.com', priority: 30) + Entry.new(ip_address: '4.5.6.7', hostname: 'foo.example.com', to_line: '4.5.6.7 foo.example.com', priority: 30), ] end