browse-everything 0.9.1 → 0.10.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/.gitignore +1 -1
- data/.travis.yml +0 -3
- data/Gemfile +16 -7
- data/README.md +2 -1
- data/Rakefile +0 -2
- data/app/assets/javascripts/browse_everything.js +1 -1
- data/app/assets/stylesheets/browse_everything.scss +4 -123
- data/app/assets/stylesheets/browse_everything/_browse_everything.scss +118 -0
- data/browse-everything.gemspec +2 -1
- data/lib/browse_everything.rb +1 -1
- data/lib/browse_everything/version.rb +1 -1
- data/lib/generators/browse_everything/assets_generator.rb +14 -0
- data/lib/generators/browse_everything/install_generator.rb +20 -0
- data/lib/generators/browse_everything/templates/browse_everything.scss +6 -0
- data/spec/spec_helper.rb +4 -2
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +2 -2
- metadata +25 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d78c02b71f1095510767169b3212e37efdd0e7a
|
4
|
+
data.tar.gz: e7cea71b8c1f25f77983196f04bd246606e0dace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1c77ecf43a2472eac66dd028f2fabca7d7480e4e3e98b40642c0e38bc313f1d197f19737f3bc455e9b19c792ad06367f857df6d930cc749d5194efafb549b0c
|
7
|
+
data.tar.gz: df23d41b2a7f51dc7d4ad9f9948c77af8b0e44b96a50b38f103529a4a717c4f7c1d44de3e79968eca3e67f67f86bebee11993dd2f00f43c9be9f7d04316c9ef2
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
language: ruby
|
2
|
-
cache: bundler
|
3
2
|
sudo: false
|
4
3
|
rvm:
|
5
4
|
- 2.2
|
@@ -16,8 +15,6 @@ matrix:
|
|
16
15
|
env: "RAILS_VERSION=4.2.1"
|
17
16
|
- rvm: 2.0
|
18
17
|
env: "RAILS_VERSION=4.2.1"
|
19
|
-
- rvm: 1.9.3
|
20
|
-
env: "RAILS_VERSION=4.2.1"
|
21
18
|
|
22
19
|
notifications:
|
23
20
|
irc: "irc.freenode.org#projecthydra"
|
data/Gemfile
CHANGED
@@ -3,17 +3,26 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in browse_everything.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
|
6
|
+
# BEGIN ENGINE_CART BLOCK
|
7
|
+
# engine_cart: 0.8.0
|
8
|
+
# engine_cart stanza: 0.8.0
|
9
|
+
# the below comes from engine_cart, a gem used to test this Rails engine gem in the context of a Rails app.
|
10
|
+
file = File.expand_path("Gemfile", ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path(".internal_test_app", File.dirname(__FILE__)))
|
7
11
|
if File.exists?(file)
|
8
|
-
|
9
|
-
|
12
|
+
begin
|
13
|
+
eval_gemfile file
|
14
|
+
rescue Bundler::GemfileError => e
|
15
|
+
Bundler.ui.warn '[EngineCart] Skipping Rails application dependencies:'
|
16
|
+
Bundler.ui.warn e.message
|
17
|
+
end
|
10
18
|
else
|
19
|
+
Bundler.ui.warn "[EngineCart] Unable to find test application dependencies in #{file}, using placeholder dependencies"
|
11
20
|
gem 'rails', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
|
12
|
-
|
13
|
-
if ENV['RAILS_VERSION'] and ENV['RAILS_VERSION'] !~ /^4.2/
|
14
|
-
gem 'sass-rails', "< 5.0"
|
15
|
-
else
|
21
|
+
if ENV['RAILS_VERSION'].nil? || ENV['RAILS_VERSION'] =~ /^4.2/
|
16
22
|
gem 'responders', "~> 2.0"
|
17
23
|
gem 'sass-rails', ">= 5.0"
|
24
|
+
else
|
25
|
+
gem 'sass-rails', "< 5.0"
|
18
26
|
end
|
19
27
|
end
|
28
|
+
# END ENGINE_CART BLOCK
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
[](http://badge.fury.io/rb/browse-everything)
|
2
2
|
[](https://travis-ci.org/projecthydra-labs/browse-everything)
|
3
|
+
[](https://coveralls.io/github/projecthydra-labs/browse-everything?branch=master)
|
3
4
|
|
4
5
|
# BrowseEverything
|
5
6
|
|
@@ -32,7 +33,7 @@ Or install it yourself as:
|
|
32
33
|
|
33
34
|
After installing the gem, run the generator
|
34
35
|
|
35
|
-
$ rails g browse_everything:
|
36
|
+
$ rails g browse_everything:install
|
36
37
|
|
37
38
|
This generator will set up the _config/browse_everything_providers.yml_ file and add the browse-everything engine to your application's routes.
|
38
39
|
|
data/Rakefile
CHANGED
@@ -1,125 +1,6 @@
|
|
1
|
-
@import
|
2
|
-
@import
|
3
|
-
@import "bootstrap";
|
4
|
-
// bootstrap-responsive isn't available with bootstrap 3. It's up to
|
5
|
-
// the host application to import it if using bootstrap 2.
|
6
|
-
// @import "bootstrap-responsive";
|
7
|
-
@import "font-awesome";
|
8
|
-
@import "jquery.treetable";
|
9
|
-
@import "jquery.treetable.theme.browse";
|
10
|
-
|
11
|
-
@mixin ev-link {
|
12
|
-
cursor: pointer;
|
13
|
-
a {
|
14
|
-
color: inherit;
|
15
|
-
background-color: inherit;
|
16
|
-
text-decoration: none;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
#browse-everything {
|
21
|
-
overflow-y: hidden;
|
22
|
-
position: fixed !important;
|
23
|
-
margin: 0 0 0 -37.5%;
|
24
|
-
left: 50%;
|
25
|
-
top: 10%;
|
26
|
-
background-color: initial;
|
27
|
-
width: 75%;
|
28
|
-
|
29
|
-
div {
|
30
|
-
background-color: white;
|
31
|
-
}
|
32
|
-
|
33
|
-
.modal-header {
|
34
|
-
padding: 8px;
|
35
|
-
}
|
36
|
-
|
37
|
-
.modal-body {
|
38
|
-
overflow: hidden;
|
39
|
-
}
|
40
|
-
|
41
|
-
.modal-footer {
|
42
|
-
margin: 0px;
|
43
|
-
}
|
44
|
-
|
45
|
-
.row {
|
46
|
-
margin: inherit;
|
47
|
-
}
|
48
|
-
|
49
|
-
.ev-files {
|
50
|
-
position: relative;
|
51
|
-
overflow-x: auto;
|
52
|
-
overflow-y: auto;
|
53
|
-
|
54
|
-
li {
|
55
|
-
overflow: hidden;
|
56
|
-
text-overflow: ellipsis;
|
57
|
-
.ev-file-name {
|
58
|
-
// padding: 0px 6px;
|
59
|
-
white-space: nowrap;
|
60
|
-
}
|
61
|
-
border-top: none;
|
62
|
-
}
|
63
|
-
|
64
|
-
&.detail {
|
65
|
-
}
|
1
|
+
@import 'bootstrap-sprockets';
|
2
|
+
@import 'bootstrap';
|
66
3
|
|
67
|
-
|
68
|
-
@include content-columns(3);
|
69
|
-
}
|
70
|
-
}
|
71
|
-
|
72
|
-
.ev-container li {
|
73
|
-
cursor: pointer;
|
74
|
-
}
|
75
|
-
|
76
|
-
.ev-body {
|
77
|
-
padding: 0;
|
78
|
-
}
|
79
|
-
|
80
|
-
.ev-providers {
|
81
|
-
padding: 4px;
|
82
|
-
}
|
83
|
-
|
84
|
-
.fa3 .ev-selected .indenter {
|
85
|
-
font-family: FontAwesome;
|
86
|
-
font-weight: normal;
|
87
|
-
font-style: normal;
|
88
|
-
text-decoration: inherit;
|
89
|
-
-webkit-font-smoothing: antialiased;
|
90
|
-
*margin-right: .3em;
|
91
|
-
@extend .icon-check !optional;
|
92
|
-
}
|
93
|
-
|
94
|
-
.fa4 .ev-selected .indenter {
|
95
|
-
background-color: inherit;
|
96
|
-
@extend .fa;
|
97
|
-
@extend .fa-check !optional;
|
98
|
-
}
|
99
|
-
|
100
|
-
.ev-files {
|
101
|
-
table {
|
102
|
-
width: 100%;
|
103
|
-
max-width: 100%;
|
104
|
-
tr {
|
105
|
-
width: 100%;
|
106
|
-
max-width: 100%;
|
107
|
-
td {
|
108
|
-
white-space: nowrap;
|
109
|
-
overflow: hidden;
|
110
|
-
text-overflow: ellipsis;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
|
116
|
-
.ev-files {
|
117
|
-
height: 50vh;
|
118
|
-
li { @include ev-link; }
|
119
|
-
}
|
120
|
-
|
121
|
-
.ev-providers {
|
122
|
-
select { width: 30% }
|
123
|
-
}
|
4
|
+
@import "font-awesome";
|
124
5
|
|
125
|
-
|
6
|
+
@import "browse_everything/browse_everything";
|
@@ -0,0 +1,118 @@
|
|
1
|
+
@import "jquery.treetable";
|
2
|
+
@import "jquery.treetable.theme.browse";
|
3
|
+
|
4
|
+
@mixin ev-link {
|
5
|
+
cursor: pointer;
|
6
|
+
a {
|
7
|
+
color: inherit;
|
8
|
+
background-color: inherit;
|
9
|
+
text-decoration: none;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
#browse-everything {
|
14
|
+
overflow-y: hidden;
|
15
|
+
position: fixed !important;
|
16
|
+
margin: 0 0 0 -37.5%;
|
17
|
+
left: 50%;
|
18
|
+
top: 10%;
|
19
|
+
background-color: initial;
|
20
|
+
width: 75%;
|
21
|
+
|
22
|
+
div {
|
23
|
+
background-color: white;
|
24
|
+
}
|
25
|
+
|
26
|
+
.modal-header {
|
27
|
+
padding: 8px;
|
28
|
+
}
|
29
|
+
|
30
|
+
.modal-body {
|
31
|
+
overflow: hidden;
|
32
|
+
}
|
33
|
+
|
34
|
+
.modal-footer {
|
35
|
+
margin: 0px;
|
36
|
+
}
|
37
|
+
|
38
|
+
.row {
|
39
|
+
margin: inherit;
|
40
|
+
}
|
41
|
+
|
42
|
+
.ev-files {
|
43
|
+
position: relative;
|
44
|
+
overflow-x: auto;
|
45
|
+
overflow-y: auto;
|
46
|
+
|
47
|
+
li {
|
48
|
+
overflow: hidden;
|
49
|
+
text-overflow: ellipsis;
|
50
|
+
.ev-file-name {
|
51
|
+
// padding: 0px 6px;
|
52
|
+
white-space: nowrap;
|
53
|
+
}
|
54
|
+
border-top: none;
|
55
|
+
}
|
56
|
+
|
57
|
+
&.detail {
|
58
|
+
}
|
59
|
+
|
60
|
+
&.list ul {
|
61
|
+
@include content-columns(3);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
.ev-container li {
|
66
|
+
cursor: pointer;
|
67
|
+
}
|
68
|
+
|
69
|
+
.ev-body {
|
70
|
+
padding: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
.ev-providers {
|
74
|
+
padding: 4px;
|
75
|
+
}
|
76
|
+
|
77
|
+
.fa3 .ev-selected .indenter {
|
78
|
+
font-family: FontAwesome;
|
79
|
+
font-weight: normal;
|
80
|
+
font-style: normal;
|
81
|
+
text-decoration: inherit;
|
82
|
+
-webkit-font-smoothing: antialiased;
|
83
|
+
*margin-right: .3em;
|
84
|
+
@extend .icon-check !optional;
|
85
|
+
}
|
86
|
+
|
87
|
+
.fa4 .ev-selected .indenter {
|
88
|
+
background-color: inherit;
|
89
|
+
@extend .fa;
|
90
|
+
@extend .fa-check !optional;
|
91
|
+
}
|
92
|
+
|
93
|
+
.ev-files {
|
94
|
+
table {
|
95
|
+
width: 100%;
|
96
|
+
max-width: 100%;
|
97
|
+
tr {
|
98
|
+
width: 100%;
|
99
|
+
max-width: 100%;
|
100
|
+
td {
|
101
|
+
white-space: nowrap;
|
102
|
+
overflow: hidden;
|
103
|
+
text-overflow: ellipsis;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
.ev-files {
|
110
|
+
height: 50vh;
|
111
|
+
li { @include ev-link; }
|
112
|
+
}
|
113
|
+
|
114
|
+
.ev-providers {
|
115
|
+
select { width: 30% }
|
116
|
+
}
|
117
|
+
|
118
|
+
}
|
data/browse-everything.gemspec
CHANGED
@@ -39,8 +39,9 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_development_dependency "vcr"
|
40
40
|
spec.add_development_dependency "sqlite3"
|
41
41
|
spec.add_development_dependency "factory_girl_rails"
|
42
|
-
spec.add_development_dependency "engine_cart"
|
42
|
+
spec.add_development_dependency "engine_cart", '~> 0.8.0'
|
43
43
|
spec.add_development_dependency "capybara"
|
44
44
|
spec.add_development_dependency "jasmine", '~> 2.3'
|
45
|
+
spec.add_development_dependency "coveralls"
|
45
46
|
|
46
47
|
end
|
data/lib/browse_everything.rb
CHANGED
@@ -22,7 +22,7 @@ module BrowseEverything
|
|
22
22
|
if value.nil? or value.kind_of?(Hash)
|
23
23
|
@config = value
|
24
24
|
elsif value.kind_of?(String)
|
25
|
-
@config = YAML.load(File.read(value))
|
25
|
+
@config = YAML.load(ERB.new(File.read(value)).result)
|
26
26
|
|
27
27
|
if @config.include? 'drop_box'
|
28
28
|
warn "[DEPRECATION] `drop_box` is deprecated. Please use `dropbox` instead."
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
require 'rails/generators'
|
3
|
+
|
4
|
+
class BrowseEverything::AssetsGenerator < Rails::Generators::Base
|
5
|
+
desc """
|
6
|
+
This generator installs the browse_everything CSS assets into your application
|
7
|
+
"""
|
8
|
+
|
9
|
+
source_root File.expand_path('../templates', __FILE__)
|
10
|
+
|
11
|
+
def inject_css
|
12
|
+
copy_file "browse_everything.scss", "app/assets/stylesheets/browse_everything.scss"
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
require 'rails/generators'
|
3
|
+
|
4
|
+
class BrowseEverything::InstallGenerator < Rails::Generators::Base
|
5
|
+
class_option :'skip-assets', type: :boolean, default: false, desc: "Skip generating javascript and css assets into the application"
|
6
|
+
|
7
|
+
desc """
|
8
|
+
This generator installs the browse everything configuration and assets into your application
|
9
|
+
"""
|
10
|
+
|
11
|
+
source_root File.expand_path('../templates', __FILE__)
|
12
|
+
|
13
|
+
def inject_config
|
14
|
+
generate 'browse_everything:config'
|
15
|
+
end
|
16
|
+
|
17
|
+
def inject_assets
|
18
|
+
generate 'browse_everything:assets' unless options[:'skip-assets']
|
19
|
+
end
|
20
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
-
require
|
1
|
+
require 'engine_cart'
|
2
|
+
require File.expand_path("config/environment", EngineCart.destination)
|
2
3
|
require 'rspec'
|
3
4
|
require 'rspec/rails'
|
4
5
|
require 'rspec/its'
|
5
6
|
require 'webmock/rspec'
|
6
7
|
require 'simplecov'
|
7
8
|
require 'vcr'
|
8
|
-
require 'engine_cart'
|
9
9
|
require 'capybara/rails'
|
10
10
|
require 'capybara/rspec'
|
11
11
|
require 'support/rake'
|
12
|
+
require 'coveralls'
|
12
13
|
|
14
|
+
Coveralls.wear!
|
13
15
|
EngineCart.load_application!
|
14
16
|
|
15
17
|
SimpleCov.start do
|
@@ -1,14 +1,14 @@
|
|
1
1
|
require 'rails/generators'
|
2
2
|
|
3
3
|
class TestAppGenerator < Rails::Generators::Base
|
4
|
-
source_root File.expand_path("../../../../support", __FILE__)
|
4
|
+
source_root File.expand_path("../../../../spec/support", __FILE__)
|
5
5
|
|
6
6
|
def run_config_generator
|
7
7
|
generate "browse_everything:config"
|
8
8
|
end
|
9
9
|
|
10
10
|
def inject_css
|
11
|
-
copy_file "
|
11
|
+
copy_file File.expand_path("app/assets/stylesheets/application.css", ENV['RAILS_ROOT']), "app/assets/stylesheets/application.css.scss"
|
12
12
|
remove_file "app/assets/stylesheets/application.css"
|
13
13
|
insert_into_file "app/assets/stylesheets/application.css.scss", :after => '*/' do
|
14
14
|
%{\n\n@import "browse_everything"}
|
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.10.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: 2016-04-04 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rails
|
@@ -313,16 +313,16 @@ dependencies:
|
|
313
313
|
name: engine_cart
|
314
314
|
requirement: !ruby/object:Gem::Requirement
|
315
315
|
requirements:
|
316
|
-
- - "
|
316
|
+
- - "~>"
|
317
317
|
- !ruby/object:Gem::Version
|
318
|
-
version:
|
318
|
+
version: 0.8.0
|
319
319
|
type: :development
|
320
320
|
prerelease: false
|
321
321
|
version_requirements: !ruby/object:Gem::Requirement
|
322
322
|
requirements:
|
323
|
-
- - "
|
323
|
+
- - "~>"
|
324
324
|
- !ruby/object:Gem::Version
|
325
|
-
version:
|
325
|
+
version: 0.8.0
|
326
326
|
- !ruby/object:Gem::Dependency
|
327
327
|
name: capybara
|
328
328
|
requirement: !ruby/object:Gem::Requirement
|
@@ -351,6 +351,20 @@ dependencies:
|
|
351
351
|
- - "~>"
|
352
352
|
- !ruby/object:Gem::Version
|
353
353
|
version: '2.3'
|
354
|
+
- !ruby/object:Gem::Dependency
|
355
|
+
name: coveralls
|
356
|
+
requirement: !ruby/object:Gem::Requirement
|
357
|
+
requirements:
|
358
|
+
- - ">="
|
359
|
+
- !ruby/object:Gem::Version
|
360
|
+
version: '0'
|
361
|
+
type: :development
|
362
|
+
prerelease: false
|
363
|
+
version_requirements: !ruby/object:Gem::Requirement
|
364
|
+
requirements:
|
365
|
+
- - ">="
|
366
|
+
- !ruby/object:Gem::Version
|
367
|
+
version: '0'
|
354
368
|
description: AJAX/Rails engine file browser for cloud storage services
|
355
369
|
email:
|
356
370
|
- cam156@psu.edu
|
@@ -375,6 +389,7 @@ files:
|
|
375
389
|
- app/assets/javascripts/browse_everything.js
|
376
390
|
- app/assets/javascripts/browse_everything/behavior.js.coffee
|
377
391
|
- app/assets/stylesheets/browse_everything.scss
|
392
|
+
- app/assets/stylesheets/browse_everything/_browse_everything.scss
|
378
393
|
- app/assets/stylesheets/jquery.treetable.theme.browse.css
|
379
394
|
- app/controllers/browse_everything_controller.rb
|
380
395
|
- app/helpers/bootstrap_version_helper.rb
|
@@ -405,7 +420,10 @@ files:
|
|
405
420
|
- lib/browse_everything/file_entry.rb
|
406
421
|
- lib/browse_everything/retriever.rb
|
407
422
|
- lib/browse_everything/version.rb
|
423
|
+
- lib/generators/browse_everything/assets_generator.rb
|
408
424
|
- lib/generators/browse_everything/config_generator.rb
|
425
|
+
- lib/generators/browse_everything/install_generator.rb
|
426
|
+
- lib/generators/browse_everything/templates/browse_everything.scss
|
409
427
|
- lib/generators/browse_everything/templates/browse_everything_providers.yml.example
|
410
428
|
- spec/features/test_compiling_stylesheets_spec.rb
|
411
429
|
- spec/fixtures/file_system/dir_1/dir_3/file_3.m4v
|
@@ -459,7 +477,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
459
477
|
version: '0'
|
460
478
|
requirements: []
|
461
479
|
rubyforge_project:
|
462
|
-
rubygems_version: 2.4.
|
480
|
+
rubygems_version: 2.4.5.1
|
463
481
|
signing_key:
|
464
482
|
specification_version: 4
|
465
483
|
summary: AJAX/Rails engine file browser for cloud storage services
|