GoogleCloudPlatform / GoogleCloudPlatform/ruby-docs-samples

bookshelf: missing Gemfile.lock, missing updates

Đang mở
#1,613 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
samples
Ngôn ngữ chính
Ruby
Star
235
Fork
210
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Multiple errors recurring on getting-started/bookshelf nightly tests, which reports argument and nomethod errors on dependencies

```
An error occurred while loading ./spec/features/book_management_spec.rb.
Failure/Error: require File.expand_path("../../config/environment", __FILE__)

ArgumentError:
wrong number of arguments (given 3, expected 2)
# ./config/environment.rb:18:in `'
# ./spec/spec_helper.rb:17:in `'
# ./spec/features/book_management_spec.rb:14:in `'

An error occurred while loading ./spec/models/book_spec.rb.
Failure/Error: require File.expand_path("../../config/environment", __FILE__)

NoMethodError:
undefined method `operations' for #

MiddlewareStackProxy.new(@operations + other.operations, @delete_operations + other.delete_operations)
^^^^^^^^^^^
# ./config/environment.rb:18:in `'
# ./spec/spec_helper.rb:17:in `'
# ./spec/models/book_spec.rb:14:in `'
No examples found.
```

It looks like dependabot isn't updating this sample. There's no committed Gemfile.lock, that is being updated in other samples.

It's stuck with a very out dated version of Rails which isn't supported on the current Ruby Oldest (https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html)

This sample would need to be updated to latest Rails versions and manually updated if any updates required for mulitple major version updates.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với getting-started/bookshelf/config/environment.rb và phần thiết lập dependency, sau đó chạy các spec đang thất bại trong spec/features/book_management_spec.rb và spec/models/book_spec.rb. Cập nhật các dependency Rails của sample và commit Gemfile.lock của nó, sau đó xác minh rằng các bài kiểm tra nightly không còn báo cáo các lỗi loading.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rails, ruby
Lĩnh vực
backend, testing
Loại issue
Tái cấu trúc
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.