freerangestylin 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,29 +1,25 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + "/lib/insert_commands.rb")
2
2
 
3
- class FreerangeStylinGenerator < Rails::Generator::NamedBase
3
+ class FreerangeStylinGenerator < Rails::Generator::Base
4
4
 
5
5
  def manifest
6
6
  record do |m|
7
- app_layout = "app/views/layouts/application.html.html"
8
-
9
- unless File.exists?(app_layout)
10
- m.directory File.join("app", "views", "layouts")
11
- m.file "application.html.html", app_layout
12
- end
7
+ m.directory File.join("app", "views", "layouts")
8
+ m.file "views/layouts/application.html.haml", "app/views/layouts/application.html.haml"
13
9
 
14
10
  m.directory File.join("app", "stylesheets")
15
11
 
16
- m.file "fancy.less", "app/stylesheets/fancy.less"
17
- m.file "ie.less", "app/stylesheets/ie.less"
18
- m.file "master.less", "app/stylesheets/master.less"
19
- m.file "reset.less", "app/stylesheets/reset.less"
20
- m.file "screen.less", "app/stylesheets/screen.less"
12
+ m.file "stylesheets/fancy.less", "app/stylesheets/fancy.less"
13
+ m.file "stylesheets/ie.less", "app/stylesheets/ie.less"
14
+ m.file "stylesheets/master.less", "app/stylesheets/master.less"
15
+ m.file "stylesheets/reset.less", "app/stylesheets/reset.less"
16
+ m.file "stylesheets/screen.less", "app/stylesheets/screen.less"
21
17
 
22
18
  m.directory File.join("app", "javascripts")
23
19
 
24
- m.file "application.js", "app/javascripts/application.js"
25
- m.file "hashgrid.js", "app/javascripts/hashgrid.js"
26
- m.file "plugins.js", "app/javascripts/plugins.js"
20
+ m.file "javascripts/application.js", "app/javascripts/application.js"
21
+ m.file "javascripts/hashgrid.js", "app/javascripts/hashgrid.js"
22
+ m.file "javascripts/plugins.js", "app/javascripts/plugins.js"
27
23
 
28
24
  m.insert_into "config/routes.rb",
29
25
  "FreerangeStylin::Routes.draw(map)"
@@ -0,0 +1,3 @@
1
+ jQuery(document).ready(function($) {
2
+ // Stuff to do as soon as the DOM is ready. Use $() w/o colliding with other libs;
3
+ });
@@ -5,8 +5,6 @@
5
5
  <!--[if gte IE 7]><!-->
6
6
  =stylesheet_link_tag %w(screen)
7
7
  <!-- <![endif]-->
8
- <script type="text/javascript" src="http://use.typekit.com/sgp7rhz.js"></script>
9
- <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
10
8
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
11
9
  =javascript_include_tag %w(plugins application hashgrid)
12
10
  %body
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 5
9
- version: 0.1.5
8
+ - 6
9
+ version: 0.1.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jason Cale
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-15 00:00:00 +00:00
17
+ date: 2010-03-16 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -65,7 +65,7 @@ files:
65
65
  - generators/freerange_stylin/templates/stylesheets/master.less
66
66
  - generators/freerange_stylin/templates/stylesheets/reset.less
67
67
  - generators/freerange_stylin/templates/stylesheets/screen.less
68
- - generators/freerange_stylin/templates/views/layouts/main.html.haml
68
+ - generators/freerange_stylin/templates/views/layouts/application.html.haml
69
69
  - generators/freerange_stylin/USAGE
70
70
  - rails/init.rb
71
71
  has_rdoc: true