browse-everything 1.4.0 → 1.5.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: d1bbd0aea13e58513c925280595410ffeba0ceef0e8788edd2c91464e2c9ed23
4
- data.tar.gz: ee947852e47f4ffd65373df2c9e07639a79dcac7630024f180b2aaeddb3052a0
3
+ metadata.gz: 75a514ad33ec151f78c54fd74220a6d385bde4107894e2b6beb69e30eab6c27e
4
+ data.tar.gz: e688ee1ba6a0a9b8f519ca33077acda6bbc062033fc122c33876da850ff36146
5
5
  SHA512:
6
- metadata.gz: 4b7849dc7f82467af80ff48502e4c585bbfece43c9b3c688460af3a9ab64b3de7dc4ccde0eac8921d3cd20c8212affe68fd49b83ff725167113b0fca73c52e7a
7
- data.tar.gz: b4a3532171ab1fd2b65575445aa9a1d83713ee29e6f0d3903090db010c2548a77e51a077cf5a49a20cdb744a2d7d6eb3523cc48313cffd70e7d456bf2304f38d
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.4.3
16
+ default: 2.5.21
17
17
  executor:
18
18
  name: 'samvera/ruby'
19
19
  ruby_version: << parameters.ruby_version >>
@@ -45,52 +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
48
52
  - build:
49
53
  name: "ruby3-3_rails7-2"
50
- ruby_version: 3.3.3
51
- rails_version: "7.2.0"
52
-
53
-
54
+ ruby_version: 3.3.6
55
+ rails_version: 7.2.1
54
56
  - build:
55
57
  name: "ruby3-2_rails7-1"
56
- ruby_version: 3.2.1
57
- rails_version: 7.1.1
58
+ ruby_version: 3.2.5
59
+ rails_version: 7.1.4
58
60
  - build:
59
61
  name: "ruby3-2_rails7-0"
60
- ruby_version: 3.2.0
61
- rails_version: 7.0.4
62
+ ruby_version: 3.2.5
63
+ rails_version: 7.0.8.4
62
64
  - build:
63
65
  name: "ruby3-1_rails7-0"
64
- ruby_version: 3.1.2
65
- rails_version: 7.0.4
66
-
66
+ ruby_version: 3.1.6
67
+ rails_version: 7.0.8.4
67
68
  - build:
68
69
  name: "ruby3-1_rails6-1"
69
- ruby_version: 3.1.2
70
- rails_version: 6.1.6
71
- - build:
72
- name: "ruby3-0_rails6-1"
73
- ruby_version: 3.0.3
74
- rails_version: 6.1.6
75
-
76
- - build:
77
- name: "ruby3-0_rails6-0"
78
- ruby_version: 3.0.3
79
- rails_version: 6.0.4.7
80
- - build:
81
- name: "ruby2-7_rails6-0"
82
- ruby_version: 2.7.7
83
- rails_version: 6.0.4.7
84
-
85
- - build:
86
- name: "ruby2-7_rails5-2"
87
- ruby_version: 2.7.7
88
- rails_version: 5.2.7
89
-
90
- - build:
91
- name: "ruby2-7_rails5-1"
92
- ruby_version: 2.7.7
93
- rails_version: 5.1.7
70
+ ruby_version: 3.1.6
71
+ rails_version: 6.1.7.8
94
72
 
95
73
  nightly:
96
74
  triggers:
@@ -101,45 +79,28 @@ workflows:
101
79
  only:
102
80
  - main
103
81
  jobs:
82
+ - build:
83
+ name: "ruby3-3_rails8-0"
84
+ ruby_version: 3.3.6
85
+ rails_version: 8.0.0.1
104
86
  - build:
105
87
  name: "ruby3-3_rails7-2"
106
- ruby_version: 3.3.3
107
- rails_version: "7.2.0"
108
-
88
+ ruby_version: 3.3.5
89
+ rails_version: 7.2.1
90
+ - build:
91
+ name: "ruby3-2_rails7-1"
92
+ ruby_version: 3.2.5
93
+ rails_version: 7.1.4
109
94
  - build:
110
95
  name: "ruby3-2_rails7-0"
111
- ruby_version: 3.2.0
112
- rails_version: 7.0.4
96
+ ruby_version: 3.2.5
97
+ rails_version: 7.0.8.4
113
98
  - build:
