browse-everything 0.13.1 → 0.14.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
  SHA1:
3
- metadata.gz: b3dac91a7b55dbdc832f74cac8f959bc0f17f856
4
- data.tar.gz: 566510c4721a075a8e8045c518270022fcb9938e
3
+ metadata.gz: 89eb9b588515d2dc5644b29728ca80c6e339132d
4
+ data.tar.gz: be62f43cb494e3b072535f586a1c9475be5733ef
5
5
  SHA512:
6
- metadata.gz: 43028fac8de3a563e4481c2be55195d16baa44ce561892b5437e0af25215cfcd23d93d5b1d74c7741d18429c433d072f8729ca349cd9becc635dead723717f61
7
- data.tar.gz: fd6f9d1fb68fb27c42f33d68d2a4f69ee752a13895671894b82d8643cc1f760ea8f7046c59b7327d17f23f952710275a8786c0e1ab0cd81830d995daf6bb1eaa
6
+ metadata.gz: 80e1bbe576841d9ce6e92ded2ecc661e737a11993621ec1bc8e4478b2c72bb5c59c54a733324c01197eddcf8f32694673c47639e617ee070139a6f2865f87bd1
7
+ data.tar.gz: 869fb6717555cdff963b6652daca08994f3a92279bd8a1a33d737125fa11dd611c7fe5a36f4ff2bd92c1d0ddada6f1a6fe1dc71a4cc9cab79d264c6ba50211a5
data/.engine_cart.yml CHANGED
@@ -1 +1,2 @@
1
- rails_options: "<%= '--skip-listen' if ENV.fetch('RAILS_VERSION', '') < '5.0' %>"
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.2.2"
17
- # rack 2 requires Ruby version >= 2.2.2
17
+ - "2.4.1"
18
+ global_env:
19
+ - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
18
20
  env:
19
- global:
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.0"
28
- env: "RAILS_VERSION=5.0.1"
29
- - rvm: 2.2.6
30
- env: "RAILS_VERSION=4.2.7.1"
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
- when /^4.[01]/
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 line to your application's Gemfile:
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
- Add `//= require browse_everything` to your application.js
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
 
@@ -1,4 +1,3 @@
1
- //= require jquery
2
1
  //= require jquery.treetable
3
2
  //= require bootstrap-sprockets
4
3
  //= require browse_everything/behavior
@@ -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">
@@ -1,3 +1,3 @@
1
1
  module BrowseEverything
2
- VERSION = '0.13.1'.freeze
2
+ VERSION = '0.14.0'.freeze
3
3
  end
@@ -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
- "\n//= require browse_everything"
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.13.1
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-05-09 00:00:00.000000000 Z
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.5.1
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