crafti 0.0.20 → 0.0.21
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 +8 -3
- data/bin/crafti +19 -12
- data/lib/crafti/version.rb +1 -1
- metadata +2 -4
- data/bin/rake +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc72ace9b441f93d960c4516d6fda9ebefba2afc
|
4
|
+
data.tar.gz: 52b79b400f03e9bec5fa6522c58ec8c20c56de8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da571b16a817ae109c21aaebc60584ed9094ce381956d4565c5e1d7c166a7376b4e8d83e98a565286a4beb62fd8fd9769229718b25c92d5a4629a13d5bbea1a2
|
7
|
+
data.tar.gz: 04f2d725b4f2bdd6714fb10bd8c1b405ca2a96ead4d4d6bcc90c85ee5c9d423ad6e798d89044214842759091be31d1959a8ec9f3c792119dc51c135e39eb38b5
|
data/README.md
CHANGED
@@ -16,10 +16,15 @@ So, Crafti (don't ask me about the name...) was born.
|
|
16
16
|
|
17
17
|
I really wanted something that was bash like, but with Ruby block syntax. Something that you could read and get a basic understanding of what is being created. So, the current structure was what I came up with initially and then coded for. I like it, I don't care if you like it, but I'm happy if you want to use it.
|
18
18
|
|
19
|
-
##
|
19
|
+
## Bower Support
|
20
|
+
|
21
|
+
Crafti also provides [Bower](http://www.bower.io) support to manage the front-end technologies, much like Bundler/Gemfile manage the backend technologies.
|
22
|
+
|
23
|
+
## Template Examples
|
20
24
|
|
21
25
|
There is a Crafti Repository that has some working templates here: [https://github.com/revans/crafti-templates](https://github.com/revans/crafti-templates)
|
22
26
|
|
27
|
+
|
23
28
|
### Sinatra Style Structure
|
24
29
|
|
25
30
|
````ruby
|
@@ -75,8 +80,8 @@ root "appname" do
|
|
75
80
|
{ app_classname: 'FannyPackApplication',
|
76
81
|
environment: 'ENV["RACK_ENV"]' }
|
77
82
|
|
78
|
-
# Yes, bower support
|
79
|
-
bower "
|
83
|
+
# Yes, bower support
|
84
|
+
bower "angular", "bootstrap", "sugar"
|
80
85
|
|
81
86
|
# Bundler Support (:install only)
|
82
87
|
bundle :install, with: 'binstubs'
|
data/bin/crafti
CHANGED
@@ -1,16 +1,23 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
#
|
3
|
-
# This file was generated by Bundler.
|
4
|
-
#
|
5
|
-
# The application 'crafti' is installed as part of a gem, and
|
6
|
-
# this file is here to facilitate running it.
|
7
|
-
#
|
8
|
-
|
9
|
-
require 'pathname'
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
-
Pathname.new(__FILE__).realpath)
|
12
2
|
|
13
3
|
require 'rubygems'
|
14
|
-
require '
|
4
|
+
require 'crafti'
|
5
|
+
# require_relative '../lib/crafti'
|
6
|
+
|
7
|
+
options = Crafti::CLI.parse(ARGV)
|
8
|
+
|
9
|
+
if options.event == "generate"
|
10
|
+
Crafti::FileReader.generate(options.template_path)
|
11
|
+
else
|
12
|
+
puts "That command is not supported."
|
13
|
+
exit
|
14
|
+
end
|
15
|
+
|
16
|
+
# require 'pathname'
|
17
|
+
# path = Pathname.new(options.template_path).expand_path
|
18
|
+
# puts "Options:\n"
|
19
|
+
# puts options.inspect
|
20
|
+
# puts "Values:\n"
|
21
|
+
# puts "path: #{path.to_s}"
|
22
|
+
# puts "\nContent:\n#{path.read}"
|
15
23
|
|
16
|
-
load Gem.bin_path('crafti', 'crafti')
|
data/lib/crafti/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crafti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -57,7 +57,6 @@ email:
|
|
57
57
|
- robert@codewranglers.org
|
58
58
|
executables:
|
59
59
|
- crafti
|
60
|
-
- rake
|
61
60
|
extensions: []
|
62
61
|
extra_rdoc_files: []
|
63
62
|
files:
|
@@ -68,7 +67,6 @@ files:
|
|
68
67
|
- README.md
|
69
68
|
- Rakefile
|
70
69
|
- bin/crafti
|
71
|
-
- bin/rake
|
72
70
|
- crafti.gemspec
|
73
71
|
- lib/crafti.rb
|
74
72
|
- lib/crafti/cli.rb
|
data/bin/rake
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
#
|
3
|
-
# This file was generated by Bundler.
|
4
|
-
#
|
5
|
-
# The application 'rake' is installed as part of a gem, and
|
6
|
-
# this file is here to facilitate running it.
|
7
|
-
#
|
8
|
-
|
9
|
-
require 'pathname'
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
-
Pathname.new(__FILE__).realpath)
|
12
|
-
|
13
|
-
require 'rubygems'
|
14
|
-
require 'bundler/setup'
|
15
|
-
|
16
|
-
load Gem.bin_path('rake', 'rake')
|