browse-everything 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +15 -0
- data/README.md +2 -2
- data/app/assets/javascripts/browse_everything/behavior.js.coffee +1 -1
- data/app/controllers/browse_everything_controller.rb +1 -1
- data/lib/browse_everything/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/dropbox.yml +1 -1
- data/spec/helper/browse_everything_controller_helper_spec.rb +22 -0
- data/spec/unit/dropbox_spec.rb +1 -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: c5c388939f72d78d17fea2b21a5f3075309af732
|
4
|
+
data.tar.gz: 9d7081352244177f706ac3a9976391141f8e3c0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9729c0dde53b5db2fdcb2d2993b030229e181f135bfa639c40a7dd7a7dd52910be683e91961d29b9b9daa478c90db0a708e02e7d00496ddefd93c55de996efa
|
7
|
+
data.tar.gz: 96d5dadd940e21bf00d3ee3d087809a8b6c0db8ccc22d6a95a2d39f994514fbba588e6150fd349157c454703ca8a919f801cf3f874d8373141ea406afa5610ba
|
data/HISTORY.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
### 0.10.1 (2016-05-31)
|
2
|
+
Fix dropbox integration
|
3
|
+
Change badge URLs to reflect promotion out of labs
|
4
|
+
Fix String.prototype.replace() global flag deprecation warning
|
5
|
+
|
6
|
+
### 0.10.0 (2016-04-04)
|
7
|
+
Add browse_everything:install generator, delegating to the assets and config generators, to install the dependencies into the application
|
8
|
+
Extract browse_everything css into a separate file that can be included without also including bootstrap and font-awesome
|
9
|
+
Drop Ruby 1.9 support
|
10
|
+
Use bootstrap-sprockets instead
|
11
|
+
Disable bundler caching between test runs
|
12
|
+
Update to engine_cart v0.8.0
|
13
|
+
Add Coveralls support
|
14
|
+
Allow ERB in YAML config
|
15
|
+
|
1
16
|
### 0.9.1 (2015-10-22)
|
2
17
|
- Properly scope "Select All" checkbox triggers (Bug: @awead / Fix: @awead)
|
3
18
|
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/browse-everything.png)](http://badge.fury.io/rb/browse-everything)
|
2
|
-
[![Build Status](https://travis-ci.org/projecthydra
|
3
|
-
[![Coverage Status](https://coveralls.io/repos/projecthydra
|
2
|
+
[![Build Status](https://travis-ci.org/projecthydra/browse-everything.svg?branch=master)](https://travis-ci.org/projecthydra/browse-everything)
|
3
|
+
[![Coverage Status](https://coveralls.io/repos/projecthydra/browse-everything/badge.svg?branch=master&service=github)](https://coveralls.io/github/projecthydra/browse-everything?branch=master)
|
4
4
|
|
5
5
|
# BrowseEverything
|
6
6
|
|
@@ -26,7 +26,7 @@ $ ->
|
|
26
26
|
toHiddenFields = (data) ->
|
27
27
|
fields = $.param(data)
|
28
28
|
.split('&')
|
29
|
-
.map (t) -> t.replace(
|
29
|
+
.map (t) -> t.replace(/\+/g,' ').split('=',2)
|
30
30
|
elements = $(fields).map () ->
|
31
31
|
$("<input type='hidden'/>")
|
32
32
|
.attr('name',decodeURIComponent(this[0]))
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://
|
5
|
+
uri: https://api.dropbox.com/1/oauth2/token
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: grant_type=authorization_code&code=FakeDropboxAuthorizationCodeABCDEFG&redirect_uri=http%3A%2F%2Fbrowse.example.edu%2Fbrowse%2Fconnect
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require File.expand_path('../../spec_helper',__FILE__)
|
2
|
+
|
3
|
+
include BrowserConfigHelper
|
4
|
+
|
5
|
+
describe BrowseEverythingController, type: :controller do
|
6
|
+
before(:all) { stub_configuration }
|
7
|
+
after(:all) { unstub_configuration }
|
8
|
+
|
9
|
+
let(:helper_context) {controller.view_context}
|
10
|
+
let(:browser) { BrowseEverything::Browser.new(url_options) }
|
11
|
+
let(:provider) { browser.providers['dropbox'] }
|
12
|
+
|
13
|
+
before do
|
14
|
+
allow(controller).to receive(:provider).and_return(provider)
|
15
|
+
end
|
16
|
+
describe "auth_link" do
|
17
|
+
subject {helper_context.auth_link}
|
18
|
+
it "has a single state" do
|
19
|
+
expect(subject.scan(/state/).length).to eq 1
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/spec/unit/dropbox_spec.rb
CHANGED
@@ -33,6 +33,7 @@ describe BrowseEverything::Driver::Dropbox, vcr: { cassette_name: 'dropbox', rec
|
|
33
33
|
context "#auth_link" do
|
34
34
|
specify { subject.auth_link[0].should start_with('https://www.dropbox.com/1/oauth2/authorize') }
|
35
35
|
specify { subject.auth_link[0].should include('browse%2Fconnect') }
|
36
|
+
specify { subject.auth_link[0].should include('state') }
|
36
37
|
end
|
37
38
|
|
38
39
|
it "should authorize" 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.10.
|
4
|
+
version: 0.10.1
|
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: 2016-
|
16
|
+
date: 2016-05-31 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rails
|
@@ -433,6 +433,7 @@ files:
|
|
433
433
|
- spec/fixtures/file_system/file_1.pdf
|
434
434
|
- spec/fixtures/vcr_cassettes/dropbox.yml
|
435
435
|
- spec/fixtures/vcr_cassettes/retriever.yml
|
436
|
+
- spec/helper/browse_everything_controller_helper_spec.rb
|
436
437
|
- spec/javascripts/behavior_spec.js
|
437
438
|
- spec/javascripts/helpers/jasmine-jquery.js
|
438
439
|
- spec/javascripts/jasmine_spec.rb
|
@@ -477,7 +478,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
477
478
|
version: '0'
|
478
479
|
requirements: []
|
479
480
|
rubyforge_project:
|
480
|
-
rubygems_version: 2.
|
481
|
+
rubygems_version: 2.5.1
|
481
482
|
signing_key:
|
482
483
|
specification_version: 4
|
483
484
|
summary: AJAX/Rails engine file browser for cloud storage services
|
@@ -490,6 +491,7 @@ test_files:
|
|
490
491
|
- spec/fixtures/file_system/file_1.pdf
|
491
492
|
- spec/fixtures/vcr_cassettes/dropbox.yml
|
492
493
|
- spec/fixtures/vcr_cassettes/retriever.yml
|
494
|
+
- spec/helper/browse_everything_controller_helper_spec.rb
|
493
495
|
- spec/javascripts/behavior_spec.js
|
494
496
|
- spec/javascripts/helpers/jasmine-jquery.js
|
495
497
|
- spec/javascripts/jasmine_spec.rb
|