browse-everything 1.2.0 → 1.3.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: 77087f10e05aea7eb2efb26ceb8df9464fdd40526f2be33140e12ca68d55a9f3
4
- data.tar.gz: 2d0b4e7d61ea1f944d168db0c60713597e6b944e470d1f99b3292b11c56b7f18
3
+ metadata.gz: b7cb857160ebc811eafac9247c7cec49eeac9b46edc453a2bb50eba106e58caf
4
+ data.tar.gz: 85551cebc8b3f2ae374b224e3fba8fd4f72126d58d12bab307977407119c5f75
5
5
  SHA512:
6
- metadata.gz: 7f68074141160f41b9bb125afd1ae42110e36038f41c1b310d65fef69037e84fe95d07ab1b5619b4bda196e77f15262421cb801b8e16ca0acb31f7d1fc50ce63
7
- data.tar.gz: f351fa62b040ba18aefc6e1f44226f610f04aca67217cd49a48ffcb0554cfc5b759e234eab73de19953f1d7960a1350dde082e6697e08f0f099b5f6c6f9904b4
6
+ metadata.gz: b75481a9a77c377a58a97b40eca87fe8f5fc1465db82bc1043ce0380674666a4ff80e0459554ba3f042c9bf210add815d176bbbce41255d9fafb9642f123ce34
7
+ data.tar.gz: a1118f1b26cf47d276fb47194dedc13f3006ffa632613f7df1022445b37e12f2451c307e38bd07c3c22d4151cd7f71e580448caf7461a4ff02f499486e605a0b
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.1.4
16
+ default: 2.4.3
17
17
  executor:
18
18
  name: 'samvera/ruby'
19
19
  ruby_version: << parameters.ruby_version >>
@@ -45,10 +45,18 @@ jobs:
45
45
  workflows:
46
46
  ci:
47
47
  jobs:
48
+ - build:
49
+ name: "ruby3-2_rails7-1"
50
+ ruby_version: 3.2.1
51
+ rails_version: 7.1.1
52
+ - build:
53
+ name: "ruby3-2_rails7-0"
54
+ ruby_version: 3.2.0
55
+ rails_version: 7.0.4
48
56
  - build:
49
57
  name: "ruby3-1_rails7-0"
50
58
  ruby_version: 3.1.2
51
- rails_version: 7.0.3
59
+ rails_version: 7.0.4
52
60
 
53
61
  - build:
54
62
  name: "ruby3-1_rails6-1"
@@ -65,29 +73,17 @@ workflows:
65
73
  rails_version: 6.0.4.7
66
74
  - build:
67
75
  name: "ruby2-7_rails6-0"
68
- ruby_version: 2.7.5
69
- rails_version: 6.0.4.7
70
- - build:
71
- name: "ruby2-6_rails6-0"
72
- ruby_version: 2.6.9
76
+ ruby_version: 2.7.7
73
77
  rails_version: 6.0.4.7
74
78
 
75
79
  - build:
76
80
  name: "ruby2-7_rails5-2"
77
- ruby_version: 2.7.5
78
- rails_version: 5.2.7
79
- - build:
80
- name: "ruby2-6_rails5-2"
81
- ruby_version: 2.6.9
81
+ ruby_version: 2.7.7
82
82
  rails_version: 5.2.7
83
83
 
84
84
  - build:
85
85
  name: "ruby2-7_rails5-1"
86
- ruby_version: 2.7.5
87
- rails_version: 5.1.7
88
- - build:
89
- name: "ruby2-6_rails5-1"
90
- ruby_version: 2.6.9
86
+ ruby_version: 2.7.7
91
87
  rails_version: 5.1.7
92
88
 
93
89
  nightly:
@@ -99,10 +95,14 @@ workflows:
99
95
  only:
100
96
  - main
101
97
  jobs:
98
+ - build:
99
+ name: "ruby3-2_rails7-0"
100
+ ruby_version: 3.2.0
101
+ rails_version: 7.0.4
102
102
  - build:
103
103
  name: "ruby3-1_rails7-0"
104
104
  ruby_version: 3.1.2
105
- rails_version: 7.0.3
105
+ rails_version: 7.0.4
106
106
 
107
107
  - build:
108
108
  name: "ruby3-1_rails6-1"
@@ -119,28 +119,16 @@ workflows:
119
119
  rails_version: 6.0.4.7
120
120
  - build:
121
121
  name: "ruby2-7_rails6-0"
