range_component_attributes 1.0.0 → 1.0.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
  SHA256:
3
- metadata.gz: 8620dd0c7969d1c9e208cda4752a2a1fa4cdb50df9d7682893bbcbff1e5f33fe
4
- data.tar.gz: de34c8c1ab186210b728e9c38d4f1f3c2fe53731f578f2799a1aa607b664fd04
3
+ metadata.gz: af663d1e0876517c2c25f2ccef86b0ece2a663f940414638f56e8fc5bba6216e
4
+ data.tar.gz: 8af0f5aeaa1965352971b335468a7275a511d035d4a98ddc7a3fa89418040311
5
5
  SHA512:
6
- metadata.gz: 6f46ce5122733699261f698af2a40275ab6f4774dbc95aa72676073a604f3fbb97d54ccd6a3166e2ddad9e5c4d2f73f1558063d5f7c71a84fc117143deb9a162
7
- data.tar.gz: e0e13edf7e6e434acef25d2ca50b6ff5a6846a7c835fe3e7887e7d79598209e6c78da1ffb258c9be5ec9365e7fce7758218d87db73368a03f2a6884715215bef
6
+ metadata.gz: ed3c0344ac9114093e163a73fcecf310a50314a237b3556e9a805f8e7079659cf2abdca0e7ac329dc50736af3dce16c74ee89dfb4c9d001cfe8f2e5d2e7f9cab
7
+ data.tar.gz: 238402739c0743ff773b2ebce7832aa970594444a3ca2cfc82901316641e77c7a9920311fde2ba1d081b525757fe04613e8cb8d66b0788520c911681aef28920
@@ -0,0 +1,3 @@
1
+ # 1.0.1 (September 27, 2018)
2
+
3
+ * Fix update of range boundaries where new lower is greater than old upper incorrectly triggering crossed bounds error.
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- range_component_attributes (1.0.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.0)
12
- activesupport (= 5.2.0)
13
- activerecord (5.2.0)
14
- activemodel (= 5.2.0)
15
- activesupport (= 5.2.0)
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.0)
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.1)
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.1
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
 
@@ -1,3 +1,3 @@
1
1
  module RangeComponentAttributes
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-06-26 00:00:00.000000000 Z
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