paltrow 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +8 -1
- data/bin/rake +29 -0
- data/bin/test +4 -0
- data/lib/paltrow/rendering/rails/stream.rb +1 -1
- data/lib/paltrow/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 860d1e94cc92f6ba792b21639f480fa794d81c00c1fa90fba11baf6019f1eed6
|
4
|
+
data.tar.gz: 95b0e6f65da96112db2ffef764439847b8fabe0aa448fae933e4e00bee90e111
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2648e15998c6c25b6eb191c67596b3a2bb0436d0ca30467ce99d5c7a569ff576abe3f57de15b5f883b154b956c0a1071b3e9529e3312cad25ae50023359f46e
|
7
|
+
data.tar.gz: 93584a6025f16f87ee7296bd71147e78b64c0399b8f5786f3812115c756224ebd538414a755a6a8fd645146f9841f6802f56a82409661db2fb23a8f22c8c818f
|
data/Gemfile.lock
CHANGED
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 `
|
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
@@ -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
|
62
|
+
.each_chunk { |chunk| handler.response.stream.write(chunk) }
|
63
63
|
ensure
|
64
64
|
handler.response.stream.close
|
65
65
|
end
|
data/lib/paltrow/version.rb
CHANGED
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.
|
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-
|
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
|