veewee 0.5.0.alpha2 → 0.5.0.alpha3

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmRmYjkxYTYyOGFhY2Y3ZmE5ZDNhYWZhODE0YWQyOTkwZTVlYTRmMA==
4
+ NmFmNWQ0YTQ4ZmY0ODgwYmEwMjlkZDFmMjYwZDhlZjFkM2YyNGIxMA==
5
5
  data.tar.gz: !binary |-
6
- ZDJjNGQ2YTRkY2RkZGJiOTQzNjA3MzcwNWQ0ZjUyMzVhZWNkMzViNg==
6
+ ZjhjOTlkYTkwOWM1ZmIyNWUyZTk0M2I0NGI2MmQ3ZDVhYzk2OTI5Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NmY2MDQyODIwMzIwMmUyMmI0OTg1MWI2NjkwNTg1YmNmMGM0NjcyMTJkZTA0
10
- ZWE2ODA2ODA4ZGMxYmVjMzE1ZWM4MDAwOGE4MGVmMjMxM2RkNTE5MTZhZTY3
11
- MDdhMjE3NGEyYjcwNDgxOTU2Y2I0ZTBhMGQzOGU3YTIzYjI5Mzk=
9
+ Yjk0MjMzOGQzZDJlYWE3ZTc3YTA5YzE0N2E1NWJmYmNhYTFiZTliZWJlNDhi
10
+ NmY0NmNmYmQzZDQ3NDk2YjI2YjRlMGZjMWRmMGFmMzBjMzc5M2VhZGRlOTdh
11
+ Yjc1MTA5MDZhYWRkNDUxNmMxNjMzODVkM2NmOWVhMDk0YWQ3MDY=
12
12
  data.tar.gz: !binary |-
13
- OTcyMWE1M2RmYjg1MzM2YmFmMTFjZDNmOWMxYTJmNzM4YjQzMmJjYjFkZjdl
14
- YWJiOWJjNWJlNWYxZmQ5N2I1NjVjYmZjNjBhOGExOGE3YWEwNWQxNzA3Y2Rh
15
- MmZkOWU4ZmY4MmRjNWY4MDMxZGRmYWJiMGJlOThhMWQ2YjNmZGM=
13
+ ZGM3ZWJmNTcxOWNjNWFiM2Q5YzQwMGIxMDAzMjRjN2E4NjliNDgyMjFiMzQz
14
+ NGU4YWE0NGE5Mzk0NWM3MTI2MDZhNjE0MTgzODliNWIwOTE3MjlhNDkzMDNm
15
+ ZTc4NmZiMWEwYWMxNGY2MTlhZDY5OGE0YTI2OGM3ZTQxM2Q1OGQ=
@@ -78,7 +78,7 @@ module Veewee
78
78
  #take thestring
79
79
  #check if it starts with a special key + pop special string
80
80
  keycodes += value + result.captures.join(",") + ' '
81
- thestring = thestring.slice(result.string.length, thestring.length-result.string.length)
81
+ thestring = thestring.slice(result.to_s.length, thestring.length-result.to_s.length)
82
82
  nospecial = false;
83
83
  break;
84
84
  end
@@ -4,5 +4,5 @@ end
4
4
 
5
5
  # Only set the version constant if it wasn't set before
6
6
  unless defined?(Veewee::VERSION)
7
- ::Veewee::VERSION="0.5.0.alpha2"
7
+ ::Veewee::VERSION="0.5.0.alpha3"
8
8
  end
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  :os_type_id: 'RedHat'
3
3
  :iso_file: "CentOS-5.10-i386-bin-DVD-1of2.iso"
4
- :iso_src: "http://mirrors.kernel.org/centos/5.10/isos/i386/CentOS-5.10-i386-bin-DVD-1of2.iso"
4
+ :iso_src: "http://mirror.symnds.com/distributions/CentOS-vault/5.10/isos/i386/CentOS-5.10-i386-bin-DVD-1of2.iso"
5
+ --- for EU use: :iso_src: "http://mirror.nsc.liu.se/centos-store/5.10/isos/i386/CentOS-5.10-i386-bin-DVD-1of2.iso"
5
6
  :iso_md5: "ec0acc2a4f6a813ea85bf1e36acb03f0"
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  :os_type_id: 'RedHat'
3
3
  :iso_file: "CentOS-5.10-i386-netinstall.iso"
