Comments (7)
Does this always happen, with all files? Or just certain files? What is your OS/ruby version?
from ghup.
As far as I can tell it happens with all files. I'm using Ubuntu 12.04 with ruby 1.9.3.0.
from ghup.
I've just merged (a rather old) pull request which slightly changes the way how files are uploaded. Maybe it fixes your problem. Can you try with the latest version?
from ghup.
This doesn't help (just tried), but it's not a surprise, as the file utility does exist on my platform, and files are always read as binary (the fixes are for non-UNIX platforms).
from ghup.
Scratch that: the update appears to make it work. Search me how it works, for the above reasons, but it seems to. (The first time I tried and failed I was running with the wrong version of github-upload.)
from ghup.
Could it be that files are not always read as binary, and that there is indeed a difference between #read and #binread even on unix?
from ghup.
If some kind of text encoding comes into play; I'm no Ruby expert.
from ghup.
Related Issues (9)
- Typo in script
- Please give an error if Ruby < 1.9 used HOT 1
- Integrate oauth token creation into the script HOT 1
- Adding a parameter for the file "Description"
- Add optional certificate verification HOT 5
- regex error when anonymous git clone
- Get github link rather than Amazon one HOT 3
- error while uploading HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghup.