vagrant-parallels 0.1.3 → 0.2.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.
- data/README.md +6 -5
- data/Rakefile +3 -0
- data/config/i18n-tasks.yml.erb +13 -0
- data/lib/vagrant-parallels/action/import.rb +1 -1
- data/lib/vagrant-parallels/action/{is_saved.rb → is_suspended.rb} +1 -1
- data/lib/vagrant-parallels/action/message_already_running.rb +1 -1
- data/lib/vagrant-parallels/action/resume.rb +1 -4
- data/lib/vagrant-parallels/action.rb +7 -15
- data/lib/vagrant-parallels/config.rb +3 -4
- data/lib/vagrant-parallels/plugin.rb +1 -1
- data/lib/vagrant-parallels/provider.rb +1 -1
- data/lib/vagrant-parallels/version.rb +1 -1
- data/locales/en.yml +12 -1056
- data/test/unit/locales/locales_test.rb +14 -0
- data/vagrant-parallels.gemspec +1 -0
- metadata +22 -5
- data/lib/vagrant-parallels/action/is_paused.rb +0 -21
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'i18n/tasks'
|
2
|
+
require 'i18n/tasks/base_task'
|
3
|
+
|
4
|
+
describe 'locales' do
|
5
|
+
let(:i18n) { I18n::Tasks::BaseTask.new }
|
6
|
+
|
7
|
+
it 'are all used' do
|
8
|
+
i18n.unused_keys.should have(0).keys
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'are all present' do
|
12
|
+
i18n.untranslated_keys.should have(0).keys
|
13
|
+
end
|
14
|
+
end
|
data/vagrant-parallels.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.add_development_dependency "bundler", "~> 1.3"
|
20
20
|
spec.add_development_dependency "rake"
|
21
21
|
spec.add_development_dependency "rspec", "~> 2.14.0"
|
22
|
+
spec.add_development_dependency "i18n-tasks", "~> 0.2.14"
|
22
23
|
|
23
24
|
# The following block of code determines the files that should be included
|
24
25
|
# in the gem. It does this by reading all the files in the directory where
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-parallels
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -59,6 +59,22 @@ dependencies:
|
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 2.14.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: i18n-tasks
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.2.14
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.2.14
|
62
78
|
description: Enables Vagrant to manage Parallels machines.
|
63
79
|
email:
|
64
80
|
- yshahin@gmail.com
|
@@ -66,6 +82,7 @@ executables: []
|
|
66
82
|
extensions: []
|
67
83
|
extra_rdoc_files: []
|
68
84
|
files:
|
85
|
+
- config/i18n-tasks.yml.erb
|
69
86
|
- debug.log
|
70
87
|
- Gemfile
|
71
88
|
- lib/vagrant-parallels/action/boot.rb
|
@@ -83,9 +100,8 @@ files:
|
|
83
100
|
- lib/vagrant-parallels/action/export.rb
|
84
101
|
- lib/vagrant-parallels/action/forced_halt.rb
|
85
102
|
- lib/vagrant-parallels/action/import.rb
|
86
|
-
- lib/vagrant-parallels/action/is_paused.rb
|
87
103
|
- lib/vagrant-parallels/action/is_running.rb
|
88
|
-
- lib/vagrant-parallels/action/
|
104
|
+
- lib/vagrant-parallels/action/is_suspended.rb
|
89
105
|
- lib/vagrant-parallels/action/match_mac_address.rb
|
90
106
|
- lib/vagrant-parallels/action/message_already_running.rb
|
91
107
|
- lib/vagrant-parallels/action/message_not_created.rb
|
@@ -122,6 +138,7 @@ files:
|
|
122
138
|
- test/support/tempdir.rb
|
123
139
|
- test/unit/base.rb
|
124
140
|
- test/unit/driver/prl_ctl_test.rb
|
141
|
+
- test/unit/locales/locales_test.rb
|
125
142
|
- test/unit/support/shared/parallels_context.rb
|
126
143
|
- vagrant-parallels.gemspec
|
127
144
|
- .gitignore
|
@@ -141,7 +158,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
158
|
version: '0'
|
142
159
|
segments:
|
143
160
|
- 0
|
144
|
-
hash:
|
161
|
+
hash: -4205879572170991901
|
145
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
163
|
none: false
|
147
164
|
requirements:
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module VagrantPlugins
|
2
|
-
module Parallels
|
3
|
-
module Action
|
4
|
-
class IsPaused
|
5
|
-
def initialize(app, env)
|
6
|
-
@app = app
|
7
|
-
end
|
8
|
-
|
9
|
-
def call(env)
|
10
|
-
|
11
|
-
# Set the result to be true if the machine is paused.
|
12
|
-
env[:result] = env[:machine].state.id == :paused
|
13
|
-
|
14
|
-
# Call the next if we have one (but we shouldn't, since this
|
15
|
-
# middleware is built to run with the Call-type middlewares)
|
16
|
-
@app.call(env)
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|