riiif 1.7.0 → 1.7.1

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: 47aafb94ed533ae1769ddcd23095d428079b28df
4
- data.tar.gz: 9aaec28c8c55fd8e936b4d192e31bbe66a39f228
3
+ metadata.gz: b906efd99f3e05a2fd678fc4f94f7d91c97c726b
4
+ data.tar.gz: 157ee4a7c84affe1bc6816ad8d22c1bfade9ae9c
5
5
  SHA512:
6
- metadata.gz: 7b034b617360e62f487907b1395bef2641f130678729461d23410f48106674516d674a08e1d2a9a814d72d64ec2bcccdefa21a5099f8e6baee93bb304b714cd1
7
- data.tar.gz: ed2a2ce3187f8c4f8227cdfcded3d177614d07bdeea331a125737180ed56f0fb0fbaa23e881b02d05a845b65b0638844d6fe265e3a31acc628332a346522b272
6
+ metadata.gz: d5ec226ff4794db61495802d724cdbb40adcf0f412b44d413f343e2755c0700790de1e84c429c6ab983bf103b5ea8fb68c4ffdfe4f5a546b134467524236dc54
7
+ data.tar.gz: 07e3b30f166d5f6e944ed7a785b504970e1e970284fe71a85939337c0dca115660f91b9ff05bbc6b717a06392a142db26d09862fba16ebbe677bd09e415a7681
data/.rubocop_todo.yml CHANGED
@@ -1,11 +1,26 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-04-11 15:07:00 -0500 using RuboCop version 0.47.1.
3
+ # on 2018-05-14 11:34:53 -0500 using RuboCop version 0.47.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
+ # Offense count: 2
10
+ # Configuration parameters: Include.
11
+ # Include: **/Gemfile, **/gems.rb
12
+ Bundler/DuplicatedGem:
13
+ Exclude:
14
+ - 'Gemfile'
15
+
16
+ # Offense count: 1
17
+ # Cop supports --auto-correct.
18
+ # Configuration parameters: Include.
19
+ # Include: **/Gemfile, **/gems.rb
20
+ Bundler/OrderedGems:
21
+ Exclude:
22
+ - 'Gemfile'
23
+
9
24
  # Offense count: 9
10
25
  # Configuration parameters: AllowSafeAssignment.
11
26
  Lint/AssignmentInCondition:
@@ -24,7 +39,7 @@ Lint/UselessAssignment:
24
39
  Exclude:
25
40
  - 'app/models/riiif/file.rb'
26
41
 
27
- # Offense count: 5
42
+ # Offense count: 6
28
43
  Metrics/AbcSize:
29
44
  Max: 29
30
45
 
@@ -32,11 +47,11 @@ Metrics/AbcSize:
32
47
  Metrics/CyclomaticComplexity:
33
48
  Max: 8
34
49
 
35
- # Offense count: 96
50
+ # Offense count: 103
36
51
  # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
37
52
  # URISchemes: http, https
38
53
  Metrics/LineLength:
39
- Max: 117
54
+ Max: 153
40
55
 
41
56
  # Offense count: 6
42
57
  # Configuration parameters: CountComments.
@@ -50,7 +65,7 @@ Style/ClassAndModuleChildren:
50
65
  Exclude:
51
66
  - 'lib/riiif/rails/routes.rb'
52
67
 
53
- # Offense count: 14
68
+ # Offense count: 13
54
69
  Style/Documentation:
55
70
  Exclude:
56
71
  - 'spec/**/*'
@@ -67,3 +82,18 @@ Style/Documentation:
67
82
  - 'lib/riiif/nil_authorization_service.rb'
68
83
  - 'lib/riiif/rails/routes.rb'
69
84
  - 'lib/riiif/routes.rb'
