bit-struct 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/.gitignore +2 -0
  2. data/History.txt +102 -0
  3. data/README.txt +189 -0
  4. data/Rakefile +34 -0
  5. data/TODO +23 -0
  6. data/TODO-ALSO +71 -0
  7. data/examples/ara-player-data.rb +82 -0
  8. data/examples/bignum.rb +18 -0
  9. data/examples/bits.rb +19 -0
  10. data/examples/byte-bdy.rb +30 -0
  11. data/examples/field-ripper.rb +22 -0
  12. data/examples/fixed-point.rb +17 -0
  13. data/examples/ip.rb +81 -0
  14. data/examples/longlong.rb +30 -0
  15. data/examples/md.rb +23 -0
  16. data/examples/modular-def.rb +38 -0
  17. data/examples/native.rb +31 -0
  18. data/examples/nested.rb +33 -0
  19. data/examples/pad.rb +14 -0
  20. data/examples/ping-recv.rb +25 -0
  21. data/examples/ping.rb +73 -0
  22. data/examples/player-data.rb +75 -0
  23. data/examples/raw.rb +62 -0
  24. data/examples/rest.rb +30 -0
  25. data/examples/switch-endian.rb +49 -0
  26. data/examples/vector.rb +98 -0
  27. data/lib/bit-struct.rb +6 -0
  28. data/lib/bit-struct/bit-struct.rb +549 -0
  29. data/lib/bit-struct/char-field.rb +48 -0
  30. data/lib/bit-struct/fields.rb +273 -0
  31. data/lib/bit-struct/float-field.rb +61 -0
  32. data/lib/bit-struct/hex-octet-field.rb +20 -0
  33. data/lib/bit-struct/nested-field.rb +76 -0
  34. data/lib/bit-struct/octet-field.rb +45 -0
  35. data/lib/bit-struct/pad-field.rb +15 -0
  36. data/lib/bit-struct/signed-field.rb +258 -0
  37. data/lib/bit-struct/text-field.rb +44 -0
  38. data/lib/bit-struct/unsigned-field.rb +248 -0
  39. data/lib/bit-struct/vector-field.rb +77 -0
  40. data/lib/bit-struct/vector.rb +173 -0
  41. data/lib/bit-struct/yaml.rb +69 -0
  42. data/tasks/ann.rake +80 -0
  43. data/tasks/bones.rake +20 -0
  44. data/tasks/gem.rake +201 -0
  45. data/tasks/git.rake +40 -0
  46. data/tasks/notes.rake +27 -0
  47. data/tasks/post_load.rake +34 -0
  48. data/tasks/rdoc.rake +51 -0
  49. data/tasks/rubyforge.rake +55 -0
  50. data/tasks/setup.rb +292 -0
  51. data/tasks/spec.rake +54 -0
  52. data/tasks/svn.rake +47 -0
  53. data/tasks/test.rake +40 -0
  54. data/tasks/zentest.rake +36 -0
  55. data/test/test-endian.rb +39 -0
  56. data/test/test-vector.rb +38 -0
  57. data/test/test.rb +433 -0
  58. metadata +126 -0
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bit-struct
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.13.1
5
+ platform: ruby
6
+ authors:
7
+ - Joel VanderWerf
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-07-15 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: bones
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.5.1
24
+ version:
25
+ description: |
26
+ Library for packed binary data stored in ruby Strings. Useful for accessing fields in network packets and binary files.
27
+
28
+ email: vjoel@users.sourceforge.net
29
+ executables: []
30
+
31
+ extensions: []
32
+
33
+ extra_rdoc_files:
34
+ - History.txt
35
+ - README.txt
36
+ files:
37
+ - .bnsignore.bck
38
+ - .gitignore
39
+ - .gitignore.bck
40
+ - History.txt
41
+ - README.txt
42
+ - Rakefile
43
+ - TODO
44
+ - TODO-ALSO
45
+ - examples/ara-player-data.rb
46
+ - examples/bignum.rb
47
+ - examples/bits.rb
48
+ - examples/byte-bdy.rb
49
+ - examples/field-ripper.rb
50
+ - examples/fixed-point.rb
51
+ - examples/ip.rb
52
+ - examples/longlong.rb
53
+ - examples/md.rb
54
+ - examples/modular-def.rb
55
+ - examples/native.rb
56
+ - examples/nested.rb
57
+ - examples/pad.rb
58
+ - examples/ping-recv.rb
59
+ - examples/ping.rb
60
+ - examples/player-data.rb
61
+ - examples/raw.rb
62
+ - examples/rest.rb
63
+ - examples/switch-endian.rb
64
+ - examples/vector.rb
65
+ - lib/bit-struct.rb
66
+ - lib/bit-struct/bit-struct.rb
67
+ - lib/bit-struct/char-field.rb
68
+ - lib/bit-struct/fields.rb
69
+ - lib/bit-struct/float-field.rb
70
+ - lib/bit-struct/hex-octet-field.rb
71
+ - lib/bit-struct/nested-field.rb
72
+ - lib/bit-struct/octet-field.rb
73
+ - lib/bit-struct/pad-field.rb
74
+ - lib/bit-struct/signed-field.rb
75
+ - lib/bit-struct/text-field.rb
76
+ - lib/bit-struct/unsigned-field.rb
77
+ - lib/bit-struct/vector-field.rb
78
+ - lib/bit-struct/vector.rb
79
+ - lib/bit-struct/yaml.rb
80
+ - tasks/ann.rake
81
+ - tasks/bones.rake
82
+ - tasks/gem.rake
83
+ - tasks/git.rake
84
+ - tasks/notes.rake
85
+ - tasks/post_load.rake
86
+ - tasks/rdoc.rake
87
+ - tasks/rubyforge.rake
88
+ - tasks/setup.rb
89
+ - tasks/spec.rake
90
+ - tasks/svn.rake
91
+ - tasks/test.rake
92
+ - tasks/zentest.rake
93
+ - test/test-endian.rb
94
+ - test/test-vector.rb
95
+ - test/test.rb
96
+ has_rdoc: true
97
+ homepage: http://rubyforge.org/projects/bit-struct/
98
+ licenses: []
99
+
100
+ post_install_message:
101
+ rdoc_options:
102
+ - --main
103
+ - README.txt
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: "0"
111
+ version:
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: "0"
117
+ version:
118
+ requirements: []
119
+
120
+ rubyforge_project: bit-struct
121
+ rubygems_version: 1.3.4
122
+ signing_key:
123
+ specification_version: 3
124
+ summary: Library for packed binary data stored in ruby Strings
125
+ test_files: []
126
+