range_component_attributes 1.0.0 → 1.0.1
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +9 -9
- data/lib/range_component_attributes/range_wrapper.rb +6 -0
- data/lib/range_component_attributes/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af663d1e0876517c2c25f2ccef86b0ece2a663f940414638f56e8fc5bba6216e
|
|
4
|
+
data.tar.gz: 8af0f5aeaa1965352971b335468a7275a511d035d4a98ddc7a3fa89418040311
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed3c0344ac9114093e163a73fcecf310a50314a237b3556e9a805f8e7079659cf2abdca0e7ac329dc50736af3dce16c74ee89dfb4c9d001cfe8f2e5d2e7f9cab
|
|
7
|
+
data.tar.gz: 238402739c0743ff773b2ebce7832aa970594444a3ca2cfc82901316641e77c7a9920311fde2ba1d081b525757fe04613e8cb8d66b0788520c911681aef28920
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
range_component_attributes (1.0.
|
|
4
|
+
range_component_attributes (1.0.1)
|
|
5
5
|
activerecord (>= 5.2.0)
|
|
6
6
|
activesupport (>= 5.2.0)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
activemodel (5.2.
|
|
12
|
-
activesupport (= 5.2.
|
|
13
|
-
activerecord (5.2.
|
|
14
|
-
activemodel (= 5.2.
|
|
15
|
-
activesupport (= 5.2.
|
|
11
|
+
activemodel (5.2.1)
|
|
12
|
+
activesupport (= 5.2.1)
|
|
13
|
+
activerecord (5.2.1)
|
|
14
|
+
activemodel (= 5.2.1)
|
|
15
|
+
activesupport (= 5.2.1)
|
|
16
16
|
arel (>= 9.0)
|
|
17
|
-
activesupport (5.2.
|
|
17
|
+
activesupport (5.2.1)
|
|
18
18
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
19
19
|
i18n (>= 0.7, < 2)
|
|
20
20
|
minitest (~> 5.1)
|
|
@@ -24,7 +24,7 @@ GEM
|
|
|
24
24
|
builder (3.2.3)
|
|
25
25
|
coderay (1.1.2)
|
|
26
26
|
concurrent-ruby (1.0.5)
|
|
27
|
-
i18n (1.0
|
|
27
|
+
i18n (1.1.0)
|
|
28
28
|
concurrent-ruby (~> 1.0)
|
|
29
29
|
method_source (0.9.0)
|
|
30
30
|
minitest (5.11.3)
|
|
@@ -56,4 +56,4 @@ DEPENDENCIES
|
|
|
56
56
|
range_component_attributes!
|
|
57
57
|
|
|
58
58
|
BUNDLED WITH
|
|
59
|
-
1.16.
|
|
59
|
+
1.16.2
|
|
@@ -78,6 +78,12 @@ module RangeComponentAttributes
|
|
|
78
78
|
errors[:upper] = "is not a #{e.target_type}"
|
|
79
79
|
x
|
|
80
80
|
end
|
|
81
|
+
|
|
82
|
+
# An error on lower might have been caused by crossed bounds. So reassign lower to itself to recheck.
|
|
83
|
+
if errors[:lower].present?
|
|
84
|
+
self.lower = lower
|
|
85
|
+
end
|
|
86
|
+
|
|
81
87
|
convert_lower_and_upper_to_range
|
|
82
88
|
end
|
|
83
89
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: range_component_attributes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jack Christensen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -132,6 +132,7 @@ files:
|
|
|
132
132
|
- ".gitignore"
|
|
133
133
|
- ".ruby-version"
|
|
134
134
|
- ".travis.yml"
|
|
135
|
+
- CHANGELOG.md
|
|
135
136
|
- Gemfile
|
|
136
137
|
- Gemfile.lock
|
|
137
138
|
- LICENSE.txt
|