Coder Social home page Coder Social logo

source code requires UTF-8 about chandler HOT 4 CLOSED

glensc avatar glensc commented on August 17, 2024
source code requires UTF-8

from chandler.

Comments (4)

mattbrictson avatar mattbrictson commented on August 17, 2024

I thought that in Ruby 2.0 and higher, the default encoding for .rb files is assumed to be UTF-8.

This Ruby issue explicitly says that all Ruby files are interpreted as if they have #encoding: utf-8:

https://bugs.ruby-lang.org/issues/6679

Clearly that is not the case here. Do you know why it's not working? I hope there is a solution that doesn't require removing all non-ascii characters from the gem.

from chandler.

glensc avatar glensc commented on August 17, 2024

i've been using this gem code because unable to update release notes for tag that does not look like version. i have tag named snapshot.

 cat bin/ci/tag-update.rb
#!/usr/bin/ruby
#
# Script using chandler gem to update title/notes of release in GitHub
#

require 'rubygems'
require 'chandler'
require 'chandler/configuration'

github_repository = ENV['TRAVIS_REPO_SLUG']
tag = ENV['TRAVIS_TAG']
version = ENV['RELEASE_TITLE']
notes = ENV['RELEASE_NOTES']

github = Chandler::GitHub.new(
	:repository => github_repository,
	:config => Chandler::Configuration.new
)
github.create_or_update_release(
	:tag => tag,
	:title => version,
	:description => notes
)

from chandler.

glensc avatar glensc commented on August 17, 2024

blah. seems the problem is that the script was run with ruby 1.9. i couldn't figure this out in first place because the output was messed up. here's better log:

https://travis-ci.org/eventum/eventum/jobs/273510965#L3288

from chandler.

mattbrictson avatar mattbrictson commented on August 17, 2024

Ah, glad to hear you got it all sorted. Cheers

from chandler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.