gogyou 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.ja.md +51 -0
- data/{LICENSE.markdown → LICENSE} +0 -0
- data/{README.markdown → README.md} +166 -90
- data/Rakefile +101 -58
- data/gemstub.rb +15 -18
- data/lib/gogyou.rb +88 -40
- data/lib/gogyou/accessor.rb +113 -58
- data/lib/gogyou/mixin.rb +8 -8
- data/lib/gogyou/model.rb +93 -53
- data/lib/gogyou/primitives.rb +6 -109
- data/lib/gogyou/typespec.rb +4 -4
- data/lib/gogyou/version.rb +3 -0
- data/mkprims.rb +7 -50
- data/spec/gogyou_spec.rb +6 -2
- metadata +19 -15
data/spec/gogyou_spec.rb
CHANGED
@@ -86,7 +86,9 @@ describe Gogyou::Model do
|
|
86
86
|
Gogyou::Model::Field[8, :e, [4], Gogyou::Model::Struct[
|
87
87
|
16, 8,
|
88
88
|
Gogyou::Model::Field[0, :c, nil, Gogyou::Primitives::INT64_T],
|
89
|
-
Gogyou::Model::Field[8, :d, nil, Gogyou::Primitives::INT32_T]
|
89
|
+
Gogyou::Model::Field[8, :d, nil, Gogyou::Primitives::INT32_T]
|
90
|
+
]]
|
91
|
+
]
|
90
92
|
expect(x::MODEL).to eq ref
|
91
93
|
end
|
92
94
|
|
@@ -109,7 +111,8 @@ describe Gogyou::Model do
|
|
109
111
|
ref = Gogyou::Model::Union[
|
110
112
|
24, 8,
|
111
113
|
Gogyou::Model::Field[0, :a, nil, x],
|
112
|
-
Gogyou::Model::Field[0, :b, nil, x]
|
114
|
+
Gogyou::Model::Field[0, :b, nil, x]
|
115
|
+
]
|
113
116
|
expect(y::MODEL).to eq ref
|
114
117
|
end
|
115
118
|
end
|
@@ -251,6 +254,7 @@ describe Gogyou::Accessor do
|
|
251
254
|
expect(type1.extensible?).to eq false
|
252
255
|
expect(type1.new.bytesize).to eq 6
|
253
256
|
|
257
|
+
# error: directly under packed in packed
|
254
258
|
expect {
|
255
259
|
Gogyou.struct {
|
256
260
|
packed(1) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gogyou
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dearblue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -39,29 +39,33 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
description: |
|
42
|
-
The gogyou is a library that provides auxiliary features of binary data operation for ruby.
|
42
|
+
The gogyou is a library written at pure ruby that provides auxiliary features of binary data operation for ruby.
|
43
43
|
|
44
44
|
The C-liked struct, union and multidimensional array definition are posible in ruby syntax.
|
45
45
|
|
46
|
-
*
|
47
|
-
*
|
48
|
-
*
|
49
|
-
*
|
46
|
+
* Available nested struct and union with anonymous field.
|
47
|
+
* Available multidimensional array.
|
48
|
+
* Available const field.
|
49
|
+
* Available packed field.
|
50
|
+
* Available user definition types.
|
50
51
|
email: dearblue@users.sourceforge.jp
|
51
52
|
executables: []
|
52
53
|
extensions: []
|
53
54
|
extra_rdoc_files:
|
54
|
-
-
|
55
|
-
-
|
55
|
+
- HISTORY.ja.md
|
56
|
+
- LICENSE
|
57
|
+
- README.md
|
56
58
|
- lib/gogyou.rb
|
57
59
|
- lib/gogyou/accessor.rb
|
58
60
|
- lib/gogyou/mixin.rb
|
59
61
|
- lib/gogyou/model.rb
|
60
|
-
- lib/gogyou/typespec.rb
|
61
62
|
- lib/gogyou/primitives.rb
|
63
|
+
- lib/gogyou/typespec.rb
|
64
|
+
- lib/gogyou/version.rb
|
62
65
|
files:
|
63
|
-
-
|
64
|
-
-
|
66
|
+
- HISTORY.ja.md
|
67
|
+
- LICENSE
|
68
|
+
- README.md
|
65
69
|
- Rakefile
|
66
70
|
- gemstub.rb
|
67
71
|
- lib/gogyou.rb
|
@@ -70,6 +74,7 @@ files:
|
|
70
74
|
- lib/gogyou/model.rb
|
71
75
|
- lib/gogyou/primitives.rb
|
72
76
|
- lib/gogyou/typespec.rb
|
77
|
+
- lib/gogyou/version.rb
|
73
78
|
- mkprims.rb
|
74
79
|
- spec/gogyou_spec.rb
|
75
80
|
homepage: http://sourceforge.jp/projects/rutsubo/
|
@@ -92,9 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
97
|
version: '0'
|
93
98
|
requirements: []
|
94
99
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.4.
|
100
|
+
rubygems_version: 2.4.6
|
96
101
|
signing_key:
|
97
|
-
specification_version:
|
102
|
+
specification_version: 4
|
98
103
|
summary: binary data operation library with the C liked struct and union
|
99
104
|
test_files: []
|
100
|
-
has_rdoc:
|