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

Extract numbers generation into separate class #19

Merged
merged 1 commit into from
Nov 7, 2016
Merged

Extract numbers generation into separate class #19

merged 1 commit into from
Nov 7, 2016

Conversation

Propaganistas
Copy link
Contributor

@Propaganistas Propaganistas commented Aug 5, 2016

As suggested previously in #9 .

Derived packages can as such use a consistent number generation logic instead of needing to define it themselves.

Since this package already includes "Optimus" and its life essence "Spark", I thought "Energon" (Transformer's fuel) would be a great addition :-)

Note that the optimus phar still needs to be rebuilt.

@@ -11,12 +11,12 @@
}
],
"require": {
"php": ">=5.4.0"
"php": ">=5.4.0",
"phpseclib/phpseclib": "^2.0",
Copy link
Owner

Choose a reason for hiding this comment

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

I don't really like having these dependencies here though. I want this library to be used in any application and this might conflict with application dependencies.

Maybe it's best to move these back to dev and add a suggests part + mention it in the readme that if people want to use Energon they have to include these dependencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've reverted the composer.json changes and left any README changes up to you. This way you can mention it how it suits you best.

I'd like to point out though that the phpseclib dependency is currently required to run the old/current spark command, without any note in the README. It could be viable to move the dependency notification up to that readme section?

@Propaganistas
Copy link
Contributor Author

Added tests as well for the new Energon class.

@Propaganistas
Copy link
Contributor Author

Any updates on this?

@Propaganistas
Copy link
Contributor Author

@jenssegers Could you review this please?

@jenssegers jenssegers merged commit 36a5b53 into jenssegers:master Nov 7, 2016
@jenssegers
Copy link
Owner

Sorry that this took so long. Merged and tagged!

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.

2 participants