bootstrap_leather 0.1.0

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.
Files changed (88) hide show
  1. checksums.yaml +15 -0
  2. data/.document +5 -0
  3. data/.rspec +1 -0
  4. data/Gemfile +21 -0
  5. data/LICENSE.txt +20 -0
  6. data/README.rdoc +175 -0
  7. data/Rakefile +49 -0
  8. data/VERSION +1 -0
  9. data/app/helpers/bootstrap_leather_helper.rb +158 -0
  10. data/app/views/bootstrap_leather/_alert.html.haml +5 -0
  11. data/app/views/bootstrap_leather/_alert_flash_messages.html.haml +4 -0
  12. data/app/views/bootstrap_leather/_badge.html.haml +3 -0
  13. data/app/views/bootstrap_leather/_dropdown_nav_item.html.haml +10 -0
  14. data/app/views/bootstrap_leather/_footer_javascript.html.haml +1 -0
  15. data/app/views/bootstrap_leather/_head_css.html.haml +1 -0
  16. data/app/views/bootstrap_leather/_hero_unit.html.haml +2 -0
  17. data/app/views/bootstrap_leather/_icon.html.haml +1 -0
  18. data/app/views/bootstrap_leather/_modal.html.haml +8 -0
  19. data/app/views/bootstrap_leather/_nav_item.html.haml +2 -0
  20. data/app/views/bootstrap_leather/_nav_list.html.haml +2 -0
  21. data/app/views/bootstrap_leather/_navbar.html.haml +10 -0
  22. data/app/views/bootstrap_leather/_navbar_in_container.haml +4 -0
  23. data/app/views/bootstrap_leather/_navbar_with_container.haml +4 -0
  24. data/app/views/bootstrap_leather/_tabs.html.haml +10 -0
  25. data/app/views/bootstrap_leather/_thumbnail.html.haml +3 -0
  26. data/app/views/bootstrap_leather/_widget.html.haml +3 -0
  27. data/app/views/bootstrap_leather/_widgets.html.haml +2 -0
  28. data/bin/rails +4 -0
  29. data/bootstrap_leather.gemspec +156 -0
  30. data/lib/bootstrap_leather.rb +11 -0
  31. data/lib/bootstrap_leather/configuration.rb +23 -0
  32. data/lib/bootstrap_leather/engine.rb +5 -0
  33. data/lib/bootstrap_leather/localization.rb +31 -0
  34. data/lib/bootstrap_leather/railtie.rb +9 -0
  35. data/lib/bootstrap_leather/version.rb +7 -0
  36. data/lib/generators/bootstrap_leather/install/install_generator.rb +28 -0
  37. data/lib/generators/bootstrap_leather/install/templates/initializer.rb +6 -0
  38. data/lib/generators/bootstrap_leather/utils.rb +16 -0
  39. data/spec/bootstrap_leather_spec.rb +7 -0
  40. data/spec/dummy/README.rdoc +28 -0
  41. data/spec/dummy/Rakefile +6 -0
  42. data/spec/dummy/app/assets/images/.keep +0 -0
  43. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  44. data/spec/dummy/app/assets/javascripts/customizable_bootstrap/index.js +15 -0
  45. data/spec/dummy/app/assets/stylesheets/application.css.scss +15 -0
  46. data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/colors.css.scss +100 -0
  47. data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/font.css.scss +9 -0
  48. data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/grid.css.scss +7 -0
  49. data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/index.css.scss +13 -0
  50. data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/layers.css.scss +7 -0
  51. data/spec/dummy/app/assets/stylesheets/customizable_bootstrap/overrides.css.scss +23 -0
  52. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  53. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  54. data/spec/dummy/app/controllers/welcome_controller.rb +9 -0
  55. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  56. data/spec/dummy/app/mailers/.keep +0 -0
  57. data/spec/dummy/app/models/.keep +0 -0
  58. data/spec/dummy/app/models/concerns/.keep +0 -0
  59. data/spec/dummy/app/views/layouts/application.html.haml +68 -0
  60. data/spec/dummy/app/views/welcome/index.html.haml +14 -0
  61. data/spec/dummy/bin/bundle +3 -0
  62. data/spec/dummy/bin/rails +4 -0
  63. data/spec/dummy/bin/rake +4 -0
  64. data/spec/dummy/config.ru +4 -0
  65. data/spec/dummy/config/application.rb +28 -0
  66. data/spec/dummy/config/boot.rb +5 -0
  67. data/spec/dummy/config/environment.rb +5 -0
  68. data/spec/dummy/config/environments/development.rb +23 -0
  69. data/spec/dummy/config/environments/production.rb +80 -0
  70. data/spec/dummy/config/environments/test.rb +36 -0
  71. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  72. data/spec/dummy/config/initializers/bootstrap_leather.rb +6 -0
  73. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  74. data/spec/dummy/config/initializers/inflections.rb +16 -0
  75. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  76. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  77. data/spec/dummy/config/initializers/session_store.rb +3 -0
  78. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  79. data/spec/dummy/config/locales/en.yml +23 -0
  80. data/spec/dummy/config/routes.rb +56 -0
  81. data/spec/dummy/lib/assets/.keep +0 -0
  82. data/spec/dummy/log/.keep +0 -0
  83. data/spec/dummy/public/404.html +58 -0
  84. data/spec/dummy/public/422.html +58 -0
  85. data/spec/dummy/public/500.html +57 -0
  86. data/spec/dummy/public/favicon.ico +0 -0
  87. data/spec/spec_helper.rb +12 -0
  88. metadata +287 -0