122
- ruby_version: 2.7.5
123
- rails_version: 6.0.4.7
124
- - build:
125
- name: "ruby2-6_rails6-0"
126
- ruby_version: 2.6.9
122
+ ruby_version: 2.7.7
127
123
  rails_version: 6.0.4.7
128
124
 
129
125
  - build:
130
126
  name: "ruby2-7_rails5-2"
131
- ruby_version: 2.7.5
132
- rails_version: 5.2.7
133
- - build:
134
- name: "ruby2-6_rails5-2"
135
- ruby_version: 2.6.9
127
+ ruby_version: 2.7.7
136
128
  rails_version: 5.2.7
137
129
 
138
130
  - build:
139
131
  name: "ruby2-7_rails5-1"
140
- ruby_version: 2.7.5
141
- rails_version: 5.1.7
142
- - build:
143
- name: "ruby2-6_rails5-1"
144
- ruby_version: 2.6.9
132
+ ruby_version: 2.7.7
145
133
  rails_version: 5.1.7
146
134
 
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.0.3"
26
+ ENV['RAILS_VERSION'] ||= "7.1.1"
27
27
 
28
28
  if ENV['RAILS_VERSION']
29
29
  if ENV['RAILS_VERSION'] == 'edge'
@@ -33,13 +33,10 @@ if ENV['RAILS_VERSION']
33
33
  end
34
34
 
35
35
  case ENV['RAILS_VERSION']
36
+ when /^7\.1\./
37
+ # sprockets is optional for rails 7, but we currently require it, and test with it.
38
+ gem "sprockets-rails"
36
39
  when /^7\.0\./
37
- # rspec-rails 6.0 is required for Rails 7 support, it's currently only in pre-release,
38
- # opt into it here. This should not be required when rspec-rails 6.0.0 final is released.
39
- # Note rspec-rails 6.0.0 does not support rails before 6.1, so different versions of
40
- # rspec-rails will be needed for different jobs, but that should happen automatically.
41
- gem "rspec-rails", ">= 6.0.0.rc1"
42
-
43
40
  # sprockets is optional for rails 7, but we currently require it, and test with it.
44
41
  gem "sprockets-rails"
45
42
  when /^6\.1\./
