fog-google 1.12.1 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cc4ba9bf8fde22a71d31839ce62dd6240461eef907a35a391aa09533526255d
4
- data.tar.gz: 0b169c4358550f92aaba6069d5c152f4b56f0548e5b9fbd62fc9c0f695d312cb
3
+ metadata.gz: b939fe151e79be2e5acd8c98082b4771e58819bbb0594dae868281b9b9c943b8
4
+ data.tar.gz: 8a5053cb43c779e8786da5d76c98040b7bf926064bd9831e061b38ff7fc410f4
5
5
  SHA512:
6
- metadata.gz: cd4332084eb98372966c1be4d7ec259e1d89f2cc0d15022610519865126bbd2d821997a1183e083e87e0be18615d354430d0a2539c62b1473cceb28a1aabfdc9
7
- data.tar.gz: 97b0ba463466505603f3903d3c21e8fd7cf43807488e4c0a0f5de55a6fc01850a165113dbf6714057f52e82bbf71cd9e2838d356fed36e73fac0dba53a6536fc
6
+ metadata.gz: 4f63042bb5c18d8dba6b765a338fbbe0d4b82f741b01c6defcd7ac06f53990da1e0d86fcf2aa830f68cf19c1146b3f0787538dfc5877a0f088eb5ddabf74bea5
7
+ data.tar.gz: 4a78088e4ec4074115b6cbe0b65784614a819e2a2cdb35ace605618eacd22f84a457034b7946f892c767e976227c38175b6030f2270e4ed01fe9f61dcf869ecf
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
7
+ - package-ecosystem: "github-actions"
8
+ directory: "/"
9
+ schedule:
10
+ interval: "daily"
@@ -0,0 +1,34 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ master ]
13
+ pull_request:
14
+ branches: [ master ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ runs-on: ubuntu-latest
20
+ strategy:
21
+ matrix:
22
+ ruby-version: ['2.5', '2.6', '2.7', '3.0', 'head']
23
+
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - name: Set up Ruby
27
+ uses: ruby/setup-ruby@v1
28
+ with:
29
+ ruby-version: ${{ matrix.ruby-version }}
30
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
31
+ - name: Install dependencies
32
+ run: bundle install
33
+ - name: Run tests
34
+ run: bundle exec rake
@@ -0,0 +1,23 @@
1
+ name: Mark stale issues and pull requests
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "30 1 * * *"
6
+
7
+ jobs:
8
+ stale:
9
+
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/stale@v3
14
+ with:
15
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
16
+ days-before-stale: 60
17
+ days-before-close: 7
18
+ exempt-issue-labels: 'pinned,security'
19
+ exempt-pr-labels: 'pinned,security'
20
+ stale-issue-message: 'This issue has been marked inactive and will be closed if no further activity occurs.'
21
+ stale-pr-message: 'This pr has been marked inactive and will be closed if no further activity occurs.'
22
+ stale-issue-label: 'no-issue-activity'
23
+ stale-pr-label: 'no-pr-activity'
data/CHANGELOG.md CHANGED
@@ -6,6 +6,21 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
6
6
 
7
7
  ## Next
8
8
 
9
+ ## 1.13.0
10
+
11
+ ### User-facing
12
+
13
+ ### Fixed
14
+
15
+ fix deprecated URI.escape usage to support Ruby 3.0
16
+ fix apply_client_options def to support Ruby 3.0
17
+
18
+ ### Development Changes
19
+
20
+ Add github actions config and dependabot
21
+ Drop travis usage
22
+
23
+ ### Added
9
24
 
10
25
  ## 1.12.1
11
26
 
@@ -447,4 +462,4 @@ We encourage people using 0.5.1 to upgrade.
447
462
 
448
463
  #### Added
449
464
 
450
- #### Fixed
465
+ #### Fixed
data/README.md CHANGED
@@ -1,6 +1,15 @@
1
+ # ⚠️ ATTENTION ⚠️ HELP NEEDED WITH CI
2
+
3
+ With both me and icco@ departing Google **fog-google no longer has a CI stack** as we don't have access to a sponsored GCP account anymore and I've been unsuccessful in finding someone who would volunteer to maintain this project or CI at the time of my departure.
4
+
5
+ There is no easy way to say this but we need help as costs of running a CI stack that touches almost all GCP resources is significant. We know there's a lot of companies out there that are using this lib, as well as tooling based on it so if you want to help us with running a CI stack or provide sponsorship for a GCP account - please contact me at code \<at\> temik.me
6
+
7
+ --
8
+ Artem (temikus@) - Lead maintainer
9
+
1
10
  # Fog::Google
2
11
 
3
- [![Gem Version](https://badge.fury.io/rb/fog-google.svg)](http://badge.fury.io/rb/fog-google) [![Build Status](https://travis-ci.org/fog/fog-google.svg?branch=master)](https://travis-ci.org/fog/fog-google) [![codecov](https://codecov.io/gh/fog/fog-google/branch/master/graph/badge.svg)](https://codecov.io/gh/fog/fog-google) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=fog/fog-google)](https://dependabot.com) [![Doc coverage](https://inch-ci.org/github/fog/fog-google.svg?branch=master)](https://inch-ci.org/github/fog/fog-google)
12
+ [![Gem Version](https://badge.fury.io/rb/fog-google.svg)](http://badge.fury.io/rb/fog-google) [![Build Status](https://github.com/fog/fog-google/actions/workflows/ruby.yml/badge.svg)](https://github.com/fog/fog-google/actions/workflows/ruby.yml) [![codecov](https://codecov.io/gh/fog/fog-google/branch/master/graph/badge.svg)](https://codecov.io/gh/fog/fog-google) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=fog/fog-google)](https://dependabot.com) [![Doc coverage](https://inch-ci.org/github/fog/fog-google.svg?branch=master)](https://inch-ci.org/github/fog/fog-google)
4
13
 
5
14
  The main maintainers for the Google sections are @icco, @Temikus and @plribeiro3000. Please send pull requests to them.
6
15
 
data/fog-google.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ["lib"]
19
19
 
20
20
  # As of 0.1.1
21
- spec.required_ruby_version = "~> 2.0"
21
+ spec.required_ruby_version = ">= 2.0"
22
22
 
23
23
  # Locked until https://github.com/fog/fog-google/issues/417 is resolved
24
24
  spec.add_dependency "fog-core", "<= 2.1.0"
@@ -90,7 +90,8 @@ module Fog
90
90
  # @param [Hash] google_client_options Service client options to apply
91
91
  # @param [Hash] _ignored Rest of the options (for convenience, ignored)
92
92
  # @return [void]
93
- def apply_client_options(service, google_client_options: nil, **_ignored)
93
+ def apply_client_options(service, options = {})
94
+ google_client_options = options[:google_client_options]
94
95
  return if google_client_options.nil? || google_client_options.empty?
95
96
  (service.client_options.members & google_client_options.keys).each do |option|
96
97
  service.client_options[option] = google_client_options[option]
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Google
3
- VERSION = "1.12.1".freeze
3
+ VERSION = "1.13.0".freeze
4
4
  end
5
5
  end
@@ -19,7 +19,10 @@ module Fog
19
19
 
20
20
  def host_path_query(params, expires)
21
21
  params[:headers]["Date"] = expires.to_i
22
- params[:path] = URI.encode(params[:path]).gsub("%2F", "/")
22
+ # implementation from CGI.escape, but without ' ' to '+' conversion
23
+ params[:path] = params[:path].b.gsub(/([^a-zA-Z0-9_.\-~]+)/) do |m|
24
+ '%' + m.unpack('H2' * m.bytesize).join('%').upcase
25
+ end
23
26
  query = []
24
27
 
25
28
  if params[:query]
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.1
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Welch
8
8
  - Artem Yakimenko
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-12-17 00:00:00.000000000 Z
12
+ date: 2021-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog-core
@@ -211,11 +211,13 @@ files:
211
211
  - ".codecov.yml"
212
212
  - ".editorconfig"
213
213
  - ".fog.example"
214
+ - ".github/dependabot.yml"
215
+ - ".github/workflows/ruby.yml"
216
+ - ".github/workflows/stale.yml"
214
217
  - ".gitignore"
215
218
  - ".hound.yml"
216
219
  - ".rubocop.yml"
217
220
  - ".ruby-gemset"
218
- - ".travis.yml"
219
221
  - CHANGELOG.md
220
222
  - CONTRIBUTING.md
221
223
  - CONTRIBUTORS.md
@@ -765,13 +767,13 @@ homepage: https://github.com/fog/fog-google
765
767
  licenses:
766
768
  - MIT
767
769
  metadata: {}
768
- post_install_message:
770
+ post_install_message:
769
771
  rdoc_options: []
770
772
  require_paths:
771
773
  - lib
772
774
  required_ruby_version: !ruby/object:Gem::Requirement
773
775
  requirements:
774
- - - "~>"
776
+ - - ">="
775
777
  - !ruby/object:Gem::Version
776
778
  version: '2.0'
777
779
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -780,8 +782,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
780
782
  - !ruby/object:Gem::Version
781
783
  version: '0'
782
784
  requirements: []
783
- rubygems_version: 3.0.3
784
- signing_key:
785
+ rubygems_version: 3.2.15
786
+ signing_key:
785
787
  specification_version: 4
786
788
  summary: Module for the 'fog' gem to support Google.
787
789
  test_files:
data/.travis.yml DELETED
@@ -1,33 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
- matrix:
5
- fast_finish: true
6
- include:
7
- - rvm: 2.4
8
- - rvm: 2.5
9
- - rvm: 2.6
10
- - rvm: 2.7
11
- - rvm: jruby-9.2
12
- - rvm: jruby-head
13
- - rvm: truffleruby-head
14
- # ppc64le support code
15
- - rvm: 2.4
16
- arch: ppc64le
17
- - rvm: 2.5
18
- arch: ppc64le
19
- - rvm: 2.6
20
- arch: ppc64le
21
- - rvm: 2.7
22
- arch: ppc64le
23
- - rvm: jruby-9.2
24
- arch: ppc64le
25
- - rvm: jruby-head
26
- arch: ppc64le
27
- allow_failures:
28
- - rvm: jruby-head
29
- - rvm: truffleruby-head
30
- - rvm: jruby-head
31
- arch: ppc64le
32
- notifications:
33
- email: false