learn_create 0.0.19 → 0.0.20
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1f47a85a67e6b8e16fe82988cb0ac9b205b929bcf7384e91bfada46ec16464e7
|
|
4
|
+
data.tar.gz: 10c4e13c39b9afff44cd41eae1a88b5cf398d0341dd47eb883c5cb69a84d6294
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7a10eaeda1fa9d5f124265f1e0603c3409df843b9552968d72c10db2dd69679d2289f46d93b89cbddb231435643a16c44baa21ac37c3c69902a030da2cf367d
|
|
7
|
+
data.tar.gz: a9aa101910c46c80b229fc86eb788c8fec2fa7e120cc9de53fb5aea3450dff0496cba43dfd23942414ebade8f6f8d9b160952cb0fa23c03adc1c5e9fae8fa4a7
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ This gem is designed to aid in the creation of learn lessons.
|
|
|
7
7
|
Before using `learn_create`, you must install `hub`, GitHub's extended CLI API.
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
|
|
10
|
+
brew install hub
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Once `hub` is installed, you'll need to get it configured before running
|
|
@@ -30,7 +30,7 @@ repository on learn-co-curriculum. In the shell:
|
|
|
30
30
|
Install the `learn_create` gem:
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
|
|
33
|
+
gem install learn_create
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
## Usage
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
"test": "mocha -R mocha-multi --reporter-options spec=-,json=.results.json"
|
|
8
8
|
},
|
|
9
9
|
"author": "flatironschool",
|
|
10
|
-
"license": "
|
|
10
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"babel
|
|
13
|
-
"babel
|
|
14
|
-
"chai": "4.
|
|
15
|
-
"file-system": "2.2.2",
|
|
16
|
-
"jsdom": "9.
|
|
17
|
-
"mocha": "5.2.0",
|
|
12
|
+
"@babel/core": "^7.4.5",
|
|
13
|
+
"@babel/preset-env": "^7.4.5",
|
|
14
|
+
"chai": "^4.2.0",
|
|
15
|
+
"file-system": "^2.2.2",
|
|
16
|
+
"jsdom": "^9.0",
|
|
17
|
+
"mocha": "^5.2.0",
|
|
18
18
|
"mocha-jsdom": "~1.1.0",
|
|
19
|
-
"mocha-multi": "1.0.1"
|
|
19
|
+
"mocha-multi": "^1.0.1"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -3,18 +3,19 @@ global.expect = chai.expect
|
|
|
3
3
|
const fs = require('file-system')
|
|
4
4
|
const jsdom = require('mocha-jsdom')
|
|
5
5
|
const path = require('path')
|
|
6
|
-
const babel = require(
|
|
6
|
+
const babel = require("@babel/core");
|
|
7
|
+
const url = "http://localhost"
|
|
7
8
|
|
|
8
9
|
const html = fs.readFileSync(path.resolve(__dirname, '..', 'index.html'), 'utf-8')
|
|
9
10
|
|
|
10
11
|
const babelResult = babel.transformFileSync(
|
|
11
12
|
path.resolve(__dirname, '..', 'index.js'), {
|
|
12
|
-
presets: ['env']
|
|
13
|
+
presets: ['@babel/env']
|
|
13
14
|
}
|
|
14
15
|
);
|
|
15
16
|
|
|
16
17
|
const src = babelResult.code
|
|
17
18
|
|
|
18
19
|
jsdom({
|
|
19
|
-
html, src
|
|
20
|
+
html, src, url
|
|
20
21
|
});
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: learn_create
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- flatironschool
|
|
@@ -90,8 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
90
90
|
- !ruby/object:Gem::Version
|
|
91
91
|
version: '0'
|
|
92
92
|
requirements: []
|
|
93
|
-
|
|
94
|
-
rubygems_version: 2.7.6
|
|
93
|
+
rubygems_version: 3.0.3
|
|
95
94
|
signing_key:
|
|
96
95
|
specification_version: 4
|
|
97
96
|
summary: learn_create is a tool for creating learn.co lessons on github
|