vagrant-rsync-only-changed 0.6.0 → 0.7.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fde9ce9979c3f56fdf77ef38938294c0f534ad1
4
- data.tar.gz: d5a3ff96c2537143cd5a19dc11892fc52421213f
3
+ metadata.gz: 7096956f33360023e620899878e8dc5e14104751
4
+ data.tar.gz: 997ec2c902ec75bb1b9030512549d56d817f759f
5
5
  SHA512:
6
- metadata.gz: ceb9c1f835dc746e2bb2542067d75a310cb91b8fb6e118ca79e242a82115dd2351bb10b4f8380b076ad4f3fbe09d983253edb8904671a17e782e235c8865d88b
7
- data.tar.gz: 65a06b41aebbd0d091aec20ffc4395a60359318b45dae01e67f52b1eb8f24894e3cad8452142de90ed02335a2917ad4469da8df989ee77432216fc6d37ceebfd
6
+ metadata.gz: 1d57369370b0d3d105e089b95b05e6f1cfc9e7a65a9d63e557d56eee013b190434e5c61dd81587a197472a72c087a814b0ec82101025c9622edb6ea6bc382966
7
+ data.tar.gz: 42cc0c7fc96a7033595ac31e53c7b91a65b031870ce1dd916f9806d335d9b53781e229be12b0f447f3c9e41f158076dfa0a894752e4a2d5fb4f2a76ebfba4cf4
@@ -1,8 +1,8 @@
1
1
  # This file is required because Vagrant's plugin system expects
2
2
  # an eponymous ruby file matching the rubygem.
3
3
  #
4
- # So this gem is called 'vagrant-gatling-rsync' and thus vagrant tries
5
- # to require "vagrant-gatling-rsync"
4
+ # So this gem is called 'vagrant-rsync-only-changed' and thus vagrant tries
5
+ # to require "vagrant-rsync-only-changed"
6
6
 
7
7
  require "vagrant-rsync-only-changed/plugin"
8
8
 
@@ -20,7 +20,7 @@ module VagrantPlugins
20
20
  # Ensure only one at_exit block is registered.
21
21
  return unless @rsync_only_changed_startup_registered == false
22
22
 
23
- return unless env[:machine].config.gatling.rsync_on_startup == true
23
+ return unless env[:machine].config.rsync_only_changed.rsync_on_startup == true
24
24
 
25
25
  at_exit do
26
26
  unless $!.is_a?(SystemExit)
@@ -36,7 +36,7 @@ module VagrantPlugins
36
36
 
37
37
  # Don't run if there are no rsynced folders.
38
38
  unless @rsync_folder_count == 0 then
39
- env[:ui].info I18n.t("vagrant_rsync-only-changed.startup_sync")
39
+ env[:ui].info I18n.t("vagrant_rsync_only_changed.startup_sync")
40
40
  env[:machine].env.cli("rsync-auto-only-changed")
41
41
  end
42
42
  end
@@ -4,7 +4,7 @@ module VagrantPlugins
4
4
  module RsyncOnlyChanged
5
5
  module Errors
6
6
  class VagrantRsyncOnlyChangedError < Vagrant::Errors::VagrantError
7
- error_namespace("vagrant_gatling_rsync.errors")
7
+ error_namespace("vagrant_rsync_only_changed.errors")
8
8
  end
9
9
 
10
10
  class OSNotSupportedError < VagrantRsyncOnlyChangedError
@@ -1,7 +1,7 @@
1
1
  begin
2
2
  require "vagrant"
3
3
  rescue LoadError
4
- raise "The Vagrant gatling rsync plugin must be run within Vagrant."
4
+ raise "The Vagrant rsync-only-changed plugin must be run within Vagrant."
5
5
  end
6
6
 
7
7
  module VagrantPlugins
@@ -14,6 +14,8 @@ module VagrantPlugins
14
14
 
15
15
  # This initializes the internationalization strings.
16
16
  def self.setup_i18n
17
+ I18n.load_path << File.expand_path("locales/en.yml", RsynOnlyChanged.source_root)
18
+ I18n.reload!
17
19
  end
18
20
 
19
21
  action_hook "startup-rsync" do |hook|
@@ -24,12 +26,11 @@ module VagrantPlugins
24
26
 
25
27
  command "rsync-auto-only-changed" do
26
28
  setup_i18n
27
-
28
29
  require_relative "command/rsync_auto"
29
30
  RsyncOnlyChangedAuto
30
31
  end
31
32
 
32
- config "gatling" do
33
+ config "rsync_only_changed" do
33
34
  require_relative "config"
34
35
  Config
35
36
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module RsyncOnlyChanged
3
- VERSION = "0.6.0"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  end
data/locales/en.yml ADDED
@@ -0,0 +1,8 @@
1
+ en:
2
+ vagrant_rsync_only_changed:
3
+ startup_sync: |-
4
+ vagrant-rsync-only-changed is starting the sync engine because you have at least one rsync folder. To disable this behavior, set `config.rsync_only_changed.rsync_on_startup = false` in your Vagrantfile.
5
+ errors:
6
+ vagrant_17_required: |-
7
+ The vagrant-rsync-only-changed plugin requires Vagrant 1.7.3 or newer to function.
8
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-rsync-only-changed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flávio Botelho
@@ -63,6 +63,7 @@ files:
63
63
  - lib/vagrant-rsync-only-changed/helper.rb
64
64
  - lib/vagrant-rsync-only-changed/plugin.rb
65
65
  - lib/vagrant-rsync-only-changed/version.rb
66
+ - locales/en.yml
66
67
  - vagrant-rsync-only-changed.gemspec
67
68
  homepage: https://github.com/nuncanada/vagrant-rsync-only-changed
68
69
  licenses: []