frails 0.8.0 → 0.8.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: 98fa123377477094755a4c6fc64a5c36fe5e42c02574c73876f451d28d588438
4
- data.tar.gz: 0e9751e40c879a040351437ec42adec6f6cc73938834ed18790d43cc967f3c14
3
+ metadata.gz: 40e800d031dda8188539dcd2de1a7a39dcb8a8b92febb17f15c17584822d7413
4
+ data.tar.gz: 571f9743b449c15ad36138f304921c8bce4b2749195699378dd63fe51cfca378
5
5
  SHA512:
6
- metadata.gz: 4754ad21e2cbaf8176c0a6fdb2a824bd09789e884d39d798a47bfc0be9f9eed2da1ded0b24db669b1bdf27a666a7b4eff5047a015e4f0435d9755299ba12110a
7
- data.tar.gz: 605eb4d15e7696c303d1d57d7af64a027132b0c02f1dcd0a9e7f9a78c1fff31834f1c8167859fca27d0fdd37cd387b6640bbe77c186151785b6f7e4bbc5c66f3
6
+ metadata.gz: c488c6f79278e55cc8597958119fa9584d62fa3c092886297096601a290103f1b31b3cba2278f0530f54370f36a7cd5e7682e99e1f756344bef26a70fcb00d9b
7
+ data.tar.gz: a870cde84bdc3672353ad26197271159db22eeefa429a027e584babc2eb6499aaf035812adee88e36e2fae3feb28534ad46ea677ed31d7b4045f93ddcd18d5ea
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- frails (0.8.0)
4
+ frails (0.8.1)
5
5
  activesupport (>= 6.0)
6
6
  nokogiri (>= 1.10.4)
7
7
  rack-proxy (>= 0.6.5)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Frails
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1'
5
5
  end
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "frails",
3
- "version": "0.3.0",
3
+ "version": "0.8.1",
4
4
  "description": "A Modern [F]ront End on [Rails] and Webpack",
5
5
  "main": "index.js",
6
6
  "repository": "git@github.com:joelmoss/frails.git",
7
7
  "author": "Joel Moss <joel@developwithstyle.com>",
8
8
  "license": "MIT",
9
+ "files": [
10
+ "package",
11
+ "index.js"
12
+ ],
9
13
  "scripts": {
10
14
  "test": "jest"
11
15
  },
@@ -2,9 +2,9 @@
2
2
 
3
3
  exports[`config config 1`] = `
4
4
  Object {
5
- "absolutePublicPath": "/Users/joelmoss/dev/frails/test/dummy/public/frails",
6
- "appPath": "/Users/joelmoss/dev/frails/test/dummy/app",
5
+ "absolutePublicPath": "/Users/joelmoss/test/dummy/public/frails",
6
+ "appPath": "/Users/joelmoss/test/dummy/app",
7
7
  "publicOutputPath": "frails",
8
- "rootPath": "/Users/joelmoss/dev/frails/test/dummy",
8
+ "rootPath": "/Users/joelmoss/test/dummy",
9
9
  }
10
10
  `;
@@ -1,11 +1,8 @@
1
1
  const spawnSync = require("child_process").spawnSync;
2
2
  const path = require("path");
3
3
 
4
- const isTest = process.env.NODE_ENV === "test";
5
4
  const configFromRails = railsRun("print Frails.config_as_json");
6
- const rootPath = isTest
7
- ? path.join(process.cwd(), "test/dummy")
8
- : process.cwd();
5
+ const rootPath = process.cwd();
9
6
 
10
7
  module.exports = {
11
8
  ...configFromRails,
@@ -20,12 +17,6 @@ module.exports = {
20
17
  };
21
18
 
22
19
  function railsRun(argument) {
23
- if (isTest) {
24
- return {
25
- publicOutputPath: "frails",
26
- };
27
- }
28
-
29
20
  const result = spawnSync("./bin/rails", ["runner", argument]);
30
21
 
31
22
  if (result.status === 0) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Moss
@@ -104,7 +104,6 @@ files:
104
104
  - package/__snapshots__/config.test.js.snap
105
105
  - package/components.js
106
106
  - package/config.js
107
- - package/config.test.js
108
107
  - package/side_load.js
109
108
  - yarn.lock
110
109
  homepage: https://github.com/joelmoss/frails
@@ -1,7 +0,0 @@
1
- import config from "./config";
2
-
3
- describe("config", () => {
4
- test("config", () => {
5
- expect(config).toMatchSnapshot();
6
- });
7
- });