motion-prime 0.8.7 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -2
- data/files/Gemfile +1 -1
- data/motion-prime/models/_base_mixin.rb +16 -2
- data/motion-prime/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTgzMTQxYzA3ZTY5Y2JlMmJiMGZhMjZkMjM4YmRhOGNiMzA3NWZhMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGE4ZTU3MzVkNmUwNDJjMmU0YzY0MDEyNWQ3NGE2ZTU5Mzk1ZGI4ZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzZlMDNlNWYwMWMwYjE4ZWU5ZmEyNDEwNjQzYzY2NWE4Y2I1NDYxYWM0NmY2
|
10
|
+
NDZiNTNmMDQ3ZDE4MzQ4NTRhMDcwMzliNWQ4ZTkyMmI5ZTlhMWZlYjEwMTk2
|
11
|
+
YzViYmRkMjE0NThjYjE4ZTFlNjJjYTQxNTlmOWQ4ZDY3NDUzYTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzYxOGNhODZhOGY5OGU5YThlMjI4ZGVmOWFjZjEzNTFiYzllZTJmOGE2NGY3
|
14
|
+
MzVmYzZkOTUwOTMyYjIxOGI3YTljY2M2N2Q1OGNlMWE2NWYwYWY2ODUxOTcx
|
15
|
+
YWRhMTVjMTIzYzg5YmI4NGI4ZGUzMDgzMTAxMDY0NGI3MTQ1Zjc=
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
motion-prime (0.8.
|
4
|
+
motion-prime (0.8.8)
|
5
5
|
afmotion (~> 2.0.0)
|
6
6
|
bubble-wrap (~> 1.5.0)
|
7
7
|
cocoapods
|
@@ -61,7 +61,7 @@ GEM
|
|
61
61
|
open4 (1.3.3)
|
62
62
|
rake (10.1.1)
|
63
63
|
rm-digest (0.0.2)
|
64
|
-
sugarcube (1.5.
|
64
|
+
sugarcube (1.5.3)
|
65
65
|
xcodeproj (0.14.1)
|
66
66
|
activesupport (~> 3.0)
|
67
67
|
colored (~> 1.2)
|
data/files/Gemfile
CHANGED
@@ -103,7 +103,10 @@ module MotionPrime
|
|
103
103
|
#
|
104
104
|
# @return [String] model representation
|
105
105
|
def inspect
|
106
|
-
|
106
|
+
inspection = self.info.keys.map { |name|
|
107
|
+
"#{name}: #{attribute_for_inspect(name)}"
|
108
|
+
}.compact.join(", ")
|
109
|
+
"#<#{self.class}:0x#{self.object_id.to_s(16)}> #{inspection}>"
|
107
110
|
end
|
108
111
|
|
109
112
|
# Returns a clone of the record with empty bags
|
@@ -142,12 +145,23 @@ module MotionPrime
|
|
142
145
|
when 'float'
|
143
146
|
value.to_f
|
144
147
|
when 'time'
|
145
|
-
value.
|
148
|
+
value.is_a?(String) ? value : value.to_short_iso8601
|
146
149
|
else
|
147
150
|
value
|
148
151
|
end
|
149
152
|
end
|
150
153
|
|
154
|
+
def attribute_for_inspect(attribute)
|
155
|
+
value = send(attribute)
|
156
|
+
if value.nil?
|
157
|
+
"nil"
|
158
|
+
elsif value.is_a?(String)
|
159
|
+
"\"#{value}\""
|
160
|
+
else
|
161
|
+
value.to_s
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
151
165
|
module ClassMethods
|
152
166
|
# Initialize a new object
|
153
167
|
#
|
data/motion-prime/version.rb
CHANGED