@@ -0,0 +1,5 @@
1
+ %div{:class => 'alert ' + css_class}
2
+ %button.close{:type => 'button', 'data-dismiss' => 'alert', 'aria-hidden' => 'true'}
3
+ \x
4
+ %h4.alert-heading= title
5
+ = message
@@ -0,0 +1,4 @@
1
+ -[:notice, :error, :alert].each do |level|
2
+ -unless flash[level].blank?
3
+ = alert flash_class(level), flash[level]
4
+
@@ -0,0 +1,3 @@
1
+ - if content.present?
2
+ %span{:class => 'badge ' + (type ? 'badge-' + type : '')}
3
+ = content
@@ -0,0 +1,10 @@
1
+ - if active
2
+ - css_class = 'active'
3
+ - else
4
+ - css_class = 'inactive'
5
+ %li{:class => 'dropdown ' + css_class}
6
+ %a.dropdown-toggle{:href=>href, :data => {:target => '#', :toggle => 'dropdown'}}
7
+ = text
8
+ %b.caret
9
+ %ul.dropdown-menu
10
+ = block
@@ -0,0 +1 @@
1
+ = yield :footer_javascript
@@ -0,0 +1 @@
1
+ = yield :head_css
@@ -0,0 +1,2 @@
1
+ .hero_unit
2
+ =yield :hero_unit
@@ -0,0 +1 @@
1
+ %i{:class => 'icon-' + type}
@@ -0,0 +1,8 @@
1
+ #modal.modal.hide.fade{:tabindex => -1, :role => 'dialog', :aria => {:labelledby => 'modalLabel', :hidden => true}}
2
+ .modal-header
3
+ %button.close{:type => 'button', :data => {:dismiss => 'modal'}, :aria => {:hidden => true}}= 'x'
4
+ %h3#modalLabel= title
5
+ #modal-body.modal-body
6
+ = block
7
+ .modal-footer
8
+ %button.close{:type => 'button', :data => {:dismiss => 'modal'}, :aria => {:hidden => true}}= close_text
@@ -0,0 +1,2 @@
1
+ %li{:class => current_page?(href) ? 'active' : 'inactive'}
2
+ =link_to text, href, options
@@ -0,0 +1,2 @@
1
+ %ul.nav{ html_options }
2
+ = block
@@ -0,0 +1,10 @@
1
+ .navbar
2
+ .navbar-inner
3
+ -# .btn-navbar is used as the toggle for when the responsive design gets narrow and the navbar goes away
4
+ %a.btn.btn-navbar{'data-target'=>".nav-collapse", 'data-toggle'=>"collapse"}
5
+ .icon-bar
6
+ .icon-bar
7
+ .icon-bar
8
+ = link_to BootstrapLeather.configuration.application_title, BootstrapLeather.configuration.application_path, :class => 'brand'
9
+ .nav-collapse
10
+ = block
@@ -0,0 +1,4 @@
1
+ .container.clearfix
2
+ .row
3
+ = nav_bar html_options do
4
+ = block
@@ -0,0 +1,4 @@
1
+ = nav_bar html_options.to_hash do
2
+ .container.clearfix
3
+ .row
4
+ = block
@@ -0,0 +1,10 @@
1
+ %div{:class => 'tabbable tabs-' + orientation}
2
+ %ul.nav.nav-tabs
3
+ - for tab in tabs
4
+ %li{:class => tab[:active] ? 'active' : ''}
5
+ = tab[:before_link]
6
+ = link_to tab[:label].html_safe, '#' + tab[:id], :data => {:toggle => 'tab'}
7
+ .tab-content
8
+ - for tab in tabs
9
+ %div{:id => tab[:id], :class => tab[:active] ? 'tab-pane active' : 'tab-pane'}
10
+ =tab[:content].html_safe
@@ -0,0 +1,3 @@
1
+ %ul.thumbnails
2
+ %li.thumbnail
3
+ = content
@@ -0,0 +1,3 @@
1
+ %div{html_options}
2
+ %div{:class => "well #{html_options[:content_class]}"}
3
+ = block
@@ -0,0 +1,2 @@
1
+ .widgets
2
+ =yield :widgets
data/bin/rails ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,156 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "bootstrap_leather"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Karen Lundgren"]
12
+ s.date = "2013-09-09"
13
+ s.description = "BootstrapLeather is a collection of view helpers that makes it easier to create apps using Twitter Bootstrap"
14
+ s.email = "webmaster@sourcherryweb.com"
15
+ s.executables = ["rails"]
16
+ s.extra_rdoc_files = [
17
+ "LICENSE.txt",
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".document",
22
+ ".rspec",
23
+ "Gemfile",
24
+ "LICENSE.txt",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "app/helpers/bootstrap_leather_helper.rb",
29
+ "app/views/bootstrap_leather/_alert.html.haml",
30
+ "app/views/bootstrap_leather/_alert_flash_messages.html.haml",
31
+ "app/views/bootstrap_leather/_badge.html.haml",
32
+ "app/views/bootstrap_leather/_dropdown_nav_item.html.haml",
33
+ "app/views/bootstrap_leather/_footer_javascript.html.haml",
34
+ "app/views/bootstrap_leather/_head_css.html.haml",
35
+ "app/views/bootstrap_leather/_hero_unit.html.haml",
36
+ "app/views/bootstrap_leather/_icon.html.haml",
37
+ "app/views/bootstrap_leather/_modal.html.haml",
38
+ "app/views/bootstrap_leather/_nav_item.html.haml",
39
+ "app/views/bootstrap_leather/_nav_list.html.haml",
40
+ "app/views/bootstrap_leather/_navbar.html.haml",
41
+ "app/views/bootstrap_leather/_navbar_in_container.haml",
42
+ "app/views/bootstrap_leather/_navbar_with_container.haml",
43
+ "app/views/bootstrap_leather/_tabs.html.haml",
44
+ "app/views/bootstrap_leather/_thumbnail.html.haml",
45
+ "app/views/bootstrap_leather/_widget.html.haml",
46
+ "app/views/bootstrap_leather/_widgets.html.haml",
47
+ "bin/rails",
48
+ "bootstrap_leather.gemspec",
49
+ "lib/bootstrap_leather.rb",
50
+ "lib/bootstrap_leather/configuration.rb",
51
+ "lib/bootstrap_leather/engine.rb",
52
+ "lib/bootstrap_leather/localization.rb",
53
+ "lib/bootstrap_leather/railtie.rb",
54
+ "lib/bootstrap_leather/version.rb",
55
+ "lib/generators/bootstrap_leather/install/install_generator.rb",
56
+ "lib/generators/bootstrap_leather/install/templates/initializer.rb",
57
+ "lib/generators/bootstrap_leather/utils.rb",
58
+ "spec/bootstrap_leather_spec.rb",
59
+ "spec/dummy/README.rdoc",
60
+ "spec/dummy/Rakefile",
61
+ "spec/dummy/app/assets/images/.keep",
62
+ "spec/dummy/app/assets/javascripts/application.js",
63
+ "spec/dummy/app/assets/javascripts/customizable_bootstrap/index.js",
64
+ "spec/dummy/app/assets/stylesheets/application.css.scss",
65
+ "spec/dummy/app/assets/stylesheets/customizable_bootstrap/colors.css.scss",
66
+ "spec/dummy/app/assets/stylesheets/customizable_bootstrap/font.css.scss",
67
+ "spec/dummy/app/assets/stylesheets/customizable_bootstrap/grid.css.scss",
68
+ "spec/dummy/app/assets/stylesheets/customizable_bootstrap/index.css.scss",
69
+ "spec/dummy/app/assets/stylesheets/customizable_bootstrap/layers.css.scss",
70
+ "spec/dummy/app/assets/stylesheets/customizable_bootstrap/overrides.css.scss",
71
+ "spec/dummy/app/controllers/application_controller.rb",
72
+ "spec/dummy/app/controllers/concerns/.keep",
73
+ "spec/dummy/app/controllers/welcome_controller.rb",
74
+ "spec/dummy/app/helpers/application_helper.rb",
75
+ "spec/dummy/app/mailers/.keep",
76
+ "spec/dummy/app/models/.keep",
77
+ "spec/dummy/app/models/concerns/.keep",
78
+ "spec/dummy/app/views/layouts/application.html.haml",
79
+ "spec/dummy/app/views/welcome/index.html.haml",
80
+ "spec/dummy/bin/bundle",
81
+ "spec/dummy/bin/rails",
82
+ "spec/dummy/bin/rake",
83
+ "spec/dummy/config.ru",
84
+ "spec/dummy/config/application.rb",
85
+ "spec/dummy/config/boot.rb",
86
+ "spec/dummy/config/environment.rb",
87
+ "spec/dummy/config/environments/development.rb",
88
+ "spec/dummy/config/environments/production.rb",
89
+ "spec/dummy/config/environments/test.rb",
90
+ "spec/dummy/config/initializers/backtrace_silencers.rb",
91
+ "spec/dummy/config/initializers/bootstrap_leather.rb",
92
+ "spec/dummy/config/initializers/filter_parameter_logging.rb",
93
+ "spec/dummy/config/initializers/inflections.rb",
94
+ "spec/dummy/config/initializers/mime_types.rb",
95
+ "spec/dummy/config/initializers/secret_token.rb",
96
+ "spec/dummy/config/initializers/session_store.rb",
97
+ "spec/dummy/config/initializers/wrap_parameters.rb",
98
+ "spec/dummy/config/locales/en.yml",
99
+ "spec/dummy/config/routes.rb",
100
+ "spec/dummy/lib/assets/.keep",
101
+ "spec/dummy/log/.keep",
102
+ "spec/dummy/public/404.html",
103
+ "spec/dummy/public/422.html",
104
+ "spec/dummy/public/500.html",
105
+ "spec/dummy/public/favicon.ico",
106
+ "spec/spec_helper.rb"
107
+ ]
108
+ s.homepage = "http://github.com/nerakdon/bootstrap_leather"
109
+ s.licenses = ["MIT"]
110
+ s.require_paths = ["lib"]
111
+ s.rubygems_version = "2.0.7"
112
+ s.summary = "BootstrapLeather makes it easier to create apps using Twitter Bootstrap"
113
+
114
+ if s.respond_to? :specification_version then
115
+ s.specification_version = 4
116
+
117
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
118
+ s.add_runtime_dependency(%q<rails>, [">= 0"])
119
+ s.add_runtime_dependency(%q<haml>, [">= 0"])
120
+ s.add_development_dependency(%q<rspec>, [">= 0"])
121
+ s.add_development_dependency(%q<shoulda-matchers>, [">= 0"])
122
+ s.add_development_dependency(%q<capybara>, [">= 0"])
123
+ s.add_development_dependency(%q<rdoc>, [">= 0"])
124
+ s.add_development_dependency(%q<bundler>, [">= 0"])
125
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
126
+ s.add_development_dependency(%q<puma>, [">= 0"])
127
+ s.add_development_dependency(%q<customizable_bootstrap>, [">= 0"])
128
+ s.add_development_dependency(%q<jquery-rails>, [">= 0"])
129
+ else
130
+ s.add_dependency(%q<rails>, [">= 0"])
131
+ s.add_dependency(%q<haml>, [">= 0"])
132
+ s.add_dependency(%q<rspec>, [">= 0"])
133
+ s.add_dependency(%q<shoulda-matchers>, [">= 0"])
134
+ s.add_dependency(%q<capybara>, [">= 0"])
135
+ s.add_dependency(%q<rdoc>, [">= 0"])
136
+ s.add_dependency(%q<bundler>, [">= 0"])
137
+ s.add_dependency(%q<jeweler>, [">= 0"])
138
+ s.add_dependency(%q<puma>, [">= 0"])
139
+ s.add_dependency(%q<customizable_bootstrap>, [">= 0"])
140
+ s.add_dependency(%q<jquery-rails>, [">= 0"])
141
+ end
142
+ else
143
+ s.add_dependency(%q<rails>, [">= 0"])
144
+ s.add_dependency(%q<haml>, [">= 0"])
145
+ s.add_dependency(%q<rspec>, [">= 0"])
146
+ s.add_dependency(%q<shoulda-matchers>, [">= 0"])
147
+ s.add_dependency(%q<capybara>, [">= 0"])
148
+ s.add_dependency(%q<rdoc>, [">= 0"])
149
+ s.add_dependency(%q<bundler>, [">= 0"])
150
+ s.add_dependency(%q<jeweler>, [">= 0"])
151
+ s.add_dependency(%q<puma>, [">= 0"])
152
+ s.add_dependency(%q<customizable_bootstrap>, [">= 0"])
153
+ s.add_dependency(%q<jquery-rails>, [">= 0"])
154
+ end
155
+ end
156
+
@@ -0,0 +1,11 @@
1
+ module BootstrapLeather
2
+ require 'rails'
3
+ require 'jquery-rails'
4
+
5
+ require 'bootstrap_leather/configuration'
6
+ require 'bootstrap_leather/engine'
7
+ require 'bootstrap_leather/localization'
8
+ require 'bootstrap_leather/railtie'
9
+ require 'bootstrap_leather/version'
10
+
11
+ end
@@ -0,0 +1,23 @@
1
+ module BootstrapLeather
2
+ def self.configure(configuration = BootstrapLeather::Configuration.new)
3
+ if block_given?
4
+ yield configuration
5
+ end
6
+ @@configuration = configuration
7
+ end
8
+
9
+ def self.configuration
10
+ @@configuration ||= BootstrapLeather::Configuration.new
11
+ end
12
+
13
+ class Configuration
14
+ attr_accessor :application_title, :application_description, :application_keywords, :application_path
15
+
16
+ def initialize
17
+ self.application_path = '/'
18
+ self.application_title = 'Run the Generator, Config and Restart'
19
+ self.application_description = 'Try it, very easy. `rails g bootstrap_leather:install` is the generator command.'
20
+ self.application_keywords = 'Then,fix,your,config,file'
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,5 @@
1
+ module BootstrapLeather
2
+ class Engine < Rails::Engine
3
+ # isolate_namespace BootstrapLeather
4
+ end
5
+ end
@@ -0,0 +1,31 @@
1
+ module StringExtension
2
+ def localize(*args)
3
+ if args.first.is_a? Symbol
4
+ sym = args.shift
5
+ else
6
+ sym = underscore.tr(' ', '_').gsub(/[^a-z0-9_]+/i, '').to_sym
7
+ end
8
+ args << {:default => self}
9
+
10
+ I18n.t(sym, *args).html_safe
11
+ end
12
+ alias :l :localize
13
+ end
14
+ String.send :include, StringExtension
15
+
16
+
17
+ module SymbolExtensionCustom
18
+
19
+ def localize_with_debugging(*args)
20
+ localized_sym = I18n.translate(self, *args)
21
+ localized_sym.is_a?(String) ? localized_sym.html_safe : localized_sym
22
+ end
23
+ alias_method :l, :localize_with_debugging
24
+
25
+ def l_with_args(*args)
26
+ self.l(*args).html_safe
27
+ end
28
+
29
+ end
30
+
31
+ Symbol.send :include, SymbolExtensionCustom
@@ -0,0 +1,9 @@
1
+ module BootstrapLeather
2
+ class Railtie < Rails::Railtie
3
+ initializer 'bootstrap_leather.add_view_paths', :after => :add_view_paths do |app|
4
+ ActiveSupport.on_load(:action_controller) do
5
+ prepend_view_path app.root.join('/app/views/bootstrap_leather').to_s
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ module BootstrapLeather
2
+ VERSION = File.read(File.expand_path('../../../VERSION', __FILE__))
3
+
4
+ def self.version_string
5
+ "BootstrapLeather version #{BootstrapLeather::VERSION}"
6
+ end
7
+ end
@@ -0,0 +1,28 @@
1
+ module BootstrapLeather
2
+ class InstallGenerator < Rails::Generators::Base
3
+ source_root File.expand_path("../templates", __FILE__)
4
+ require File.expand_path('../../utils', __FILE__)
5
+ include Generators::Utils
6
+ include Rails::Generators::Migration
7
+
8
+ # all public methods in here will be run in order
9
+
10
+ def add_initializer
11
+ output "You'll be wanting an initializer. This is where you put your configuration options.", :magenta
12
+ template "initializer.rb", "config/initializers/bootstrap_leather.rb"
13
+ end
14
+
15
+ def self.next_migration_number(dirname)
16
+ if ActiveRecord::Base.timestamped_migrations
17
+ unless @prev_migration_nr
18
+ @prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i
19
+ else
20
+ @prev_migration_nr += 1
21
+ end
22
+ @prev_migration_nr.to_s
23
+ else
24
+ "%.3d" % (current_migration_number(dirname) + 1)
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,6 @@
1
+ BootstrapLeather.configure do |config|
2
+ config.application_path = '/'
3
+ config.application_title = 'Change the Config'
4
+ config.application_description = 'Remember to restart when done'
5
+ config.application_keywords = 'unfinished, incomplete, unready'
6
+ end
@@ -0,0 +1,16 @@
1
+ module BootstrapLeather
2
+ module Generators
3
+ module Utils
4
+ def output(output, color = :green)
5
+ say(" - #{output}", color)
6
+ end
7
+
8
+ def ask_for(wording, default_value = nil, override_if_present_value = nil)
9
+ override_if_present_value.present? ?
10
+ display("Using [#{override_if_present_value}] for question '#{wording}'") && override_if_present_value :
11
+ ask(" ? #{wording} Press <enter> for [#{default_value}] >", :yellow).presence || default_value
12
+ end
13
+ end
14
+ end
15
+ end
16
+
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe BootstrapLeather do
4
+ it 'should return correct version string' do
5
+ BootstrapLeather.version_string.should == "BootstrapLeather version #{BootstrapLeather::VERSION}"
6
+ end
7
+ end
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.