xml_errors_parser 0.0.1 → 0.0.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjM1NTYwY2Y5ZjUyYzBkY2VmYjhiYjc1NTE0MjUwNDk0Zjk1Y2MxMQ==
4
+ OTc0OTRjNjk4N2Q4NTI0ZGM2ODcxNjkyYWYxNWRlNTk4Y2Y3NGU2ZA==
5
5
  data.tar.gz: !binary |-
6
- NTdmZjM1ZTZkNjM5YTQ4MWM4NmNhMzE4ZjNmOWQ3YmUwNjY1M2QxNw==
6
+ YWNlMDQwOGY0OWI0N2E5YThiMTI3ZGY2MWUyMzg3Y2JiNjllZmEwYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmI2NmNjN2JlZmE4MTBkY2Y0NThmODUyMWFkNWU4NWQ5ZjU1NWVkNWEwMjRk
10
- NzZlZDVhNTkzNDE2MDY5ODUzNDI2YTQ1MTRiMzhlNTBiMjAwZDRmZTdkYmQw
11
- NTZmNWEyNmMzMjNkMDUxODNhZDgyOGUyMzA2ZDYxZjFlMGVmMzE=
9
+ YWUxOGRjZDY2ZDg1ZDQ0ZTc3ZWZjZTU1NjVjZDNjNWJiYWQ0NjJlZGZmNjY2
10
+ MTE0ZjljYjAxNWU4ZDM0NmEzODdhNjVjNmIwOTVhYjAzMmU3NGFhZjM5Njhj
11
+ MTVmNWM0MTFkNzY4ZmU0YzJlYTZmNmJlOTY3NjNhYzUwZjI0ZWE=
12
12
  data.tar.gz: !binary |-
13
- MjlmMDY4OTgwYzBhNTMwNDA1MzgxOTMzZDFhMWU1ODdkMDRhYjcyODAxN2Q0
14
- MGY2NjU3ZGM5ZDI2ZDUzMDY4NGEyZWQ0NDI4NjE4Zjg5NGY2NzA2MzQ4ZmU5
15
- YTllODk5OTI4ZmQ5OGQzYjZhNzZjNjc3NjA1NDI4NDQzN2YzMDg=
13
+ NWU3YmQ2NzkzYjVhN2MwZWNkYzIzNWMzMDMxY2M2MzYxODExNzA5N2E3MmM1
14
+ ZTJhODUwZTBhZGJhM2I2NDA3ZDUyODY5NWIwOTIyYWZjOGZmMzE3ZWJhZDZh
15
+ YTA4M2QyZmE3OTAwZGExN2ViN2Q4MTZhNTQwZDAzY2FmN2YxMTk=
@@ -0,0 +1,5 @@
1
+ ### 0.0.2
2
+
3
+ * bug fix
4
+ * Fixed warning `warning: already initialized constant I18n::RESERVED_KEY` when this gem was used on an app that already
5
+ add loaded I18n (rails)
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # XmlErrorsParser
2
+ [![Gem Version](https://badge.fury.io/rb/xml_errors_parser.png)](http://badge.fury.io/rb/xml_errors_parser)
2
3
 
3
4
  When validating XML using a XSD, we get error messages that are not very friendly, for example:
4
5
 
@@ -77,4 +78,4 @@ en:
77
78
  3. Run `bundle exec fudge build` to see if the build passes
78
79
  3. Commit your changes (`git commit -am 'Add some feature'`)
79
80
  4. Push to the branch (`git push origin my-new-feature`)
80
- 5. Create new Pull Request
81
+ 5. Create new Pull Request
@@ -1,5 +1,7 @@
1
1
  module XmlErrorsParser
2
- require 'I18n'
2
+ require 'i18n'
3
+ I18n.reload!
4
+
3
5
  # This class will take the error code and the error tokens and translate them
4
6
  # to a classic I18n message
5
7
  class ErrorMessageBuilder
@@ -1,4 +1,4 @@
1
1
  module XmlErrorsParser
2
2
  # Version of the app
3
- VERSION = "0.0.1"
3
+ VERSION = '0.0.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml_errors_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor D. G. Martins
@@ -189,6 +189,7 @@ files:
189
189
  - .cane
190
190
  - .gitignore
191
191
  - .rspec
192
+ - CHANGELOG.md
192
193
  - Fudgefile
193
194
  - Gemfile
194
195
  - LICENSE.txt