writefully 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/wf-app +16 -0
- data/lib/template.rb +16 -0
- data/lib/writefully/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75d5cfafa6d08de5fd57afdb328273753727ce32
|
4
|
+
data.tar.gz: 1c597fa8391cdd3e0f3947259f1b5307c2de9f56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a0eb8982aa9d553886f521cb139895936b6ab91a40deb2e3ad5dca97985e3fd9c4a405fd7c1255bf8785eea6b12018167216e545879f050794c5674ae2377ce
|
7
|
+
data.tar.gz: 660181bbc1bb6836982e759f2b005e9e679cc0c50ceccf80e7e0e5e41fb5e850c4ba335a342547f2d761ca66d3b3f15388f4c15ae6dd3f6abc977d66ba164f2e
|
data/bin/wf-app
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'thor'
|
4
|
+
|
5
|
+
module Writefully
|
6
|
+
class Builder < Thor
|
7
|
+
desc "new", "creates a new writefully app"
|
8
|
+
TEMPLATE_PATH = File.dirname(__FILE__) + "/../lib/template.rb"
|
9
|
+
|
10
|
+
def new name
|
11
|
+
system "rails new #{name} -m #{TEMPLATE_PATH} -d postgresql"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
Writefully::Builder.start(ARGV)
|
data/lib/template.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
gem "writefully"
|
2
|
+
|
3
|
+
inside app_name do
|
4
|
+
run "bundle install"
|
5
|
+
run "bundle binstubs writefully"
|
6
|
+
end
|
7
|
+
|
8
|
+
rake "writefully:install:migrations"
|
9
|
+
|
10
|
+
generate :model, "Post", "--skip-migration --parent=writefully/post"
|
11
|
+
|
12
|
+
route "root to: 'posts#index'"
|
13
|
+
route "resources :posts, only: [:index, :show]"
|
14
|
+
route "mount Writefully::Engine, at: '/writefully'"
|
15
|
+
|
16
|
+
generate :controller, "posts"
|
data/lib/writefully/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: writefully
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zack Siri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -352,6 +352,7 @@ email:
|
|
352
352
|
executables:
|
353
353
|
- writefully
|
354
354
|
- wf-write
|
355
|
+
- wf-app
|
355
356
|
extensions: []
|
356
357
|
extra_rdoc_files: []
|
357
358
|
files:
|
@@ -421,6 +422,7 @@ files:
|
|
421
422
|
- app/views/writefully/sites/show/_processing.html.erb
|
422
423
|
- app/views/writefully/sites/show/_tabs.html.erb
|
423
424
|
- bin/rails
|
425
|
+
- bin/wf-app
|
424
426
|
- bin/wf-write
|
425
427
|
- bin/writefully
|
426
428
|
- config/routes.rb
|
@@ -433,6 +435,7 @@ files:
|
|
433
435
|
- lib/sample/README.md
|
434
436
|
- lib/sample/meta.yml
|
435
437
|
- lib/sample/writefully.png
|
438
|
+
- lib/template.rb
|
436
439
|
- lib/writefully.rb
|
437
440
|
- lib/writefully/asset.rb
|
438
441
|
- lib/writefully/cli.rb
|