fishplate 0.1.1 → 0.2.0

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: 03ad7ef782ce2cf90ebd3b194eaec9ec7efbd725265c9658911bac707c8d72a0
4
- data.tar.gz: baf1cdf6dda5ec8f46a7da9e137191077d56cef3c55219c3ab0cc018cc979201
3
+ metadata.gz: ed553368b82c87def4d091de28f03f0c75824ae4370de8a9a77406a9d69819fb
4
+ data.tar.gz: '080a97ee79b689740f67dec3f08f976a44a5e607685d59868b378009c847b452'
5
5
  SHA512:
6
- metadata.gz: c74e675df2bf26f4de15a9a6814c38151322ad4f85e19d8991aaec3644425a27843eccc39035d8790da7671ffef34bfee4f4eb35b311d4e5126144a90db77ce8
7
- data.tar.gz: 8eb56ede08ed26ce43f3e7b291d50dd350479af4d2567c45b22abcb2d2fb2f7c40cf0feb3e019c69d08b48968d579a676d87fea2a5c8f8554d5256250308670f
6
+ metadata.gz: 44f34589f9f640b62fb51f3df8fbd9060f2c981ef9b12cbe5d0c6623670981e6f6c520736f7ac8cfe3603eb64af8b8499158d82885a0bb871314eecf08148904
7
+ data.tar.gz: 998cbc7cb902b1c5691aa487c2ac9e806c73de19aa8cc53ab41554b6e203ebfd19f9efda026b5ede32ff91a5735ed3fdd0de4688df217d6d8aed3d5b065d9f8d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fishplate (0.1.1)
4
+ fishplate (0.2.0)
5
5
  a9n (>= 0.9.1)
6
6
  activemodel
7
7
  activerecord
@@ -12,7 +12,7 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- a9n (0.9.1)
15
+ a9n (0.10.0)
16
16
  activemodel (6.0.0)
17
17
  activesupport (= 6.0.0)
18
18
  activerecord (6.0.0)
@@ -30,9 +30,9 @@ GEM
30
30
  diff-lcs (1.3)
31
31
  i18n (1.7.0)
32
32
  concurrent-ruby (~> 1.0)
33
- jaro_winkler (1.5.3)
33
+ jaro_winkler (1.5.4)
34
34
  method_source (0.9.2)
35
- minitest (5.12.2)
35
+ minitest (5.13.0)
36
36
  parallel (1.18.0)
37
37
  parser (2.6.5.0)
38
38
  ast (~> 2.4.0)
@@ -70,7 +70,7 @@ GEM
70
70
  tzinfo-data (1.2019.3)
71
71
  tzinfo (>= 1.0.0)
72
72
  unicode-display_width (1.6.0)
73
- zeitwerk (2.2.0)
73
+ zeitwerk (2.2.1)
74
74
 
75
75
  PLATFORMS
76
76
  ruby
data/bin/release ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ lib = File.expand_path('../lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'fishplate/version'
6
+
7
+ `bundle && git commit -am "Release #{Fishplate::VERSION}" && bundle exec rake build release`
@@ -0,0 +1,13 @@
1
+ module Fishplate
2
+ class Rack
3
+ def initialize(app)
4
+ @app = app
5
+ end
6
+
7
+ def call(env)
8
+ @app.call(env)
9
+ ensure
10
+ ActiveRecord::Base.clear_active_connections!
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Fishplate
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.2.0".freeze
3
3
  end
data/lib/fishplate.rb CHANGED
@@ -1,10 +1,12 @@
1
- require 'fishplate/version'
2
1
  require 'a9n'
3
2
  require 'active_model'
4
3
  require 'active_record'
5
4
  require 'active_support/all'
6
5
  require 'logger'
7
6
 
7
+ require 'fishplate/version'
8
+ require 'fishplate/rack'
9
+
8
10
  module Fishplate
9
11
  class << self
10
12
  def load_seed
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fishplate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-29 00:00:00.000000000 Z
11
+ date: 2019-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: a9n
@@ -197,12 +197,14 @@ files:
197
197
  - README.md
198
198
  - Rakefile
199
199
  - bin/console
200
+ - bin/release
200
201
  - bin/setup
201
202
  - fishplate.gemspec
202
203
  - fishplate/.gitignore
203
204
  - fishplate/.rspec
204
205
  - fishplate/.travis.yml
205
206
  - lib/fishplate.rb
207
+ - lib/fishplate/rack.rb
206
208
  - lib/fishplate/tasks.rake
207
209
  - lib/fishplate/version.rb
208
210
  homepage: https://github.com/RenoFi/fishplate