Closed jaybloke closed 5 years ago
I'm getting the same issue. Is http://rails-assets.org still being maintained?
Of course! But this bug has still eluded us. Some components complete successfully, and the logs have not pointed us at anything useful thus far when it fails. Pull requests welcome.
I'm trying to add https://github.com/ilyashubin/scrollbooster. It does not contain a bower.json
file, so I have forked and generate one here https://github.com/skillstream/scrollbooster/blob/master/bower.json via:
bower init
? name scrollbooster
? description Enjoyable content drag-to-scroll library
? main file dist/scrollbooster.min.js
? keywords drag,draggable,scroll,scrollable,UI,microlibrary
? authors Ilya Shubin <pixelwake@gmail.com>
? license MIT
? homepage https://ilyashubin.github.io/scrollbooster/
? set currently installed components as dependencies? Yes
? add commonly ignored files to ignore list? Yes
? would you like to mark this package as private which prevents it from being accidentally published to the registry? No
{
name: 'scrollbooster',
description: 'Enjoyable content drag-to-scroll library',
main: 'dist/scrollbooster.min.js',
authors: [
'Ilya Shubin <pixelwake@gmail.com>'
],
license: 'MIT',
keywords: [
'drag',
'draggable',
'scroll',
'scrollable',
'UI',
'microlibrary'
],
homepage: 'https://ilyashubin.github.io/scrollbooster/',
ignore: [
'**/.*',
'node_modules',
'bower_components',
'test',
'tests'
]
}
Generate bower file
I then executed: bower register scrollbooster git://github.com/skillstream/scrollbooster.git
to register it. I then tried to add via https://rails-assets.org/components/new, but I am getting a 500 response.
Hopefully the detail above will be of some help in tracking down the issue. Perhaps I need to wait some time before it's registered on bower?
That is helpful, thank you. FWIW, I don't think you should have to wait - it should be able to pick it up immediately. Let me do some digging.
Thanks @joshjordan. I'm not that familar with bower, so I could be doing something wrong on that side of things.
@davegudge please try again
👍
Success: rails-assets-skillstream--scrollbooster has been created. It will be indexed and available for bundler in few minutes.
Thank you @joshjordan
Seems to be happening with any component added to Rails Assets... e.g.
curl -H "Content-Type: application/json" -X POST -d "{ \"component\": { \"name\": \"formrenderer-base\", \"version\": \"1.3.8\" } }" "https://rails-assets.org/components"
yields: