alagos Github contribution chart
alagos Github Stats
alagos Most Used Languages

Activity

29 Sep 2022

Alagos

Q&A-based community knowledge-sharing software

Forked On 29 Sep 2022 at 10:40:48

Alagos

started

Started On 29 Sep 2022 at 10:28:37
Started

Alagos

started

Started On 29 Sep 2022 at 10:27:36

Alagos

started

Started On 29 Sep 2022 at 10:04:13

Alagos

started

Started On 29 Sep 2022 at 01:57:49

Alagos

started

Started On 24 Sep 2022 at 07:02:03

Alagos

started

Started On 23 Sep 2022 at 05:25:25
Issue Comment

Alagos

Gem not working with old ruby versions

When running, require_all is throwing this syntax error in an old project I'm working on:

/Users/alter/.rbenv/versions/2.2.10/lib/ruby/gems/2.2.0/gems/require_all-3.0.0/lib/require_all.rb:208:in `require': /Users/alter/.rbenv/versions/2.2.10/lib/ruby/gems/2.2.0/gems/rails_best_practices-1.23.1/lib/rails_best_practices/core/checks_loader.rb:40: syntax error, unexpected '.' (SyntaxError)
        check_class&.new(options || {})
                     ^
	from /Users/alter/.rbenv/versions/2.2.10/lib/ruby/gems/2.2.0/gems/require_all-3.0.0/lib/require_all.rb:208:in `__require'
	from /Users/alter/.rbenv/versions/2.2.10/lib/ruby/gems/2.2.0/gems/require_all-3.0.0/lib/require_all.rb:98:in `block in require_all'
	from /Users/alter/.rbenv/versions/2.2.10/lib/ruby/gems/2.2.0/gems/require_all-3.0.0/lib/require_all.rb:96:in `each'
	from /Users/alter/.rbenv/versions/2.2.10/lib/ruby/gems/2.2.0/gems/require_all-3.0.0/lib/require_all.rb:96:in `require_all'
	from /Users/alter/.rbenv/versions/2.2.10/lib/ruby/gems/2.2.0/gems/require_all-3.0.0/lib/require_all.rb:118:in `block in require_rel'
	from /Users/alter/.rbenv/versions/2.2.10/lib/ruby/gems/2.2.0/gems/require_all-3.0.0/lib/require_all.rb:117:in `each'
	from /Users/alter/.rbenv/versions/2.2.10/lib/ruby/gems/2.2.0/gems/require_all-3.0.0/lib/require_all.rb:117:in `require_rel'
	from /Users/alter/.rbenv/versions/2.2.10/lib/ruby/gems/2.2.0/gems/rails_best_practices-1.23.1/lib/rails_best_practices/core.rb:3:in `<top (required)>' 

so probably would be good to update the spec.required_ruby_version definition.

Forked On 22 Sep 2022 at 09:03:08

Alagos

Yep, I'm aware of that. My point is that rails_best_practices is configured to work with spec.required_ruby_version = '>= 1.9.0', which is unrealistic as its dependency spec.add_runtime_dependency('require_all', '~> 3.0') doesn't work with ruby >= 1.9.0 (indeed, they don't even have a required_ruby_version definition in their gem).

Commented On 22 Sep 2022 at 09:03:08

Alagos

started

Started On 22 Sep 2022 at 06:20:04

Alagos

started

Started On 22 Sep 2022 at 05:50:00

Alagos

started

Started On 22 Sep 2022 at 05:49:58

Alagos

started

Started On 22 Sep 2022 at 03:58:37

Alagos

started

Started On 20 Sep 2022 at 11:54:32

Alagos

Quick fix to remove forwarding to private method with ruby 2.4 Forwardable

Pushed On 07 Sep 2022 at 04:59:58

Alagos

Quick fix to remove forwarding to private method with ruby 2.4 Forwardable

Pushed On 07 Sep 2022 at 04:57:17
Create Branch
Alagos In visfleet/cequel Create Branchruby-upgrade/cequel-2.1.0

Alagos

Ruby ORM for Cassandra with CQL3

On 07 Sep 2022 at 04:51:03

Alagos

Adapt to Cassandra version to avoid CASSANDRA-8733

This Cassandra bug causes list updates to reverse the order of the array sent, which was being worked around in List#unshift by reversing the array that was sent.

This change detects the version of Cassandra and only reverses when it's a known buggy version. Also, the tests detect the version and expect a list_prepend operation to produce reversed lists in buggy versions.

See: https://issues.apache.org/jira/browse/CASSANDRA-8733 The bug was fixed in 2.1.3 and 2.0.13.

This code depends on the .cassandra-versions file to compile a list of buggy versions, but doesn't add any other dependencies.

The following three tests now pass: Cequel::Record::List#unshift should persist unloaded unshift Cequel::Record::List#unshift should atomically unshift Cequel::Metal::DataSet#list_prepend should prepend multiple elements to list column

Tested on the following versions of Cassandra: 2.0.4 2.0.12 2.0.13 2.0.16 2.1.2 2.1.3 2.1.8 2.2.1

Pushed On 07 Sep 2022 at 04:41:48

Alagos

update link target urls in README

Pushed On 07 Sep 2022 at 04:41:48

Alagos

Merge pull request #307 from atxviking/update_readme

update link target urls in README

Pushed On 07 Sep 2022 at 04:41:48

Alagos

allow for creation of cassandra 3 vms

Pushed On 07 Sep 2022 at 04:41:48

Alagos

Merge pull request #314 from orenmazor/cassandra3-vagrant

allow for creation of cassandra 3 vms

Pushed On 07 Sep 2022 at 04:41:48

Alagos

remove support for jruby 1.7

Pushed On 07 Sep 2022 at 04:41:48

Alagos

Merge pull request #318 from cequel/remove-support-for-old-jrubies

remove support for jruby 1.7

Pushed On 07 Sep 2022 at 04:41:48

Alagos

Merge branch 'master' into adapt-to-version

Pushed On 07 Sep 2022 at 04:41:48

Alagos

Merge pull request #295 from lesliev/adapt-to-version

Adapt to Cassandra version to avoid CASSANDRA-8733

Pushed On 07 Sep 2022 at 04:41:48

Alagos

limit is not applied to the collection before it is counted

Pushed On 07 Sep 2022 at 04:41:48

Alagos

raise on counting to prevent forwarding to the enumerable

Pushed On 07 Sep 2022 at 04:41:48

Alagos

Merge pull request #313 from orenmazor/limits

limit is not applied to the collection before it is counted

Pushed On 07 Sep 2022 at 04:41:48

Alagos

drop index if it exists

Pushed On 07 Sep 2022 at 04:41:48

Alagos

Merge pull request #317 from orenmazor/drop-index

drop index if it exists

Pushed On 07 Sep 2022 at 04:41:48

Alagos

test against all supported cassandra versions

Pushed On 07 Sep 2022 at 04:41:48

Alagos

Merge pull request #321 from cequel/ci-multiple-cassandra-versions

Test against all supported cassandra minor versions

Pushed On 07 Sep 2022 at 04:41:48

Alagos

bump cassandra driver version

Pushed On 07 Sep 2022 at 04:41:48

Alagos

bump cequel version number

Pushed On 07 Sep 2022 at 04:41:48

Alagos

Merge pull request #323 from cequel/upgrade-cass-driver

Bump cassandra driver version

Pushed On 07 Sep 2022 at 04:41:48

Alagos

Support Rails 5 #310

Pushed On 07 Sep 2022 at 04:41:48
Create Branch
Alagos In visfleet/cequel Create Branchcequel-1.10.0

Alagos

Ruby ORM for Cassandra with CQL3

On 07 Sep 2022 at 04:37:48