rails-dynamic-rendering 1.0.2 → 1.0.3

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: 4152b7a44a0adfe7a3de6bdd6b80294032b8563aae414f61731a090b56d9cad9
4
- data.tar.gz: f5342b12612912a6263f823b664993240256099e030d71f30212614d0135a740
3
+ metadata.gz: 9617335183616c458dcae55bfe5fc14a2860ac111ab8801ca238c98460a82f1f
4
+ data.tar.gz: 107ff841bb82d83232b27c09395d07ea2c802b4a24bd01daec3103dde7da02b6
5
5
  SHA512:
6
- metadata.gz: 16bc5a458e05d2c09c9a68a4f30a942aa0f8f1f8dc360fa03caaaff3f1434c99d1a86f44a9e765dbb14f4a656c0c74a5bd8afade29fc5670a124779246fddc6f
7
- data.tar.gz: 5f897817125890dbe7848ef1ad02547a643d61a101b756aabf5dbd73cae6d2b19778354cbcf6363db66e715e00d0e9fc6c69e8c38121c25d6e1b29ff37dde0ca
6
+ metadata.gz: ee0572a2924f1f245b4e807eb2c1fcba97e65daeff797f793bd20601f6b0e6fe60beef1828ad551e9961db6648ca4602c625c25878a570024e3b2964a24e27ea
7
+ data.tar.gz: 64f3d8dae3bf05735a1716094596cbf4b738596a4371ba2c4d9031deed6a713bffc58e6b4fb598b18c428fa6b728f6ca6ae6d02c3a33a4e7fd63f8d7a21ab857
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: Continuous Integration
3
+ env:
4
+ SLACK_CHANNEL_ID: C0317P7C9C2
5
+ on:
6
+ push:
7
+ branches-ignore:
8
+ - refs/tags/*_staging
9
+ - refs/tags/*_production
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-18.04
13
+ steps:
14
+ - name: Checkout branch
15
+ uses: actions/checkout@v2
16
+ - name: Extract branch name
17
+ shell: bash
18
+ run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
19
+ id: extract_branch
20
+ - name: Cache gems
21
+ uses: actions/cache@v2
22
+ with:
23
+ path: vendor/bundle
24
+ key: "${{ runner.OS }}-gem-cache-${{ hashFiles('**/*.gemspec')
25
+ }}"
26
+ restore-keys: "${{ runner.OS }}-gem-cache-\n"
27
+ - uses: "cachix/install-nix-action@8d6d5e949675fbadb765c6b1a975047fa5f09b27"
28
+ with:
29
+ extra_nix_config: |
30
+ post-build-hook = /etc/nix/upload-to-cache.sh
31
+ substituters = https://cache.nixos.org/
32
+ trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
33
+ nix_path: nixpkgs=channel:nixos-21.05
34
+ - name: Run CI through nix-shell
35
+ env:
36
+ GEMFURY_DEPLOY_TOKEN: ${{ secrets.GEMFURY_DEPLOY_TOKEN }}
37
+ run: nix-shell --run "chmod 755 ./run_ci.sh && ./run_ci.sh"
38
+ - name: Post to Slack if build fails
39
+ if: failure() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
40
+ || github.ref == 'refs/heads/stable')
41
+ uses: pullreminders/slack-action@a5a262c896a1cc80dcbae59ba95513e2dfb21439
42
+ env:
43
+ SLACK_BOT_TOKEN: "${{ secrets.BELLROY_SLACK_TOKEN }}"
44
+ with:
45
+ args: '{\"channel\":\"${{ env.SLACK_CHANNEL_ID }}\",\"text\":\"* ${{ github.repository }} BUILD
46
+ FAILURE*\", \"attachments\": [{ \"fallback\": \"Failure summary\", \"color\":
47
+ \"#ff0000\", \"fields\": [{\"title\": \"Branch\", \"value\":\"${{ steps.extract_branch.outputs.branch
48
+ }}\"}, {\"title\": \"Who broke it\", \"value\":\"${{ github.actor }}\"},
49
+ { \"title\": \"Build output\", \"value\": \"https://github.com/${{ github.repository
50
+ }}/commit/${{ github.sha }}/checks\", \"short\": false }]}]}'
data/.gitignore CHANGED
@@ -13,10 +13,11 @@
13
13
  # rspec failure tracking
14
14
  .rspec_status
15
15
 
16
- /shell.nix
17
16
  /tags
18
17
 
19
18
  *.log
20
19
  .DS_Store
21
20
 
22
21
  .ruby-gemset
