caboodle 0.2.22 → 0.2.23

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -2,16 +2,18 @@
2
2
 
3
3
  h2. Caboodle is a quick and easy way to create a mashup website
4
4
 
5
- A quick demonstration if you are familiar with Ruby:
5
+ What a Caboodle-based site looks like out of the box:
6
+
7
+ "Stef.io":http://stef.io
8
+
9
+ How you set one up (assuming you are familiar with Ruby)
6
10
 
7
11
  <pre>sudo gem install caboodle
8
12
 
9
13
  caboodle create myproject
10
-
11
14
  (Respond to some questions, such as setting the site's title)
12
15
 
13
16
  cd myproject
14
-
15
17
  caboodle kit:add flickr
16
18
 
17
19
  Please set a value for flickr_username
@@ -21,16 +23,13 @@ Please set a value for flickr_apikey
21
23
  b1789c432a78990b44d39ff
22
24
 
23
25
  caboodle kit:add tumblr
24
-
25
26
  Please set a value for tumblr_username
26
27
  myproject
27
28
 
28
29
  caboodle kit:home tumblr
29
-
30
30
  (Sets the Tumblr kit as the home page)
31
31
 
32
32
  caboodle heroku:create myproject
33
-
34
33
  caboodle heroku:deploy</pre>
35
34
 
36
35
  h2. "WIKI":http://wiki.github.com/steflewandowski/Caboodle/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.22
1
+ 0.2.23
@@ -0,0 +1,5 @@
1
+ // Put your custom styles here.
2
+ // This file expects SCSS, which is an extension of CSS, documented at: http://sass-lang.com
3
+ // Depending on the kits you have installed you will be able to use any mixins defined within them.
4
+ // Susy documentation: http://susy.oddbird.net
5
+ // As default, the Susy kit is installed, so you have access to its mixins
data/lib/caboodle/app.rb CHANGED
@@ -6,11 +6,12 @@ module Caboodle
6
6
  set :views, Proc.new { File.join(root, "views") }
7
7
  set :public, Proc.new { File.join(root, "public") }
8
8
  set :run, false
9
+ set :root_config, File.expand_path(File.join(Caboodle::App.root,"config","site.yml"))
9
10
 
10
11
  helpers Sinatra::CaboodleHelpers
11
12
 
12
13
  configure do
13
- Caboodle::Kit.configure_site File.expand_path(File.join(Caboodle::App.root,"config","site.yml"))
14
+ Caboodle::Kit.configure_site root_config if File.exists?(root_config)
14
15
  end
15
16
 
16
17
  end
@@ -16,10 +16,12 @@ module Caboodle
16
16
  puts `cd #{site_name} && cp -i #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/config.ru .`
17
17
  puts `cd #{site_name} && cp -ri #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/config .`
18
18
  puts `cd #{site_name} && cp -i #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/.gems .`
19
- puts `cd #{site_name} && cp -i #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/public .`
19
+ puts `cd #{site_name} && cp -ri #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/public .`
20
+ puts `cd #{site_name} && cp -ri #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/pages .`
21
+ puts `cd #{site_name} && cp -ri #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/scss .`
20
22
  puts `cd #{site_name} && git init`
21
23
  config = File.expand_path(File.join(".",site_name,"config","site.yml"))
22
- Caboodle::Config.configure_site config
24
+ Caboodle::Kit.configure_site config
23
25
  puts "Please set a few settings to get started"
24
26
  Caboodle::Kit.ask_user_for_all_missing_settings
25
27
  puts `cd #{site_name} && git add .`
@@ -55,7 +55,7 @@ module Caboodle
55
55
  kit_name = kit_name.downcase
56
56
  orig = Caboodle.constants
57
57
  begin
58
- puts kit_name
58
+ puts "Loading #{kit_name}"
59
59
  require "caboodle/kits/#{kit_name}/#{kit_name}"
60
60
  added = Caboodle.constants - orig
61
61
  added.each do |d|
@@ -16,6 +16,7 @@ module Caboodle
16
16
  content_type 'text/css', :charset => 'utf-8'
17
17
  sass_dir = File.expand_path(File.join(File.dirname(__FILE__),"views","susy"))
18
18
  load_paths = [App.root, File.join(App.root,"views"), File.join(App.root,"views","stylesheets"), sass_dir] + ::Compass.sass_engine_options[:load_paths]
19
+
19
20
  Kits.each do |name|
20
21
  kit_name = name.to_s.split("::").last || name
21
22
  kit_name = kit_name.downcase
@@ -25,6 +26,11 @@ module Caboodle
25
26
 
26
27
  options = {:sass_dir => sass_dir, :syntax => :scss, :load_paths => load_paths}
27
28
  the_sass = open(File.join(File.dirname(__FILE__),"views","susy","screen.scss")).read
29
+
30
+ Dir[File.join(Caboodle::App.root,"scss","*.scss")].map do |a|
31
+ SASS << a
32
+ end
33
+
28
34
  imported_files = []
29
35
  SASS.each do |s|
30
36
  the_sass << "\n"
@@ -24,6 +24,7 @@ $side-gutter-width: $gutter-width;
24
24
  $base: #4c4c4c;
25
25
  $alt: #ff6600;
26
26
 
27
+
27
28
  // Fonts --------------------------------------------------------------
28
29
 
29
30
  @mixin sans-family {
@@ -47,3 +48,6 @@ $alt: #ff6600;
47
48
  // OTHER MIXINS --------------------------------------------------------------
48
49
  // Mixins set here will be available in defaults, screen, print and IE
49
50
  // Or anywhere you import either base.sass or defaults.sass
51
+
52
+ // By default use the user's SCSS base file if it exists
53
+ @import "scss/_base";
@@ -10,9 +10,13 @@ module Caboodle
10
10
  menu "Twitter"
11
11
 
12
12
  configure do
13
- if Site.logo_url.to_s.blank? && !Site.twitter_username.to_s.blank?
14
- xml = Nokogiri::XML(open("http://twitter.com/users/#{Site.twitter_username}.xml").read)
15
- Site.logo_url = xml.css("profile_image_url").children.first.to_s
13
+ begin
14
+ if Site.logo_url.to_s.blank? && !Site.twitter_username.to_s.blank?
15
+ xml = Nokogiri::XML(open("http://twitter.com/users/#{Site.twitter_username}.xml").read)
16
+ Site.logo_url = xml.css("profile_image_url").children.first.to_s
17
+ end
18
+ rescue Exception=>e
19
+ Caboodle::Errors << Hashie::Mash.new({:title=>"Problem communicating with Twitter at startup", :reason=>e.backtrace})
16
20
  end
17
21
  end
18
22
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboodle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 22
10
- version: 0.2.22
9
+ - 23
10
+ version: 0.2.23
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stef Lewandowski
@@ -286,6 +286,7 @@ files:
286
286
  - lib/caboodle/app/public/images/favicon.ico
287
287
  - lib/caboodle/app/public/images/grid.png
288
288
  - lib/caboodle/app/public/js/application.js
289
+ - lib/caboodle/app/scss/site.scss
289
290
  - lib/caboodle/app/views/error.haml
290
291
  - lib/caboodle/app/views/layout.haml
291
292
  - lib/caboodle/command.rb