data/README.md CHANGED
@@ -8,7 +8,7 @@ Docs:
8
8
  [![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md)
9
9
  [![Apache 2.0 License](http://img.shields.io/badge/APACHE2-license-blue.svg)](./LICENSE.txt)
10
10
 
11
- Jump in: [![Slack Status](http://slack.samvera.org/badge.svg)](http://slack.samvera.org/)
11
+ Community Support: [![Samvera Community Slack](https://img.shields.io/badge/samvera-slack-blueviolet)](http://slack.samvera.org/)
12
12
 
13
13
  # What is BrowseEverything?
14
14
 
@@ -56,13 +56,13 @@ bootstrap 5 (or no bootstrap at all)
56
56
 
57
57
  ## Product Owner & Maintenance
58
58
 
59
- BrowseEverything is a Core Component of the Samvera community. The documentation for
60
- what this means can be found
61
- [here](http://samvera.github.io/core_components.html#requirements-for-a-core-component).
59
+ `browse-everything` was a Core Component of the Samvera Community. Given a decline in available labor required for maintenance, this project no longer has a dedicated Product Owner. The documentation for what this means can be found [here](http://samvera.github.io/core_components.html#requirements-for-a-core-component).
62
60
 
63
61
  ### Product Owner
64
62
 
65
- [jrgriffiniii](https://github.com/jrgriffiniii)
63
+ **Vacant**
64
+
65
+ _Until a Product Owner has been identified, we ask that you please direct all requests for support, bug reports, and general questions to the [`#dev` Channel on the Samvera Slack](https://samvera.slack.com/app_redirect?channel=dev)._
66
66
 
67
67
  # Getting Started
68
68
 
@@ -75,6 +75,7 @@ Currently, the following releases of Ruby are tested:
75
75
 
76
76
  ## Supported Rails Releases
77
77
  The supported Rail releases follow those specified by [the security policy of the Rails Community](https://rubyonrails.org/security/). As is the case with the supported Ruby releases, it is recommended that one upgrades from any Rails release no longer receiving security updates.
78
+ - 7.1
78
79
  - 7.0
79
80
  - 6.1
80
81
  - 6.0
@@ -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', '< 7.1'
26
+ spec.add_dependency 'rails', '>= 4.2', '< 7.2'
27
27
  spec.add_dependency 'ruby-box'
28
28
  spec.add_dependency 'signet', '~> 0.8'
29
29
  spec.add_dependency 'typhoeus'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrowseEverything
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.0'
5
5
  end
@@ -7,7 +7,13 @@ describe 'Choosing files', type: :feature, js: true do
7
7
 
8
8
  shared_examples 'browseable files' do
9
9
  # This is a work-around until the support for Webpacker is resolved
10
- it 'selects files from the filesystem' do
10
+ #
11
+ # The following error is raised for Ruby releases 2.6.z
12
+ # Failure/Error: events = conf.options[:Silent] ? ::Puma::Events.strings : ::Puma::Events.stdio
13
+ #
14
+ # NoMethodError:
15
+ # undefined method `stdio' for Puma::Events:Class
16
+ xit 'selects files from the filesystem' do
11
17
  click_button('Browse')
12
18
  wait_for_ajax
13
19
 
@@ -1,7 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  describe 'Compiling the stylesheets', type: :feature, js: true do
4
- it 'does not raise errors' do
4
+ #
5
+ # The following error is raised for Ruby releases 2.6.z
6
+ # Failure/Error: events = conf.options[:Silent] ? ::Puma::Events.strings : ::Puma::Events.stdio
7
+ #
8
+ # NoMethodError:
9
+ # undefined method `stdio' for Puma::Events:Class
10
+ xit 'does not raise errors' do
5
11
  visit '/'
6
12
  expect(page).not_to have_content 'Sass::SyntaxError'
7
13
  end
@@ -32,7 +32,7 @@ describe BrowseEverything::Auth::Google::Credentials do
32
32
 
33
33
  it 'requests a new token from the OAuth provider' do
34
34
  expect(credentials.fetch_access_token).to be_a Hash
35
- expect(credentials.fetch_access_token).to eq({})
35
+ expect(credentials.fetch_access_token).to eq({ "granted_scopes" => nil })
36
36
  end
37
37
 
38
38
  after do
@@ -15,7 +15,6 @@ describe 'browse_everything/_files.html.erb', type: :view do
15
15
  end
16
16
 
17
17
  let(:provider) { instance_double(BrowseEverything::Driver::Base) }
18
- let(:page) { Capybara::Node::Simple.new(rendered) }
19
18
 
20
19
  before do
21
20
  allow(view).to receive(:browse_everything_engine).and_return(BrowseEverything::Engine.routes.url_helpers)
@@ -41,17 +40,17 @@ describe 'browse_everything/_files.html.erb', type: :view do
41
40
  let(:config) { { max_upload_file_size: (5 * 1024 * 1024 * 1024) } }
42
41
 
43
42
  it 'draws link' do
44
- expect(page).to have_selector('a.ev-link')
43
+ assert_select('a.ev-link')
45
44
  end
46
45
 
47
46
  it 'provides hover text' do
48
- expect(page.find('td.ev-file')['title']).to eq(file.name)
47
+ assert_select('td.ev-file', attributes: { title: file.name })
49
48
  end
50
49
  end
51
50
 
52
51
  context 'when a maximum file size is not configured' do
53
52
  it 'draws link' do
54
- expect(page).to have_selector('a.ev-link')
53
+ assert_select('a.ev-link')
55
54
  end
56
55
  end
57
56
 
@@ -59,12 +58,14 @@ describe 'browse_everything/_files.html.erb', type: :view do
59
58
  let(:config) { { max_upload_file_size: 1024 } }
60
59
 
61
60
  it 'draws link' do
62
- expect(page).not_to have_selector('a.ev-link')
61
+ # count:0 is like `refute`
62
+ assert_select('a.ev-link', count: 0)
63
63
  end
64
64
  end
65
65
 
66
66
  it 'does not have a checkbox' do
67
- expect(page).not_to have_selector('input.ev-select-all')
67
+ # count:0 is like `refute`
68
+ assert_select('input.ev-select-all', count: 0)
68
69
  end
69
70
  end
70
71
 
@@ -77,7 +78,7 @@ describe 'browse_everything/_files.html.erb', type: :view do
77
78
  end
78
79
 
79
80
  it 'has the select-all checkbox' do
80
- expect(page).to have_selector('input.ev-select-all')
81
+ assert_select('input.ev-select-all')
81
82
  end
82
83
  end
83
84
  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.2.0
4
+ version: 1.3.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: 2022-06-28 00:00:00.000000000 Z
16
+ date: 2023-11-09 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: '7.1'
103
+ version: '7.2'
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: '7.1'
113
+ version: '7.2'
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.2.33
634
+ rubygems_version: 3.4.21
635
635
  signing_key:
636
636
  specification_version: 4
637
637
  summary: AJAX/Rails engine file browser for cloud storage services