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

Allow asset path configuration #63

Closed
wants to merge 6 commits into from
Closed

Allow asset path configuration #63

wants to merge 6 commits into from

Conversation

karlentwistle
Copy link

  • provide a way to allow developers to configure asset paths

* provide a way to allow developers to configure asset paths
@karlentwistle
Copy link
Author

#62 but on a branch not master

@karlentwistle karlentwistle changed the title assets path WIP - assets path Jul 31, 2014
@karlentwistle karlentwistle changed the title WIP - assets path WIP - Allow asset path configuration Jul 31, 2014
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling 337ef2d on karlentwistle:assets_directories into 11ce2b3 on lotus:master.

end

def to_s
@path.to_s
@paths.first.to_s
Copy link
Author

Choose a reason for hiding this comment

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

This is my sticking point at the moment, hence still WIP

* Introduced the concept of the Asset Path
@karlentwistle
Copy link
Author

Turns out you can use multiple Rack::Static middlewares in the same app 👍

@karlentwistle karlentwistle changed the title WIP - Allow asset path configuration Allow asset path configuration Jul 31, 2014
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) when pulling c771f72 on karlentwistle:assets_directories into 11ce2b3 on lotus:master.

Karl Entwistle added 2 commits August 1, 2014 11:01
Giving the collaboration fixture an additional asset path in addition to its default
/public path. Checking that we can retrieve the file
@karlentwistle karlentwistle changed the title Allow asset path configuration WIP Allow asset path configuration Aug 1, 2014
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) when pulling ed6c294 on karlentwistle:assets_directories into 11ce2b3 on lotus:master.

@karlentwistle karlentwistle changed the title WIP Allow asset path configuration Allow asset path configuration Aug 1, 2014
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) when pulling efac5a7 on karlentwistle:assets_directories into 11ce2b3 on lotus:master.

TryStatic will probe Rack::Static to see if a file is found.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) when pulling 639b730 on karlentwistle:assets_directories into 11ce2b3 on lotus:master.

* Needed to implement an equality operator on Assets::Path
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) when pulling 85b0266 on karlentwistle:assets_directories into 11ce2b3 on lotus:master.

@@ -4,6 +4,23 @@ module Lotus
# @since 0.1.0
# @api private
class Middleware
class TryStatic
Copy link
Member

Choose a reason for hiding this comment

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

😱 I don't think this is a good idea at all, because it adds a potential overhead for each HTTP request related to assets.

@runlevel5
Copy link
Member

@karlentwistle what's the status of this PR? Why did you close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants