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

Fix CI #8

Merged
merged 1 commit into from Sep 30, 2015
Merged

Fix CI #8

merged 1 commit into from Sep 30, 2015

Conversation

byroot
Copy link
Contributor

@byroot byroot commented Sep 30, 2015

Specifying the mysql2 version should fix CI.

cc @arthurnn @gmalette

@byroot
Copy link
Contributor Author

byroot commented Sep 30, 2015

Look like SQLite 3 kinda changed it's format. I'm on it.

@byroot byroot changed the title force recent version of mysql2 Fix CI Sep 30, 2015
@arthurnn arthurnn mentioned this pull request Sep 30, 2015
@byroot byroot force-pushed the mysql2-version branch 2 times, most recently from 9c49283 to 5b81af0 Compare September 30, 2015 18:10
@byroot
Copy link
Contributor Author

byroot commented Sep 30, 2015

FFS there is just so many different issues with the test suite -_-. I'm getting close though.

@byroot byroot force-pushed the mysql2-version branch 3 times, most recently from 6fadfa6 to 0d3acd5 Compare September 30, 2015 18:47
@byroot
Copy link
Contributor Author

byroot commented Sep 30, 2015

All green! I'll add a few comments about what changed and why.

- gemfiles/Gemfile.ar-4.0
- gemfiles/Gemfile.ar-4.1
- gemfiles/Gemfile.ar-4.2
- gemfiles/Gemfile.ar-edge
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 moved the Gemfile outside of spec because otherwise gems were installed in spec/gemfiles/bundler and rspec was trying to runt he dependencies specs.

Choose a reason for hiding this comment

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

yep... thats for sure a better idea.

@byroot
Copy link
Contributor Author

byroot commented Sep 30, 2015

@gmalette @arthurnn good for you?

end

def extract_columns(columns_string)
return unless columns_string
columns_string.split(",").map(&:strip)
columns_string.split(",").map { |column| column.split('.').last.strip }

Choose a reason for hiding this comment

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

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right. This is because in that new format, columns are in their "fully qualified names", e.g. table_name.column_name, not just column_name

@gmalette
Copy link
Contributor

👍

byroot added a commit that referenced this pull request Sep 30, 2015
@byroot byroot merged commit b516238 into master Sep 30, 2015
@byroot byroot deleted the mysql2-version branch September 30, 2015 19:17
arthurnn pushed a commit to arthurnn/activerecord-rescue_from_duplicate that referenced this pull request Sep 30, 2015
gmalette added a commit that referenced this pull request Sep 30, 2015
You forgot to change the readme in #8
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.

None yet

3 participants