Skip to content
#

Ruby

ruby logo

Ruby was developed by Yukihiro "Matz" Matsumoto in 1995 with the intent of having an easily readable programming language. It is used by the Rails framework to create dynamic web-applications. Ruby's syntax is similar to that of Perl and Python.

Here are 20,742 public repositories matching this topic...

foonlyboy
foonlyboy commented Dec 22, 2019

Hi everyone,
I did setup a fresh rails project (--api)
Rails 5.2.4

wrote some routes,
wrote some assert_routing tests,
everything was fine.

generated a model "releases"
all tests immediately did fail with:
ActiveRecord::StatementInvalid: SQLite3::SQLException: incomplete input: INSERT INTO "releases"

The culprit was fixtures/releases.yml
When I removed that file, that error message

jekyll
fastlane
brew
MikeMcQuaid
MikeMcQuaid commented Apr 18, 2020

In https://github.com/Homebrew/brew/pull/7371/files I have added lots of # TODO: check could be in RuboCop comments to Library/Homebrew/dev-cmd/audit.rb. These indicate that the audit check/problem below does not rely on Formula state so could be moved to a RuboCop (https://github.com/Homebrew/brew/tree/master/Library/Homebrew/rubocops) to be faster, more reliable and provided in-editor to u

pmichaeljones
pmichaeljones commented Mar 20, 2019

Environment

  • Ruby 2.4.5
  • Rails 4.2.11
  • Devise 4.6.1

Current behavior

Devise is sending the "Email Changed" email when a user first signs up. This email is unnecessary because they haven't confirmed this email yet.

GIF showing both "confirmation" email AND "email changed" email.

![Double Email Gif](https://user-images.githubusercontent.com/6728265/54702757-c90f

vagrant
Ricky-Tigg
Ricky-Tigg commented Feb 18, 2020
  • OS: Fedora
  • vagrant version: 2.2.6
  • vagrant-libvirt (0.0.45, system)

Actual results

The content of the output indicates that the tool is not aware of the input command, as illustrated:

  • it suggests to run that last, vagrant global-status --prune.
  • statement "_The above shows information about all known Vagrant environments on this machine.. This data is cached and may not be com
dennisvandehoef
dennisvandehoef commented Jun 12, 2019

Personally, I think it should be possible to know if a method is expected to return == 1 or >= 1 results. I was the opinion that it is part of the style guide already, but I could not find it today.

Of course, a method ending with an s can still return only one result, but it should be an array.

# bad
def rating
  [1, 6, 3, 10, 5]
end

def ratings
  10
end

# good
crowbar27
crowbar27 commented Oct 13, 2019

I have setup rbenv according to the documentation on a fresh CentOS 7.7 machine. The result is that the installation does not work (ruby is not found regardless of me adding it as local or global). I finally found out that the shims directory never makes it to the path and therefore executed

echo 'export PATH="$HOME/.rbenv/shims:$PATH"' >> ~/.bash_profile

which made the stuff work. I a

rubyFeedback
rubyFeedback commented Apr 30, 2019

I am reading this link right now:

http://sinatrarb.com/contrib/reloader

Would it be possible to extend this documentation slightly, e. g. by adding a complete stand-alone example, and explaining how to use it?

Sorry for these newbie questions but I am still only slowly learning sinatra; that takes some time.

I understand that a reloader helps reload/restart the server (I suppose) upon

MatthewKennedy
MatthewKennedy commented Feb 19, 2020

Would be nice to be able to add more unique information on a per store basis.

Useful field Examples:

  • Full address (replace the static address that is hard coded into the footer).
  • Dedicated field for customer facing contact email address (in case you want to use a separate send from such as a no-reply@you.com).
  • upload store logo.
  • upload store favicon image.
jywarren
jywarren commented Jun 26, 2019

Hi, we're struggling to work through an issue where a Rails controller and a Grape API endpoint both run the same underlying ActiveRecord query - literally the same code, and do nothing else, but the controller version runs in average 116ms and the Grape version in average 3.5s.

Here are the two in Skylight, which is great, but doesn't give us the granularity we need to investigate further:

deivid-rodriguez
deivid-rodriguez commented Sep 30, 2018

Expected behavior

If I go to the documentation site, and I see a feature documented, I should be able to use it or at least be informed about the series it was (or will be released).

Actual behavior

Features are documented in the website as soon as the land into master, but the release cycle is much slower.

How to reproduce

See #5497 for an example.

connorshea
connorshea commented Sep 21, 2019

Here are all the Faker classes that have been updated with YARD docs/need to be updated:

  • Blockchain
    • Aeternity (#1742)
    • Bitcoin (#1553)
    • Ethereum (#1553)
    • Tezos (#1553)
  • Books
    • Book (#1553)
    • Culture (#1553) - Still needs descriptions for the YARD docs.
    • Dune (#1553)
    • Lovecraft (#1553)
  • Creature
    • Animal (#1

Created by Yukihiro Matsumoto

Released December 21, 1995

Repository
ruby/ruby
Website
www.ruby-lang.org/en
Wikipedia
Wikipedia

Related Topics

language python rails
You can’t perform that action at this time.