browse-everything 1.3.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +35 -63
- data/.tool-versions +2 -2
- data/Gemfile +16 -1
- data/README.md +36 -21
- data/browse-everything.gemspec +2 -1
- data/lib/browse_everything/auth/google/request_parameters.rb +3 -1
- data/lib/browse_everything/driver/base.rb +1 -1
- data/lib/browse_everything/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75a514ad33ec151f78c54fd74220a6d385bde4107894e2b6beb69e30eab6c27e
|
4
|
+
data.tar.gz: e688ee1ba6a0a9b8f519ca33077acda6bbc062033fc122c33876da850ff36146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b3b2068517c326ca832b8adf020dff2e297576bb19189f0707e5f812cc01b09ceef932cc8903fd1f60d6d0031d02d66685d5ba72829c89c22ee84474c2527d4
|
7
|
+
data.tar.gz: cf3298fd572ca0666e9a808ffb1d359cc48050ad6a512d8777d2c9fb0635b8546c0fa7c9312198ea2113440cfc24d4a6ef28302c98d343c2dde7b5edefcae260
|
data/.circleci/config.yml
CHANGED
@@ -13,7 +13,7 @@ jobs:
|
|
13
13
|
type: string
|
14
14
|
bundler_version:
|
15
15
|
type: string
|
16
|
-
default: 2.
|
16
|
+
default: 2.5.21
|
17
17
|
executor:
|
18
18
|
name: 'samvera/ruby'
|
19
19
|
ruby_version: << parameters.ruby_version >>
|
@@ -45,46 +45,30 @@ jobs:
|
|
45
45
|
workflows:
|
46
46
|
ci:
|
47
47
|
jobs:
|
48
|
+
- build:
|
49
|
+
name: "ruby3-3_rails8-0"
|
50
|
+
ruby_version: 3.3.6
|
51
|
+
rails_version: 8.0.0.1
|
52
|
+
- build:
|
53
|
+
name: "ruby3-3_rails7-2"
|
54
|
+
ruby_version: 3.3.6
|
55
|
+
rails_version: 7.2.1
|
48
56
|
- build:
|
49
57
|
name: "ruby3-2_rails7-1"
|
50
|
-
ruby_version: 3.2.
|
51
|
-
rails_version: 7.1.
|
58
|
+
ruby_version: 3.2.5
|
59
|
+
rails_version: 7.1.4
|
52
60
|
- build:
|
53
61
|
name: "ruby3-2_rails7-0"
|
54
|
-
ruby_version: 3.2.
|
55
|
-
rails_version: 7.0.4
|
62
|
+
ruby_version: 3.2.5
|
63
|
+
rails_version: 7.0.8.4
|
56
64
|
- build:
|
57
65
|
name: "ruby3-1_rails7-0"
|
58
|
-
ruby_version: 3.1.
|
59
|
-
rails_version: 7.0.4
|
60
|
-
|
66
|
+
ruby_version: 3.1.6
|
67
|
+
rails_version: 7.0.8.4
|
61
68
|
- build:
|
62
69
|
name: "ruby3-1_rails6-1"
|
63
|
-
ruby_version: 3.1.
|
64
|
-
rails_version: 6.1.
|
65
|
-
- build:
|
66
|
-
name: "ruby3-0_rails6-1"
|
67
|
-
ruby_version: 3.0.3
|
68
|
-
rails_version: 6.1.6
|
69
|
-
|
70
|
-
- build:
|
71
|
-
name: "ruby3-0_rails6-0"
|
72
|
-
ruby_version: 3.0.3
|
73
|
-
rails_version: 6.0.4.7
|
74
|
-
- build:
|
75
|
-
name: "ruby2-7_rails6-0"
|
76
|
-
ruby_version: 2.7.7
|
77
|
-
rails_version: 6.0.4.7
|
78
|
-
|
79
|
-
- build:
|
80
|
-
name: "ruby2-7_rails5-2"
|
81
|
-
ruby_version: 2.7.7
|
82
|
-
rails_version: 5.2.7
|
83
|
-
|
84
|
-
- build:
|
85
|
-
name: "ruby2-7_rails5-1"
|
86
|
-
ruby_version: 2.7.7
|
87
|
-
rails_version: 5.1.7
|
70
|
+
ruby_version: 3.1.6
|
71
|
+
rails_version: 6.1.7.8
|
88
72
|
|
89
73
|
nightly:
|
90
74
|
triggers:
|
@@ -96,39 +80,27 @@ workflows:
|
|
96
80
|
- main
|
97
81
|
jobs:
|
98
82
|
- build:
|
99
|
-
name: "ruby3-
|
100
|
-
ruby_version: 3.
|
101
|
-
rails_version:
|
102
|
-
- build:
|
103
|
-
name: "ruby3-1_rails7-0"
|
104
|
-
ruby_version: 3.1.2
|
105
|
-
rails_version: 7.0.4
|
106
|
-
|
107
|
-
- build:
|
108
|
-
name: "ruby3-1_rails6-1"
|
109
|
-
ruby_version: 3.1.2
|
110
|
-
rails_version: 6.1.6
|
83
|
+
name: "ruby3-3_rails8-0"
|
84
|
+
ruby_version: 3.3.6
|
85
|
+
rails_version: 8.0.0.1
|
111
86
|
- build:
|
112
|
-
name: "ruby3-
|
113
|
-
ruby_version: 3.
|
114
|
-
rails_version:
|
115
|
-
|
87
|
+
name: "ruby3-3_rails7-2"
|
88
|
+
ruby_version: 3.3.5
|
89
|
+
rails_version: 7.2.1
|
116
90
|
- build:
|
117
|
-
name: "ruby3-
|
118
|
-
ruby_version: 3.
|
119
|
-
rails_version:
|
91
|
+
name: "ruby3-2_rails7-1"
|
92
|
+
ruby_version: 3.2.5
|
93
|
+
rails_version: 7.1.4
|
120
94
|
- build:
|
121
|
-
name: "
|
122
|
-
ruby_version: 2.
|
123
|
-
rails_version:
|
124
|
-
|
95
|
+
name: "ruby3-2_rails7-0"
|
96
|
+
ruby_version: 3.2.5
|
97
|
+
rails_version: 7.0.8.4
|
125
98
|
- build:
|
126
|
-
name: "
|
127
|
-
ruby_version:
|
128
|
-
rails_version:
|
129
|
-
|
99
|
+
name: "ruby3-1_rails7-0"
|
100
|
+
ruby_version: 3.1.6
|
101
|
+
rails_version: 7.0.8.4
|
130
102
|
- build:
|
131
|
-
name: "
|
132
|
-
ruby_version:
|
133
|
-
rails_version:
|
103
|
+
name: "ruby3-1_rails6-1"
|
104
|
+
ruby_version: 3.1.6
|
105
|
+
rails_version: 6.1.7.8
|
134
106
|
|
data/.tool-versions
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
ruby
|
2
|
-
nodejs lts-
|
1
|
+
ruby 3.1.6
|
2
|
+
nodejs lts-gallium
|
data/Gemfile
CHANGED
@@ -23,7 +23,7 @@ end
|
|
23
23
|
|
24
24
|
# Set a default RAILS_VERSION so we make sure to get extra dependencies for it...
|
25
25
|
|
26
|
-
ENV['RAILS_VERSION'] ||= "
|
26
|
+
ENV['RAILS_VERSION'] ||= "8.0.0"
|
27
27
|
|
28
28
|
if ENV['RAILS_VERSION']
|
29
29
|
if ENV['RAILS_VERSION'] == 'edge'
|
@@ -33,20 +33,35 @@ if ENV['RAILS_VERSION']
|
|
33
33
|
end
|
34
34
|
|
35
35
|
case ENV['RAILS_VERSION']
|
36
|
+
when /^8./
|
37
|
+
# sprockets is not usually included in Rails 8, but we currently require it, and test with it.
|
38
|
+
gem "sprockets-rails"
|
36
39
|
when /^7\.1\./
|
37
40
|
# sprockets is optional for rails 7, but we currently require it, and test with it.
|
38
41
|
gem "sprockets-rails"
|
39
42
|
when /^7\.0\./
|
43
|
+
# rails previous to 7.1 can't use sqlite 2
|
44
|
+
gem "sqlite3", "~> 1.4"
|
45
|
+
|
40
46
|
# sprockets is optional for rails 7, but we currently require it, and test with it.
|
41
47
|
gem "sprockets-rails"
|
42
48
|
when /^6\.1\./
|
49
|
+
# rails previous to 7.1 can't use sqlite 2
|
50
|
+
gem "sqlite3", "~> 1.4"
|
51
|
+
|
43
52
|
# opt into mail 2.8.0.rc1 so we get extra dependencies required for rails 6.1
|
44
53
|
# Once mail 2.8.0 final is released this will not be required.
|
45
54
|
# https://github.com/mikel/mail/pull/1472
|
46
55
|
gem "mail", ">= 2.8.0.rc1"
|
47
56
|
when /^6\.0\./
|
57
|
+
# rails previous to 7.1 can't use sqlite 2
|
58
|
+
gem "sqlite3", "~> 1.4"
|
59
|
+
|
48
60
|
gem 'sass-rails', '>= 6'
|
49
61
|
when /^5\.[12]\./
|
62
|
+
# rails previous to 7.1 can't use sqlite 2
|
63
|
+
gem "sqlite3", "~> 1.4"
|
64
|
+
|
50
65
|
gem 'sass-rails', '~> 5.0'
|
51
66
|
gem 'sprockets', '~> 3.7'
|
52
67
|
gem 'thor', '~> 0.20'
|
data/README.md
CHANGED
@@ -26,33 +26,48 @@ download the files.
|
|
26
26
|
|
27
27
|
## Technical Debt/Legacy warning
|
28
28
|
|
29
|
-
This
|
30
|
-
|
31
|
-
|
29
|
+
This project has been receiving very limited maintenance for at least 2-4 years
|
30
|
+
now -- just enough to keep it working for present users. Caution is indicated in
|
31
|
+
considering adoption for new projects.
|
32
32
|
|
33
|
-
|
34
|
-
changes), to better accomplish gem goals. But there has not been the
|
35
|
-
interest/resources in the community to accomplish that at present.
|
33
|
+
### Known issues (Nov 2024)
|
36
34
|
|
37
|
-
|
35
|
+
* The S3 local file system adapters are known working. It's not clear if any other
|
36
|
+
adapters are working properly -- or if the browse_everything architecture as is
|
37
|
+
is sufficient to support OAuth2 integration flows that may be required to get them
|
38
|
+
working.
|
38
39
|
|
39
|
-
*
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
* CSS and Javascript were both written for use with sprockets asset pipeline, and are
|
41
|
+
currently only tested with sprockets -- even in Rails 8, where `rails new` cannot
|
42
|
+
generate a sprockets using app.
|
43
|
+
* For use with Rails 8, you could consider adding sprockets to your app manually,
|
44
|
+
or copying browse_everything JS and CSS assets into your local app and including
|
45
|
+
them that way. The browse_everything installer is not capable of doing this
|
46
|
+
in an automated fashion.
|
44
47
|
|
45
|
-
*
|
46
|
-
|
47
|
-
to use sprockets (especially for JS), which is not currently covered in
|
48
|
-
instructions here. Using other means of including CSS and JS may require
|
49
|
-
confusing customization also not fully covered here.
|
48
|
+
* Good news: The `bootstrap4` CSS is tentatively demonstrated working with bootstrap 5
|
49
|
+
too.
|
50
50
|
|
51
|
-
*
|
52
|
-
|
51
|
+
* JS depends on JQuery, which is unfortunate in 2024. As well as a vendored copy of
|
52
|
+
a jquery.treetable plugin.
|
53
53
|
|
54
|
-
|
55
|
-
|
54
|
+
### Possible path to a revived gem
|
55
|
+
|
56
|
+
If there are interest and resources, assuming a major version release.
|
57
|
+
|
58
|
+
* Rewrite JS from the ground up to be vanilla JS without JQuery.
|
59
|
+
* And useable by either `importmap-rails` or an npm-based rails JS bundler.
|
60
|
+
|
61
|
+
* Figure out what adapters actually work, drop those that don't work from the gem.
|
62
|
+
* Possibly find adapters in PR's or forks that work and can be added.
|
63
|
+
|
64
|
+
* Testing overhaul
|
65
|
+
* Adapters have their network communication with cloud mocked for good reason,
|
66
|
+
but that makes them false negative and unreliable at detecting breakage.
|
67
|
+
* Testing is done with an in-repo Rails app instead of engine_cart, which
|
68
|
+
is probably reasonable, but that makes it harder to really test integration
|
69
|
+
with differnet rails versions or test the installer works, as Rails has had
|
70
|
+
churn in JS. go back to engine_cart, or consider [combustion](https://github.com/pat/combustion)
|
56
71
|
|
57
72
|
## Product Owner & Maintenance
|
58
73
|
|
data/browse-everything.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency 'dropbox_api', '>= 0.1.20'
|
24
24
|
spec.add_dependency 'google-apis-drive_v3'
|
25
25
|
spec.add_dependency 'googleauth', '>= 0.6.6', '< 2.0'
|
26
|
-
spec.add_dependency 'rails', '>= 4.2', '<
|
26
|
+
spec.add_dependency 'rails', '>= 4.2', '< 8.1'
|
27
27
|
spec.add_dependency 'ruby-box'
|
28
28
|
spec.add_dependency 'signet', '~> 0.8'
|
29
29
|
spec.add_dependency 'typhoeus'
|
@@ -48,6 +48,7 @@ Gem::Specification.new do |spec|
|
|
48
48
|
spec.add_development_dependency 'rubocop-rspec'
|
49
49
|
spec.add_development_dependency 'sass-rails'
|
50
50
|
spec.add_development_dependency 'selenium-webdriver'
|
51
|
+
# Rails <= 7.1 can't use sqlite3 gem 2.x yet
|
51
52
|
spec.add_development_dependency 'sqlite3'
|
52
53
|
spec.add_development_dependency 'turbolinks'
|
53
54
|
spec.add_development_dependency 'webdrivers'
|
@@ -1,10 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'ostruct'
|
4
|
+
|
3
5
|
# Manages request parameters for the request to the Google Drive API
|
4
6
|
module BrowseEverything
|
5
7
|
module Auth
|
6
8
|
module Google
|
7
|
-
class RequestParameters < OpenStruct
|
9
|
+
class RequestParameters < ::OpenStruct
|
8
10
|
# Overrides the constructor for an OpenStruct instance
|
9
11
|
# Provides default parameters
|
10
12
|
def initialize(params = {})
|
@@ -69,7 +69,7 @@ module BrowseEverything
|
|
69
69
|
# Generate the name for the driver
|
70
70
|
# @return [String]
|
71
71
|
def name
|
72
|
-
@name ||=
|
72
|
+
@name ||= @config[:name] || self.class.name.split(/::/).last.titleize
|
73
73
|
end
|
74
74
|
|
75
75
|
# Abstract method
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browse-everything
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carolyn Cole
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2024-12-12 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: addressable
|
@@ -100,7 +100,7 @@ dependencies:
|
|
100
100
|
version: '4.2'
|
101
101
|
- - "<"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '8.1'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -110,7 +110,7 @@ dependencies:
|
|
110
110
|
version: '4.2'
|
111
111
|
- - "<"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version: '
|
113
|
+
version: '8.1'
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
name: ruby-box
|
116
116
|
requirement: !ruby/object:Gem::Requirement
|
@@ -631,7 +631,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
631
631
|
- !ruby/object:Gem::Version
|
632
632
|
version: '0'
|
633
633
|
requirements: []
|
634
|
-
rubygems_version: 3.
|
634
|
+
rubygems_version: 3.5.9
|
635
635
|
signing_key:
|
636
636
|
specification_version: 4
|
637
637
|
summary: AJAX/Rails engine file browser for cloud storage services
|