Skip to content

Local development fixes#494

Merged
adkron merged 2 commits into
rubygems:masterfrom
elskwid:local-dev
Nov 28, 2012
Merged

Local development fixes#494
adkron merged 2 commits into
rubygems:masterfrom
elskwid:local-dev

Conversation

@elskwid
Copy link
Copy Markdown
Contributor

@elskwid elskwid commented Nov 24, 2012

Fixes to assist with a local development environment.

  • Server path updates so write_gem, upload, and friends work the way we expect
  • Update gemcutter:update:index to use Indexer

This fixes path problems when setting up a local
development environment. In dev, Fog uses the 
local storage provider and Indexer assumes all
operations will result in files being written 
to `Pusher.server_path + "/gems"`. With Fog in the
mix, this actually becomes `Pusher.server_path +
s3_bucket + "/gems"`. (`Pusher.server_path` 
defaults to the `server` directory.)

Removing the s3_bucket name from `rubygems.yml`
and the `'gems'` from `Indexer#fog` means that 
gems and index updates are served out of the
`Pusher.server_path` as expected.

No tests for this as the behavior only occurs in
the development environment.
`Pusher#upload` was extracted out into `Indexer`
in a802782. This updates the index rake task
to use `Indexer.new.perform` instead of the
individual upload steps. Stats get lost but the
upshot is the task works again. Hooray!
@elskwid
Copy link
Copy Markdown
Contributor Author

elskwid commented Nov 24, 2012

I've just updated the wiki to reflect issues and notes that I kept while working on some bundler-api issues yesterday. https://github.com/rubygems/rubygems.org/wiki/Development-Setup

adkron added a commit that referenced this pull request Nov 28, 2012
@adkron adkron merged commit 82df64d into rubygems:master Nov 28, 2012
@adkron
Copy link
Copy Markdown
Contributor

adkron commented Nov 28, 2012

Thanks, great commit messages, and a 👍 on updating the wiki.

@elskwid
Copy link
Copy Markdown
Contributor Author

elskwid commented Nov 28, 2012

Thanks for the kind words @adkron. Glad I could help.

adkron added a commit that referenced this pull request Jan 29, 2015
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