22
+ .direnv
23
+ .envrc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 1.0.3
2
+
3
+ * Pass user-agent through to Puppeteer so that async requests are identified as being made from the original requestor.
4
+
1
5
  1.0.2
2
6
 
3
7
  * Switch user-agent check from String#match to Regexp#match
data/Gemfile CHANGED
@@ -9,7 +9,6 @@ group :development, :test do
9
9
  gem 'pry-byebug'
10
10
  gem 'rb-fsevent', require: false
11
11
  gem 'rb-readline'
12
- gem 'reek'
13
12
  gem 'rails', '>= 6.0.0'
14
13
  gem 'rspec'
15
14
  gem 'rubocop-rspec'
@@ -17,7 +16,6 @@ group :development, :test do
17
16
  gem 'shoulda-matchers', require: false
18
17
  gem 'sqlite3'
19
18
  gem 'stackprof'
20
- gem 'timecop'
21
19
  end
22
20
 
23
21
  group :test do
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ **N.B. The Bellroy technology team are transitioning away from Ruby as their primary programming language, and will not longer actively update this repository. Contact us if you'd like to take over as the primary maintainer.**
2
+
1
3
  ![dynamic-rendering-logo](https://user-images.githubusercontent.com/2643026/94681334-28e48f80-031b-11eb-8dd5-010e6e23500c.png)
2
4
 
3
5
  # Dynamic Rendering [![Gem Version](https://badge.fury.io/rb/rails-dynamic-rendering.svg)](https://badge.fury.io/rb/rails-dynamic-rendering) ![CI Badge](https://github.com/tricycle/rails-dynamic-rendering/workflows/RSpec%20Test%20Suite/badge.svg)
@@ -18,7 +18,7 @@ module DynamicRendering
18
18
  log_level,
19
19
  <<~TEXT
20
20
  [Dynamic rendering 🔍 ]:
21
- • URL: #{request.original_url}"
21
+ • URL: #{request.original_url}
22
22
  • User-Agent: #{request.user_agent}
23
23
  • Viewport: #{dynamic_rendering_viewport.inspect}
24
24
  TEXT
@@ -27,7 +27,8 @@ module DynamicRendering
27
27
  response.body = HtmlRenderer.new(
28
28
  response.body,
29
29
  dynamic_rendering_viewport,
30
- request.original_url
30
+ request.original_url,
31
+ request.user_agent
31
32
  ).to_s
32
33
  end
33
34
  end
@@ -62,11 +63,12 @@ module DynamicRendering
62
63
  class HtmlRenderer
63
64
  DEFAULT_OPTIONS = { 'waitUntil' => 'networkidle2' }
64
65
 
65
- def initialize(original_response_body, viewport, original_url, options = DEFAULT_OPTIONS)
66
+ def initialize(original_response_body, viewport, original_url, original_user_agent, options = DEFAULT_OPTIONS)
66
67
  @original_response_body = original_response_body
67
68
  @viewport = viewport
68
69
  @original_url = original_url
69
70
  @options = options
71
+ @original_user_agent = original_user_agent
70
72
  end
71
73
 
72
74
  def to_s
@@ -81,7 +83,8 @@ module DynamicRendering
81
83
  response_body_for_processor,
82
84
  @options.merge(
83
85
  'displayUrl' => @original_url,
84
- viewport: @viewport
86
+ viewport: @viewport,
87
+ userAgent: @original_user_agent
85
88
  )
86
89
  )
87
90
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DynamicRendering
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
  end
