Skip to content
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

Merged
merged 27 commits into from
Mar 30, 2016
Merged

Likeno #103

merged 27 commits into from
Mar 30, 2016

Conversation

diegoamc
Copy link
Contributor

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 the kalibro_errors method. On future versions it will be called likeno_errors. To complete the integration we implemented the module_namemethod.

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.

danielkza and others added 13 commits March 28, 2016 14:18
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`.
@diegoamc
Copy link
Contributor Author

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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not "~> 1.1"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍷

@do-you-dare
Copy link

It seems good to me. Great job! 👍

@@ -1,4 +1,4 @@
# This file is part of KalibroClient
# This file is part of KalibroClient
Copy link
Contributor

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]>
@diegoamc
Copy link
Contributor Author

Solves #104 and #105

@rafamanzo rafamanzo merged commit a2bcaba into master Mar 30, 2016
@rafamanzo rafamanzo deleted the likeno branch March 30, 2016 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants