mumuki-gobstones-code-runner 0.11.1
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 +7 -0
- data/README.md +77 -0
- data/Rakefile +32 -0
- data/app/assets/htmls/gobstones-code-runner.html +20299 -0
- data/app/assets/htmls/vendor/polymer-micro.html +827 -0
- data/app/assets/htmls/vendor/polymer-mini.html +2260 -0
- data/app/assets/htmls/vendor/polymer.html +5580 -0
- data/app/assets/javascripts/vendor/webcomponents-lite.min.js +12 -0
- data/lib/gobstones/code-runner/version.rb +5 -0
- data/lib/gobstones/code-runner.rb +14 -0
- metadata +100 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 848811484067b95ead3d6792b1420ad3f593c83eecb172edd133b2c1b5402a9a
|
|
4
|
+
data.tar.gz: 8616791cf728c5cdfd946bc67f2c9ff92aa28f20e4d03f8c31aa4e3bdba750d1
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: aeeebaa95c18178e6b9bc23a3b4bf6472815c90f1409ad516f8e41b317af9c475f12c9261f887782407e4d644dd2323d7d4df3897d6ebdf1226232c3c4aaa619
|
|
7
|
+
data.tar.gz: e7cd7d92ddad4d183c006365645996a0ffade8cfeda8a634b94ca343d321d9d0b760309b01330cf6f1a0aba2ee5104eea0700e4caa3c7b8e8e9446eb378f6f65
|
data/README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# \<gobstones-code-runner\>
|
|
2
|
+
|
|
3
|
+
Element providing code runner interface for Gobstones Web
|
|
4
|
+
|
|
5
|
+
## Install Development Environment
|
|
6
|
+
|
|
7
|
+
First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) and Bower installed.
|
|
8
|
+
|
|
9
|
+
```Bash
|
|
10
|
+
$ npm install -g bower
|
|
11
|
+
$ npm install -g polymer-cli
|
|
12
|
+
$ npm install -g vulcanize
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Then, run `bower install`
|
|
17
|
+
|
|
18
|
+
## Viewing Your Application
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
$ polymer serve
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Building Your Application
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
$ polymer build
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
This will create a `dist/gobstones-code-runner.html` file.
|
|
31
|
+
|
|
32
|
+
## Running Tests
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
$ polymer test
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally.
|
|
39
|
+
|
|
40
|
+
## Deploy Demo to gobstones.github.io/gobstones-code-runner
|
|
41
|
+
|
|
42
|
+
Just create a folder and run gp.sh with parameters:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
mkdir temp
|
|
46
|
+
cd temp
|
|
47
|
+
../gp.sh gobstones gobstones-code-runner dev
|
|
48
|
+
cd ..
|
|
49
|
+
rm -rf temp
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
or simply execute ./deploy-gh-pages.sh
|
|
53
|
+
|
|
54
|
+
## Gem wrapper
|
|
55
|
+
|
|
56
|
+
This module can also be deployed a ruby gem. `gobstones-code-runner` works with Ruby >= 2.3.1
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
cd gem
|
|
60
|
+
rake wrapper:wrap
|
|
61
|
+
bundle install
|
|
62
|
+
bundle exec rspec
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Building
|
|
66
|
+
|
|
67
|
+
This command will build a minified .html file with all included:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
./build.sh
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Tagging and releasing
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
./tag.sh
|
|
77
|
+
```
|
data/Rakefile
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
|
2
|
+
require "rspec/core/rake_task"
|
|
3
|
+
|
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
5
|
+
|
|
6
|
+
task :default => :spec
|
|
7
|
+
|
|
8
|
+
namespace :wrapper do
|
|
9
|
+
desc 'Wrap styles assets into this gem'
|
|
10
|
+
task wrap: :clean do
|
|
11
|
+
# readme
|
|
12
|
+
cp_r '../README.md', 'README.md'
|
|
13
|
+
|
|
14
|
+
# gobstones-code-runner
|
|
15
|
+
cp_r '../dist/gobstones-code-runner.html', 'app/assets/htmls'
|
|
16
|
+
|
|
17
|
+
# polymer
|
|
18
|
+
cp_r '../bower_components/polymer/polymer.html', 'app/assets/htmls/vendor'
|
|
19
|
+
cp_r '../bower_components/polymer/polymer-mini.html', 'app/assets/htmls/vendor'
|
|
20
|
+
cp_r '../bower_components/polymer/polymer-micro.html', 'app/assets/htmls/vendor'
|
|
21
|
+
|
|
22
|
+
# webcomponents
|
|
23
|
+
cp_r '../bower_components/webcomponentsjs/webcomponents-lite.min.js', 'app/assets/javascripts/vendor'
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
task :clean do
|
|
27
|
+
rm_rf 'app'
|
|
28
|
+
mkdir_p 'app/assets/htmls'
|
|
29
|
+
mkdir_p 'app/assets/htmls/vendor'
|
|
30
|
+
mkdir_p 'app/assets/javascripts/vendor'
|
|
31
|
+
end
|
|
32
|
+
end
|