mkbrut 0.1.0 → 0.1.2

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: 8d93e08e9f662468dd47a79c11c2afa36144905bfdf52e8fe54d209f99940557
4
- data.tar.gz: 5911070cfefab0d42f46d19c5676bdce3f6bc0c63d386adab09d1995778f274c
3
+ metadata.gz: 79c6550f995938f5dcd836ee41834c0e29535d287c8a5ae3bd073bda2e480b5c
4
+ data.tar.gz: 7d0c2fde91e439edde97f336d58677a3e7469bd34643064dd3412a19dee81f23
5
5
  SHA512:
6
- metadata.gz: efae7e39b7ebe46371308cd83098d26a0ac12c637e76988b37ccc43c4271b58d74a1575f52ee451e821a3b410b2dad268807bafac5d7797aa99d6a4c63705e88
7
- data.tar.gz: 8ec79d1512d8552e72e86534f72cd9750c3fc236a3224a98b195b062f1fffa90ad56eaafd5f2d0b3a6aa877296dfe6674a212fb76bbd125a43ab1d475e81df1d
6
+ metadata.gz: 5692425f5099500e822d0df24f94731996625ec763dc4b33e6a8787a740df08ba996bffdc1b8657e717a72bdf6235fa7475fdc351a602145bc0fe91d0b6c178c
7
+ data.tar.gz: cc2c1b62033c24bf1839881085f85ea40577e8f7d92b3e87f620d3a4e8f3321350eb5ecdde2cf3f5d3ba965c58ab802c21060b08262aec84b6f023f0bea1f483
@@ -10,7 +10,10 @@ class MKBrut::Ops::AppendToFile < MKBrut::Ops::BaseOp
10
10
  return
11
11
  end
12
12
 
13
- File.open(@file, "a") do |file|
13
+ contents = File.read(@file)
14
+ File.open(@file, "w") do |file|
15
+ file.puts contents
16
+ file.puts "\n"
14
17
  file.puts @content
15
18
  end
16
19
  end
@@ -1,3 +1,3 @@
1
1
  module MKBrut
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
data/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "mkbrut",
3
+ "version": "1.0.0-irrelevant",
4
+ "description": "`mkbrut` is how you go from zero to having a Brut app where you can start working.",
5
+ "author": "Irrelevant",
6
+ "license": "Irrelevant",
7
+ "devDependencies": {
8
+ "brut-css": "^0.0.1",
9
+ "brut-js": "^0.0.21"
10
+ }
11
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mkbrut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Copeland
@@ -46,7 +46,6 @@ executables:
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
- - README.md
50
49
  - exe/mkbrut
51
50
  - lib/mkbrut.rb
52
51
  - lib/mkbrut/app.rb
@@ -80,6 +79,7 @@ files:
80
79
  - lib/mkbrut/segments/sidekiq.rb
81
80
  - lib/mkbrut/version.rb
82
81
  - lib/mkbrut/versions.rb
82
+ - package.json
83
83
  - templates/Base/Dockerfile.dx
84
84
  - templates/Base/Gemfile.erb
85
85
  - templates/Base/Procfile.development
data/README.md DELETED
@@ -1,51 +0,0 @@
1
- # mkbrut - Create a new Brut App
2
-
3
- `mkbrut` is how you go from zero to having a Brut app where you can start working.
4
-
5
- ## Installation
6
-
7
- TBD
8
-
9
- ## Usage
10
-
11
- ```
12
- mkbrut my-new-app
13
- ```
14
-
15
- This will create a new Brut app, including a development environment. The app will
16
- have some demo features to show you around the framework.
17
-
18
- To get a bare bones new app, use `--no-demo`:
19
-
20
- ```
21
- mkbrut my-new-app --no-demo
22
- ```
23
-
24
- You can also customize some aspects of your app once start to have an opinion about
25
- it:
26
-
27
-
28
- ```
29
- mkbrut --app-id=new-app \
30
- --organization=cyberdyne \
31
- --prefix=ap \
32
- my-new-app
33
- ```
34
-
35
- * `--app-id` The identifier for your app, suitable for use as a hostname or other internet-safe identifier.
36
- * `--organization` This is your organization name you might use on GitHub, DockerHub, or WhateverHub.
37
- * `--prefix` The two-character prefix for all external IDs of your database tables that opt into external IDs as well as any autonomous custom elements you might make
38
-
39
- ## Developing
40
-
41
- `mkbrut` has a Docker-based dev environment:
42
-
43
- 1. Install Docker
44
- 2. `dx/build`
45
- 3. `dx/start`
46
- 4. Open a new terminal:
47
- 1. `dx/exec bash`
48
- 2. You are now inside a running Docker container:
49
- 1. `bin/setup`
50
- 2. `bundle exec exe/mkbrut -h`
51
-