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

Added DNS_BLOCK_ASSERTIONS=1 to default Xcode release flags #53

Merged
merged 2 commits into from
Feb 19, 2013
Merged

Added DNS_BLOCK_ASSERTIONS=1 to default Xcode release flags #53

merged 2 commits into from
Feb 19, 2013

Conversation

xslim
Copy link
Contributor

@xslim xslim commented Feb 19, 2013

No description provided.

@alloy
Copy link
Member

alloy commented Feb 19, 2013

Can you add a simple test for it? This way we ensure that in the future we don’t accidentally remove it (during a refactor etc).

@xslim
Copy link
Contributor Author

xslim commented Feb 19, 2013

I have some problems with implementing testing. As I understood this is not a pure RSpec…

How should I test here thing like

build_settings['OTHER_CFLAGS'].should  include('-DNS_BLOCK_ASSERTIONS=1')

?

@alloy
Copy link
Member

alloy commented Feb 19, 2013

Indeed. With Bacon the matcher methods are on the ‘should’ object. So in this case:

build_settings['OTHER_CFLAGS'].should.include('-DNS_BLOCK_ASSERTIONS=1')

@alloy
Copy link
Member

alloy commented Feb 19, 2013

And to check that an object is not included:

build_settings['OTHER_CFLAGS'].should.not.include('-DNS_BLOCK_ASSERTIONS=1')

@xslim
Copy link
Contributor Author

xslim commented Feb 19, 2013

oh, but how do I run the tests properly?
rspec --tag focus spec/project_spec.rb seems not working

@xslim
Copy link
Contributor Author

xslim commented Feb 19, 2013

ok, got it bacon spec/project_spec.rb

So I pushed tests..

@alloy
Copy link
Member

alloy commented Feb 19, 2013

Awesome, thanks!

I will merge this later today (I have to check if we should run this test for :osx as well) and do a release.

@alloy alloy merged commit c9e563d into CocoaPods:master Feb 19, 2013
@alloy
Copy link
Member

alloy commented Feb 19, 2013

@irrationalfab Are the other commits you’ve added since 0.4.3 ready for release?

@alloy
Copy link
Member

alloy commented Feb 19, 2013

I’ll release a new gem tomorrow.

@fabiopelosin
Copy link
Member

@alloy I've added a some minor stuff which includes minor changes in the API, so I think that we should release 0.5. If you release 0.5 please remove these lines.

@alloy
Copy link
Member

alloy commented Feb 20, 2013

Released.

@tsafrir
Copy link

tsafrir commented Feb 23, 2013

@xslim When a .Podspec (like 'zipzap') defines value for OTHER_CPLUSPLUSFLAGS it will be ignored.
Should there be $(inherited) before NS_BLOCK_ASSERTIONS=1 ?
(The same probably goes for OTHER_CFLAGS)

@xslim
Copy link
Contributor Author

xslim commented Feb 24, 2013

interesting idea - needs checking...

wearhere pushed a commit to inkling/Subliminal that referenced this pull request Apr 23, 2014
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