85
+
86
+ # Offense count: 1
87
+ # Cop supports --auto-correct.
88
+ # Configuration parameters: AllowForAlignment.
89
+ Style/SpaceAroundOperators:
90
+ Exclude:
91
+ - 'Gemfile'
92
+
93
+ # Offense count: 1
94
+ # Cop supports --auto-correct.
95
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
96
+ # SupportedStyles: single_quotes, double_quotes
97
+ Style/StringLiterals:
98
+ Exclude:
99
+ - 'Gemfile'
data/Gemfile CHANGED
@@ -2,3 +2,40 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in riiif.gemspec
4
4
  gemspec
5
+
6
+ ENV['ENGINE_CART_RAILS_OPTIONS']="--skip-bootsnap"
7
+
8
+ # BEGIN ENGINE_CART BLOCK
9
+ # engine_cart: 2.0.1
10
+ # engine_cart stanza: 0.10.0
11
+ # the below comes from engine_cart, a gem used to test this Rails engine gem in the context of a Rails app.
12
+ file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('.internal_test_app', File.dirname(__FILE__)))
13
+ if File.exist?(file)
14
+ begin
15
+ eval_gemfile file
16
+ rescue Bundler::GemfileError => e
17
+ Bundler.ui.warn '[EngineCart] Skipping Rails application dependencies:'
18
+ Bundler.ui.warn e.message
19
+ end
20
+ else
21
+ Bundler.ui.warn "[EngineCart] Unable to find test application dependencies in #{file}, using placeholder dependencies"
22
+
23
+ if ENV['RAILS_VERSION']
24
+ if ENV['RAILS_VERSION'] == 'edge'
25
+ gem 'rails', github: 'rails/rails'
26
+ ENV['ENGINE_CART_RAILS_OPTIONS'] = '--edge --skip-turbolinks'
27
+ else
28
+ gem 'rails', ENV['RAILS_VERSION']
29
+ end
30
+ end
31
+
32
+ case ENV['RAILS_VERSION']
33
+ when /^4.2/
34
+ gem 'responders', '~> 2.0'
35
+ gem 'sass-rails', '>= 5.0'
36
+ gem 'coffee-rails', '~> 4.1.0'
37
+ when /^4.[01]/
38
+ gem 'sass-rails', '< 5.0'
39
+ end
40
+ end
41
+ # END ENGINE_CART BLOCK
@@ -21,7 +21,7 @@ module Riiif
21
21
  extend Deprecation
22
22
 
23
23
  class_attribute :file_resolver, :info_service, :authorization_service, :cache
24
- self.file_resolver = FileSystemFileResolver.new(base_path: File.join(Rails.root, 'tmp'))
24
+ self.file_resolver = FileSystemFileResolver.new(base_path: ::File.join(Rails.root, 'tmp'))
25
25
  self.authorization_service = NilAuthorizationService
26
26
  self.cache = Rails.cache
27
27
 
data/lib/riiif/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Riiif
2
- VERSION = '1.7.0'.freeze
2
+ VERSION = '1.7.1'.freeze
3
3
  end
data/riiif.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency 'deprecation', '>= 1.0.0'
23
23
  spec.add_development_dependency 'bundler', '~> 1.3'
24
24
  spec.add_development_dependency 'rake'
25
- spec.add_development_dependency 'engine_cart', '~> 0.8'
25
+ spec.add_development_dependency 'engine_cart', '~> 2.0'
26
26
  spec.add_development_dependency 'rspec-rails'
27
27
  spec.add_development_dependency 'sqlite3'
28
28
  spec.add_development_dependency 'rubocop', '~> 0.47.1'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riiif
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-08 00:00:00.000000000 Z
11
+ date: 2018-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '0.8'
81
+ version: '2.0'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '0.8'
88
+ version: '2.0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rspec-rails
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  version: '0'
236
236
  requirements: []
237
237
  rubyforge_project:
238
- rubygems_version: 2.6.13
238
+ rubygems_version: 2.6.11
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: A rails engine that support IIIF requests