bootstrap-for-ember-rails 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +6 -0
  3. data/.gitmodules +3 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +32 -0
  7. data/Rakefile +2 -0
  8. data/bootstrap-for-ember-rails.gemspec +36 -0
  9. data/lib/bootstrap-for-ember-rails.rb +9 -0
  10. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/.bowerrc +3 -0
  11. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/.gitignore +5 -0
  12. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/Gruntfile.js +459 -0
  13. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/LICENSE +191 -0
  14. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/README.md +80 -0
  15. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/index.html +176 -0
  16. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsAlertComponent.coffee +30 -0
  17. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsBadgeComponent.coffee +8 -0
  18. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsBreadcrumbs.coffee +65 -0
  19. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsBtnGroup.coffee +19 -0
  20. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsBtnToolbarComponent.coffee +11 -0
  21. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsButtonComponent.coffee +45 -0
  22. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsItemsActionBar.coffee +45 -0
  23. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsLabelComponent.coffee +8 -0
  24. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsListGroupComponent.coffee +34 -0
  25. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsModalComponent.coffee +204 -0
  26. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsPageHeaderComponent.coffee +6 -0
  27. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsPanelComponent.coffee +35 -0
  28. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsPill.coffee +20 -0
  29. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsPills.coffee +9 -0
  30. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsPopover.coffee +443 -0
  31. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsProgressComponent.coffee +19 -0
  32. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsProgressbarComponent.coffee +22 -0
  33. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsTabPane.coffee +2 -0
  34. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsTabs.coffee +9 -0
  35. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsTabsPanes.coffee +6 -0
  36. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsWellComponent.coffee +10 -0
  37. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/BsWizardComponent.coffee +175 -0
  38. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/GrowlNotifications.coffee +161 -0
  39. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/components/Notifications.coffee +88 -0
  40. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/init.coffee +1 -0
  41. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/mixins/ItemSelection.coffee +68 -0
  42. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/mixins/ItemValue.coffee +18 -0
  43. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/mixins/ItemsSelection.coffee +14 -0
  44. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/mixins/Nav.coffee +13 -0
  45. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/mixins/NavItem.coffee +7 -0
  46. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/mixins/Size.coffee +37 -0
  47. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/mixins/Type.coffee +17 -0
  48. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/mixins/WithRouter.coffee +8 -0
  49. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase.coffee +16 -0
  50. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowComponentsAlertController.coffee +11 -0
  51. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowComponentsButtonController.coffee +24 -0
  52. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowComponentsItemsActionBarController.coffee +39 -0
  53. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowComponentsPanelController.coffee +8 -0
  54. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowComponentsPopoverController.coffee +45 -0
  55. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowComponentsProgressbarController.coffee +11 -0
  56. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowComponentsTooltipBoxController.coffee +1 -0
  57. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowComponentsWellController.coffee +4 -0
  58. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowcaseComponentButtonGroupController.coffee +8 -0
  59. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowcaseComponentPillsController.coffee +20 -0
  60. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowcaseComponentsGrowlNotifController.coffee +11 -0
  61. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowcaseComponentsListGroupController.coffee +12 -0
  62. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowcaseComponentsModalController.coffee +53 -0
  63. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowcaseComponentsNotificationsController.coffee +11 -0
  64. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowcaseComponentsTabsController.coffee +12 -0
  65. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowcaseComponentsTabsFooController.coffee +2 -0
  66. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowcaseComponentsTabsPanesController.coffee +6 -0
  67. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/ShowcaseComponentsWizardController.coffee +45 -0
  68. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/controllers/UserController.coffee +7 -0
  69. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/router.coffee +29 -0
  70. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/routes/ApplicationRoute.coffee +26 -0
  71. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/showcase/routes/PopoverRoute.coffee +10 -0
  72. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/vendor/bootstrap.js +2276 -0
  73. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/views/ItemPaneView.coffee +29 -0
  74. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/views/ItemView.coffee +49 -0
  75. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/views/ItemsPanesView.coffee +12 -0
  76. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/scripts/views/ItemsView.coffee +15 -0
  77. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/styles/components/growl-notifications.css +58 -0
  78. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/styles/main.scss +7 -0
  79. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/components/bs-alert.hbs +4 -0
  80. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/components/bs-badge.hbs +1 -0
  81. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/components/bs-btn-toolbar.hbs +1 -0
  82. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/components/bs-button.hbs +4 -0
  83. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/components/bs-label.hbs +1 -0
  84. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/components/bs-modal.hbs +28 -0
  85. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/components/bs-page-header.hbs +6 -0
  86. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/components/bs-panel.hbs +26 -0
  87. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/components/bs-progress.hbs +5 -0
  88. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/components/bs-progressbar.hbs +1 -0
  89. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/components/bs-well.hbs +1 -0
  90. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/ads.hbs +1 -0
  91. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/application.hbs +51 -0
  92. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/demo-template.hbs +4 -0
  93. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/footer.hbs +0 -0
  94. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/header.hbs +0 -0
  95. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/index.hbs +7 -0
  96. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/leftnav.hbs +13 -0
  97. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/nav-main.hbs +24 -0
  98. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/alert.md +115 -0
  99. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/badge.md +80 -0
  100. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/breadcrumbs.md +28 -0
  101. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/button.md +247 -0
  102. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/buttonGroup.md +99 -0
  103. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/growl-notif.md +70 -0
  104. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/items_action_bar.md +87 -0
  105. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/label.md +44 -0
  106. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/list-group.md +70 -0
  107. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/modal.md +167 -0
  108. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/notifications.md +76 -0
  109. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/page-header.md +15 -0
  110. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/panel.md +123 -0
  111. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/pills.md +104 -0
  112. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/popover.md +213 -0
  113. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/progressbar.md +117 -0
  114. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/tabs-panes.md +42 -0
  115. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/tabs-with-routes.md +64 -0
  116. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/tabs.md +30 -0
  117. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/template.jst +1 -0
  118. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/well.md +84 -0
  119. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/show_components/wizard.md +109 -0
  120. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/social-buttons.hbs +13 -0
  121. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/tabs/bar-tabpane.hbs +2 -0
  122. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/tabs/baz-tabpane.hbs +1 -0
  123. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/tabs/foo-tabpane.hbs +2 -0
  124. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/user.hbs +3 -0
  125. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/user/activities.hbs +1 -0
  126. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/user/general.hbs +1 -0
  127. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/user/privacy.hbs +1 -0
  128. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/wizard/step1.hbs +1 -0
  129. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/wizard/step2.hbs +1 -0
  130. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/showcase/wizard/step3.hbs +1 -0
  131. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/app/templates/views/item-pane.hbs +3 -0
  132. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/bower.json +59 -0
  133. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/css/bs-growl-notifications.min.css +1 -0
  134. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-alert.max.js +158 -0
  135. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-alert.min.js +1 -0
  136. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-badge.max.js +26 -0
  137. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-badge.min.js +1 -0
  138. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-basic.max.js +230 -0
  139. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-basic.min.js +1 -0
  140. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-breadcrumbs.max.js +77 -0
  141. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-breadcrumbs.min.js +1 -0
  142. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-button.max.js +275 -0
  143. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-button.min.js +1 -0
  144. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-core.max.js +476 -0
  145. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-core.min.js +1 -0
  146. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-growl-notifications.max.js +162 -0
  147. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-growl-notifications.min.js +1 -0
  148. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-items-action-bar.max.js +45 -0
  149. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-items-action-bar.min.js +1 -0
  150. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-label.max.js +26 -0
  151. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-label.min.js +1 -0
  152. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-list-group.max.js +29 -0
  153. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-list-group.min.js +1 -0
  154. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-modal.max.js +314 -0
  155. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-modal.min.js +1 -0
  156. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-nav.max.js +51 -0
  157. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-nav.min.js +1 -0
  158. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-notifications.max.js +111 -0
  159. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-notifications.min.js +1 -0
  160. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-popover.max.js +402 -0
  161. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-popover.min.js +1 -0
  162. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-progressbar.max.js +102 -0
  163. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-progressbar.min.js +1 -0
  164. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-wizard.max.js +182 -0
  165. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/dist/js/bs-wizard.min.js +1 -0
  166. data/lib/bootstrap-for-ember-rails/bootstrap-for-ember/package.json +36 -0
  167. data/lib/bootstrap-for-ember-rails/version.rb +3 -0
  168. metadata +253 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 38ca916e536f338bcad64a60af530adb62f658de
