win 0.3.24 → 0.3.25
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +4 -0
- data/README.rdoc +4 -5
- data/VERSION +1 -1
- data/lib/win.rb +1 -1
- data/lib/win/gui/menu.rb +34 -3
- data/lib/win/gui/message.rb +1 -3
- data/lib/win/gui/window.rb +1 -1
- data/lib/win/library.rb +10 -5
- data/lib/win/national.rb +585 -0
- data/lib/win/time.rb +140 -0
- data/spec/extension_spec.rb +2 -38
- data/spec/spec_helper.rb +60 -71
- data/spec/win/dde_spec.rb +435 -437
- data/spec/win/error_spec.rb +86 -88
- data/spec/win/gui/dialog_spec.rb +43 -46
- data/spec/win/gui/input_spec.rb +81 -85
- data/spec/win/gui/menu_spec.rb +260 -247
- data/spec/win/gui/message_spec.rb +218 -219
- data/spec/win/gui/window_spec.rb +558 -557
- data/spec/win/library_spec.rb +180 -199
- data/spec/win/system/info_spec.rb +42 -45
- data/spec/win/system/version_spec.rb +143 -146
- data/spec/win/time_spec.rb +48 -0
- data/tasks/spec.rake +5 -9
- metadata +16 -36
data/tasks/spec.rake
CHANGED
@@ -2,18 +2,14 @@ desc 'Alias to spec:spec'
|
|
2
2
|
task :spec => 'spec:spec'
|
3
3
|
|
4
4
|
namespace :spec do
|
5
|
-
require '
|
5
|
+
require 'rspec/core/rake_task'
|
6
6
|
|
7
7
|
desc "Run all specs"
|
8
|
-
|
9
|
-
t.spec_opts = ['--options', %Q{"#{BASE_PATH}/spec/spec.opts"}]
|
10
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
11
|
-
end
|
8
|
+
RSpec::Core::RakeTask.new(:spec){|task|}
|
12
9
|
|
13
10
|
desc "Run specs with RCov"
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
t.rcov_opts = ['--exclude', 'spec']
|
11
|
+
RSpec::Core::RakeTask.new(:rcov) do |task|
|
12
|
+
task.rcov = true
|
13
|
+
task.rcov_opts = ['--exclude', 'spec']
|
18
14
|
end
|
19
15
|
end
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 3
|
8
|
-
- 24
|
9
|
-
version: 0.3.24
|
4
|
+
prerelease:
|
5
|
+
version: 0.3.25
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- arvicco
|
@@ -14,49 +10,31 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
13
|
+
date: 2011-03-14 00:00:00 +03:00
|
18
14
|
default_executable:
|
19
15
|
dependencies:
|
20
16
|
- !ruby/object:Gem::Dependency
|
21
17
|
name: rspec
|
22
18
|
prerelease: false
|
23
19
|
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
24
21
|
requirements:
|
25
22
|
- - ">="
|
26
23
|
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 1
|
29
|
-
- 2
|
30
|
-
- 9
|
31
|
-
version: 1.2.9
|
24
|
+
version: 2.0.9
|
32
25
|
type: :development
|
33
26
|
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: cucumber
|
36
|
-
prerelease: false
|
37
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
segments:
|
42
|
-
- 0
|
43
|
-
version: "0"
|
44
|
-
type: :development
|
45
|
-
version_requirements: *id002
|
46
27
|
- !ruby/object:Gem::Dependency
|
47
28
|
name: ffi
|
48
29
|
prerelease: false
|
49
|
-
requirement: &
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
50
32
|
requirements:
|
51
33
|
- - ">="
|
52
34
|
- !ruby/object:Gem::Version
|
53
|
-
segments:
|
54
|
-
- 0
|
55
|
-
- 6
|
56
|
-
- 0
|
57
35
|
version: 0.6.0
|
58
36
|
type: :runtime
|
59
|
-
version_requirements: *
|
37
|
+
version_requirements: *id002
|
60
38
|
description: Rubyesque interfaces and wrappers for Windows API functions pre-defined using FFI
|
61
39
|
email: arvitallian@gmail.com
|
62
40
|
executables: []
|
@@ -79,8 +57,10 @@ files:
|
|
79
57
|
- lib/win/gui/window.rb
|
80
58
|
- lib/win/gui.rb
|
81
59
|
- lib/win/library.rb
|
60
|
+
- lib/win/national.rb
|
82
61
|
- lib/win/system/info.rb
|
83
62
|
- lib/win/system/version.rb
|
63
|
+
- lib/win/time.rb
|
84
64
|
- lib/win.rb
|
85
65
|
- spec/extension_spec.rb
|
86
66
|
- spec/spec.opts
|
@@ -95,6 +75,7 @@ files:
|
|
95
75
|
- spec/win/library_spec.rb
|
96
76
|
- spec/win/system/info_spec.rb
|
97
77
|
- spec/win/system/version_spec.rb
|
78
|
+
- spec/win/time_spec.rb
|
98
79
|
- features/step_definitions/win_steps.rb
|
99
80
|
- features/support/env.rb
|
100
81
|
- features/win.feature
|
@@ -125,23 +106,21 @@ rdoc_options:
|
|
125
106
|
require_paths:
|
126
107
|
- lib
|
127
108
|
required_ruby_version: !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
128
110
|
requirements:
|
129
111
|
- - ">="
|
130
112
|
- !ruby/object:Gem::Version
|
131
|
-
segments:
|
132
|
-
- 0
|
133
113
|
version: "0"
|
134
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
135
116
|
requirements:
|
136
117
|
- - ">="
|
137
118
|
- !ruby/object:Gem::Version
|
138
|
-
segments:
|
139
|
-
- 0
|
140
119
|
version: "0"
|
141
120
|
requirements: []
|
142
121
|
|
143
|
-
rubyforge_project:
|
144
|
-
rubygems_version: 1.
|
122
|
+
rubyforge_project:
|
123
|
+
rubygems_version: 1.5.0
|
145
124
|
signing_key:
|
146
125
|
specification_version: 3
|
147
126
|
summary: Rubyesque interfaces and wrappers for Windows API functions pre-defined using FFI
|
@@ -159,3 +138,4 @@ test_files:
|
|
159
138
|
- spec/win/library_spec.rb
|
160
139
|
- spec/win/system/info_spec.rb
|
161
140
|
- spec/win/system/version_spec.rb
|
141
|
+
- spec/win/time_spec.rb
|