janlelis / sugar_refinery Goto Github PK
View Code? Open in Web Editor NEWTiny refinements for Ruby
Home Page: https://janlelis.github.io/sugar_refinery
License: MIT License
Tiny refinements for Ruby
Home Page: https://janlelis.github.io/sugar_refinery
License: MIT License
Hi, I am trying to add an alias_methods to my fork of your gem.
I can't seem to be able to build the gem however. I always use Jeweler as my gem package manager and RSpec 2 for specs. I tried $ rake
$ rake (in /Users/kristianconsult/Development/Languages/Ruby/Apps/Gems/_forks/zucker) rake aborted! uninitialized constant Object::Zucker /Users/kristianconsult/Development/Languages/Ruby/Apps/Gems/_forks/zucker/Rakefile:23:in `block in ' (See full trace by running task with --trace)
Why isn't Zucker loaded I wonder!?
require 'lib/zucker' # version
I then tried require 'zucker' # version, but without luck :(
I am using ruby 1.9.2-rc2
Please help ;)
I noticed while running "gem rdoc --all" that the rdoc process seemed to silently fail when trying to process zucker. All it showed was:
Installing ri documentation for zucker-8...
gem 2.5.8
I enabled debugging and verbose and rdoc appears to be complaining:
greg-mbp-wireless:Desktop greg$ gem rdoc -V --debug zucker
Exception `NameError' at /Users/greg/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::RdocCommand
Exception `Gem::LoadError' at /Users/greg/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:762 - Could not find RubyGem rdoc (>= 0)
Exception `Errno::ENOENT' at /Users/greg/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/fileutils.rb:1212 - No such file or directory - /Users/greg/.rvm/gems/ruby-1.9.2-p0/doc/zucker-8/ri
Exception `Errno::ENOENT' at /Users/greg/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/fileutils.rb:1212 - No such file or directory - /Users/greg/.rvm/gems/ruby-1.9.2-p0/doc/zucker-8/ri
Exception `Errno::ENOENT' at /Users/greg/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/fileutils.rb:1309 - No such file or directory - /Users/greg/.rvm/gems/ruby-1.9.2-p0/doc/zucker-8/ri
Installing ri documentation for zucker-8...
rdoc --ri --op /Users/greg/.rvm/gems/ruby-1.9.2-p0/doc/zucker-8/ri --version --quiet lib --title zucker-8 Documentation
gem 2.5.8
I jumped over to the zucker gem directory to nose around but haven't figured out what makes rdoc so mad so far. I did notice that it appears that there are a bunch of old directories hanging around in the distribution, at least they're old versions based on the directory layout. Is there any reason we have to have directories 1..8? I compared several of the files using vimdiff and they appear identical, so it looks like we're dragging around a bunch of old files we don't need.
So, do you have any idea why rdoc would be complaining, and is it OK to remove the 1..8 directories?
Thanks.
When you install zucker as part of your system ruby (i.e., as root), you can't read most files, as they are 0600.
(A few are 664, which is a security hole.)
A
chmod -R og+r,g-w .
fixes this. You should do this before doing an updated gem.
It looks like the zucker-9 gem doesn't have its permissions set right, and certain files fail to load (e.g. 'zucker/all.rb')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.