data_types 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data_types/pair.rb +0 -2
- data/lib/data_types/triplet.rb +0 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac79b20da9aca82ac7b06506f8675157d2ca22f5
|
4
|
+
data.tar.gz: 0797b45f3a1145c9211c60b21802590aea006c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2a511c92367a3ccb28be6b12fbf4d5d415ab496479c05aaaedd563791c85833b485356de775cd6eafd6a432400f9b0aaef796f10553ee80d766ed40155c284d
|
7
|
+
data.tar.gz: d86945e921296630ded06b18e23f52a2a9c4f2ac16b4217f924aaa0ed4b02fca95b3239cbea688085dd6bb2ac62dcdac0e221f699c69544a058c4c215d2c4471
|
data/lib/data_types/pair.rb
CHANGED
@@ -65,13 +65,11 @@ class Pair
|
|
65
65
|
end
|
66
66
|
|
67
67
|
# Flips the pair in place.
|
68
|
-
# @return [Pair] Returns self.
|
69
68
|
def flip!
|
70
69
|
right = @right
|
71
70
|
left = @left
|
72
71
|
@left = right
|
73
72
|
@right = left
|
74
|
-
self
|
75
73
|
end
|
76
74
|
|
77
75
|
# Returns true if self and other have the same left and right values.
|
data/lib/data_types/triplet.rb
CHANGED
@@ -70,13 +70,11 @@ class Triplet
|
|
70
70
|
end
|
71
71
|
|
72
72
|
# Flips the triplet in place.
|
73
|
-
# @return [Triplet] The Triplet with the left and right values flipped.
|
74
73
|
def flip!
|
75
74
|
left = @left
|
76
75
|
right = @right
|
77
76
|
@right = left
|
78
77
|
@left = right
|
79
|
-
self
|
80
78
|
end
|
81
79
|
|
82
80
|
# Returns true if self and other have the same left and right values.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eli Foster
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: elifosterwy@gmail.com
|
@@ -40,8 +40,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
40
|
version: '0'
|
41
41
|
requirements: []
|
42
42
|
rubyforge_project:
|
43
|
-
rubygems_version: 2.
|
43
|
+
rubygems_version: 2.6.4
|
44
44
|
signing_key:
|
45
45
|
specification_version: 4
|
46
46
|
summary: A Ruby gem that adds new object types like pairs and triplets.
|
47
47
|
test_files: []
|
48
|
+
has_rdoc:
|