edge-layouts 0.0.1

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/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2012 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = EdgeLayouts
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'EdgeLayouts'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+
24
+
25
+
26
+ Bundler::GemHelper.install_tasks
27
+
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require_tree .
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -0,0 +1,4 @@
1
+ module EdgeLayouts
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module EdgeLayouts
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,8 @@
1
+ <div id="flash-container">
2
+ <% flash.each do |key, value| %>
3
+ <div class="alert-box <%= key %>">
4
+ <a class="close" href="#">x</a>
5
+ <%= value %>
6
+ </div>
7
+ <% end %>
8
+ </div>
File without changes
@@ -0,0 +1,15 @@
1
+ <!-- IE Fix for HTML5 Tags -->
2
+ <!--[if lt IE 9]>
3
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
4
+ <![endif]-->
5
+ <%= javascript_include_tag "application" %>
6
+ <%= javascript_include_tag "http://www.zurb.com/javascripts/plugins/jquery.textchange.min.js" %>
7
+
8
+ <% if js_for_controller_exists? %>
9
+ <%= javascript_include_tag "#{params[:controller].parameterize}" %>
10
+ <% end %>
11
+
12
+ <% if js_for_action_exists? %>
13
+ <%= javascript_include_tag "#{params[:controller].parameterize}_#{params[:action].parameterize}" %>
14
+ <% end %>
15
+
@@ -0,0 +1,2 @@
1
+ <%= stylesheet_link_tag 'application', :media => 'screen, projection' %>
2
+ <%= stylesheet_link_tag 'http://fonts.googleapis.com/css?family=Armata|Arimo|Flamenco|Cantarell|Antic|Muli|Trykker|Basic|Actor|Nunito|Quattrocento+Sans' %>
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE html>
2
+ <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
3
+ <!--[if lt IE 7 ]> <html class="ie6" lang="en"> <![endif]-->
4
+ <!--[if IE 7 ]> <html class="ie7" lang="en"> <![endif]-->
5
+ <!--[if IE 8 ]> <html class="ie8" lang="en"> <![endif]-->
6
+ <!--[if (gte IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
7
+ <head>
8
+ <meta charset="utf-8" />
9
+
10
+ <title><%= title %></title>
11
+ <meta name="description" content="" />
12
+ <meta name="author" content="Dan Persa" />
13
+ <!-- Set the viewport width to device width for mobile -->
14
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
15
+ <%= render 'layouts/stylesheets' %>
16
+ <%= yield(:stylesheets) if content_for?(:stylesheets) %>
17
+ <%= render 'layouts/javascripts' %>
18
+ <%= csrf_meta_tags %>
19
+ </head>
20
+ <body class="body <%= params[:controller].parameterize %> <%= params[:controller].parameterize %>_<%= params[:action].parameterize %>">
21
+ <%= content_for?(:body) ? yield(:body) : yield %>
22
+ <div id="dialog" class="reveal-modal">
23
+ <div id="dialog-div"></div>
24
+ <a class="close-reveal-modal">&#215;</a>
25
+ </div>
26
+ </body>
27
+ </html>
@@ -0,0 +1,32 @@
1
+ <% content_for :body do %>
2
+ <nav>
3
+ <% if content_for?(:navbar) %>
4
+ <%= yield :navbar %>
5
+ <% else %>
6
+ <% if signed_in? %>
7
+ <%= render 'topbar/user_topbar' %>
8
+ <% else %>
9
+ <%= render 'topbar/general_topbar' %>
10
+ <% end %>
11
+ <% end %>
12
+ </nav>
13
+
14
+ <section class="main-section">
15
+ <div class="container">
16
+ <div class="row">
17
+ <%= content_for?(:main_section) ? yield(:main_section) : yield %>
18
+ </div>
19
+ </div>
20
+ </section>
21
+
22
+ <footer>
23
+ <% if content_for?(:footer) %>
24
+ <%= yield :footer %>
25
+ <% else %>
26
+ <%= render 'layouts/footer' %>
27
+ <% end %>
28
+ <%= debug(params) if Rails.env.development? %>
29
+ </footer>
30
+ <% end %>
31
+
32
+ <%= render :file => 'layouts/application' %>
@@ -0,0 +1,5 @@
1
+ <% content_for :stylesheets do %>
2
+ <%= stylesheet_link_tag 'narrow_layout', :media => 'screen, projection' %>
3
+ <% end %>
4
+
5
+ <%= render :file => 'layouts/main' %>
@@ -0,0 +1,6 @@
1
+ <% content_for :main_section do %>
2
+ <div class="twelve columns">
3
+ <%= content_for?(:main_content) ? yield(:main_content) : yield %>
4
+ </div>
5
+ <% end %>
6
+ <%= render :file => 'layouts/main' %>
@@ -0,0 +1,6 @@
1
+ <% content_for :main_section do %>
2
+ <div class="twelve columns">
3
+ <%= content_for?(:main_content) ? yield(:main_content) : yield %>
4
+ </div>
5
+ <% end %>
6
+ <%= render :file => 'layouts/main_narrow' %>
@@ -0,0 +1,9 @@
1
+ <% content_for :first_section do %>
2
+ <%= content_for?(:only_section) ? yield(:only_section) : yield %>
3
+ <% end %>
4
+
5
+ <% content_for :second_section do %>
6
+ <%= render :partial => 'shared/sidebar' %>
7
+ <% end %>
8
+
9
+ <%= render :file => 'layouts/two_sections' %>
@@ -0,0 +1,9 @@
1
+ <% content_for :first_section do %>
2
+ <%= content_for?(:only_section) ? yield(:only_section) : yield %>
3
+ <% end %>
4
+
5
+ <% content_for :second_section do %>
6
+ <%= render :partial => 'shared/sidebar_settings' %>
7
+ <% end %>
8
+
9
+ <%= render :file => 'layouts/two_sections' %>
@@ -0,0 +1,10 @@
1
+ <% content_for :main_section do %>
2
+ <div class="seven columns">
3
+ <%= content_for?(:first_section) ? yield(:first_section) : yield %>
4
+ </div>
5
+ <div class="four columns offset-by-one">
6
+ <%= yield(:second_section) if content_for?(:second_section) %>
7
+ </div>
8
+ <% end %>
9
+
10
+ <%= render :file => 'layouts/main' %>
data/config/routes.rb ADDED
@@ -0,0 +1,2 @@
1
+ EdgeLayouts::Engine.routes.draw do
2
+ end
@@ -0,0 +1,6 @@
1
+ require "edge-layouts/engine"
2
+
3
+ module EdgeLayouts
4
+
5
+
6
+ end
@@ -0,0 +1,10 @@
1
+ module EdgeLayouts
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace EdgeLayouts
4
+ config.generators do |g|
5
+ g.test_framework :rspec, :view_specs => false
6
+ g.fixture_replacement :factory_girl
7
+ g.orm :mongoid
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ module EdgeLayouts
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :edge-layouts do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: edge-layouts
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Dan Persa
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-02-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &8883020 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *8883020
25
+ description: EdgeLayouts is a layout engine for faster starting up applications
26
+ email:
27
+ - dan.persa@gmail.com
28
+ executables: []
29
+ extensions: []
30
+ extra_rdoc_files: []
31
+ files:
32
+ - app/assets/stylesheets/edge_layouts/application.css
33
+ - app/assets/javascripts/edge_layouts/application.js
34
+ - app/views/layouts/main_narrow.html.erb
35
+ - app/views/layouts/one_section_narrow.html.erb
36
+ - app/views/layouts/_stylesheets.html.erb
37
+ - app/views/layouts/application.html.erb
38
+ - app/views/layouts/settings_sections.html.erb
39
+ - app/views/layouts/section_with_default_sidebar.html.erb
40
+ - app/views/layouts/_footer.html.erb
41
+ - app/views/layouts/main.html.erb
42
+ - app/views/layouts/_javascripts.html.erb
43
+ - app/views/layouts/one_section.html.erb
44
+ - app/views/layouts/two_sections.html.erb
45
+ - app/views/layouts/_flash.html.erb
46
+ - app/helpers/edge_layouts/application_helper.rb
47
+ - app/controllers/edge_layouts/application_controller.rb
48
+ - config/routes.rb
49
+ - lib/edge-layouts/engine.rb
50
+ - lib/edge-layouts/version.rb
51
+ - lib/tasks/edge-layouts_tasks.rake
52
+ - lib/edge-layouts.rb
53
+ - MIT-LICENSE
54
+ - Rakefile
55
+ - README.rdoc
56
+ homepage: https://github.com/danpersa/edge-layouts
57
+ licenses: []
58
+ post_install_message:
59
+ rdoc_options: []
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubyforge_project:
76
+ rubygems_version: 1.8.10
77
+ signing_key:
78
+ specification_version: 3
79
+ summary: EdgeLayouts is a layout engine for faster starting up applications
80
+ test_files: []