Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Automatize TLDs update #30

Closed
wants to merge 7 commits into from
Closed

Automatize TLDs update #30

wants to merge 7 commits into from

Conversation

fntlnz
Copy link
Contributor

@fntlnz fntlnz commented Jul 23, 2015

Resolves #3
I edited the original script to do the following things:

  • If the --check-only option is passed, just check if TLDs are up to date and if not exit with 1
  • Otherwise update the TLDs adding a reference to the Iana version number.

A first fail on travis is expected in order to test if it's working as expected. (Should fail because TLDs are not up to date)

foreach (file(ZF2_HOSTNAME_VALIDATOR_FILE) as $line) {
// Replace old version number with new one
if (preg_match('/\*\s+Version\s+\d+/', $line, $matches)) {
$newFileContent[] = sprintf(' * Version %s%s', $ianaVersion, PHP_EOL);
Copy link
Member

Choose a reason for hiding this comment

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

no eol always \n

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok

@fntlnz
Copy link
Contributor Author

fntlnz commented Jul 24, 2015

@Maks3w it's ok now?

@Maks3w
Copy link
Member

Maks3w commented Jul 24, 2015

For me it's ok. I'll leave the final decission to @weierophinney since he wrotes that script.

With the proposed settings Travis-CI may fail only after merge a PR or rerun a build

@Maks3w Maks3w added this to the 2.5.3 milestone Jul 24, 2015
@fntlnz
Copy link
Contributor Author

fntlnz commented Aug 4, 2015

@weierophinney Does this looks good to you?

@fntlnz
Copy link
Contributor Author

fntlnz commented Aug 30, 2015

@weierophinney @Maks3w Any problems with this?

@fntlnz fntlnz closed this Aug 31, 2015
@Maks3w Maks3w reopened this Aug 31, 2015
@fntlnz fntlnz closed this Aug 31, 2015
@Maks3w Maks3w reopened this Aug 31, 2015
@zendframework zendframework locked and limited conversation to collaborators Aug 31, 2015
@weierophinney
Copy link
Member

Merged with 5e4e671

@zendframework zendframework unlocked this conversation Sep 3, 2015
weierophinney added a commit that referenced this pull request Sep 3, 2015
weierophinney added a commit to weierophinney/zend-validator that referenced this pull request Sep 3, 2015
- Ensures coding style within file is internally consistent.
weierophinney added a commit to weierophinney/zend-validator that referenced this pull request Sep 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants