files.com 1.1.747 → 1.1.749
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/_VERSION +1 -1
- data/bin/files +2 -2
- data/bin/files-console +1 -1
- data/lib/files.com/errors.rb +1 -1
- data/lib/files.com/models/file.rb +1 -1
- data/lib/files.com/version.rb +1 -1
- data/setup.sh +18 -6
- data/spec/spec_helper.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 926035ea8b562b59f8b50ca50e2a8c73583dc9a662903dd2757a797db1392c80
|
|
4
|
+
data.tar.gz: f88f7ffa5d79f9a874906cb9c0694d9b253c431f2fac2f878c64c813349e5d9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15c55a2efa1f5a33d6b2356f52cd742736f5802b2fd8d3852fa927cc09b92cfc26291b16c3c066fca5903849a58937da351bfd83d69e3e5925b3b2537fc07186
|
|
7
|
+
data.tar.gz: 93e6616d00656f28cceeb21151f550e970c3840b7d48af3390ca91bf02fcedc2f29d6a17edbb8d112eba1235a6204bcce955d6d437ffc5936026217196662493
|
data/Gemfile.lock
CHANGED
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.749
|
data/bin/files
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# frozen_string_literal: true
|
|
4
4
|
|
|
5
|
-
require "#{File.dirname(__FILE__)}/../lib/files.com"
|
|
6
|
-
require "#{File.dirname(__FILE__)}/../lib/files.com/cli"
|
|
5
|
+
require "#{::File.dirname(__FILE__)}/../lib/files.com"
|
|
6
|
+
require "#{::File.dirname(__FILE__)}/../lib/files.com/cli"
|
|
7
7
|
|
|
8
8
|
Files::Cli.new.run
|
data/bin/files-console
CHANGED
data/lib/files.com/errors.rb
CHANGED
|
@@ -222,7 +222,7 @@ module Files
|
|
|
222
222
|
|
|
223
223
|
def initialize(*args)
|
|
224
224
|
@attributes = (args[0].is_a?(Hash) && args[0]) || {}
|
|
225
|
-
@options = args[1].is_a?(Hash) && args[1]
|
|
225
|
+
@options = (args[1].is_a?(Hash) && args[1])
|
|
226
226
|
@options ||= (args[2].is_a?(Hash) && args[2]) || {}
|
|
227
227
|
@attributes[:path] = args[0] if args[0].is_a?(String)
|
|
228
228
|
@mode = args[1] || 'r' if args[1].is_a?(String)
|
data/lib/files.com/version.rb
CHANGED
data/setup.sh
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require "bundler"
|
|
3
|
+
require "open3"
|
|
5
4
|
|
|
6
5
|
# Auto-fix generated code, an important fix is where we use `inspect` to generate hashes
|
|
7
6
|
# and these hashes do not have spaces around {} or =>
|
|
8
|
-
#
|
|
9
|
-
|
|
7
|
+
# Use this target's bundle rather than the generator's, which `bundle exec` passes down to this script.
|
|
8
|
+
# Offenses that cannot be auto-fixed are ignored for local development, CI will catch them: `--fail-level error`
|
|
9
|
+
# fails only on generated code RuboCop cannot parse. Install failures and RuboCop errors fail as well.
|
|
10
|
+
Bundler.with_unbundled_env do
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] = File.expand_path("Gemfile", __dir__)
|
|
12
|
+
Dir.chdir(__dir__) do
|
|
13
|
+
exit 1 unless system("bundle install --quiet")
|
|
14
|
+
|
|
15
|
+
report, status = Open3.capture2("bundle exec rubocop --cache false --format simple -a --ignore-parent-exclusion --fail-level error")
|
|
16
|
+
unless status.success?
|
|
17
|
+
puts report
|
|
18
|
+
exit 1
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: files.com
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.749
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|