overture 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
  SHA256:
3
- metadata.gz: 67719de8a9681b85fa9a2736febd368c53b2f5ed99650ec57c3997f812a23925
4
- data.tar.gz: 82d3fefb3fb15f4674a8a2bdf8078865df14b86ad5bed0da2d8dc2c90fc4001c
3
+ metadata.gz: 85b9c556dac3cc039cdd56be58c1a834b1a52032fdf5027794cee3bd838f9ac6
4
+ data.tar.gz: 3e5928fb913a9c36a1be54f74a7d492795e269c752d6d94a9f929d2bfb200127
5
5
  SHA512:
6
- metadata.gz: d785fcc8a0fae25165899087c8238a2ed74eb9378fda5a146d35f731d4a20146d52696c4af7cee4365598220777e296a4778a7e40d212b2b78aeccb13e1d10f0
7
- data.tar.gz: 544673208d5782b8623e378800e88649158201368d35af737077bb7151724d9123d150725e74dae43d675b10212390a1b017619fdfbf4c594e5d1e89ac103572
6
+ metadata.gz: 0ce6b06441078b3313c3f48dac8a9ae35194db93fe89b7a678029442184a539e6c97ab0091f0eda3f5305a73a292f42850bfb8fa777f5e1570cef75b0af688df
7
+ data.tar.gz: 39fefad518c71672a137b06d92534e12ef63f724e64feef75f33e7976ffba3cc9db6f04af1d8a8cda757b8fb216c7ed1d77bb3f9505b3add95265e9f5a6ef329
@@ -7,7 +7,7 @@ require 'fileutils'
7
7
  class Parser
8
8
  def self.parse(options = {})
9
9
  opt_parser = OptionParser.new do |opts|
10
- opts.banner = 'Usage: overture-generate migration [options]'
10
+ opts.banner = 'Usage: overture-migration [options]'
11
11
 
12
12
  opts.on '-nNAME', '--name=NAME', 'Migration name' do |n|
13
13
  options[:name] = n
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'interactor'
4
+ require_relative 'interactor/failure'
4
5
 
5
6
  module Overture
6
7
  class Interactor
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Interactor
4
+ class Failure < StandardError
5
+ def initialize(context = nil)
6
+ @context = context
7
+ super(context&.error)
8
+ end
9
+ end
10
+ end
11
+
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Overture
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: overture
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
  - edgarjs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-02 00:00:00.000000000 Z
11
+ date: 2018-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt
@@ -155,6 +155,7 @@ files:
155
155
  - lib/overture.rb
156
156
  - lib/overture/database.rb
157
157
  - lib/overture/interactor.rb
158
+ - lib/overture/interactor/failure.rb
158
159
  - lib/overture/model.rb
159
160
  - lib/overture/password_digester.rb
160
161
  - lib/overture/version.rb