# Don't claim support for Ruby 2.0

**URL:** https://meta.discourse.org/t/dont-claim-support-for-ruby-2-0/28595
**Category:** Self-hosting
**Created:** [May 10, 2015, 7:26pm UTC](https://meta.discourse.org/t/dont-claim-support-for-ruby-2-0/28595 "2015-05-10T19:26:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![palant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/palant/32/104531_2.png) [@palant](https://meta.discourse.org/u/palant)
#### Post date: [May 10, 2015, 7:26pm UTC](https://meta.discourse.org/t/dont-claim-support-for-ruby-2-0/28595/1 "2015-05-10T19:26:18Z")

</div>

[Install document](https://github.com/discourse/discourse/blob/master/docs/INSTALL.md) currently says:

> Ruby 2.0+ (we recommend 2.0.0-p353 or higher)

Actually, Ruby 2.0.0 won’t work. When I tried I got an error from the Sidekiq gem:

> uninitialized constant Sidekiq::Sinatra

This was coming from `sidekiq.web.rb`:

```
module Sidekiq
  class Web < Sinatra::Base
--------------^

```

`sinatra/base` is required above. While I don’t know Ruby, I guessed that this is a language incompatibility. And indeed, the error went away after switching to Ruby 2.1.2.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 10, 2015, 11:47pm UTC](https://meta.discourse.org/t/dont-claim-support-for-ruby-2-0/28595/2 "2015-05-10T23:47:50Z")

</div>

I don’t know you would have to ask @sam

---

<div class="post-metadata">

### Author: ![dogweather](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dogweather/32/116090_2.png) [@dogweather](https://meta.discourse.org/u/dogweather)
#### Post date: [May 10, 2015, 11:58pm UTC](https://meta.discourse.org/t/dont-claim-support-for-ruby-2-0/28595/3 "2015-05-10T23:58:15Z")

</div>

> [@palant](#):
>
> Don’t claim support . . .

I think your request is a little over-broad. Sidekiq [is tested continuously against Ruby 2.0.0](https://travis-ci.org/mperham/sidekiq). MRI 2.0 is also listed as an acceptable version [in the requirements](https://github.com/mperham/sidekiq#requirements).

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 11, 2015, 12:22am UTC](https://meta.discourse.org/t/dont-claim-support-for-ruby-2-0/28595/4 "2015-05-11T00:22:02Z")

</div>

Discourse runs fine under Ruby 2.0, in fact our official Docker image ships with Ruby 2.0

Not sure what you are doing here to get this problem:

1. If you are doing production discourse are you using discourse\_docker ?
2. If you are doing dev work on discourse, describe your setup.

---

<div class="post-metadata">

### Author: ![palant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/palant/32/104531_2.png) [@palant](https://meta.discourse.org/u/palant)
#### Post date: [May 11, 2015, 10:51am UTC](https://meta.discourse.org/t/dont-claim-support-for-ruby-2-0/28595/5 "2015-05-11T10:51:22Z")

</div>

> [@sam](#):
>
> Discourse runs fine under Ruby 2.0, in fact our official Docker image ships with Ruby 2.0

Interesting… I was under the impression that the Docker image used Ruby 2.1 but I see now that there are multiple images.

> [@sam](#):
>
> If you are doing production discourse are you using discourse\_docker ?

I am doing production Discourse but without Docker - using that with our setup is rather complicated to say the least.

The environment (Puppet-configured) was Ubuntu 12.04, Ruby 2.0.0 installed via RVM (it was 2.0.0-p645 I think), Postgresql 9.3 from [apt.postgresql.org](http://apt.postgresql.org), jemalloc. The only thing I changed to make the error go away was asking RVM to install Ruby 2.1.

---

<div class="post-metadata">

### Author: ![palant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/palant/32/104531_2.png) [@palant](https://meta.discourse.org/u/palant)
#### Post date: [May 11, 2015, 11:21am UTC](https://meta.discourse.org/t/dont-claim-support-for-ruby-2-0/28595/6 "2015-05-11T11:21:26Z")

</div>

I tried it again and this time Ruby 2.0.0 worked fine. No idea what when wrong the first time, never mind then.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 11, 2015, 12:12pm UTC](https://meta.discourse.org/t/dont-claim-support-for-ruby-2-0/28595/7 "2015-05-11T12:12:21Z")

</div>


