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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 737d13e72af27150bbb8aaca6af04bb12ce0000b
4
- data.tar.gz: 65b2a9313cd468fd5843b6d1f2255b3dcde3a6c4
3
+ metadata.gz: 75d5cfafa6d08de5fd57afdb328273753727ce32
4
+ data.tar.gz: 1c597fa8391cdd3e0f3947259f1b5307c2de9f56
5
5
  SHA512:
6
- metadata.gz: c8a724395f9fc2557482be433c23429905132ffc06f2f12057a67d972acd842b45a15c82d51fdc879455e5d685418109f85b4a2e23e04dba240ec3330038140a
7
- data.tar.gz: cdc89c162aaec26f0eaa0a78a49460e64d6ed7bcb552c7d7152f015f687846ef63cec6eb166e65b878ec75b6db48d40493662504788ea9da79d6746f6471df52
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"
@@ -1,3 +1,3 @@
1
1
  module Writefully
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
3
3
  end
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.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-22 00:00:00.000000000 Z
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