frankly 0.2.4 → 0.2.5
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 +4 -4
- data/README.md +1 -0
- data/lib/frankly/cli.rb +3 -0
- data/lib/frankly/version.rb +1 -1
- data/templates/README.md.tt +1 -0
- data/templates/bin/console +14 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55072e2189a10b13cd3beca25cc58d0aed428099f250d2533f3690e9ac44e7d0
|
|
4
|
+
data.tar.gz: 346209309426c1496898246056fcebbd23a07820947ec060982a1049b5017805
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e022caa9ec66a23734a3f6577dbf38220143ff2c74822ad2541c9f775458b06b84cefbe7ccb6b893d549310af4307f037916506e10da73762139a00fe92bcc8a
|
|
7
|
+
data.tar.gz: 2b89f270e32860808ead382424c2b2b670531bf1a3e327526b4a2447348729ef6d4a72a2847906456bc0cfebbe72e9e8575407528a4a054e717e201a598f0126
|
data/README.md
CHANGED
data/lib/frankly/cli.rb
CHANGED
|
@@ -52,6 +52,7 @@ module Frankly
|
|
|
52
52
|
copy_file "config/database.rb", "#{@app_path}/config/database.rb"
|
|
53
53
|
copy_file "config/environment.rb", "#{@app_path}/config/environment.rb"
|
|
54
54
|
copy_file "db/seeds.rb", "#{@app_path}/db/seeds.rb"
|
|
55
|
+
copy_file "bin/console", "#{@app_path}/bin/console"
|
|
55
56
|
template "README.md.tt", "#{@app_path}/README.md"
|
|
56
57
|
template "Gemfile.tt", "#{@app_path}/Gemfile"
|
|
57
58
|
template "gitignore.tt", "#{@app_path}/.gitignore"
|
|
@@ -61,6 +62,7 @@ module Frankly
|
|
|
61
62
|
copy_file "public/css/application.css", "#{@app_path}/public/css/application.css"
|
|
62
63
|
copy_file "public/js/application.js", "#{@app_path}/public/js/application.js"
|
|
63
64
|
copy_file "public/favicon.ico", "#{@app_path}/public/favicon.ico"
|
|
65
|
+
chmod "#{@app_path}/bin/console", 0o755
|
|
64
66
|
end
|
|
65
67
|
|
|
66
68
|
def initialize_git_repo
|
|
@@ -80,6 +82,7 @@ module Frankly
|
|
|
80
82
|
say " cd #{@app_path}"
|
|
81
83
|
say " bundle install#{options[:bundle] ? ' (already run because you passed --bundle)' : ''}"
|
|
82
84
|
say " bundle exec rackup"
|
|
85
|
+
say " bundle exec bin/console"
|
|
83
86
|
say " Set DATABASE_URL in your environment (or use the defaults in config/database.rb)."
|
|
84
87
|
say " Database setup is required for persistence (create DB and run migrations)."
|
|
85
88
|
end
|
data/lib/frankly/version.rb
CHANGED
data/templates/README.md.tt
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
5
|
+
require "bundler/setup"
|
|
6
|
+
require_relative "../config/environment"
|
|
7
|
+
|
|
8
|
+
begin
|
|
9
|
+
require "pry"
|
|
10
|
+
Pry.start
|
|
11
|
+
rescue LoadError
|
|
12
|
+
require "irb"
|
|
13
|
+
IRB.start(__FILE__)
|
|
14
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: frankly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ken Rettberg
|
|
@@ -118,6 +118,7 @@ files:
|
|
|
118
118
|
- templates/app/views/.gitkeep
|
|
119
119
|
- templates/app/views/index.erb
|
|
120
120
|
- templates/app/views/layout.erb
|
|
121
|
+
- templates/bin/console
|
|
121
122
|
- templates/config.ru
|
|
122
123
|
- templates/config/database.rb
|
|
123
124
|
- templates/config/environment.rb
|