gumdrop 0.7.5 → 0.8.0
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.
- data/ChangeLog.md +10 -0
- data/Gemfile.lock +35 -0
- data/bin/gumdrop +16 -7
- data/gumdrop.gemspec +2 -1
- data/lib/gumdrop.rb +38 -13
- data/lib/gumdrop/cli/external.rb +55 -0
- data/lib/gumdrop/cli/internal.rb +75 -0
- data/lib/gumdrop/content.rb +13 -7
- data/lib/gumdrop/generator.rb +16 -85
- data/lib/gumdrop/server.rb +5 -5
- data/lib/gumdrop/site.rb +94 -28
- data/lib/gumdrop/support/base_packager.rb +60 -0
- data/lib/gumdrop/{callbacks.rb → support/callbacks.rb} +1 -1
- data/lib/gumdrop/{hash_object.rb → support/hash_object.rb} +0 -0
- data/lib/gumdrop/{proxy_handler.rb → support/proxy_handler.rb} +0 -0
- data/lib/gumdrop/support/sprockets.rb +34 -0
- data/lib/gumdrop/support/stitch.rb +144 -0
- data/lib/gumdrop/version.rb +1 -1
- data/notes.md +347 -0
- data/templates/backbone/Gemfile +1 -1
- data/templates/backbone/Gumdrop +6 -1
- data/templates/blank/Gemfile +2 -2
- data/templates/blank/Gumdrop +25 -2
- data/templates/default/Gemfile +2 -2
- data/templates/default/Gumdrop +27 -1
- data/templates/default/Rakefile +15 -15
- metadata +30 -14
- data/lib/gumdrop/cli.rb +0 -167
- data/lib/gumdrop/sprockets_support.rb +0 -3
- data/lib/gumdrop/stitch_support.rb +0 -114
- data/templates/blank/Rakefile +0 -38
data/templates/blank/Rakefile
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require "bundler/setup"
|
3
|
-
require 'gumdrop'
|
4
|
-
|
5
|
-
# For the SYNC task
|
6
|
-
USER='user'
|
7
|
-
SERVER='server.com'
|
8
|
-
FOLDER="~/#{SERVER}"
|
9
|
-
|
10
|
-
site= Gumdrop::Site.new "./Gumdrop"
|
11
|
-
OUTPUT=site.config.output_dir
|
12
|
-
|
13
|
-
desc "Build source files into output_dir"
|
14
|
-
task :build do
|
15
|
-
system("bundle exec gumdrop -b")
|
16
|
-
end
|
17
|
-
|
18
|
-
desc "Run development server"
|
19
|
-
task :serve do
|
20
|
-
system("bundle exec gumdrop -s")
|
21
|
-
end
|
22
|
-
|
23
|
-
desc "Syncs with public server using rsync (if configured)"
|
24
|
-
task :sync do
|
25
|
-
cmd= "rsync -avz --delete #{OUTPUT} #{USER}@#{SERVER}:#{FOLDER}"
|
26
|
-
puts "Running:\n#{cmd}\n"
|
27
|
-
system(cmd)
|
28
|
-
puts "Done."
|
29
|
-
end
|
30
|
-
|
31
|
-
desc "Outputs the Gumdrop version"
|
32
|
-
task :version do
|
33
|
-
puts Gumdrop::VERSION
|
34
|
-
end
|
35
|
-
|
36
|
-
task :default do
|
37
|
-
puts `rake -T`
|
38
|
-
end
|