4
+ data.tar.gz: 6121a763c7309df320cfa68cd496598e2284b29f
5
+ SHA512:
6
+ metadata.gz: 733c78f30c347f2b333a860c819f9d77ecf3c0a0ef7591fe6201d0563cc4771f02bf318daa76499c0cc5108582c1e942392e5a46470c72e9da31e6d44d76b459
7
+ data.tar.gz: 6ed8fdb532fd75674cca0ef32605a91ba28a1b0a12e00ee075d5e01866c561dbfe35468df40b0894403c14eca6378d0dd118293f89d17f539214c22dad9fffe5
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
data/.gitmodules ADDED
@@ -0,0 +1,3 @@
1
+ [submodule "lib/bootstrap-for-ember-rails/bootstrap-for-ember"]
2
+ path = lib/bootstrap-for-ember-rails/bootstrap-for-ember
3
+ url = git://github.com/ember-addons/bootstrap-for-ember.git
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in bootstrap-for-ember-rails.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Dave Spurr
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # Bootstrap For Ember Rails
2
+
3
+ Rails 3.2+ Asset pipeline integration for [bootstrap-for-ember](https://github.com/ember-addons/bootstrap-for-ember) JavaScript assets
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'bootstrap-for-ember-rails'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install bootstrap-for-ember-rails
18
+
19
+ ## Usage
20
+
21
+ In your JavaScript you can now load items from `boostrap-for-ember/dist/js` you must always load the `bs-core` e.g.:
22
+
23
+ //=require bs-core.min
24
+ //=require bs-button.min
25
+
26
+ ## Contributing
27
+
28
+ 1. Fork it ( https://github.com/[my-github-username]/bootstrap-for-ember-rails/fork )
29
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
30
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
31
+ 4. Push to the branch (`git push origin my-new-feature`)
32
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'bootstrap-for-ember-rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "bootstrap-for-ember-rails"
8
+ spec.version = BootstrapForEmberRails::VERSION
9
+ spec.authors = ["Dave Spurr"]
10
+ spec.email = ["david.spurr@gmail.com"]
11
+ spec.summary = %q{Rails 3.2+ Asset pipeline integration for bootstrap-for-ember js assets}
12
+ spec.description = %q{Add bootstrap-for-ember to your Rails & Ember project}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.require_paths = ["lib"]
17
+
18
+ spec.add_development_dependency "bundler", "~> 1.6"
19
+ spec.add_development_dependency "rake"
20
+ spec.add_dependency "railties", "~> 3.2"
21
+
22
+ spec.files = `git ls-files`.split("\n")
23
+
24
+ # get an array of submodule dirs by executing 'pwd' inside each submodule
25
+ gem_dir = File.expand_path(File.dirname(__FILE__)) + "/"
26
+ `git submodule --quiet foreach pwd`.split($\).each do |submodule_path|
27
+ Dir.chdir(submodule_path) do
28
+ submodule_relative_path = submodule_path.sub gem_dir, ""
29
+ # issue git ls-files in submodule's directory and
30
+ # prepend the submodule path to create absolute file paths
31
+ `git ls-files`.split($\).each do |filename|
32
+ spec.files << "#{submodule_relative_path}/#{filename}"
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,9 @@
1
+ require "bootstrap-for-ember-rails/version"
2
+
3
+ module BootstrapForEmberRails
4
+ class Engine < ::Rails::Engine
5
+ initializer :assets do |config|
6
+ Rails.application.config.assets.paths << root.join("lib", "bootstrap-for-ember-rails", "bootstrap-for-ember", "dist", "js")
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ {
2
+ "directory": "app/bower_components"
3
+ }
@@ -0,0 +1,5 @@
1
+ node_modules
2
+ .tmp
3
+ .sass-cache
4
+ app/bower_components
5
+ app/templates/showcase/show_components/*.hbs
@@ -0,0 +1,459 @@
1
+ // Generated on 2013-08-24 using generator-webapp 0.2.6
2
+ 'use strict';
3
+ var LIVERELOAD_PORT = 35729;
4
+ var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT});
5
+ var mountFolder = function (connect, dir) {
6
+ return connect.static(require('path').resolve(dir));
7
+ };
8
+
9
+ // # Globbing
10
+ // for performance reasons we're only matching one level down:
11
+ // 'test/spec/{,*/}*.js'
12
+ // use this if you want to recursively match all subfolders:
13
+ // 'test/spec/**/*.js'
14
+
15
+ module.exports = function (grunt) {
16
+ // load all grunt tasks
17
+ require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
18
+
19
+ // configurable paths
20
+ var yeomanConfig = {
21
+ app: 'app',
22
+ dist: 'dist'
23
+ };
24
+
25
+ grunt.initConfig({
26
+ yeoman: yeomanConfig,
27
+ watch: {
28
+ coffee: {
29
+ files: ['<%= yeoman.app %>/scripts/**/*.coffee'],
30
+ tasks: ['coffee:dist','neuter']
31
+ },
32
+ coffeeTest: {
33
+ files: ['test/spec/{,*/}*.coffee'],
34
+ tasks: ['coffee:test']
35
+ },
36
+ compass: {
37
+ files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
38
+ tasks: ['compass:server']
39
+ },
40
+ ember_handlebars: {
41
+ files: '<%= yeoman.app %>/templates/**/*.hbs',
42
+ tasks: ['ember_handlebars']
43
+ },
44
+ markdown: {
45
+ files: '<%= yeoman.app %>/templates/**/*.md',
46
+ tasks: ['markdown']
47
+ },
48
+ livereload: {
49
+ options: {
50
+ livereload: LIVERELOAD_PORT
51
+ },
52
+ files: [
53
+ '<%= yeoman.app %>/*.html',
54
+ '{.tmp,<%= yeoman.app %>}/styles/{,*/}*.css',
55
+ '{.tmp,<%= yeoman.app %>}/scripts/{,*/}*.js',
56
+ '<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
57
+ ]
58
+ }
59
+ /*
60
+ neuter: {
61
+ files: [
62
+ '<%= yeoman.app %>/scripts/showcase.coffee',
63
+ '<%= yeoman.app %>/scripts/showcase/***.coffee',
64
+ ],
65
+ tasks: ['neuter']
66
+ }*/
67
+ },
68
+ connect: {
69
+ options: {
70
+ port: 9000,
71
+ // change this to '0.0.0.0' to access the server from outside
72
+ hostname: 'localhost'
73
+ },
74
+ livereload: {
75
+ options: {
76
+ middleware: function (connect) {
77
+ return [
78
+ lrSnippet,
79
+ mountFolder(connect, '.tmp'),
80
+ mountFolder(connect, yeomanConfig.app)
81
+ ];
82
+ }
83
+ }
84
+ },
85
+ test: {
86
+ options: {
87
+ middleware: function (connect) {
88
+ return [
89
+ mountFolder(connect, '.tmp'),
90
+ mountFolder(connect, 'test')
91
+ ];
92
+ }
93
+ }
94
+ },
95
+ dist: {
96
+ options: {
97
+ middleware: function (connect) {
98
+ return [
99
+ mountFolder(connect, yeomanConfig.dist)
100
+ ];
101
+ }
102
+ }
103
+ }
104
+ },
105
+ open: {
106
+ server: {
107
+ path: 'http://localhost:<%= connect.options.port %>'
108
+ }
109
+ },
110
+ clean: {
111
+ dist: {
112
+ files: [{
113
+ dot: true,
114
+ src: [
115
+ '.tmp',
116
+ '<%= yeoman.dist %>/*',
117
+ '!<%= yeoman.dist %>/.git*'
118
+ ]
119
+ }]
120
+ },
121
+ server: '.tmp'
122
+ },
123
+ jshint: {
124
+ options: {
125
+ jshintrc: '.jshintrc'
126
+ },
127
+ all: [
128
+ 'Gruntfile.js',
129
+ '<%= yeoman.app %>/scripts/{,*/}*.js',
130
+ '!<%= yeoman.app %>/scripts/vendor/*',
131
+ 'test/spec/{,*/}*.js'
132
+ ]
133
+ },
134
+ mocha: {
135
+ all: {
136
+ options: {
137
+ run: true,
138
+ urls: ['http://localhost:<%= connect.options.port %>/index.html']
139
+ }
140
+ }
141
+ },
142
+ coffee: {
143
+ dist: {
144
+ files: [{
145
+ expand: true,
146
+ cwd: '<%= yeoman.app %>/scripts',
147
+ src: '**/*.coffee',
148
+ dest: '.tmp/scripts',
149
+ ext: '.js'
150
+ }]
151
+ },
152
+ test: {
153
+ files: [{
154
+ expand: true,
155
+ cwd: 'test/spec',
156
+ src: '{,*/}*.coffee',
157
+ dest: '.tmp/spec',
158
+ ext: '.js'
159
+ }]
160
+ }
161
+ },
162
+ compass: {
163
+ options: {
164
+ sassDir: '<%= yeoman.app %>/styles',
165
+ cssDir: '.tmp/styles',
166
+ generatedImagesDir: '.tmp/images/generated',
167
+ imagesDir: '<%= yeoman.app %>/images',
168
+ javascriptsDir: '<%= yeoman.app %>/scripts',
169
+ fontsDir: '<%= yeoman.app %>/styles/fonts',
170
+ importPath: '<%= yeoman.app %>/bower_components',
171
+ httpImagesPath: '/images',
172
+ httpGeneratedImagesPath: '/images/generated',
173
+ httpFontsPath: '/styles/fonts',
174
+ relativeAssets: false
175
+ },
176
+ dist: {},
177
+ server: {
178
+ options: {
179
+ debugInfo: true
180
+ }
181
+ }
182
+ },
183
+ // not used since Uglify task does concat,
184
+ // but still available if needed
185
+ /*concat: {
186
+ dist: {}
187
+ },*/
188
+ // not enabled since usemin task does concat and uglify
189
+ // check index.html to edit your build targets
190
+ // enable this task if you prefer defining your build targets here
191
+ /*uglify: {
192
+ dist: {}
193
+ },*/
194
+ rev: {
195
+ dist: {
196
+ files: {
197
+ src: [
198
+ '<%= yeoman.dist %>/scripts/{,*/}*.js',
199
+ '<%= yeoman.dist %>/styles/{,*/}*.css',
200
+ '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp}',
201
+ '<%= yeoman.dist %>/styles/fonts/*'
202
+ ]
203
+ }
204
+ }
205
+ },
206
+ useminPrepare: {
207
+ options: {
208
+ dest: '<%= yeoman.dist %>'
209
+ },
210
+ html: '<%= yeoman.app %>/index.html'
211
+ },
212
+ usemin: {
213
+ options: {
214
+ dirs: ['<%= yeoman.dist %>']
215
+ },
216
+ html: ['<%= yeoman.dist %>/{,*/}*.html'],
217
+ css: ['<%= yeoman.dist %>/styles/{,*/}*.css']
218
+ },
219
+ imagemin: {
220
+ dist: {
221
+ files: [{
222
+ expand: true,
223
+ cwd: '<%= yeoman.app %>/images',
224
+ src: '{,*/}*.{png,jpg,jpeg}',
225
+ dest: '<%= yeoman.dist %>/images'
226
+ }]
227
+ }
228
+ },
229
+ svgmin: {
230
+ dist: {
231
+ files: [{
232
+ expand: true,
233
+ cwd: '<%= yeoman.app %>/images',
234
+ src: '{,*/}*.svg',
235
+ dest: '<%= yeoman.dist %>/images'
236
+ }]
237
+ }
238
+ },
239
+ cssmin: {
240
+ // This task is pre-configured if you do not wish to use Usemin
241
+ // blocks for your CSS. By default, the Usemin block from your
242
+ // `index.html` will take care of minification, e.g.
243
+ //
244
+ // <!-- build:css({.tmp,app}) styles/main.css -->
245
+ //
246
+ // dist: {
247
+ // files: {
248
+ // '<%= yeoman.dist %>/styles/main.css': [
249
+ // '.tmp/styles/{,*/}*.css',
250
+ // '<%= yeoman.app %>/styles/{,*/}*.css'
251
+ // ]
252
+ // }
253
+ // }
254
+ },
255
+ htmlmin: {
256
+ dist: {
257
+ options: {
258
+ /*removeCommentsFromCDATA: true,
259
+ // https://github.com/yeoman/grunt-usemin/issues/44
260
+ //collapseWhitespace: true,
261
+ collapseBooleanAttributes: true,
262
+ removeAttributeQuotes: true,
263
+ removeRedundantAttributes: true,
264
+ useShortDoctype: true,
265
+ removeEmptyAttributes: true,
266
+ removeOptionalTags: true*/
267
+ },
268
+ files: [{
269
+ expand: true,
270
+ cwd: '<%= yeoman.app %>',
271
+ src: '*.html',
272
+ dest: '<%= yeoman.dist %>'
273
+ }]
274
+ }
275
+ },
276
+ // Put files not handled in other tasks here
277
+ copy: {
278
+ dist: {
279
+ files: [{
280
+ expand: true,
281
+ dot: true,
282
+ cwd: '<%= yeoman.app %>',
283
+ dest: '<%= yeoman.dist %>',
284
+ src: [
285
+ '*.{ico,png,txt}',
286
+ '.htaccess',
287
+ 'images/{,*/}*.{webp,gif}',
288
+ 'styles/fonts/*'
289
+ ]
290
+ }, {
291
+ expand: true,
292
+ cwd: '.tmp/images',
293
+ dest: '<%= yeoman.dist %>/images',
294
+ src: [
295
+ 'generated/*'
296
+ ]
297
+ }]
298
+ },
299
+ //Copy unminified files before the uglify runs
300
+ unminified: {
301
+ files: [{
302
+ expand: true,
303
+ src: ['<%= yeoman.dist %>/js/bs-*.min.js'],
304
+ ext: '.max.js'
305
+ }]
306
+ }
307
+ },
308
+ concurrent: {
309
+ server: [
310
+ 'compass',
311
+ 'markdown',
312
+ 'ember_handlebars',
313
+ 'coffee:dist'
314
+ ],
315
+ test: [
316
+ 'coffee'
317
+ ],
318
+ dist: [
319
+ 'coffee',
320
+ 'markdown',
321
+ 'ember_handlebars',
322
+ 'compass',
323
+ 'imagemin',
324
+ 'svgmin',
325
+ 'htmlmin'
326
+ ]
327
+ },
328
+ ember_handlebars: {
329
+ compile_components: {
330
+ options: {
331
+ processName: function(filename) {
332
+ var fromComponent = filename.substring(filename.lastIndexOf('/components/')+1,filename.length);
333
+ return fromComponent.substring(0,fromComponent.length-4);
334
+ },
335
+ namespace: "Ember.TEMPLATES"
336
+ },
337
+ files: {
338
+ '.tmp/scripts/bs-core.js': '<%= yeoman.app %>/templates/views/item-pane.hbs',
339
+ '.tmp/scripts/bs-basic.js': [
340
+ '<%= yeoman.app %>/templates/components/bs-page-header.hbs',
341
+ '<%= yeoman.app %>/templates/components/bs-well.hbs',
342
+ '<%= yeoman.app %>/templates/components/bs-panel.hbs',
343
+ ],
344
+ '.tmp/scripts/bs-alert.js': '<%= yeoman.app %>/templates/components/bs-alert.hbs',
345
+ '.tmp/scripts/bs-label.js': '<%= yeoman.app %>/templates/components/bs-label.hbs',
346
+ '.tmp/scripts/bs-badge.js': '<%= yeoman.app %>/templates/components/bs-badge.hbs',
347
+ '.tmp/scripts/bs-button.js': '<%= yeoman.app %>/templates/components/bs-button.hbs',
348
+ '.tmp/scripts/bs-btn-toolbar.js': '<%= yeoman.app %>/templates/components/bs-btn-toolbar.hbs',
349
+ '.tmp/scripts/bs-progressbar.js': [
350
+ '<%= yeoman.app %>/templates/components/bs-progress.hbs',
351
+ '<%= yeoman.app %>/templates/components/bs-progressbar.hbs'
352
+ ],
353
+ '.tmp/scripts/bs-pills.js': '<%= yeoman.app %>/templates/components/bs-pills.hbs',
354
+ '.tmp/scripts/bs-modal.js': '<%= yeoman.app %>/templates/components/bs-modal.hbs'
355
+ }
356
+ },
357
+ compile_showcase: {
358
+ options: {
359
+ processName: function(filename) {
360
+ var fromShowcase = filename.substring(filename.lastIndexOf('/showcase/')+1,filename.length)
361
+ return fromShowcase.substring(fromShowcase.indexOf('/')+1,fromShowcase.length-4);
362
+ },
363
+ namespace: "Ember.TEMPLATES"
364
+ },
365
+ files: {
366
+ '.tmp/scripts/showcase-templates.js': '<%= yeoman.app %>/templates/showcase/**/*.hbs'
367
+ }
368
+ }
369
+ },
370
+ markdown: {
371
+ all: {
372
+ files: [
373
+ {
374
+ expand: true,
375
+ src: '<%= yeoman.app %>/templates/showcase/show_components/*.md',
376
+ dest: '',
377
+ ext: '.hbs'
378
+ }
379
+ ],
380
+ options: {
381
+ template: '<%= yeoman.app %>/templates/showcase/show_components/template.jst',
382
+ postCompile: function(src, context) {
383
+ src = src.replace(/\\{\\{/g,"&#123;&#123;");
384
+ src = src.replace(/\\}\\}/g,"&#125;&#125;");
385
+ src = src.replace(/\&quot\;/g,'"');
386
+
387
+ console.log(src);
388
+
389
+ return src;
390
+ },
391
+ markdownOptions: {
392
+ gfm: true,
393
+ codeLines: {
394
+ before: '<span>',
395
+ after: '</span>'
396
+ }
397
+
398
+ }
399
+ }
400
+ }
401
+ },
402
+ neuter: {
403
+ showcase: {
404
+ options: {
405
+ //The .tmp folder / 'path specified in the require', i.e: 'require('scripts/showcase/router') becomes
406
+ //'.tmp/scripts/showcase/router
407
+ filepathTransform: function (filepath) {
408
+ return '.tmp/' + filepath;
409
+ }
410
+ },
411
+ //src: '<%= yeoman.app/scripts/showcase.js',
412
+ src: '.tmp/scripts/showcase.js',
413
+ dest: '.tmp/scripts/showcase-scripts.js'
414
+ }
415
+ }
416
+ });
417
+
418
+ grunt.registerTask('server', function (target) {
419
+ if (target === 'dist') {
420
+ return grunt.task.run(['build', 'open', 'connect:dist:keepalive']);
421
+ }
422
+
423
+ grunt.task.run([
424
+ 'clean:server',
425
+ 'concurrent:server',
426
+ 'neuter:showcase',
427
+ 'connect:livereload',
428
+ //'open',
429
+ 'watch'
430
+ ]);
431
+ });
432
+
433
+ grunt.registerTask('test', [
434
+ 'clean:server',
435
+ 'concurrent:test',
436
+ 'connect:test',
437
+ //'mocha'
438
+ ]);
439
+
440
+ grunt.registerTask('build', [
441
+ 'clean:dist',
442
+ 'useminPrepare',
443
+ 'concurrent:dist',
444
+ 'neuter',
445
+ 'concat',
446
+ 'copy:unminified',
447
+ 'cssmin',
448
+ 'uglify',
449
+ 'copy:dist',
450
+ 'rev',
451
+ 'usemin'
452
+ ]);
453
+
454
+ grunt.registerTask('default', [
455
+ //'jshint',
456
+ 'test',
457
+ 'build'
458
+ ]);
459
+ };