4
- :iso_src: "http://mirrors.kernel.org/centos/5.10/isos/i386/CentOS-5.10-i386-netinstall.iso"
4
+ :iso_src: "http://mirror.symnds.com/distributions/CentOS-vault/5.10/isos/i386/CentOS-5.10-i386-netinstall.iso"
5
+ --- for EU use: :iso_src: "http://mirror.nsc.liu.se/centos-store/5.10/isos/i386/CentOS-5.10-i386-netinstall.iso"
5
6
  :iso_md5: "8d19b12cb5f65a4b5c2bc61a98abf80c"
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  :os_type_id: 'RedHat_64'
3
3
  :iso_file: "CentOS-5.10-x86_64-bin-DVD-1of2.iso"
4
- :iso_src: "http://mirrors.kernel.org/centos/5.10/isos/x86_64/CentOS-5.10-x86_64-bin-DVD-1of2.iso"
4
+ :iso_src: "http://mirror.symnds.com/distributions/CentOS-vault/5.10/isos/x86_64/CentOS-5.10-x86_64-bin-DVD-1of2.iso"
5
+ --- for EU use: :iso_src: "http://mirror.nsc.liu.se/centos-store/5.10/isos/x86_64/CentOS-5.10-x86_64-bin-DVD-1of2.iso"
5
6
  :iso_md5: "715f7355074c00530cd6ee1d9f43cc3f"
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  :os_type_id: 'RedHat_64'
3
3
  :iso_file: "CentOS-5.10-x86_64-netinstall.iso"
4
- :iso_src: "http://mirrors.kernel.org/centos/5.10/isos/x86_64/CentOS-5.10-x86_64-netinstall.iso"
4
+ :iso_src: "http://mirror.symnds.com/distributions/CentOS-vault/5.10/isos/x86_64/CentOS-5.10-x86_64-netinstall.iso"
5
+ --- for EU use: :iso_src: "http://mirror.nsc.liu.se/centos-store/5.10/isos/x86_64/CentOS-5.10-x86_64-netinstall.iso"
5
6
  :iso_md5: "e09e44f04f0a4b97b04935e0ba88833f"
@@ -0,0 +1,58 @@
1
+ require 'test/unit'
2
+ require 'veewee/provider/core/helper/scancode'
3
+
4
+ class TestVeeweeScancode < Test::Unit::TestCase
5
+ def setup
6
+ @helper = Veewee::Provider::Core::Helper::Scancode
7
+ end
8
+
9
+ def test_simple_strings
10
+ assert_equal(
11
+ "1e 9e ",
12
+ @helper.string_to_keycode("a")
13
+ )
14
+ end
15
+
16
+ def test_specials
17
+ assert_equal(
18
+ "01 81 ",
19
+ @helper.string_to_keycode("<Esc>")
20
+ )
21
+ end
22
+
23
+ def test_specials_lowercase
24
+ assert_equal(
25
+ "01 81 ",
26
+ @helper.string_to_keycode("<esc>")
27
+ )
28
+ end
29
+
30
+ def test_spaces
31
+ assert_equal(
32
+ "39 b9 ",
33
+ @helper.string_to_keycode(" ")
34
+ )
35
+ end
36
+
37
+ def test_regexps
38
+ assert_equal(
39
+ "wait11 ",
40
+ @helper.string_to_keycode("<Wait11>")
41
+ )
42
+ end
43
+
44
+ def test_regexps
45
+ assert_equal(
46
+ "wait ",
47
+ @helper.string_to_keycode("<Wait>")
48
+ )
49
+ end
50
+
51
+ def test_combinations
52
+ assert_equal(
53
+ "wait10 01 81 1e 9e 39 b9 30 b0 ",
54
+ @helper.string_to_keycode("<Wait10><Esc>a b")
55
+ )
56
+ end
57
+
58
+ end
@@ -4,7 +4,7 @@ if $?.success?
4
4
  require 'test/unit'
5
5
  require 'veewee'
6
6
 
7
- class TestVeeweeBuild < Test::Unit::TestCase
7
+ class TestVeeweeDownload < Test::Unit::TestCase
8
8
  def setup
9
9
  @definition_dir = File.expand_path("../../../../../definitions", __FILE__)
10
10
  @definition_name = "erb_definition"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veewee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.alpha2
4
+ version: 0.5.0.alpha3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Debois
@@ -2349,6 +2349,7 @@ files:
2349
2349
  - test/definitions/test_definition/definition.rb
2350
2350
  - test/definitions/test_definition/enabled_postinstall.sh
2351
2351
  - test/environment_test.rb
2352
+ - test/veewee/provider/core/helper/scancode_test.rb
2352
2353
  - test/veewee/provider/core/helper/web_test.rb
2353
2354
  - test/veewee/provider/virtualbox/box/helper/guest_additions_test.rb
2354
2355
  - test/veewee/provider/virtualbox/box/helper/version.rb