shrine-configurable_storage 0.1.0 → 0.1.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: 7bc5f08e6228fd04a56aa43bfa204018c0c9bdcc
4
- data.tar.gz: 977a5695ab0679ced3086cc4322f925e0cc17207
3
+ metadata.gz: 8adb2989838d5f64e97338a64bbd875136979026
4
+ data.tar.gz: b948c95f4bae337349d96a5f7e00354fa008cca9
5
5
  SHA512:
6
- metadata.gz: b3bf5c0f9b6d946ac336fb6e18ba2b41a559bec77e527a1eda4f1ac430bff105cc75e91f623c987ad07c4924afbe0f9c0da6e2f04625baa3f4ebfba810b07a70
7
- data.tar.gz: 5b5d4519e1975683db7713fb82254c36edcc86b42b1cb1f56f5991c90d49b92ba44e25ad952d6436f2cf30e66497000153fcfb6aeacf7c689b6829bd6685408c
6
+ metadata.gz: 6205bd76319c03a35f3a3c1f3ca5df3fa4baafe4f36500ee92cfef74c01787422b66d025a119a39c86d831af75672d24d6188e31887256df555434fb76fbdc5f
7
+ data.tar.gz: c65d0df33dad6a51be7ee2c08f62f54a135644f7d5e7808968e185d7a67d54a9cbafa5aedc99cf3f47944c65348d7151772be4c62731664efc85d0c1298408d5
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1
4
+ Use shrine base error `Shrine::Error`.
5
+
3
6
  ## 0.1.0
4
7
  Initial release
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
- # Specify your gem's dependencies in shrine-configurable_storage.gemspec
5
+ # Specify your gem's dependencies in shrine-content_addressable.gemspec
6
6
  gemspec
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # shrine-configurable_storage
2
+ [![Build Status](https://travis-ci.com/SleeplessByte/shrine-configurable_storage.svg?branch=master)](https://travis-ci.com/SleeplessByte/shrine-configurable_storage)
3
+ [![Gem Version](https://badge.fury.io/rb/shrine-configurable_storage.svg)](https://badge.fury.io/rb/tempfile-fixture)
4
+ [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
2
5
 
3
6
  Register Shrine storages using a key and lazy configure that storage later.
4
7
 
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "shrine/configurable_storage"
3
+ require 'bundler/setup'
4
+ require 'shrine/plugins/configurable_storage'
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -40,7 +40,7 @@ class Shrine
40
40
  attr_accessor :configuration
41
41
  end
42
42
 
43
- class StorageNotConfigured < RuntimeError
43
+ class StorageNotConfigured < ::Shrine::Error
44
44
  end
45
45
 
46
46
  module ClassMethods
@@ -1,4 +1,3 @@
1
-
2
1
  # frozen_string_literal: true
3
2
 
4
3
  lib = File.expand_path('lib', __dir__)
@@ -6,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
5
 
7
6
  Gem::Specification.new do |spec|
8
7
  spec.name = 'shrine-configurable_storage'
9
- spec.version = '0.1.0'
8
+ spec.version = '0.1.1'
10
9
  spec.authors = ['Derk-Jan Karrenbeld']
11
10
  spec.email = ['derk-jan+github@karrenbeld.info']
12
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-configurable_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld