landrush 1.1.0.beta.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f14705abc9cca46ab6289380605e920f7d0b1b9
4
- data.tar.gz: 9fec7c2e50cb5d6e5e006474320894bca04df10e
3
+ metadata.gz: b816d63e7e9441bd34bb0d97719d670a43f0317e
4
+ data.tar.gz: 249cc9e68031d224c9e2d6481bfdba8e1b358caa
5
5
  SHA512:
6
- metadata.gz: 4a6d04db3fbe1e996d3f71cf650793c6876436ad851d062428fc563ee8218de1f5ba3771611ecafc1d55b3c56bee2a64a0eacdace3581ae23ebbeb4b87b36dda
7
- data.tar.gz: 43738660461e9f0b5c20aa7d43e46063ef5cadacc406799daeb927679666bdeb3cf806d5d5f18f5973a17eadef759390a87790ed184d626b40a214a7efa0f05f
6
+ metadata.gz: c50874304397ffc4493155201de0907920ccfcb4a488e53365c6e411d7fbb04aed798aeecd71c505b9a243b5a49f36b7050dc47722a7c5394c4ee4ec052459fe
7
+ data.tar.gz: 7c884db92b63aedc15a74b26aa84cc8d790c68dc77e34406ccead1bc73e9a44051060e3ec3b9458b3348914c24dba28e55296d203c30b798f93ee1e340f8cd72
@@ -1,3 +1,25 @@
1
+ ## [1.1.0] - 2016-08-05
2
+
3
+ - Issue [#234](https://github.com/vagrant-landrush/landrush/issues/234) - sed command in RestartDnsmasq for redhat hosts does insert 127.0.0.1
4
+ - Issue [#231](https://github.com/vagrant-landrush/landrush/issues/231) - Make sure that there is alway a ruby binary on the path
5
+ - Issue [#233](https://github.com/vagrant-landrush/landrush/issues/233) - Wrong sudo command in ConfigureVisibilityOnHost for OS X bug
6
+ - Issue [#229](https://github.com/vagrant-landrush/landrush/issues/229) - ConfigureVisibilityOnHost exist main execution when not in admin mode
7
+ - Issue [#226](https://github.com/vagrant-landrush/landrush/issues/226) - Landrush::Cap::Linux::ConfigureVisibilityOnHost accesses capabilties the wrong way
8
+ - Issue [#225](https://github.com/vagrant-landrush/landrush/issues/225) - Windows host configuration fails starting the Wired AutoConfig service
9
+ - Issue [#223](https://github.com/vagrant-landrush/landrush/issues/223) - The wrong TLD is used for the darwin host capabiltiy configure_visibility_on_host bug
10
+ - Issue [#215](https://github.com/vagrant-landrush/landrush/issues/215) - Document issues with upstream DNS server configuration in VPN settings documentation
11
+ - Issue [#211](https://github.com/vagrant-landrush/landrush/issues/211) - Provide automatic host visibility configuration on Linux feature
12
+ - Issue [#202](https://github.com/vagrant-landrush/landrush/issues/202) - Landrush kill not working in Windows environment
13
+ - Issue [#209](https://github.com/vagrant-landrush/landrush/issues/209) - Remove issues directory
14
+ - Issue [#190](https://github.com/vagrant-landrush/landrush/issues/190) - Add `sudoers` rules to README to support passwordless provisioning
15
+ - Issue [#176](https://github.com/vagrant-landrush/landrush/issues/176) - Can't create cname in Vagrantfile
16
+ - Issue [#171](https://github.com/vagrant-landrush/landrush/issues/171) - Provide automatic host visibility configuration on Windows
17
+ - Issue [#201](https://github.com/vagrant-landrush/landrush/issues/201) - Upgrade to Vagrant 1.8.4 as development version build
18
+ - Issue [#189](https://github.com/vagrant-landrush/landrush/issues/189) - Improve IP determination by using config information guest-ip-detection
19
+ - Issue [#199](https://github.com/vagrant-landrush/landrush/issues/199) - Switch to win32-process for creating sub processes on Windows bug
20
+ - Issue [#114](https://github.com/vagrant-landrush/landrush/issues/114) - Make IP determination platform-agnostic and a bit more flexible enhancement guest-ip-detection
21
+ - Issue [#196](https://github.com/vagrant-landrush/landrush/issues/196) - gem spec refers to old repo
22
+
1
23
  ## [1.0.0] - 2016-05-18
2
24
 
3
25
  - Added: Acceptance CI tests ([#136](https://github.com/vagrant-landrush/landrush/issues/136))
@@ -19,6 +41,7 @@
19
41
  ## [0.16.0] - 2015-01-18
20
42
  - Added: Support for IN::PTR records (#98)
21
43
 
44
+ [1.1.0]: https://github.com/phinze/landrush/compare/v1.0.0...v1.1.0
22
45
  [1.0.0]: https://github.com/phinze/landrush/compare/v0.19.0...v1.0.0
23
46
  [0.19.0]: https://github.com/phinze/landrush/compare/v0.18.0...v0.19.0
24
47
  [0.18.0]: https://github.com/phinze/landrush/compare/v0.17.0...v0.18.0
@@ -48,7 +48,7 @@ module Landrush
48
48
 
49
49
  def write_config!
50
50
  info 'Momentarily using sudo to put the host config in place...'
51
- system "#{self.class.sudo} mkdir #{config_dir}" unless config_dir.directory?
51
+ system "#{sudo} mkdir #{config_dir}" unless config_dir.directory?
52
52
  Tempfile.open('vagrant_landrush_host_config') do |f|
53
53
  f.write(desired_contents)
54
54
  f.close
@@ -4,9 +4,9 @@ module Landrush
4
4
  module RestartDnsmasq
5
5
  class << self
6
6
  SED_COMMAND = <<-EOF.gsub(/^ +/, '')
7
- sudo sed -i.orig '/nameserver/i\\
8
- nameserver 127.0.0.1 # Added by landrush, a vagrant plugin
9
-
7
+ sudo sed -i.orig '1 i\
8
+ # Added by landrush, a vagrant plugin \\
9
+ nameserver 127.0.0.1 \\
10
10
  ' /etc/resolv.conf
11
11
  EOF
12
12
 
@@ -65,6 +65,7 @@ module Landrush
65
65
 
66
66
  # Used to start the Landrush DNS server as a child process using ChildProcess gem
67
67
  def self.start
68
+ ensure_ruby_on_path
68
69
  if Vagrant::Util::Platform.windows?
69
70
  # Need to handle Windows differently. Kernel.spawn fails to work, if the shell creating the process is closed.
70
71
  # See https://github.com/vagrant-landrush/landrush/issues/199
@@ -266,8 +267,19 @@ module Landrush
266
267
  end
267
268
  end
268
269
 
270
+ # On a machine with just Vagrant installed there might be no other Ruby except the
271
+ # one bundled with Vagrant. Let's make sure the embedded bin directory containing
272
+ # the Ruby executable is added to the PATH.
273
+ def self.ensure_ruby_on_path
274
+ vagrant_binary = Vagrant::Util::Which.which('vagrant')
275
+ vagrant_binary = File.realpath(vagrant_binary) if File.symlink?(vagrant_binary)
276
+ # in a Vagrant installation the Ruby executable is in ../embedded/bin relative to the vagrant executable
277
+ embedded_bin_dir = File.join(File.dirname(File.dirname(vagrant_binary)), 'embedded', 'bin')
278
+ ENV['PATH'] = embedded_bin_dir + File::PATH_SEPARATOR + ENV['PATH'] if File.exist?(embedded_bin_dir)
279
+ end
280
+
269
281
  private_class_method :write_pid, :read_pid, :delete_pid_file, :pid_file, :process_status, :ensure_path_exits,
270
- :terminate_process
282
+ :terminate_process, :ensure_ruby_on_path
271
283
  end
272
284
  end
273
285
 
@@ -1,3 +1,3 @@
1
1
  module Landrush
2
- VERSION = '1.1.0.beta.4'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: landrush
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.beta.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Hinze
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-29 00:00:00.000000000 Z
11
+ date: 2016-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubydns
@@ -162,9 +162,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - '>'
165
+ - - '>='
166
166
  - !ruby/object:Gem::Version
167
- version: 1.3.1
167
+ version: '0'
168
168
  requirements: []
169
169
  rubyforge_project:
170
170
  rubygems_version: 2.4.6