active_interaction 3.7.0 → 3.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +201 -191
- data/README.md +1 -1
- data/lib/active_interaction/concerns/runnable.rb +12 -12
- data/lib/active_interaction/filters/decimal_filter.rb +2 -2
- data/lib/active_interaction/version.rb +1 -1
- data/spec/active_interaction/concerns/runnable_spec.rb +14 -0
- data/spec/active_interaction/filters/decimal_filter_spec.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af64e2c9d517eda9f5f86be8927f2d8d82b53f905112379ca49bb6e42e487e99
|
4
|
+
data.tar.gz: 9f59937f4722d923d79611a9c99b81a0ee920e405352ee48cf01050000bc06d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb7c7b81e0105785bba793aa3ca5466daea5f49e197a5461689c45b1b5f637fdd18f1d58ed394afa7f23a28a1d8a39d16c7c146ad05055e577f89760508ee879
|
7
|
+
data.tar.gz: 277a4bebd07bb0c8465851104a95b0ea9c3d7d07de4386c20082551b4bd2ce09a822687d9d891322825625daf76ec5e4606b19b97308475ec735a5ad73f42356
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [3.7.1][] (2019-03-20)
|
2
|
+
|
3
|
+
## Fixed
|
4
|
+
|
5
|
+
- [#455][] Switch to `BigDecimal()` to avoid warnings in Ruby 2.6.
|
6
|
+
- [#457][] When using an after callback on `execute` the `:if` option does not see composed errors.
|
7
|
+
|
1
8
|
# [3.7.0][] (2019-02-10)
|
2
9
|
|
3
10
|
## Added
|
@@ -745,194 +752,197 @@ Example.run
|
|
745
752
|
|
746
753
|
- Initial release.
|
747
754
|
|
748
|
-
[3.7.
|
749
|
-
[3.
|
750
|
-
[3.6.
|
751
|
-
[3.6.
|
752
|
-
[3.
|
753
|
-
[3.5.
|
754
|
-
[3.5.
|
755
|
-
[3.5.
|
756
|
-
[3.
|
757
|
-
[3.
|
758
|
-
[3.
|
759
|
-
[3.2.
|
760
|
-
[3.
|
761
|
-
[3.1.
|
762
|
-
[3.0
|
763
|
-
[3.0.
|
764
|
-
[
|
765
|
-
[2.
|
766
|
-
[2.1.
|
767
|
-
[2.1.
|
768
|
-
[2.1.
|
769
|
-
[2.1.
|
770
|
-
[2.1.
|
771
|
-
[2.0
|
772
|
-
[2.0.
|
773
|
-
[
|
774
|
-
[1.6.
|
775
|
-
[1.
|
776
|
-
[1.5.
|
777
|
-
[1.
|
778
|
-
[1.4.
|
779
|
-
[1.
|
780
|
-
[1.3.
|
781
|
-
[1.
|
782
|
-
[1.2.
|
783
|
-
[1.2.
|
784
|
-
[1.2.
|
785
|
-
[1.2.
|
786
|
-
[1.2.
|
787
|
-
[1.
|
788
|
-
[1.1.
|
789
|
-
[1.1.
|
790
|
-
[1.1.
|
791
|
-
[1.1.
|
792
|
-
[1.1.
|
793
|
-
[1.1.
|
794
|
-
[1.1.
|
795
|
-
[1.0
|
796
|
-
[1.0.
|
797
|
-
[1.0.
|
798
|
-
[1.0.
|
799
|
-
[1.0.
|
800
|
-
[1.0.
|
801
|
-
[0.
|
802
|
-
[0.10.
|
803
|
-
[0.10.
|
804
|
-
[0.
|
805
|
-
[0.9.
|
806
|
-
[0.
|
807
|
-
[0.
|
808
|
-
[0.
|
809
|
-
[0.6.
|
810
|
-
[0.
|
811
|
-
[0.
|
812
|
-
[0.
|
813
|
-
[0.
|
814
|
-
[0.2.
|
815
|
-
[0.2.
|
816
|
-
[0.
|
817
|
-
[0.1.
|
818
|
-
[0.1.
|
819
|
-
[0.1.
|
820
|
-
|
821
|
-
|
822
|
-
[#
|
823
|
-
[#
|
824
|
-
[#
|
825
|
-
[#
|
826
|
-
[#
|
827
|
-
[#
|
828
|
-
[#
|
829
|
-
[#
|
830
|
-
[#
|
831
|
-
[#
|
832
|
-
[#
|
833
|
-
[#
|
834
|
-
[#
|
835
|
-
[#
|
836
|
-
[#
|
837
|
-
[#
|
838
|
-
[#
|
839
|
-
[#
|
840
|
-
[#
|
841
|
-
[#
|
842
|
-
[#
|
843
|
-
[#
|
844
|
-
[#
|
845
|
-
[#
|
846
|
-
[#
|
847
|
-
[#
|
848
|
-
[#
|
849
|
-
[#
|
850
|
-
[#
|
851
|
-
[#
|
852
|
-
[#
|
853
|
-
[#
|
854
|
-
[#
|
855
|
-
[#
|
856
|
-
[#
|
857
|
-
[#
|
858
|
-
[#
|
859
|
-
[#
|
860
|
-
[#
|
861
|
-
[#
|
862
|
-
[#
|
863
|
-
[#
|
864
|
-
[#
|
865
|
-
[#
|
866
|
-
[#
|
867
|
-
[#
|
868
|
-
[#
|
869
|
-
[#
|
870
|
-
[#
|
871
|
-
[#
|
872
|
-
[#
|
873
|
-
[#
|
874
|
-
[#
|
875
|
-
[#
|
876
|
-
[#
|
877
|
-
[#
|
878
|
-
[#
|
879
|
-
[#
|
880
|
-
[#
|
881
|
-
[#
|
882
|
-
[#
|
883
|
-
[#
|
884
|
-
[#
|
885
|
-
[#
|
886
|
-
[#
|
887
|
-
[#
|
888
|
-
[#
|
889
|
-
[#
|
890
|
-
[#
|
891
|
-
[#
|
892
|
-
[#
|
893
|
-
[#
|
894
|
-
[#
|
895
|
-
[#
|
896
|
-
[#
|
897
|
-
[#
|
898
|
-
[#
|
899
|
-
[#
|
900
|
-
[#
|
901
|
-
[#
|
902
|
-
[#
|
903
|
-
[#
|
904
|
-
[#
|
905
|
-
[#
|
906
|
-
[#
|
907
|
-
[#
|
908
|
-
[#
|
909
|
-
[#
|
910
|
-
[#
|
911
|
-
[#
|
912
|
-
[#
|
913
|
-
[#
|
914
|
-
[#
|
915
|
-
[#
|
916
|
-
[#
|
917
|
-
[#
|
918
|
-
[#
|
919
|
-
[#
|
920
|
-
[#
|
921
|
-
[#
|
922
|
-
[#
|
923
|
-
[#
|
924
|
-
[#
|
925
|
-
[#
|
926
|
-
[#
|
927
|
-
[#
|
928
|
-
[#
|
929
|
-
[#
|
930
|
-
[#
|
931
|
-
[#
|
932
|
-
[#
|
933
|
-
[#
|
934
|
-
[#
|
935
|
-
[#
|
936
|
-
[#
|
937
|
-
[#
|
938
|
-
[#
|
755
|
+
[3.7.1]: https://github.com/AaronLasseigne/active_interaction/compare/v3.7.0...v3.7.1
|
756
|
+
[3.7.0]: https://github.com/AaronLasseigne/active_interaction/compare/v3.6.2...v3.7.0
|
757
|
+
[3.6.2]: https://github.com/AaronLasseigne/active_interaction/compare/v3.6.1...v3.6.2
|
758
|
+
[3.6.1]: https://github.com/AaronLasseigne/active_interaction/compare/v3.6.0...v3.6.1
|
759
|
+
[3.6.0]: https://github.com/AaronLasseigne/active_interaction/compare/v3.5.3...v3.6.0
|
760
|
+
[3.5.3]: https://github.com/AaronLasseigne/active_interaction/compare/v3.5.2...v3.5.3
|
761
|
+
[3.5.2]: https://github.com/AaronLasseigne/active_interaction/compare/v3.5.1...v3.5.2
|
762
|
+
[3.5.1]: https://github.com/AaronLasseigne/active_interaction/compare/v3.5.0...v3.5.1
|
763
|
+
[3.5.0]: https://github.com/AaronLasseigne/active_interaction/compare/v3.4.0...v3.5.0
|
764
|
+
[3.4.0]: https://github.com/AaronLasseigne/active_interaction/compare/v3.3.0...v3.4.0
|
765
|
+
[3.3.0]: https://github.com/AaronLasseigne/active_interaction/compare/v3.2.1...v3.3.0
|
766
|
+
[3.2.1]: https://github.com/AaronLasseigne/active_interaction/compare/v3.2.0...v3.2.1
|
767
|
+
[3.2.0]: https://github.com/AaronLasseigne/active_interaction/compare/v3.1.1...v3.2.0
|
768
|
+
[3.1.1]: https://github.com/AaronLasseigne/active_interaction/compare/v3.1.0...v3.1.1
|
769
|
+
[3.1.0]: https://github.com/AaronLasseigne/active_interaction/compare/v3.0.1...v3.1.0
|
770
|
+
[3.0.1]: https://github.com/AaronLasseigne/active_interaction/compare/v3.0.0...v3.0.1
|
771
|
+
[3.0.0]: https://github.com/AaronLasseigne/active_interaction/compare/v2.2.0...v3.0.0
|
772
|
+
[2.2.0]: https://github.com/AaronLasseigne/active_interaction/compare/v2.1.5...v2.2.0
|
773
|
+
[2.1.5]: https://github.com/AaronLasseigne/active_interaction/compare/v2.1.4...v2.1.5
|
774
|
+
[2.1.4]: https://github.com/AaronLasseigne/active_interaction/compare/v2.1.3...v2.1.4
|
775
|
+
[2.1.3]: https://github.com/AaronLasseigne/active_interaction/compare/v2.1.2...v2.1.3
|
776
|
+
[2.1.2]: https://github.com/AaronLasseigne/active_interaction/compare/v2.1.1...v2.1.2
|
777
|
+
[2.1.1]: https://github.com/AaronLasseigne/active_interaction/compare/v2.1.0...v2.1.1
|
778
|
+
[2.1.0]: https://github.com/AaronLasseigne/active_interaction/compare/v2.0.1...v2.1.0
|
779
|
+
[2.0.1]: https://github.com/AaronLasseigne/active_interaction/compare/v2.0.0...v2.0.1
|
780
|
+
[2.0.0]: https://github.com/AaronLasseigne/active_interaction/compare/v1.6.0...v2.0.0
|
781
|
+
[1.6.1]: https://github.com/AaronLasseigne/active_interaction/compare/v1.6.0...v1.6.1
|
782
|
+
[1.6.0]: https://github.com/AaronLasseigne/active_interaction/compare/v1.5.1...v1.6.0
|
783
|
+
[1.5.1]: https://github.com/AaronLasseigne/active_interaction/compare/v1.5.0...v1.5.1
|
784
|
+
[1.5.0]: https://github.com/AaronLasseigne/active_interaction/compare/v1.4.1...v1.5.0
|
785
|
+
[1.4.1]: https://github.com/AaronLasseigne/active_interaction/compare/v1.4.0...v1.4.1
|
786
|
+
[1.4.0]: https://github.com/AaronLasseigne/active_interaction/compare/v1.3.1...v1.4.0
|
787
|
+
[1.3.1]: https://github.com/AaronLasseigne/active_interaction/compare/v1.3.0...v1.3.1
|
788
|
+
[1.3.0]: https://github.com/AaronLasseigne/active_interaction/compare/v1.2.5...v1.3.0
|
789
|
+
[1.2.5]: https://github.com/AaronLasseigne/active_interaction/compare/v1.2.4...v1.2.5
|
790
|
+
[1.2.4]: https://github.com/AaronLasseigne/active_interaction/compare/v1.2.3...v1.2.4
|
791
|
+
[1.2.3]: https://github.com/AaronLasseigne/active_interaction/compare/v1.2.2...v1.2.3
|
792
|
+
[1.2.2]: https://github.com/AaronLasseigne/active_interaction/compare/v1.2.1...v1.2.2
|
793
|
+
[1.2.1]: https://github.com/AaronLasseigne/active_interaction/compare/v1.2.0...v1.2.1
|
794
|
+
[1.2.0]: https://github.com/AaronLasseigne/active_interaction/compare/v1.1.7...v1.2.0
|
795
|
+
[1.1.7]: https://github.com/AaronLasseigne/active_interaction/compare/v1.1.6...v1.1.7
|
796
|
+
[1.1.6]: https://github.com/AaronLasseigne/active_interaction/compare/v1.1.5...v1.1.6
|
797
|
+
[1.1.5]: https://github.com/AaronLasseigne/active_interaction/compare/v1.1.4...v1.1.5
|
798
|
+
[1.1.4]: https://github.com/AaronLasseigne/active_interaction/compare/v1.1.3...v1.1.4
|
799
|
+
[1.1.3]: https://github.com/AaronLasseigne/active_interaction/compare/v1.1.2...v1.1.3
|
800
|
+
[1.1.2]: https://github.com/AaronLasseigne/active_interaction/compare/v1.1.1...v1.1.2
|
801
|
+
[1.1.1]: https://github.com/AaronLasseigne/active_interaction/compare/v1.1.0...v1.1.1
|
802
|
+
[1.1.0]: https://github.com/AaronLasseigne/active_interaction/compare/v1.0.5...v1.1.0
|
803
|
+
[1.0.5]: https://github.com/AaronLasseigne/active_interaction/compare/v1.0.4...v1.0.5
|
804
|
+
[1.0.4]: https://github.com/AaronLasseigne/active_interaction/compare/v1.0.3...v1.0.4
|
805
|
+
[1.0.3]: https://github.com/AaronLasseigne/active_interaction/compare/v1.0.2...v1.0.3
|
806
|
+
[1.0.2]: https://github.com/AaronLasseigne/active_interaction/compare/v1.0.1...v1.0.2
|
807
|
+
[1.0.1]: https://github.com/AaronLasseigne/active_interaction/compare/v1.0.0...v1.0.1
|
808
|
+
[1.0.0]: https://github.com/AaronLasseigne/active_interaction/compare/v0.10.2...v1.0.0
|
809
|
+
[0.10.2]: https://github.com/AaronLasseigne/active_interaction/compare/v0.10.1...v0.10.2
|
810
|
+
[0.10.1]: https://github.com/AaronLasseigne/active_interaction/compare/v0.10.0...v0.10.1
|
811
|
+
[0.10.0]: https://github.com/AaronLasseigne/active_interaction/compare/v0.9.1...v0.10.0
|
812
|
+
[0.9.1]: https://github.com/AaronLasseigne/active_interaction/compare/v0.9.0...v0.9.1
|
813
|
+
[0.9.0]: https://github.com/AaronLasseigne/active_interaction/compare/v0.8.0...v0.9.0
|
814
|
+
[0.8.0]: https://github.com/AaronLasseigne/active_interaction/compare/v0.7.0...v0.8.0
|
815
|
+
[0.7.0]: https://github.com/AaronLasseigne/active_interaction/compare/v0.6.1...v0.7.0
|
816
|
+
[0.6.1]: https://github.com/AaronLasseigne/active_interaction/compare/v0.6.0...v0.6.1
|
817
|
+
[0.6.0]: https://github.com/AaronLasseigne/active_interaction/compare/v0.5.0...v0.6.0
|
818
|
+
[0.5.0]: https://github.com/AaronLasseigne/active_interaction/compare/v0.4.0...v0.5.0
|
819
|
+
[0.4.0]: https://github.com/AaronLasseigne/active_interaction/compare/v0.3.0...v0.4.0
|
820
|
+
[0.3.0]: https://github.com/AaronLasseigne/active_interaction/compare/v0.2.2...v0.3.0
|
821
|
+
[0.2.2]: https://github.com/AaronLasseigne/active_interaction/compare/v0.2.1...v0.2.2
|
822
|
+
[0.2.1]: https://github.com/AaronLasseigne/active_interaction/compare/v0.2.0...v0.2.1
|
823
|
+
[0.2.0]: https://github.com/AaronLasseigne/active_interaction/compare/v0.1.3...v0.2.0
|
824
|
+
[0.1.3]: https://github.com/AaronLasseigne/active_interaction/compare/v0.1.2...v0.1.3
|
825
|
+
[0.1.2]: https://github.com/AaronLasseigne/active_interaction/compare/v0.1.1...v0.1.2
|
826
|
+
[0.1.1]: https://github.com/AaronLasseigne/active_interaction/compare/v0.1.0...v0.1.1
|
827
|
+
[0.1.0]: https://github.com/AaronLasseigne/active_interaction/compare/v0.0.0...v0.1.0
|
828
|
+
|
829
|
+
[#20]: https://github.com/AaronLasseigne/active_interaction/issues/20
|
830
|
+
[#23]: https://github.com/AaronLasseigne/active_interaction/issues/23
|
831
|
+
[#24]: https://github.com/AaronLasseigne/active_interaction/issues/24
|
832
|
+
[#27]: https://github.com/AaronLasseigne/active_interaction/issues/27
|
833
|
+
[#28]: https://github.com/AaronLasseigne/active_interaction/issues/28
|
834
|
+
[#29]: https://github.com/AaronLasseigne/active_interaction/issues/29
|
835
|
+
[#30]: https://github.com/AaronLasseigne/active_interaction/issues/30
|
836
|
+
[#34]: https://github.com/AaronLasseigne/active_interaction/issues/34
|
837
|
+
[#36]: https://github.com/AaronLasseigne/active_interaction/issues/36
|
838
|
+
[#37]: https://github.com/AaronLasseigne/active_interaction/issues/37
|
839
|
+
[#38]: https://github.com/AaronLasseigne/active_interaction/issues/38
|
840
|
+
[#39]: https://github.com/AaronLasseigne/active_interaction/issues/39
|
841
|
+
[#40]: https://github.com/AaronLasseigne/active_interaction/issues/40
|
842
|
+
[#41]: https://github.com/AaronLasseigne/active_interaction/issues/41
|
843
|
+
[#44]: https://github.com/AaronLasseigne/active_interaction/issues/44
|
844
|
+
[#45]: https://github.com/AaronLasseigne/active_interaction/issues/45
|
845
|
+
[#49]: https://github.com/AaronLasseigne/active_interaction/issues/49
|
846
|
+
[#56]: https://github.com/AaronLasseigne/active_interaction/issues/56
|
847
|
+
[#57]: https://github.com/AaronLasseigne/active_interaction/issues/57
|
848
|
+
[#58]: https://github.com/AaronLasseigne/active_interaction/issues/58
|
849
|
+
[#61]: https://github.com/AaronLasseigne/active_interaction/issues/61
|
850
|
+
[#66]: https://github.com/AaronLasseigne/active_interaction/issues/66
|
851
|
+
[#77]: https://github.com/AaronLasseigne/active_interaction/issues/77
|
852
|
+
[#82]: https://github.com/AaronLasseigne/active_interaction/issues/82
|
853
|
+
[#84]: https://github.com/AaronLasseigne/active_interaction/issues/84
|
854
|
+
[#88]: https://github.com/AaronLasseigne/active_interaction/issues/88
|
855
|
+
[#89]: https://github.com/AaronLasseigne/active_interaction/issues/89
|
856
|
+
[#90]: https://github.com/AaronLasseigne/active_interaction/issues/90
|
857
|
+
[#94]: https://github.com/AaronLasseigne/active_interaction/issues/94
|
858
|
+
[#98]: https://github.com/AaronLasseigne/active_interaction/issues/98
|
859
|
+
[#102]: https://github.com/AaronLasseigne/active_interaction/issues/102
|
860
|
+
[#103]: https://github.com/AaronLasseigne/active_interaction/issues/103
|
861
|
+
[#104]: https://github.com/AaronLasseigne/active_interaction/issues/104
|
862
|
+
[#106]: https://github.com/AaronLasseigne/active_interaction/issues/106
|
863
|
+
[#111]: https://github.com/AaronLasseigne/active_interaction/issues/111
|
864
|
+
[#114]: https://github.com/AaronLasseigne/active_interaction/issues/114
|
865
|
+
[#115]: https://github.com/AaronLasseigne/active_interaction/issues/115
|
866
|
+
[#116]: https://github.com/AaronLasseigne/active_interaction/issues/116
|
867
|
+
[#119]: https://github.com/AaronLasseigne/active_interaction/issues/119
|
868
|
+
[#122]: https://github.com/AaronLasseigne/active_interaction/issues/122
|
869
|
+
[#125]: https://github.com/AaronLasseigne/active_interaction/issues/125
|
870
|
+
[#127]: https://github.com/AaronLasseigne/active_interaction/issues/127
|
871
|
+
[#128]: https://github.com/AaronLasseigne/active_interaction/issues/128
|
872
|
+
[#129]: https://github.com/AaronLasseigne/active_interaction/issues/129
|
873
|
+
[#130]: https://github.com/AaronLasseigne/active_interaction/issues/130
|
874
|
+
[#134]: https://github.com/AaronLasseigne/active_interaction/issues/134
|
875
|
+
[#135]: https://github.com/AaronLasseigne/active_interaction/issues/135
|
876
|
+
[#136]: https://github.com/AaronLasseigne/active_interaction/issues/136
|
877
|
+
[#138]: https://github.com/AaronLasseigne/active_interaction/issues/138
|
878
|
+
[#140]: https://github.com/AaronLasseigne/active_interaction/issues/140
|
879
|
+
[#143]: https://github.com/AaronLasseigne/active_interaction/issues/143
|
880
|
+
[#153]: https://github.com/AaronLasseigne/active_interaction/issues/153
|
881
|
+
[#155]: https://github.com/AaronLasseigne/active_interaction/issues/155
|
882
|
+
[#156]: https://github.com/AaronLasseigne/active_interaction/issues/156
|
883
|
+
[#163]: https://github.com/AaronLasseigne/active_interaction/issues/163
|
884
|
+
[#164]: https://github.com/AaronLasseigne/active_interaction/issues/164
|
885
|
+
[#165]: https://github.com/AaronLasseigne/active_interaction/issues/165
|
886
|
+
[#173]: https://github.com/AaronLasseigne/active_interaction/issues/173
|
887
|
+
[#174]: https://github.com/AaronLasseigne/active_interaction/issues/174
|
888
|
+
[#175]: https://github.com/AaronLasseigne/active_interaction/issues/175
|
889
|
+
[#178]: https://github.com/AaronLasseigne/active_interaction/issues/178
|
890
|
+
[#179]: https://github.com/AaronLasseigne/active_interaction/issues/179
|
891
|
+
[#192]: https://github.com/AaronLasseigne/active_interaction/issues/192
|
892
|
+
[#196]: https://github.com/AaronLasseigne/active_interaction/issues/196
|
893
|
+
[#201]: https://github.com/AaronLasseigne/active_interaction/issues/201
|
894
|
+
[#203]: https://github.com/AaronLasseigne/active_interaction/issues/203
|
895
|
+
[#206]: https://github.com/AaronLasseigne/active_interaction/issues/206
|
896
|
+
[#207]: https://github.com/AaronLasseigne/active_interaction/issues/207
|
897
|
+
[#213]: https://github.com/AaronLasseigne/active_interaction/issues/213
|
898
|
+
[#214]: https://github.com/AaronLasseigne/active_interaction/issues/214
|
899
|
+
[#215]: https://github.com/AaronLasseigne/active_interaction/issues/215
|
900
|
+
[#224]: https://github.com/AaronLasseigne/active_interaction/issues/224
|
901
|
+
[#235]: https://github.com/AaronLasseigne/active_interaction/issues/235
|
902
|
+
[#236]: https://github.com/AaronLasseigne/active_interaction/issues/236
|
903
|
+
[#239]: https://github.com/AaronLasseigne/active_interaction/issues/239
|
904
|
+
[#244]: https://github.com/AaronLasseigne/active_interaction/issues/244
|
905
|
+
[#248]: https://github.com/AaronLasseigne/active_interaction/issues/248
|
906
|
+
[#250]: https://github.com/AaronLasseigne/active_interaction/issues/250
|
907
|
+
[#256]: https://github.com/AaronLasseigne/active_interaction/issues/256
|
908
|
+
[#264]: https://github.com/AaronLasseigne/active_interaction/issues/264
|
909
|
+
[#265]: https://github.com/AaronLasseigne/active_interaction/issues/265
|
910
|
+
[#269]: https://github.com/AaronLasseigne/active_interaction/issues/269
|
911
|
+
[#286]: https://github.com/AaronLasseigne/active_interaction/issues/286
|
912
|
+
[#289]: https://github.com/AaronLasseigne/active_interaction/issues/289
|
913
|
+
[#295]: https://github.com/AaronLasseigne/active_interaction/issues/295
|
914
|
+
[#296]: https://github.com/AaronLasseigne/active_interaction/issues/296
|
915
|
+
[#298]: https://github.com/AaronLasseigne/active_interaction/issues/298
|
916
|
+
[#303]: https://github.com/AaronLasseigne/active_interaction/issues/303
|
917
|
+
[#304]: https://github.com/AaronLasseigne/active_interaction/issues/304
|
918
|
+
[#310]: https://github.com/AaronLasseigne/active_interaction/issues/310
|
919
|
+
[#311]: https://github.com/AaronLasseigne/active_interaction/issues/311
|
920
|
+
[#320]: https://github.com/AaronLasseigne/active_interaction/issues/320
|
921
|
+
[#330]: https://github.com/AaronLasseigne/active_interaction/pull/330
|
922
|
+
[#332]: https://github.com/AaronLasseigne/active_interaction/pull/332
|
923
|
+
[#333]: https://github.com/AaronLasseigne/active_interaction/pull/333
|
924
|
+
[#336]: https://github.com/AaronLasseigne/active_interaction/pull/336
|
925
|
+
[#344]: https://github.com/AaronLasseigne/active_interaction/pull/344
|
926
|
+
[#346]: https://github.com/AaronLasseigne/active_interaction/pull/346
|
927
|
+
[#349]: https://github.com/AaronLasseigne/active_interaction/issues/349
|
928
|
+
[#357]: https://github.com/AaronLasseigne/active_interaction/issues/357
|
929
|
+
[#362]: https://github.com/AaronLasseigne/active_interaction/pull/362
|
930
|
+
[#364]: https://github.com/AaronLasseigne/active_interaction/pull/364
|
931
|
+
[#365]: https://github.com/AaronLasseigne/active_interaction/pull/365
|
932
|
+
[#370]: https://github.com/AaronLasseigne/active_interaction/pull/370
|
933
|
+
[#377]: https://github.com/AaronLasseigne/active_interaction/pull/377
|
934
|
+
[#383]: https://github.com/AaronLasseigne/active_interaction/pull/383
|
935
|
+
[#384]: https://github.com/AaronLasseigne/active_interaction/issues/384
|
936
|
+
[#387]: https://github.com/AaronLasseigne/active_interaction/pull/387
|
937
|
+
[#408]: https://github.com/AaronLasseigne/active_interaction/issues/408
|
938
|
+
[#411]: https://github.com/AaronLasseigne/active_interaction/issues/411
|
939
|
+
[#415]: https://github.com/AaronLasseigne/active_interaction/issues/415
|
940
|
+
[#417]: https://github.com/AaronLasseigne/active_interaction/issues/417
|
941
|
+
[#420]: https://github.com/AaronLasseigne/active_interaction/issues/420
|
942
|
+
[#422]: https://github.com/AaronLasseigne/active_interaction/issues/422
|
943
|
+
[#425]: https://github.com/AaronLasseigne/active_interaction/issues/425
|
944
|
+
[#429]: https://github.com/AaronLasseigne/active_interaction/issues/429
|
945
|
+
[#435]: https://github.com/AaronLasseigne/active_interaction/issues/435
|
946
|
+
[#454]: https://github.com/AaronLasseigne/active_interaction/pull/454
|
947
|
+
[#455]: https://github.com/AaronLasseigne/active_interaction/pull/455
|
948
|
+
[#457]: https://github.com/AaronLasseigne/active_interaction/issues/457
|
data/README.md
CHANGED
@@ -614,7 +614,7 @@ end
|
|
614
614
|
|
615
615
|
DecimalInteraction.run!(price: 'one ninety-nine')
|
616
616
|
# ActiveInteraction::InvalidInteractionError: Price is not a valid decimal
|
617
|
-
DecimalInteraction.run!(price: BigDecimal
|
617
|
+
DecimalInteraction.run!(price: BigDecimal(1.99, 2))
|
618
618
|
# => #<BigDecimal:7fe792a42028,'0.2165E1',18(45)>
|
619
619
|
```
|
620
620
|
|
@@ -74,20 +74,20 @@ module ActiveInteraction
|
|
74
74
|
def run # rubocop:disable MethodLength
|
75
75
|
self.result =
|
76
76
|
if valid?
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
interrupt
|
77
|
+
run_callbacks(:execute) do
|
78
|
+
result_or_errors =
|
79
|
+
begin
|
80
|
+
execute
|
81
|
+
rescue Interrupt => interrupt
|
82
|
+
interrupt.errors
|
83
|
+
end
|
84
|
+
|
85
|
+
if result_or_errors.is_a?(ActiveInteraction::Errors)
|
86
|
+
errors.merge!(result_or_errors)
|
87
|
+
else
|
88
|
+
result_or_errors
|
82
89
|
end
|
83
90
|
end
|
84
|
-
|
85
|
-
if result_or_errors.is_a?(ActiveInteraction::Errors)
|
86
|
-
errors.merge!(result_or_errors)
|
87
|
-
nil
|
88
|
-
else
|
89
|
-
result_or_errors
|
90
|
-
end
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
@@ -25,7 +25,7 @@ module ActiveInteraction
|
|
25
25
|
def cast(value, _interaction)
|
26
26
|
case value
|
27
27
|
when Numeric
|
28
|
-
BigDecimal
|
28
|
+
BigDecimal(value, digits)
|
29
29
|
when String
|
30
30
|
decimal_from_string(value)
|
31
31
|
else
|
@@ -47,7 +47,7 @@ module ActiveInteraction
|
|
47
47
|
# @raise [InvalidValueError] if given value can not be converted
|
48
48
|
def decimal_from_string(value)
|
49
49
|
Float(value)
|
50
|
-
BigDecimal
|
50
|
+
BigDecimal(value, digits)
|
51
51
|
rescue ArgumentError
|
52
52
|
raise InvalidValueError, "Given value: #{value.inspect}"
|
53
53
|
end
|
@@ -103,6 +103,20 @@ describe ActiveInteraction::Runnable do
|
|
103
103
|
WithFailingCompose.run
|
104
104
|
expect(has_run).to be_truthy
|
105
105
|
end
|
106
|
+
|
107
|
+
context 'using if' do
|
108
|
+
it 'yields errors to the if' do
|
109
|
+
has_run = false
|
110
|
+
# rubocop:disable Metic/LineLength
|
111
|
+
WithFailingCompose.set_callback :execute, :after, if: -> { errors.any? } do
|
112
|
+
has_run = true
|
113
|
+
end
|
114
|
+
# rubocop:enable Metic/LineLength
|
115
|
+
|
116
|
+
WithFailingCompose.run
|
117
|
+
expect(has_run).to be_truthy
|
118
|
+
end
|
119
|
+
end
|
106
120
|
end
|
107
121
|
end
|
108
122
|
end
|
@@ -21,7 +21,7 @@ describe ActiveInteraction::DecimalFilter, :filter do
|
|
21
21
|
let(:value) { rand }
|
22
22
|
|
23
23
|
it 'returns the BigDecimal' do
|
24
|
-
expect(result).to eql BigDecimal
|
24
|
+
expect(result).to eql BigDecimal(value, 0)
|
25
25
|
end
|
26
26
|
|
27
27
|
context 'with :digits option' do
|
@@ -30,7 +30,7 @@ describe ActiveInteraction::DecimalFilter, :filter do
|
|
30
30
|
let(:value) { 1.23456789 }
|
31
31
|
|
32
32
|
it 'returns BigDecimal with given digits' do
|
33
|
-
expect(result).to eql BigDecimal
|
33
|
+
expect(result).to eql BigDecimal('1.235')
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -39,7 +39,7 @@ describe ActiveInteraction::DecimalFilter, :filter do
|
|
39
39
|
let(:value) { rand(1 << 16) }
|
40
40
|
|
41
41
|
it 'returns a BigDecimal' do
|
42
|
-
expect(result).to eql BigDecimal
|
42
|
+
expect(result).to eql BigDecimal(value)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -47,7 +47,7 @@ describe ActiveInteraction::DecimalFilter, :filter do
|
|
47
47
|
let(:value) { rand.to_s }
|
48
48
|
|
49
49
|
it 'returns a BigDecimal' do
|
50
|
-
expect(result).to eql BigDecimal
|
50
|
+
expect(result).to eql BigDecimal(value)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_interaction
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Lasseigne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-03-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -264,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
264
264
|
- !ruby/object:Gem::Version
|
265
265
|
version: '0'
|
266
266
|
requirements: []
|
267
|
-
rubygems_version: 3.0.
|
267
|
+
rubygems_version: 3.0.3
|
268
268
|
signing_key:
|
269
269
|
specification_version: 4
|
270
270
|
summary: Manage application specific business logic.
|