app_drone 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/app_drone/drones/dragonfly/dragonfly.rb +18 -0
- data/lib/app_drone/drones/dragonfly/initializer.erb +1 -0
- data/lib/app_drone/drones/haml_view/application_haml.erb +15 -0
- data/lib/app_drone/drones/haml_view/haml_view.rb +16 -0
- data/lib/app_drone/drones/remotipart/remotipart.rb +1 -1
- data/lib/app_drone/drones/underscore/underscore.rb +1 -1
- data/lib/app_drone/version.rb +1 -1
- data/out.rb +17 -44
- data/test/test_app_drone.rb +1 -1
- metadata +8 -6
- data/lib/app_drone/drones/zzz/rspec/install.erb +0 -1
- data/lib/app_drone/drones/zzz/rspec/rspec.rb +0 -13
data/README.md
CHANGED
@@ -272,6 +272,7 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
|
|
272
272
|
- [base] **Git** commit your repo, and allow drones to fetch external files via git
|
273
273
|
- [views] **SimpleForm** with optional Country Select and automatic Twitter Bootstrap integration
|
274
274
|
- [views] **NestedForm** for managing multiple models in a single form
|
275
|
+
- [views] **HamlView** (Haml, laid out right)
|
275
276
|
- [auth] **Sorcery** for no-frills user authentication
|
276
277
|
- [auth] **Devise**, a flexible authentication solution for Rails with Warden
|
277
278
|
- [auth] **CanCan** for role-based authorization
|
@@ -297,6 +298,7 @@ AppDrone is not for everyone. It's highly opinionated about how a Rails app shou
|
|
297
298
|
- [misc] **Whenever** clear syntax for writing and deploying cron jobs
|
298
299
|
- [uploads] **Carrierwave** file uploading plus optional Fog cloud storage
|
299
300
|
- [uploads] **Remotipart**, for AJAX file uploads with jQuery
|
301
|
+
- [uploads] **Dragonfly**, a Rack framework for on-the-fly image handling
|
300
302
|
- [test] **RSpec** for BDD
|
301
303
|
- [test] **Factory Girl** test fixtures
|
302
304
|
- [test] **SimpleCov** code coverage for Ruby 1.9, with automatic RSpec integration
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module AppDrone
|
2
|
+
class Dragonfly < Drone
|
3
|
+
desc "Rack framework for on-the-fly image handling"
|
4
|
+
category :uploads
|
5
|
+
|
6
|
+
depends_on :bundle
|
7
|
+
|
8
|
+
def align
|
9
|
+
bundle.add 'rack-cache', require: 'rack/cache'
|
10
|
+
bundle.add 'dragonfly'
|
11
|
+
end
|
12
|
+
|
13
|
+
def execute
|
14
|
+
do! :initializer
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
@generator.add_file 'config/initializers/dragonfly.rb', "require 'dragonfly/rails/images'"
|
@@ -0,0 +1,15 @@
|
|
1
|
+
erb_index_path = File.join %w(app views layouts application.html.erb)
|
2
|
+
@generator.remove_file(erb_index_path)
|
3
|
+
haml_index_path = File.join %w(app views layouts application.html.haml)
|
4
|
+
@generator.create_file haml_index_path, <<-HAML
|
5
|
+
!!!
|
6
|
+
%html
|
7
|
+
%head
|
8
|
+
%title #{app_name}
|
9
|
+
= stylesheet_link_tag 'application', media: 'all'
|
10
|
+
= javascript_include_tag 'application'
|
11
|
+
= csrf_meta_tags
|
12
|
+
|
13
|
+
%body{:class => controller_name}
|
14
|
+
= yield
|
15
|
+
HAML
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module AppDrone
|
2
|
+
class HamlView < Drone
|
3
|
+
desc "An alternative to SlimView. Do not install both."
|
4
|
+
|
5
|
+
category :views
|
6
|
+
depends_on :bundle
|
7
|
+
|
8
|
+
def align
|
9
|
+
bundle.add 'haml-rails'
|
10
|
+
end
|
11
|
+
|
12
|
+
def execute
|
13
|
+
do! :application_haml
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/app_drone/version.rb
CHANGED
data/out.rb
CHANGED
@@ -25,9 +25,7 @@ class AppBuilder < Rails::AppBuilder
|
|
25
25
|
# ---
|
26
26
|
@generator.gem 'therubyracer'
|
27
27
|
@generator.gem 'compass-rails'
|
28
|
-
@generator.gem '
|
29
|
-
@generator.gem 'high_voltage'
|
30
|
-
@generator.gem 'compass_twitter_bootstrap', :git=>"git://github.com/vwall/compass-twitter-bootstrap.git", :group=>:assets
|
28
|
+
@generator.gem 'haml-rails'
|
31
29
|
|
32
30
|
run_bundle
|
33
31
|
@generator.options = @generator.options.dup
|
@@ -70,59 +68,34 @@ COFFEE
|
|
70
68
|
/*= require_self */
|
71
69
|
|
72
70
|
@import 'compass'
|
73
|
-
@import 'compass_twitter_bootstrap_awesome'
|
74
71
|
|
75
72
|
SASS
|
76
73
|
|
77
74
|
# ---
|
78
|
-
# AppDrone::
|
75
|
+
# AppDrone::Cleanup
|
76
|
+
# ---
|
77
|
+
@generator.remove_file File.join %w(public index.html)
|
78
|
+
@generator.remove_file File.join %w(app assets images rails.png)
|
79
|
+
@generator.remove_file File.join %w(README.rdoc)
|
80
|
+
|
81
|
+
# ---
|
82
|
+
# AppDrone::HamlView
|
79
83
|
# ---
|
80
84
|
erb_index_path = File.join %w(app views layouts application.html.erb)
|
81
85
|
@generator.remove_file(erb_index_path)
|
82
|
-
|
83
|
-
@generator.create_file
|
84
|
-
|
85
|
-
html
|
86
|
-
head
|
87
|
-
title #{app_name}
|
86
|
+
haml_index_path = File.join %w(app views layouts application.html.haml)
|
87
|
+
@generator.create_file haml_index_path, <<-HAML
|
88
|
+
!!!
|
89
|
+
%html
|
90
|
+
%head
|
91
|
+
%title #{app_name}
|
88
92
|
= stylesheet_link_tag 'application', media: 'all'
|
89
93
|
= javascript_include_tag 'application'
|
90
94
|
= csrf_meta_tags
|
91
95
|
|
92
|
-
body
|
96
|
+
%body{:class => controller_name}
|
93
97
|
= yield
|
94
|
-
|
95
|
-
|
96
|
-
# ---
|
97
|
-
# AppDrone::HighVoltage
|
98
|
-
# ---
|
99
|
-
FileUtils.mkpath 'app/views/pages'
|
100
|
-
|
101
|
-
# ---
|
102
|
-
# AppDrone::Flair
|
103
|
-
# ---
|
104
|
-
@generator.create_file 'app/views/pages/flair.html.slim', <<-FLAIR
|
105
|
-
h1 Flair!
|
106
|
-
|
107
|
-
|
108
|
-
h3 Bootstrap
|
109
|
-
|
110
|
-
.btn-group
|
111
|
-
a.btn.btn-primary.btn-large Shiny!
|
112
|
-
|
113
|
-
a.btn.btn-large
|
114
|
-
i.icon-thumbs-up
|
115
|
-
| with Font Awesome!
|
116
|
-
|
117
|
-
|
118
|
-
FLAIR
|
119
|
-
|
120
|
-
# ---
|
121
|
-
# AppDrone::Cleanup
|
122
|
-
# ---
|
123
|
-
@generator.remove_file File.join %w(public index.html)
|
124
|
-
@generator.remove_file File.join %w(app assets images rails.png)
|
125
|
-
@generator.remove_file File.join %w(README.rdoc)
|
98
|
+
HAML
|
126
99
|
|
127
100
|
|
128
101
|
# This should be removed when the database drone is installed
|
data/test/test_app_drone.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_drone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &18962340 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 3.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *18962340
|
25
25
|
description: Give your Rails apps a kickstart
|
26
26
|
email:
|
27
27
|
- whoisdanieldavey@gmail.com
|
@@ -53,6 +53,8 @@ files:
|
|
53
53
|
- lib/app_drone/drones/cleanup/cleanup.rb
|
54
54
|
- lib/app_drone/drones/devise/devise.rb
|
55
55
|
- lib/app_drone/drones/devise/install.erb
|
56
|
+
- lib/app_drone/drones/dragonfly/dragonfly.rb
|
57
|
+
- lib/app_drone/drones/dragonfly/initializer.erb
|
56
58
|
- lib/app_drone/drones/easy_roles/easy_roles.rb
|
57
59
|
- lib/app_drone/drones/ember/ember.rb
|
58
60
|
- lib/app_drone/drones/ember/install.erb
|
@@ -66,6 +68,8 @@ files:
|
|
66
68
|
- lib/app_drone/drones/gritter/flair.html.slim.erb
|
67
69
|
- lib/app_drone/drones/gritter/gritter.rb
|
68
70
|
- lib/app_drone/drones/gritter/install.erb
|
71
|
+
- lib/app_drone/drones/haml_view/application_haml.erb
|
72
|
+
- lib/app_drone/drones/haml_view/haml_view.rb
|
69
73
|
- lib/app_drone/drones/has_scope/has_scope.rb
|
70
74
|
- lib/app_drone/drones/high_voltage/create_pages_directory.erb
|
71
75
|
- lib/app_drone/drones/high_voltage/high_voltage.rb
|
@@ -107,8 +111,6 @@ files:
|
|
107
111
|
- lib/app_drone/drones/whenever/wheneverize.erb
|
108
112
|
- lib/app_drone/drones/will_paginate/will_paginate.rb
|
109
113
|
- lib/app_drone/drones/zzz/guard/guard.rb
|
110
|
-
- lib/app_drone/drones/zzz/rspec/install.erb
|
111
|
-
- lib/app_drone/drones/zzz/rspec/rspec.rb
|
112
114
|
- lib/app_drone/object_extensions.rb
|
113
115
|
- lib/app_drone/template.erb
|
114
116
|
- lib/app_drone/template.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
generate 'rspec:install'
|