agilibox 1.3.1 → 1.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75fc12b8fa0262b284e0cfec397b93f50ff588c7d97a43f22ac18c9871aeb621
4
- data.tar.gz: c61269d792a2db9eac760af2099713c80efa88a217ea2caea69d5375a7cb7663
3
+ metadata.gz: ccc9c35984e5e8e8f83e75abe43d79ffa75b8cc56670fff079519bb2cf730409
4
+ data.tar.gz: 3e4cde161b09ae357c7e32519b2ad0faca9b45d311a5f533daa0139212cfa731
5
5
  SHA512:
6
- metadata.gz: aa5885a20d949ea989c0a48b885d686fc460773008ecf0bd87271d734ef0db59829b923aa8d60ba349f85ff4ee6d96891e324768545c1a000dca89f9c8865f8f
7
- data.tar.gz: 4279dc4e03c1db2e15352972f0d7542db527cd749b89b55cae6794e489070fba398341458f7c7fb28adaadff1c34edb14fef0e390b14c3f8ca9360869081010c
6
+ metadata.gz: c0df1377639822e09d0521824e1b2862269d955932327c41eb177fa13d917709ec638ef28c93a48a46819594fb187c048ba479e11cd011f7a02dd21b26ff3559
7
+ data.tar.gz: e05a65d1fa98404d1dc4a9c6b7d5fb0b8dc5001cf60343757fb4fd977c514023ca1d004b10c22785060e047aec5ca2a9d18ad17170945a0961b964f571cb4088
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## 1.3.2
6
+
7
+ - Add `Agilibox::ActiveModelCustomErrorMessages`
8
+
5
9
  ## 1.3.1
6
10
 
7
11
  - `ApiControllerConcern` refactor + helpers
@@ -0,0 +1,8 @@
1
+ module Agilibox::ActiveModelCustomErrorMessages
2
+ def full_message(attribute, message)
3
+ return message[1..-1] if message[0] == "^"
4
+ super(attribute, message)
5
+ end
6
+ end
7
+
8
+ ActiveModel::Errors.send(:prepend, Agilibox::ActiveModelCustomErrorMessages)
@@ -1,2 +1,3 @@
1
+ require_relative "active_model_custom_error_messages"
1
2
  require_relative "active_record_comma_type_cast"
2
3
  require_relative "form_back_url"
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilibox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-21 00:00:00.000000000 Z
11
+ date: 2018-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n
@@ -151,6 +151,7 @@ files:
151
151
  - config/routes.rb
152
152
  - db/migrate/20170502143330_enable_unaccent.rb
153
153
  - lib/agilibox.rb
154
+ - lib/agilibox/active_model_custom_error_messages.rb
154
155
  - lib/agilibox/active_record_comma_type_cast.rb
155
156
  - lib/agilibox/core_and_rails_ext.rb
156
157
  - lib/agilibox/cucumber_config.rb