114
99
  name: "ruby3-1_rails7-0"
115
- ruby_version: 3.1.2
116
- rails_version: 7.0.4
117
-
100
+ ruby_version: 3.1.6
101
+ rails_version: 7.0.8.4
118
102
  - build:
119
103
  name: "ruby3-1_rails6-1"
120
- ruby_version: 3.1.2
121
- rails_version: 6.1.6
122
- - build:
123
- name: "ruby3-0_rails6-1"
124
- ruby_version: 3.0.3
125
- rails_version: 6.1.6
126
-
127
- - build:
128
- name: "ruby3-0_rails6-0"
129
- ruby_version: 3.0.3
130
- rails_version: 6.0.4.7
131
- - build:
132
- name: "ruby2-7_rails6-0"
133
- ruby_version: 2.7.7
134
- rails_version: 6.0.4.7
135
-
136
- - build:
137
- name: "ruby2-7_rails5-2"
138
- ruby_version: 2.7.7
139
- rails_version: 5.2.7
140
-
141
- - build:
142
- name: "ruby2-7_rails5-1"
143
- ruby_version: 2.7.7
144
- rails_version: 5.1.7
104
+ ruby_version: 3.1.6
105
+ rails_version: 6.1.7.8
145
106
 
data/.tool-versions CHANGED
@@ -1,2 +1,2 @@
1
- ruby 2.7.5
2
- nodejs lts-fermium
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'] ||= "7.1.1"
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 is code with a long history that has a number of known problems;
30
- we are trying to keep it alive for existing projects using it. But caution is
31
- advised in introducing it, in it's present form, to new projects.
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
- A significant overhaul of this gem may be desirable (with backwards-breaking
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
- Some known current issues (Jun 2022):
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
- * The S3 adapter is known working; but it's not clear if other adapters using
40
- OAuth2 (main use case for this gem) are in fact working reliably. And there
41
- is some concern that the current browse-everything integration API may not be
42
- compatible with proper OAuth/OAuth2 flows to support OAuth integrations --
43
- originally the main use case of this gem.
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
- * The CSS and Javascript were both written for use with the sprockets Rails
46
- asset pipeline. Recent versions of Rails may require custom configuration
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
- * Javascript depends on JQuery, bootstrap (3 or 4; 5 untested), as well as a
52
- vendored copy of a jquery.treetable plugin.
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
- * CSS is provided for compatibilty with bootstrap 3 or bootstrap 4, but not
55
- bootstrap 5 (or no bootstrap at all)
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
 
@@ -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', '< 8.0'
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'
@@ -49,7 +49,7 @@ Gem::Specification.new do |spec|
49
49
  spec.add_development_dependency 'sass-rails'
50
50
  spec.add_development_dependency 'selenium-webdriver'
51
51
  # Rails <= 7.1 can't use sqlite3 gem 2.x yet
52
- spec.add_development_dependency 'sqlite3', "~> 1.4"
52
+ spec.add_development_dependency 'sqlite3'
53
53
  spec.add_development_dependency 'turbolinks'
54
54
  spec.add_development_dependency 'webdrivers'
55
55
  spec.add_development_dependency 'webmock'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrowseEverything
4
- VERSION = '1.4.0'
4
+ VERSION = '1.5.0'
5
5
  end
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.0
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: 2024-08-20 00:00:00.000000000 Z
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: '8.0'
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: '8.0'
113
+ version: '8.1'
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: ruby-box
116
116
  requirement: !ruby/object:Gem::Requirement
@@ -395,16 +395,16 @@ dependencies:
395
395
  name: sqlite3
396
396
  requirement: !ruby/object:Gem::Requirement
397
397
  requirements:
398
- - - "~>"
398
+ - - ">="
399
399
  - !ruby/object:Gem::Version
400
- version: '1.4'
400
+ version: '0'
401
401
  type: :development
402
402
  prerelease: false
403
403
  version_requirements: !ruby/object:Gem::Requirement
404
404
  requirements:
405
- - - "~>"
405
+ - - ">="
406
406
  - !ruby/object:Gem::Version
407
- version: '1.4'
407
+ version: '0'
408
408
  - !ruby/object:Gem::Dependency
409
409
  name: turbolinks
410
410
  requirement: !ruby/object:Gem::Requirement