-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Likeno #103
Conversation
Signed-off-by: Diego Araújo <[email protected]>
- Remove unnecessary initialization from env - Use Likeno to configure the paths to be used to clean external databases Signed-off-by: Diego Araújo <[email protected]>
Signed off by: Rafael Reggiani Manzo <[email protected]>
This fails because Likeno hash conversion needs to get fixed first. Likeno adds new custom headers and prefixes functionality, which then required adaptations here. Base#convert_to_hash handles conversion from classes within Miscellaneous modules. Base#is_valid? has been renamed to Base#valid?. This may be a error of ours. If other applications require this method we will need to restore `is_valid?` as a deprecated alias to `valid?`. Just as `kalibro_errors`. Processor::Base and configurations::Base required adaptations as well to correctly pull the `address` from configuration files. Signed off by: Diego Araújo <[email protected]>
This fixes the hash conversion bug so now we expect all tests to pass. Signed off by: Rafael Reggiani Manzo <[email protected]>
This adds more complete hash conversion which fixes Miscellaneous module classes conversion to hash and enables us to remove one workaround on Base. Signed off by: Diego Araújo <[email protected]>
After the introduction of Likeno, `KalibroClient::Errors` has become `Likeno::Errors`.
This was legacy code from distant times where Kalibro used SOAP for communication.
ping @danielkza and @dread-uo |
@@ -47,4 +47,5 @@ Gem::Specification.new do |spec| | |||
|
|||
spec.add_dependency "activesupport", ">= 2.2.1" #version in which underscore was introduced | |||
spec.add_dependency "faraday_middleware", "~> 0.9" | |||
spec.add_dependency "likeno", ">= 1.1", "< 2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not "~> 1.1"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍷
It seems good to me. Great job! 👍 |
@@ -1,4 +1,4 @@ | |||
# This file is part of KalibroClient | |||
# This file is part of KalibroClient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This extra space seems accidental.
Since the same errors are raised, we do not need to duplicate the code. Notice that this breaks the KalibroClient API. Signed-off-by: Daniel Miranda <[email protected]>
Signed-off-by: Daniel Miranda <[email protected]>
Signed-off-by: Diego Araújo <[email protected]>
Full integration of Likeno on KalibroClient.
We are now using
Likeno::Entity
as base for our KalibroClient's models. We adapted the code accordingly. We've deprecated thekalibro_errors
method. On future versions it will be calledlikeno_errors
. To complete the integration we implemented themodule_name
method.Also remove the method
all
from the classes that implemented it, since Likeno has a default implementation that is enough for our needs.Remove unused XML converter methods. They were legacy code from old Kalibro.
Use
Likeno::Errors::Standard
as the default error class.