browse-everything 0.10.0 → 0.10.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d78c02b71f1095510767169b3212e37efdd0e7a
4
- data.tar.gz: e7cea71b8c1f25f77983196f04bd246606e0dace
3
+ metadata.gz: c5c388939f72d78d17fea2b21a5f3075309af732
4
+ data.tar.gz: 9d7081352244177f706ac3a9976391141f8e3c0c
5
5
  SHA512:
6
- metadata.gz: c1c77ecf43a2472eac66dd028f2fabca7d7480e4e3e98b40642c0e38bc313f1d197f19737f3bc455e9b19c792ad06367f857df6d930cc749d5194efafb549b0c
7
- data.tar.gz: df23d41b2a7f51dc7d4ad9f9948c77af8b0e44b96a50b38f103529a4a717c4f7c1d44de3e79968eca3e67f67f86bebee11993dd2f00f43c9be9f7d04316c9ef2
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-labs/browse-everything.svg?branch=master)](https://travis-ci.org/projecthydra-labs/browse-everything)
3
- [![Coverage Status](https://coveralls.io/repos/projecthydra-labs/browse-everything/badge.svg?branch=master&service=github)](https://coveralls.io/github/projecthydra-labs/browse-everything?branch=master)
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('+',' ','g').split('=',2)
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]))
@@ -40,7 +40,7 @@ class BrowseEverythingController < ActionController::Base
40
40
  @auth_link ||= if provider.present?
41
41
  link, data = provider.auth_link
42
42
  session["#{provider_name}_data"] = data
43
- "#{link}&state=#{provider.key}"
43
+ link
44
44
  else
45
45
  nil
46
46
  end
@@ -1,3 +1,3 @@
1
1
  module BrowseEverything
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://DropboxAppKey:DropboxAppSecret@api.dropbox.com/1/oauth2/token
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
@@ -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.0
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-04-04 00:00:00.000000000 Z
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.4.5.1
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