paltrow 0.0.3 → 0.0.4

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
  SHA256:
3
- metadata.gz: 8990dbdb7dbf26b7832785e3b08c4f18ef558fcb015b6df9c65d38d9d8b9d96b
4
- data.tar.gz: a2b42d643cd63995284f1931ee9c6a3ffe762b49a6374923a9be7c9468d7ba26
3
+ metadata.gz: 860d1e94cc92f6ba792b21639f480fa794d81c00c1fa90fba11baf6019f1eed6
4
+ data.tar.gz: 95b0e6f65da96112db2ffef764439847b8fabe0aa448fae933e4e00bee90e111
5
5
  SHA512:
6
- metadata.gz: b525b52a3b996019b54e2118112bf433a20ba8252e89c2231e04b8e017184c525659a425fb3a9cd16d874727ecee8b32e6ae17e2ba90c0c967e0e4a9056ada83
7
- data.tar.gz: 8218484ed424fe72342462be06edc9ddb5d409241eeb0e98c96c73e80aaa660675b22e58d29f68983bad42e993bff062816aa12ab2f1d473fc7949f80b12c785
6
+ metadata.gz: d2648e15998c6c25b6eb191c67596b3a2bb0436d0ca30467ce99d5c7a569ff576abe3f57de15b5f883b154b956c0a1071b3e9529e3312cad25ae50023359f46e
7
+ data.tar.gz: 93584a6025f16f87ee7296bd71147e78b64c0399b8f5786f3812115c756224ebd538414a755a6a8fd645146f9841f6802f56a82409661db2fb23a8f22c8c818f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paltrow (0.0.3)
4
+ paltrow (0.0.4)
5
5
  activesupport (~> 6.1.3)
6
6
  dry-monads (~> 1.3)
7
7
  dry-struct (~> 1.4)
data/README.md CHANGED
@@ -24,9 +24,16 @@ Or install it yourself as:
24
24
  * Currently Paltrow only contains `Page` and `View` which can be used to store details of screens to render
25
25
  * More to come!
26
26
 
27
+
28
+ ## Test
29
+
30
+ ```bash
31
+ bin/test
32
+ ```
33
+
27
34
  ## Development
28
35
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
36
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
37
 
31
38
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
39
 
data/bin/rake ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rake' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rake", "rake")
data/bin/test ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ bin/rake
@@ -59,7 +59,7 @@ module Paltrow
59
59
  page
60
60
  .locals
61
61
  .fetch(:content_stream)
62
- .each_chunk { |chunk| handler.response.stream.write(chunk.value!) if chunk.success? }
62
+ .each_chunk { |chunk| handler.response.stream.write(chunk) }
63
63
  ensure
64
64
  handler.response.stream.close
65
65
  end
@@ -1,3 +1,3 @@
1
1
  module Paltrow
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paltrow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Gallagher
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-10 00:00:00.000000000 Z
11
+ date: 2021-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -109,7 +109,9 @@ files:
109
109
  - README.md
110
110
  - Rakefile
111
111
  - bin/console
112
+ - bin/rake
112
113
  - bin/setup
114
+ - bin/test
113
115
  - lib/paltrow.rb
114
116
  - lib/paltrow/message.rb
115
117
  - lib/paltrow/navigating/rails/redirect.rb