data/nix/sources.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "nixpkgs": {
3
+ "branch": "nixos-21.05",
4
+ "description": "Nix packages collection",
5
+ "homepage": "https://github.com/NixOS/nixpkgs",
6
+ "owner": "NixOS",
7
+ "repo": "nixpkgs",
8
+ "rev": "e85f0175e3effe9ba191d66c09e8f1b7d6362d5e",
9
+ "sha256": "1qr2hmymbzwj8jrz6smcgc04scgwp2v5070x22k4fvh261g1n4zw",
10
+ "type": "tarball",
11
+ "url": "https://github.com/NixOS/nixpkgs/archive/e85f0175e3effe9ba191d66c09e8f1b7d6362d5e.tar.gz",
12
+ "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
13
+ }
14
+ }
data/nix/sources.nix ADDED
@@ -0,0 +1,174 @@
1
+ # This file has been generated by Niv.
2
+
3
+ let
4
+
5
+ #
6
+ # The fetchers. fetch_<type> fetches specs of type <type>.
7
+ #
8
+
9
+ fetch_file = pkgs: name: spec:
10
+ let
11
+ name' = sanitizeName name + "-src";
12
+ in
13
+ if spec.builtin or true then
14
+ builtins_fetchurl { inherit (spec) url sha256; name = name'; }
15
+ else
16
+ pkgs.fetchurl { inherit (spec) url sha256; name = name'; };
17
+
18
+ fetch_tarball = pkgs: name: spec:
19
+ let
20
+ name' = sanitizeName name + "-src";
21
+ in
22
+ if spec.builtin or true then
23
+ builtins_fetchTarball { name = name'; inherit (spec) url sha256; }
24
+ else
25
+ pkgs.fetchzip { name = name'; inherit (spec) url sha256; };
26
+
27
+ fetch_git = name: spec:
28
+ let
29
+ ref =
30
+ if spec ? ref then spec.ref else
31
+ if spec ? branch then "refs/heads/${spec.branch}" else
32
+ if spec ? tag then "refs/tags/${spec.tag}" else
33
+ abort "In git source '${name}': Please specify `ref`, `tag` or `branch`!";
34
+ in
35
+ builtins.fetchGit { url = spec.repo; inherit (spec) rev; inherit ref; };
36
+
37
+ fetch_local = spec: spec.path;
38
+
39
+ fetch_builtin-tarball = name: throw
40
+ ''[${name}] The niv type "builtin-tarball" is deprecated. You should instead use `builtin = true`.
41
+ $ niv modify ${name} -a type=tarball -a builtin=true'';
42
+
43
+ fetch_builtin-url = name: throw
44
+ ''[${name}] The niv type "builtin-url" will soon be deprecated. You should instead use `builtin = true`.
45
+ $ niv modify ${name} -a type=file -a builtin=true'';
46
+
47
+ #
48
+ # Various helpers
49
+ #
50
+
51
+ # https://github.com/NixOS/nixpkgs/pull/83241/files#diff-c6f540a4f3bfa4b0e8b6bafd4cd54e8bR695
52
+ sanitizeName = name:
53
+ (
54
+ concatMapStrings (s: if builtins.isList s then "-" else s)
55
+ (
56
+ builtins.split "[^[:alnum:]+._?=-]+"
57
+ ((x: builtins.elemAt (builtins.match "\\.*(.*)" x) 0) name)
58
+ )
59
+ );
60
+
61
+ # The set of packages used when specs are fetched using non-builtins.
62
+ mkPkgs = sources: system:
63
+ let
64
+ sourcesNixpkgs =
65
+ import (builtins_fetchTarball { inherit (sources.nixpkgs) url sha256; }) { inherit system; };
66
+ hasNixpkgsPath = builtins.any (x: x.prefix == "nixpkgs") builtins.nixPath;
67
+ hasThisAsNixpkgsPath = <nixpkgs> == ./.;
68
+ in
69
+ if builtins.hasAttr "nixpkgs" sources
70
+ then sourcesNixpkgs
71
+ else if hasNixpkgsPath && ! hasThisAsNixpkgsPath then
72
+ import <nixpkgs> {}
73
+ else
74
+ abort
75
+ ''
76
+ Please specify either <nixpkgs> (through -I or NIX_PATH=nixpkgs=...) or
77
+ add a package called "nixpkgs" to your sources.json.
78
+ '';
79
+
80
+ # The actual fetching function.
81
+ fetch = pkgs: name: spec:
82
+
83
+ if ! builtins.hasAttr "type" spec then
84
+ abort "ERROR: niv spec ${name} does not have a 'type' attribute"
85
+ else if spec.type == "file" then fetch_file pkgs name spec
86
+ else if spec.type == "tarball" then fetch_tarball pkgs name spec
87
+ else if spec.type == "git" then fetch_git name spec
88
+ else if spec.type == "local" then fetch_local spec
89
+ else if spec.type == "builtin-tarball" then fetch_builtin-tarball name
90
+ else if spec.type == "builtin-url" then fetch_builtin-url name
91
+ else
92
+ abort "ERROR: niv spec ${name} has unknown type ${builtins.toJSON spec.type}";
93
+
94
+ # If the environment variable NIV_OVERRIDE_${name} is set, then use
95
+ # the path directly as opposed to the fetched source.
96
+ replace = name: drv:
97
+ let
98
+ saneName = stringAsChars (c: if isNull (builtins.match "[a-zA-Z0-9]" c) then "_" else c) name;
99
+ ersatz = builtins.getEnv "NIV_OVERRIDE_${saneName}";
100
+ in
101
+ if ersatz == "" then drv else
102
+ # this turns the string into an actual Nix path (for both absolute and
103
+ # relative paths)
104
+ if builtins.substring 0 1 ersatz == "/" then /. + ersatz else /. + builtins.getEnv "PWD" + "/${ersatz}";
105
+
106
+ # Ports of functions for older nix versions
107
+
108
+ # a Nix version of mapAttrs if the built-in doesn't exist
109
+ mapAttrs = builtins.mapAttrs or (
110
+ f: set: with builtins;
111
+ listToAttrs (map (attr: { name = attr; value = f attr set.${attr}; }) (attrNames set))
112
+ );
113
+
114
+ # https://github.com/NixOS/nixpkgs/blob/0258808f5744ca980b9a1f24fe0b1e6f0fecee9c/lib/lists.nix#L295
115
+ range = first: last: if first > last then [] else builtins.genList (n: first + n) (last - first + 1);
116
+
117
+ # https://github.com/NixOS/nixpkgs/blob/0258808f5744ca980b9a1f24fe0b1e6f0fecee9c/lib/strings.nix#L257
118
+ stringToCharacters = s: map (p: builtins.substring p 1 s) (range 0 (builtins.stringLength s - 1));
119
+
120
+ # https://github.com/NixOS/nixpkgs/blob/0258808f5744ca980b9a1f24fe0b1e6f0fecee9c/lib/strings.nix#L269
121
+ stringAsChars = f: s: concatStrings (map f (stringToCharacters s));
122
+ concatMapStrings = f: list: concatStrings (map f list);
123
+ concatStrings = builtins.concatStringsSep "";
124
+
125
+ # https://github.com/NixOS/nixpkgs/blob/8a9f58a375c401b96da862d969f66429def1d118/lib/attrsets.nix#L331
126
+ optionalAttrs = cond: as: if cond then as else {};
127
+
128
+ # fetchTarball version that is compatible between all the versions of Nix
129
+ builtins_fetchTarball = { url, name ? null, sha256 }@attrs:
130
+ let
131
+ inherit (builtins) lessThan nixVersion fetchTarball;
132
+ in
133
+ if lessThan nixVersion "1.12" then
134
+ fetchTarball ({ inherit url; } // (optionalAttrs (!isNull name) { inherit name; }))
135
+ else
136
+ fetchTarball attrs;
137
+
138
+ # fetchurl version that is compatible between all the versions of Nix
139
+ builtins_fetchurl = { url, name ? null, sha256 }@attrs:
140
+ let
141
+ inherit (builtins) lessThan nixVersion fetchurl;
142
+ in
143
+ if lessThan nixVersion "1.12" then
144
+ fetchurl ({ inherit url; } // (optionalAttrs (!isNull name) { inherit name; }))
145
+ else
146
+ fetchurl attrs;
147
+
148
+ # Create the final "sources" from the config
149
+ mkSources = config:
150
+ mapAttrs (
151
+ name: spec:
152
+ if builtins.hasAttr "outPath" spec
153
+ then abort
154
+ "The values in sources.json should not have an 'outPath' attribute"
155
+ else
156
+ spec // { outPath = replace name (fetch config.pkgs name spec); }
157
+ ) config.sources;
158
+
159
+ # The "config" used by the fetchers
160
+ mkConfig =
161
+ { sourcesFile ? if builtins.pathExists ./sources.json then ./sources.json else null
162
+ , sources ? if isNull sourcesFile then {} else builtins.fromJSON (builtins.readFile sourcesFile)
163
+ , system ? builtins.currentSystem
164
+ , pkgs ? mkPkgs sources system
165
+ }: rec {
166
+ # The sources, i.e. the attribute set of spec name to spec
167
+ inherit sources;
168
+
169
+ # The "pkgs" (evaluated nixpkgs) to use for e.g. non-builtin fetchers
170
+ inherit pkgs;
171
+ };
172
+
173
+ in
174
+ mkSources (mkConfig {}) // { __functor = _: settings: mkSources (mkConfig settings); }
data/run_ci.sh ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+ rm -f Gemfile.lock
4
+ bundle config gem.fury.io $GEMFURY_DEPLOY_TOKEN
5
+ bundle install
6
+ METRICS=1 bundle exec rspec spec
data/shell.nix ADDED
@@ -0,0 +1,21 @@
1
+ { sources ? import ./nix/sources.nix }:
2
+ let
3
+ nixpkgs = import sources.nixpkgs { };
4
+ in
5
+ nixpkgs.mkShell {
6
+ name = "bellroy-gem-env";
7
+ buildInputs = with nixpkgs; [
8
+ bundler
9
+ libnotify
10
+ niv
11
+ pkg-config
12
+ readline
13
+ ruby_2_7
14
+ sqlite
15
+ zlib
16
+ ]
17
+ ++ (if stdenv.hostPlatform.isDarwin then [ libiconv darwin.apple_sdk.frameworks.CoreServices ] else [ ]);
18
+ shellHook = ''
19
+ bundle config --local path "$PWD/vendor/bundle"
20
+ '';
21
+ }
data/yarn.lock CHANGED
@@ -20,9 +20,9 @@ agent-base@5:
20
20
  integrity sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g==
21
21
 
22
22
  balanced-match@^1.0.0:
23
- version "1.0.0"
24
- resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
25
- integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
23
+ version "1.0.2"
24
+ resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
25
+ integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
26
26
 
27
27
  base64-js@^1.0.2:
28
28
  version "1.3.1"
@@ -67,7 +67,7 @@ chownr@^1.1.1:
67
67
  concat-map@0.0.1:
68
68
  version "0.0.1"
69
69
  resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
70
- integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
70
+ integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
71
71
 
72
72
  debug@4, debug@^4.1.0, debug@^4.1.1:
73
73
  version "4.2.0"
@@ -177,9 +177,9 @@ locate-path@^5.0.0:
177
177
  p-locate "^4.1.0"
178
178
 
179
179
  minimatch@^3.0.4:
180
- version "3.0.4"
181
- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
182
- integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
180
+ version "3.1.2"
181
+ resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
182
+ integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
183
183
  dependencies:
184
184
  brace-expansion "^1.1.7"
185
185
 
@@ -349,9 +349,9 @@ wrappy@1:
349
349
  integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
350
350
 
351
351
  ws@^7.2.3:
352
- version "7.3.1"
353
- resolved "https://registry.yarnpkg.com/ws/-/ws-7.3.1.tgz#d0547bf67f7ce4f12a72dfe31262c68d7dc551c8"
354
- integrity sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==
352
+ version "7.4.6"
353
+ resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c"
354
+ integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==
355
355
 
356
356
  yauzl@^2.10.0:
357
357
  version "2.10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-dynamic-rendering
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Giles
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-26 00:00:00.000000000 Z
11
+ date: 1980-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grover
@@ -129,10 +129,9 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
- - ".github/workflows/rspec.yml"
132
+ - ".github/workflows/ci.yml"
133
133
  - ".gitignore"
134
134
  - ".rspec"
135
- - ".ruby-version"
136
135
  - CHANGELOG.md
137
136
  - Gemfile
138
137
  - LICENSE.txt
@@ -143,8 +142,12 @@ files:
143
142
  - lib/dynamic_rendering/acts_as_dynamically_renderable.rb
144
143
  - lib/dynamic_rendering/version.rb
145
144
  - lib/rails-dynamic-rendering.rb
145
+ - nix/sources.json
146
+ - nix/sources.nix
146
147
  - package.json
147
148
  - rails-dynamic-rendering.gemspec
149
+ - run_ci.sh
150
+ - shell.nix
148
151
  - yarn.lock
149
152
  homepage: https://github.com/tricycle/rails-dynamic-rendering
150
153
  licenses:
@@ -165,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
168
  - !ruby/object:Gem::Version
166
169
  version: '0'
167
170
  requirements: []
168
- rubygems_version: 3.1.2
171
+ rubygems_version: 3.2.16
169
172
  signing_key:
170
173
  specification_version: 4
171
174
  summary: Puppeteer based dynamic rendering for Rails applications
@@ -1,35 +0,0 @@
1
- name: RSpec Test Suite
2
-
3
- on: [push]
4
-
5
- jobs:
6
- build:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - name: Checkout branch
10
- uses: actions/checkout@v1
11
- - name: Set up Ruby
12
- uses: actions/setup-ruby@v1
13
- with:
14
- ruby-version: 2.6.6
15
- - name: Set up Node
16
- uses: actions/setup-node@v1
17
- with:
18
- node-version: 12.18.3
19
- - name: Cache node modules
20
- uses: actions/cache@v2
21
- with:
22
- path: node_modules
23
- key: ${{ runner.OS }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}${{ hashFiles('**/package.json')
24
- }}"
25
- restore-keys: "${{ runner.OS }}-yarn-cache-\n"
26
- - name: Install system packages
27
- run: |
28
- sudo apt-get install libsqlite3-dev
29
- command -v bundler || gem install bundler
30
- - name: Install gems
31
- run: bundle install --jobs $(nproc) --retry 3
32
- - name: Install Yarn packages
33
- run: yarn install
34
- - name: Run RSpec test suite
35
- run: bundle exec rspec spec
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.6.6