crafti 0.0.20 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -3
  3. data/bin/crafti +19 -12
  4. data/lib/crafti/version.rb +1 -1
  5. metadata +2 -4
  6. data/bin/rake +0 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ca10828ced14277fa89718834fde28d09195be7
4
- data.tar.gz: 59c96bcb7d0d1e0c27cc5c709270aae94b7feb37
3
+ metadata.gz: cc72ace9b441f93d960c4516d6fda9ebefba2afc
4
+ data.tar.gz: 52b79b400f03e9bec5fa6522c58ec8c20c56de8f
5
5
  SHA512:
6
- metadata.gz: 8ac5b68a150393e746f37cb1688cd0db9d6ade00a283ab66a7d71094932ce7bceb8beafe203cce7d11a3e9679d76bffc952cf9e971b9a9f24e460ce417b9321b
7
- data.tar.gz: 66270327702398f91efaa1734822f18b8981b5717d9eca571491470b167a32573cb0e3b0fe3764beafc3fb889958d1bb076fbba3d0cb0afc0842502ae8fbba95
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
- ## Examples
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 - [http://www.bower.io](http://www.bower.io)
79
- bower "angularjs", "bootstrap", "sugar"
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 'bundler/setup'
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')
@@ -1,7 +1,7 @@
1
1
  module Crafti
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- PATCH = 20
4
+ PATCH = 21
5
5
 
6
6
  def self.version
7
7
  [
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.20
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-20 00:00:00.000000000 Z
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')