browse-everything 0.13.1 → 0.14.0
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/.engine_cart.yml +2 -1
- data/.travis.yml +9 -14
- data/Gemfile +7 -2
- data/README.md +9 -2
- data/app/assets/javascripts/browse_everything.js +0 -1
- data/app/views/browse_everything/_file.html.erb +1 -1
- data/lib/browse_everything/version.rb +1 -1
- data/spec/test_app_templates/Gemfile.extra +1 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +4 -1
- data/spec/views/browse_everything/_file.html.erb_spec.rb +4 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89eb9b588515d2dc5644b29728ca80c6e339132d
|
4
|
+
data.tar.gz: be62f43cb494e3b072535f586a1c9475be5733ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80e1bbe576841d9ce6e92ded2ecc661e737a11993621ec1bc8e4478b2c72bb5c59c54a733324c01197eddcf8f32694673c47639e617ee070139a6f2865f87bd1
|
7
|
+
data.tar.gz: 869fb6717555cdff963b6652daca08994f3a92279bd8a1a33d737125fa11dd611c7fe5a36f4ff2bd92c1d0ddada6f1a6fe1dc71a4cc9cab79d264c6ba50211a5
|
data/.engine_cart.yml
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
# Skipping test because rails 5.1.0 generates with an old version of capybara
|
2
|
+
rails_options: "--skip-test <%= '--skip-listen' if ENV.fetch('RAILS_VERSION', '') < '5.0' %>"
|
data/.travis.yml
CHANGED
@@ -12,21 +12,16 @@ before_install:
|
|
12
12
|
- "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
|
13
13
|
- "if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
|
14
14
|
- "phantomjs --version"
|
15
|
+
|
15
16
|
rvm:
|
16
|
-
- "2.
|
17
|
-
|
17
|
+
- "2.4.1"
|
18
|
+
global_env:
|
19
|
+
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
18
20
|
env:
|
19
|
-
|
20
|
-
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
21
|
-
matrix:
|
22
|
-
- "RAILS_VERSION=4.1.10"
|
23
|
-
- "RAILS_VERSION=4.2.1"
|
24
|
-
- "RAILS_VERSION=5.0.0.1"
|
21
|
+
- "RAILS_VERSION=5.1.0"
|
25
22
|
matrix:
|
26
23
|
include:
|
27
|
-
- rvm: "2.3.
|
28
|
-
env: "RAILS_VERSION=5.0.
|
29
|
-
- rvm: 2.2.
|
30
|
-
env: "RAILS_VERSION=4.2.
|
31
|
-
- rvm: 2.4.0
|
32
|
-
env: "RAILS_VERSION=5.0.1"
|
24
|
+
- rvm: "2.3.4"
|
25
|
+
env: "RAILS_VERSION=5.0.2"
|
26
|
+
- rvm: 2.2.7
|
27
|
+
env: "RAILS_VERSION=4.2.8"
|
data/Gemfile
CHANGED
@@ -28,12 +28,17 @@ else
|
|
28
28
|
end
|
29
29
|
|
30
30
|
case ENV['RAILS_VERSION']
|
31
|
+
when /^5.1/
|
32
|
+
gem 'capybara', '~> 2.13.0'
|
31
33
|
when /^4.2/
|
32
34
|
gem 'responders', '~> 2.0'
|
33
35
|
gem 'sass-rails', '>= 5.0'
|
34
36
|
gem 'coffee-rails', '~> 4.1.0'
|
35
|
-
|
36
|
-
gem 'sass-rails', '< 5.0'
|
37
|
+
gem 'json', '~> 1.8'
|
37
38
|
end
|
38
39
|
end
|
39
40
|
# END ENGINE_CART BLOCK
|
41
|
+
|
42
|
+
unless File.exist?(file)
|
43
|
+
eval_gemfile File.expand_path('spec/test_app_templates/Gemfile.extra', File.dirname(__FILE__))
|
44
|
+
end
|
data/README.md
CHANGED
@@ -18,8 +18,9 @@ download the files.
|
|
18
18
|
|
19
19
|
## Installation
|
20
20
|
|
21
|
-
Add this
|
21
|
+
Add this lines to your application's Gemfile:
|
22
22
|
|
23
|
+
gem 'jquery-rails'
|
23
24
|
gem 'browse-everything'
|
24
25
|
|
25
26
|
And then execute:
|
@@ -44,7 +45,13 @@ If you prefer not to use the generator, or need info on how to set up providers
|
|
44
45
|
|
45
46
|
Add `@import "browse_everything";` to your application.css.scss
|
46
47
|
|
47
|
-
|
48
|
+
In `app/assets/javascripts/application.js` include jquery and the BrowseEverything
|
49
|
+
|
50
|
+
```javascript
|
51
|
+
//= require jquery
|
52
|
+
//= require browse_everything
|
53
|
+
```
|
54
|
+
|
48
55
|
|
49
56
|
## Usage
|
50
57
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
data-tt-parent-id="<%=parent%>"
|
13
13
|
data-tt-branch="<%=file.container? ? 'true' : 'false'%>">
|
14
14
|
|
15
|
-
<td role="gridcell" class="<%=file.container? ? 'ev-container' : 'ev-file'%> ev-file-name">
|
15
|
+
<td role="gridcell" title="<%= file.name %>" class="<%=file.container? ? 'ev-container' : 'ev-file'%> ev-file-name">
|
16
16
|
<% if disabled %>
|
17
17
|
<span title="<%= t('browse_everything.size_disabled', max_size: number_to_human_size(max_size)) %>"
|
18
18
|
class="<%=file.container? ? 'folder' : 'file'%>" aria-hidden="true">
|
@@ -0,0 +1 @@
|
|
1
|
+
gem 'jquery-rails'
|
@@ -17,7 +17,10 @@ class TestAppGenerator < Rails::Generators::Base
|
|
17
17
|
|
18
18
|
def inject_javascript
|
19
19
|
insert_into_file 'app/assets/javascripts/application.js', after: '//= require_tree .' do
|
20
|
-
|
20
|
+
%(
|
21
|
+
//= require jquery
|
22
|
+
//= require browse_everything
|
23
|
+
)
|
21
24
|
end
|
22
25
|
end
|
23
26
|
|
@@ -33,6 +33,10 @@ describe 'browse_everything/_file.html.erb', type: :view do
|
|
33
33
|
it 'draws link' do
|
34
34
|
expect(page).to have_selector('a.ev-link')
|
35
35
|
end
|
36
|
+
|
37
|
+
it 'provides hover text' do
|
38
|
+
expect(page.find('td.ev-file')['title']).to eq(file.name)
|
39
|
+
end
|
36
40
|
end
|
37
41
|
|
38
42
|
context 'max not configured' do
|
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: 0.
|
4
|
+
version: 0.14.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: 2017-
|
16
|
+
date: 2017-07-07 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rails
|
@@ -533,6 +533,7 @@ files:
|
|
533
533
|
- spec/support/app/views/file_handler/index.html.erb
|
534
534
|
- spec/support/app/views/file_handler/main.html.erb
|
535
535
|
- spec/support/rake.rb
|
536
|
+
- spec/test_app_templates/Gemfile.extra
|
536
537
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
537
538
|
- spec/unit/base_spec.rb
|
538
539
|
- spec/unit/box_spec.rb
|
@@ -569,7 +570,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
569
570
|
version: '0'
|
570
571
|
requirements: []
|
571
572
|
rubyforge_project:
|
572
|
-
rubygems_version: 2.
|
573
|
+
rubygems_version: 2.6.12
|
573
574
|
signing_key:
|
574
575
|
specification_version: 4
|
575
576
|
summary: AJAX/Rails engine file browser for cloud storage services
|
@@ -595,6 +596,7 @@ test_files:
|
|
595
596
|
- spec/support/app/views/file_handler/index.html.erb
|
596
597
|
- spec/support/app/views/file_handler/main.html.erb
|
597
598
|
- spec/support/rake.rb
|
599
|
+
- spec/test_app_templates/Gemfile.extra
|
598
600
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
599
601
|
- spec/unit/base_spec.rb
|
600
602
|
- spec/unit/box_spec.rb
|