cstruct 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/README.md +81 -0
  2. data/cstruct.gemspec +10 -0
  3. data/doc/examples/anonymous_struct.rb.html +94 -94
  4. data/doc/examples/anonymous_union.rb.html +93 -93
  5. data/doc/examples/array_member.rb.html +79 -79
  6. data/doc/examples/file_io.rb.html +87 -87
  7. data/doc/examples/first_example.rb.html +104 -104
  8. data/doc/examples/get_system_info.rb.html +114 -114
  9. data/doc/examples/get_versionex.rb.html +97 -97
  10. data/doc/examples/global_memory.rb.html +102 -102
  11. data/doc/examples/inner_struct.rb.html +79 -79
  12. data/doc/examples/inner_union.rb.html +77 -77
  13. data/doc/examples/namespace.rb.html +80 -80
  14. data/doc/examples/show_processes.rb.html +95 -95
  15. data/doc/examples/struct_member.rb.html +128 -128
  16. data/doc/stylesheets/ie.css +8 -8
  17. data/examples/anonymous_struct.rb +6 -6
  18. data/examples/anonymous_union.rb +5 -5
  19. data/examples/array_member.rb +1 -1
  20. data/examples/file_io.rb +22 -23
  21. data/examples/first_example.rb +4 -4
  22. data/examples/inner_struct.rb +5 -5
  23. data/examples/inner_union.rb +4 -4
  24. data/examples/namespace.rb +15 -15
  25. data/examples/win32/get_system_info.rb +31 -31
  26. data/examples/win32/get_versionex.rb +12 -12
  27. data/examples/win32/global_memory.rb +9 -9
  28. data/examples/win32/show_processes.rb +28 -28
  29. data/lib/cstruct.rb +1 -523
  30. data/lib/cstruct/cstruct.rb +457 -0
  31. data/lib/cstruct/field.rb +45 -0
  32. data/lib/cstruct/utils.rb +53 -0
  33. data/lib/cstruct/win32struct.rb +84 -0
  34. data/lib/cstruct/win64struct.rb +5 -0
  35. data/lib/win32struct.rb +3 -90
  36. data/lib/win64struct.rb +3 -13
  37. data/spec/cstruct_spec.rb +240 -0
  38. metadata +62 -73
metadata CHANGED
@@ -1,46 +1,45 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cstruct
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 0
9
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
12
- - Wang Yong(skandhas)
7
+ authors:
8
+ - skandhas
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-11-07 00:00:00 +08:00
18
- default_executable:
12
+ date: 2012-02-12 00:00:00.000000000Z
19
13
  dependencies: []
20
-
21
14
  description:
22
15
  email: skandhas@163.com
23
16
  executables: []
24
-
25
17
  extensions: []
26
-
27
18
  extra_rdoc_files: []
28
-
29
- files:
30
- - doc/stylesheets/coderay.css
31
- - doc/stylesheets/ie.css
32
- - doc/stylesheets/style.css
33
- - doc/images/examples.png
34
- - doc/images/excample1.png
35
- - doc/images/excample2.png
36
- - doc/images/green-point.png
37
- - doc/images/learnmore.png
38
- - doc/images/logo.png
39
- - doc/images/news.png
40
- - doc/images/point.png
41
- - doc/images/start.png
42
- - doc/images/synopsish.png
43
- - doc/images/Thumbs.db
19
+ files:
20
+ - lib/cstruct/cstruct.rb
21
+ - lib/cstruct/field.rb
22
+ - lib/cstruct/utils.rb
23
+ - lib/cstruct/win32struct.rb
24
+ - lib/cstruct/win64struct.rb
25
+ - lib/cstruct.rb
26
+ - lib/win32struct.rb
27
+ - lib/win64struct.rb
28
+ - spec/cstruct_spec.rb
29
+ - examples/anonymous_struct.rb
30
+ - examples/anonymous_union.rb
31
+ - examples/array_member.rb
32
+ - examples/file_io.rb
33
+ - examples/first_example.rb
34
+ - examples/inner_struct.rb
35
+ - examples/inner_union.rb
36
+ - examples/namespace.rb
37
+ - examples/struct_member.rb
38
+ - examples/win32/get_system_info.rb
39
+ - examples/win32/get_versionex.rb
40
+ - examples/win32/global_memory.rb
41
+ - examples/win32/show_processes.rb
42
+ - doc/documents.html
44
43
  - doc/examples/anonymous_struct.rb.html
45
44
  - doc/examples/anonymous_union.rb.html
46
45
  - doc/examples/array_member.rb.html
@@ -54,56 +53,46 @@ files:
54
53
  - doc/examples/namespace.rb.html
55
54
  - doc/examples/show_processes.rb.html
56
55
  - doc/examples/struct_member.rb.html
57
- - doc/index.html
58
56
  - doc/examples.html
59
- - doc/documents.html
60
- - lib/win32struct.rb
61
- - lib/win64struct.rb
62
- - lib/cstruct.rb
63
- - examples/win32/get_versionex.rb
64
- - examples/win32/global_memory.rb
65
- - examples/win32/show_processes.rb
66
- - examples/win32/get_system_info.rb
67
- - examples/anonymous_union.rb
68
- - examples/file_io.rb
69
- - examples/anonymous_struct.rb
70
- - examples/namespace.rb
71
- - examples/array_member.rb
72
- - examples/first_example.rb
73
- - examples/inner_struct.rb
74
- - examples/inner_union.rb
75
- - examples/struct_member.rb
76
- has_rdoc: true
77
- homepage: http://cstruct.rubyforge.org
78
- licenses:
79
- - Ruby License
57
+ - doc/images/examples.png
58
+ - doc/images/excample1.png
59
+ - doc/images/excample2.png
60
+ - doc/images/green-point.png
61
+ - doc/images/learnmore.png
62
+ - doc/images/logo.png
63
+ - doc/images/news.png
64
+ - doc/images/point.png
65
+ - doc/images/start.png
66
+ - doc/images/synopsish.png
67
+ - doc/images/Thumbs.db
68
+ - doc/index.html
69
+ - doc/stylesheets/coderay.css
70
+ - doc/stylesheets/ie.css
71
+ - doc/stylesheets/style.css
72
+ - README.md
73
+ - cstruct.gemspec
74
+ homepage: http://github.com/skandhas/cstruct
75
+ licenses: []
80
76
  post_install_message:
81
77
  rdoc_options: []
82
-
83
- require_paths:
78
+ require_paths:
84
79
  - lib
85
- required_ruby_version: !ruby/object:Gem::Requirement
80
+ required_ruby_version: !ruby/object:Gem::Requirement
86
81
  none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- segments:
91
- - 0
92
- version: "0"
93
- required_rubygems_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
87
  none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- segments:
99
- - 0
100
- version: "0"
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
101
92
  requirements: []
102
-
103
93
  rubyforge_project:
104
- rubygems_version: 1.3.7
94
+ rubygems_version: 1.8.15
105
95
  signing_key:
106
96
  specification_version: 3
107
97
  summary: CStruct is a simulation of the C language's struct.
108
98
  test_files: []
109
-