rubygems / gems Goto Github PK
View Code? Open in Web Editor NEWRuby wrapper for the RubyGems.org API
Home Page: https://rubygems.org
License: MIT License
Ruby wrapper for the RubyGems.org API
Home Page: https://rubygems.org
License: MIT License
Currently Ruby Gems doesn't work with a repository that requires Kerberos authentication (or a proxy that requires authentication), it looks like there are libraries out there for Ruby that would do the heavy lifting of adding Kerberos support, http://httpirb.com/ would it be possible to just get this built into Gems? Or is there some workaround right now that I'm not aware of.
0 ~ ❯❯❯ gem cert --add <(curl -L https://raw.github.com/rubygems/gems/master/certs/sferik.pem)
Added '/CN=sferik/DC=gmail/DC=com'
0 ~ ❯❯❯ gem install gems -P HighSecurity
ERROR: While executing gem ... (Gem::Security::Exception)
certificate /CN=sferik/DC=gmail/DC=com not valid after 2014-02-03 10:02:27 UTC
This breaks the contract for the downloads method to return a Hash. It's also surprising since I got the gem name from a different api call which does have downloads. I haven't identified where the error is coming from or which other methods like return it. See https://gist.github.com/bf4/5952053#file-latest_downloads-yml-L301 for the list I'm generating (I'm interested in looking at gem download rates to see what the user base is for gems and authors etc)
# @return [Hash]
def downloads
Gems.downloads('energizer_bunny')
=> "This rubygem could not be found."
Gems.latest.select {|g| g['name'] =~ /bunny/ }
=> [{"name"=>"energizer_bunny", "downloads"=>27, "version"=>"0.3.0", "version_downloads"=>27, "platform"=>"java", "authors"=>"Joel Friedman", "info"=>"Extra hot_bunnies.", "project_uri"=>"http://rubygems.org/gems/energizer_bunny", "gem_uri"=>"http://rubygems.org/gems/energizer_bunny-0.3.0-java.gem", "homepage_uri"=>"http://github.com/trunkclub/energizer_bunny", "wiki_uri"=>nil, "documentation_uri"=>nil, "mailing_list_uri"=>nil, "source_code_uri"=>nil, "bug_tracker_uri"=>nil, "dependencies"=>{"development"=>[{"name"=>"rspec", "requirements"=>"~> 2.11"}], "runtime"=>[{"name"=>"hot_bunnies", "requirements"=>"~> 1.4"}, {"name"=>"uuid", "requirements"=>"~> 2.0"}]}}]
Gems.versions('energizer_bunny')
=> [{"authors"=>"Joel Friedman", "built_at"=>"2013-05-14T00:00:00Z", "description"=>"Extra hot_bunnies.", "downloads_count"=>27, "number"=>"0.3.0", "summary"=>"Declaratively configure hot_bunnies.", "platform"=>"java", "prerelease"=>false, "licenses"=>["MIT"]}]
If JSON is available, use it instead of YAML (for perfs).
The Gems#most_downloaded
method returns only the 50 most downloaded gems. Is there a way to increase that number? If so, it is not apparent in the doc/code. Thanks for your help!
I noticed the gem switched from using yaml to json back in 2014
But the latest rubygems versions 0.8.3 is even older and uses yaml
any plans to release an update ?
T.
https://github.com/dbinette/formlayout/blob/
master/.gitignore#L7-L8
Not sure where to open this issue, but I am currently unable to add an owner to a gem I originally published, but the gem is maintained by a company I no longer work for.
Command line output:
> gem owner "omniauth-mydigipass" -a "[redacted email]" -V --debug
POST https://rubygems.org/api/v1/gems/omniauth-mydigipass/owners
Exception `OpenSSL::SSL::SSLError' at /Users/nathan/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/openssl/buffering.rb:174 - read would block
404 Not Found
Removing [redacted email]: Owner could not be found.
Is it regarded as a "remove" operation, because of the 404, or somehow it is regarded as remove, and thus I get a valid 404, because of course that owner is not yet an owner. I tried with -a
and --add
and both gave the same result.
Is this a network issue? I can push a gem (just released a new version of another gem). Or something else? A bit stumped here.
Tech-info: I had this issue with rubygems version 1.8.25, I upgraded to the latest 2.1.11 and still have that error (the error message improved, in the sense it now stats Removing ...
and before it was just Owner could not be found
). I am using ruby 1.9.3 on mac osx 10.8.
Can anybody give me a hint how to solve this?
1.9.3-p392 :009 > Gems.downloads('rails', '4.0.0').map(&:last) => [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
The backend data is pruned I believe, so no point in supporting this in the client.
"gem install gems" says
ERROR: Error installing gems:
invalid gem: package is corrupt, exception while verifying: undefined method `path2class' for #Psych::ClassLoader:0x000001010f3be0 (NoMethodError) in /Users//.rvm/gems/ruby-2.0.0-p353/cache/gems-0.8.3.gem
This Issue is about the CI failures - which seem to be about GH actions not supporting EOL ruby versions.
rp5 run texture1.rb
get error like this
libEGL warning: failed to create a pipe screen for i965
java.lang.NullPointerException
Java::JavaLang::RuntimeException
java.lang.NullPointerException
rp5 --nojruby run texture1.rb
no error
When trying to call Gems.dependencies a TypeError is returned, running ruby 2.0.0p247 compiled by RVM on x86_64-linux.
2.0.0-p247 :001 > require 'gems'
=> true
2.0.0-p247 :002 > Gems.dependencies ['rails', 'thor']
TypeError: incompatible marshal file format (can't be read)
format version 4.8 required; 60.104 given
from /home/peter/.rvm/gems/ruby-2.0.0-p247@g2e/gems/gems-0.8.1/lib/gems/client.rb:301:in `load'
from /home/peter/.rvm/gems/ruby-2.0.0-p247@g2e/gems/gems-0.8.1/lib/gems/client.rb:301:in `dependencies'
from /home/peter/.rvm/gems/ruby-2.0.0-p247@g2e/gems/gems-0.8.1/lib/gems.rb:17:in `method_missing'
from (irb):2
from /home/peter/.rvm/rubies/ruby-2.0.0-p247/bin/irb:16:in `<main>'
Issue: there is an outdated (I think) badge for CodeClimate in the README.
Perhaps the way to include it changed.
The project's maintainer can enter the CodeClimate UI and find the section where the ID of the project is mentioned.
UI example of where to find the thing in another project (one which is open):
I was unable to guess at the ID of the project, trying to add the badge.
This isn't so much a bug as... a documentation request? I am using Gems in a project and tried to deploy it to Heroku. When the app goes to fire up, Gems tries to set the host name of rubygems.org, which it generally pulls from Gem.host. However, in the version of RubyGems that's installed on Heroku at the moment (1.3.7) doesn't support Gem.host.
I tried just setting the environment variable RUBYGEMS_HOST, but there are other conflicts with RubyGems. Would it be possible to note what version of RubyGems the latest release is tested against somewhere?
Currently, there is no way in the api to get the number of downloads for the latest month. That figure is a very strong indicator of a project's usage, much more than the number of downloads of the latest version (or the total download count, for that matter), which can span many years.
It would be great if there was a way to get to that information through the RubyGems.org API, one way or another.
This issue is somewhat linked to that one: #16, which supports the removal of an API that used to give the information requested in this issue, but was strongly inaccurate.
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.