snow-data 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4070dd82808151a7dcdd5e41c49fcd14e2dc7f14
4
- data.tar.gz: dfaee4ffae49a3c3752f052a3089c6c0010afea2
3
+ metadata.gz: 9464a623ce04b224a7c2d062510d0770bb9451a1
4
+ data.tar.gz: 65bcbc3de37a02017f0d5793b21c4381c5032219
5
5
  SHA512:
6
- metadata.gz: 264998e906e61221c5f4ad786a32bcf647b895b02d2af123f244da4a488ced5c2fba8f145b55c877963fca7ff10c14a7022763e9b0a33ecc2a84dbaa6be4696d
7
- data.tar.gz: 4b64d995bb9c8ad6c4f187cb919ed3e673b478bdb8d5fb95b93354a6887e2488e16488c3daca301a79545df4003b7e324bcda0599e4181c2fcdd18e162b16796
6
+ metadata.gz: 37e7a930fe00ff8685d736b4f6a4f447f533bb1c3dee49dcf17bd9c5217c1fc6cbb7b38283fe096bb71e3f78d15f5ab2d02254b869c4e9c1da57b46356799588
7
+ data.tar.gz: a4aed617373a91a9c6b84a0d1fb202a02806825b0669c00a63b49c07f13f311a5452b5d0650065088874a424d7162f34878c4e35a1c42b53b6d5db0906f675b7
data/README.md CHANGED
@@ -119,7 +119,3 @@ Snow-Data is licensed under a simplified BSD license, like most of my gems.
119
119
  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
120
120
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
121
121
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
122
-
123
- The views and conclusions contained in the software and documentation are those
124
- of the authors and should not be interpreted as representing official policies,
125
- either expressed or implied, of the FreeBSD Project.
File without changes
@@ -77,7 +77,13 @@ class Snow::Memory
77
77
  # overlap, refer to different chunks of memory, one might be null, etc.
78
78
  #
79
79
  def ==(other)
80
- self.address == other.address && self.bytesize == other.bytesize
80
+ return false unless other
81
+
82
+ if other.kind_of?(::Snow::Memory) || (other.respond_to?(:address) && other.respond_to?(:bytesize))
83
+ self.address == other.address && self.bytesize == other.bytesize
84
+ else
85
+ false
86
+ end
81
87
  end
82
88
 
83
89
 
@@ -7,6 +7,6 @@ module Snow
7
7
  #
8
8
  # The snow-data version string.
9
9
  #
10
- SNOW_DATA_VERSION = '1.3.0'.freeze
10
+ SNOW_DATA_VERSION = '1.3.1'.freeze
11
11
 
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snow-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noel Raymond Cower
@@ -24,44 +24,45 @@ extra_rdoc_files:
24
24
  - README.md
25
25
  - COPYING
26
26
  files:
27
+ - COPYING
28
+ - README.md
29
+ - ext/extconf.rb
30
+ - ext/snow-data/snow-data.c
31
+ - lib/snow-data.rb
32
+ - lib/snow-data/c_struct.rb
27
33
  - lib/snow-data/c_struct/array_base.rb
28
34
  - lib/snow-data/c_struct/builder.rb
29
35
  - lib/snow-data/c_struct/struct_base.rb
30
- - lib/snow-data/c_struct.rb
36
+ - lib/snow-data/fiddle.rb
31
37
  - lib/snow-data/memory.rb
32
38
  - lib/snow-data/version.rb
33
- - lib/snow-data.rb
34
- - ext/snow-data/snow-data.c
35
- - ext/extconf.rb
36
- - COPYING
37
- - README.md
38
39
  homepage: https://github.com/nilium/ruby-snowdata
39
40
  licenses:
40
41
  - Simplified BSD
41
42
  metadata: {}
42
43
  post_install_message:
43
44
  rdoc_options:
44
- - --title
45
+ - "--title"
45
46
  - snow-data -- C Data Types
46
- - --main
47
+ - "--main"
47
48
  - README.md
48
- - --markup=markdown
49
- - --line-numbers
49
+ - "--markup=markdown"
50
+ - "--line-numbers"
50
51
  require_paths:
51
52
  - lib
52
53
  required_ruby_version: !ruby/object:Gem::Requirement
53
54
  requirements:
54
- - - '>='
55
+ - - ">="
55
56
  - !ruby/object:Gem::Version
56
57
  version: 2.0.0
57
58
  required_rubygems_version: !ruby/object:Gem::Requirement
58
59
  requirements:
59
- - - '>='
60
+ - - ">="
60
61
  - !ruby/object:Gem::Version
61
62
  version: '0'
62
63
  requirements: []
63
64
  rubyforge_project:
64
- rubygems_version: 2.0.5
65
+ rubygems_version: 2.2.1
65
66
  signing_key:
66
67
  specification_version: 4
67
68
  summary: 'Snow-Data: for working with memory like you''ve got nothing to lose.'