mix-rails-wireframe 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2013 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
+ = MixRailsWireframe
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 = 'MixRailsWireframe'
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 @@
1
+ @import bootstrap
@@ -0,0 +1,11 @@
1
+ class WireframeController < MixController
2
+
3
+ def index
4
+ redirect_to home_path
5
+ end
6
+
7
+ def home
8
+ breadcrumbs.add 'Inicial'
9
+ end
10
+
11
+ end
@@ -0,0 +1,12 @@
1
+ module WireframeHelper
2
+ extend CoreHelper
3
+
4
+ def frame_for_breadcrumbs
5
+ content_for?(:breadcrumbs) ? content_for(:breadcrumbs) : breadcrumbs.render(class: 'breadcrumb')
6
+ end
7
+
8
+ def frame_for_footer
9
+ content_for?(:footer) ? content_for(:footer) : "Footer"
10
+ end
11
+
12
+ end
@@ -0,0 +1,14 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %title= render 'title'
5
+ = stylesheet_link_tag "mix-rails-wireframe", :media => "all"
6
+ = javascript_include_tag "mix-rails-wireframe"
7
+ = csrf_meta_tags
8
+ %body
9
+ .container
10
+ = frame_for_breadcrumbs
11
+ .container
12
+ = yield
13
+ %footer.container
14
+ = frame_for_footer
@@ -0,0 +1,2 @@
1
+ %section
2
+ %h1 Home
data/config/routes.rb ADDED
@@ -0,0 +1,7 @@
1
+ Rails.application.routes.draw do
2
+
3
+ root to: "wireframe#index"
4
+
5
+ match '/home' => "wireframe#home", as: 'home'
6
+
7
+ end
@@ -0,0 +1,4 @@
1
+ require "mix-rails-wireframe/engine"
2
+
3
+ module MixRailsWireframe
4
+ end
@@ -0,0 +1,4 @@
1
+ module MixRailsWireframe
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,10 @@
1
+ module MixRailsWireframe
2
+ module VERSION #:nodoc:
3
+ MAJOR = 0
4
+ MINOR = 16
5
+ TINY = 0
6
+ PRE = nil
7
+
8
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
+ end
10
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :mix-rails-wireframe do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mix-rails-wireframe
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.16.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Sadjow Medeiros Leão
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-01-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.11
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.11
30
+ description: Wireframe module for mix-rails gem
31
+ email:
32
+ - sadjow@gmail.com
33
+ executables: []
34
+ extensions: []
35
+ extra_rdoc_files: []
36
+ files:
37
+ - app/assets/stylesheets/mix-rails-wireframe.sass
38
+ - app/assets/javascripts/mix-rails-wireframe.js.coffee
39
+ - app/views/layouts/wireframe.haml
40
+ - app/views/wireframe/home.haml
41
+ - app/controllers/wireframe_controller.rb
42
+ - app/helpers/wireframe_helper.rb
43
+ - config/routes.rb
44
+ - lib/tasks/mix-rails-wireframe_tasks.rake
45
+ - lib/mix-rails-wireframe.rb
46
+ - lib/mix-rails-wireframe/version.rb
47
+ - lib/mix-rails-wireframe/engine.rb
48
+ - MIT-LICENSE
49
+ - Rakefile
50
+ - README.rdoc
51
+ homepage: https://github.com/mixinternet/mix-rails
52
+ licenses: []
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ segments:
64
+ - 0
65
+ hash: 1912954559275054656
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ segments:
73
+ - 0
74
+ hash: 1912954559275054656
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 1.8.24
78
+ signing_key:
79
+ specification_version: 3
80
+ summary: Wireframe module for mix-rails gem
81
+ test_files: []