fog-local 0.6.0 → 0.7.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
- SHA1:
3
- metadata.gz: 5b065f649b2b35609e1a2ae757ccb5036d2d9494
4
- data.tar.gz: b72140031f1a364ce4917ed40975155302a7653c
2
+ SHA256:
3
+ metadata.gz: 5059e832e9d246d3d6248701810c868c1a7b4bc77b4446ccefa888f511c894f3
4
+ data.tar.gz: 8c5968aae7995ca18bac5d9caa7c8b384b9146e8e888206fec8fcafbfc76dd00
5
5
  SHA512:
6
- metadata.gz: a0d8e89df4684a9400e776872a780906e371d3feea6f0d5d3028d2e7e65b3a2211583e34cd563dfe98b20ca5d307e2ae83ec2cce9405e24ac054503dca24c192
7
- data.tar.gz: 1340c09b2b5431deb708134546c7a21231ebc415a3e214e258b8682b7677609f3a4661dab000784ebf448012261d28e92a5a6408c02fc735f51be582cdacfad6
6
+ metadata.gz: 8d8aaf3d6c71a320f62fbd5477459bf288a96ce0adbb2bc4137543ba612f58ee4bcdb1cbc31c43345eb08154f1f84b6fb54384579eeb195b5ce343b9e5a0a2c0
7
+ data.tar.gz: 1df8b44a820c6434bfc2ffaea43388ec38968cf5aabc81304b3a4bb45db7e540bdc8479760f8eba86e2cbfda255adc5ba4583219244f931ba46e6442cd108968
@@ -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/fog-local.gemspec CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_development_dependency 'bundler', '~> 1.7'
23
- spec.add_development_dependency 'rake', '~> 10.0'
22
+ spec.add_development_dependency 'bundler'
23
+ spec.add_development_dependency 'rake', '>= 12.3.3'
24
24
  spec.add_development_dependency 'shindo', '~> 0.3'
25
25
 
26
26
  spec.add_dependency 'fog-core', '>= 1.27', '< 3.0'
@@ -67,8 +67,8 @@ module Fog
67
67
  requires :directory, :key
68
68
 
69
69
  if service.endpoint
70
- escaped_directory = URI.escape(directory.key)
71
- escaped_key = URI.escape(key)
70
+ escaped_directory = uri_escape(directory.key)
71
+ escaped_key = uri_escape(key)
72
72
 
73
73
  ::File.join(service.endpoint, escaped_directory, escaped_key)
74
74
  else
@@ -106,6 +106,12 @@ module Fog
106
106
  @directory = new_directory
107
107
  end
108
108
 
109
+ def uri_escape(string)
110
+ string.b.gsub(/([^a-zA-Z0-9_.\-~]+)/) do |m|
111
+ '%' + m.unpack('H2' * m.bytesize).join('%').upcase
112
+ end
113
+ end
114
+
109
115
  def path
110
116
  service.path_to(::File.join(directory.key, key))
111
117
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Local
3
- VERSION = '0.6.0'
3
+ VERSION = '0.7.0'
4
4
  end
5
5
  end
@@ -1,8 +1,8 @@
1
1
  module Shindo
2
2
  class Tests
3
- def succeeds
3
+ def succeeds(&block)
4
4
  test('succeeds') do
5
- !!instance_eval(&Proc.new)
5
+ !!instance_eval(&block)
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,44 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-local
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Beary
8
8
  - Ville Lautanala
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-11 00:00:00.000000000 Z
12
+ date: 2021-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '1.7'
20
+ version: '0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '1.7'
27
+ version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '10.0'
34
+ version: 12.3.3
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '10.0'
41
+ version: 12.3.3
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: shindo
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -83,9 +83,11 @@ executables: []
83
83
  extensions: []
84
84
  extra_rdoc_files: []
85
85
  files:
86
+ - ".github/dependabot.yml"
87
+ - ".github/workflows/ruby.yml"
88
+ - ".github/workflows/stale.yml"
86
89
  - ".gitignore"
87
90
  - ".ruby-gemset"
88
- - ".travis.yml"
89
91
  - CONTRIBUTING.md
90
92
  - CONTRIBUTORS.md
91
93
  - Gemfile
@@ -116,7 +118,7 @@ homepage: https://github.com/fog/fog-local
116
118
  licenses:
117
119
  - MIT
118
120
  metadata: {}
119
- post_install_message:
121
+ post_install_message:
120
122
  rdoc_options: []
121
123
  require_paths:
122
124
  - lib
@@ -131,9 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
133
  - !ruby/object:Gem::Version
132
134
  version: '0'
133
135
  requirements: []
134
- rubyforge_project:
135
- rubygems_version: 2.4.6
136
- signing_key:
136
+ rubygems_version: 3.2.15
137
+ signing_key:
137
138
  specification_version: 4
138
139
  summary: Module for the 'fog' gem to support local filesystem storage.
139
140
  test_files: []
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- script: bundle exec rake test
4
- before_install:
5
- - gem install bundler
6
- rvm:
7
- - 1.9.3
8
- - 2.0.0
9
- - 2.1.10
10
- - 2.2.6
11
- - 2.3.3
12
- - 2.4.0
13
- - 2.5.1
14
- - jruby-19mode
15
- - jruby-9.1.7.0
16
- env:
17
- - FOG_MOCK=true
18
- - FOG_MOCK=false