Module: Shipyard

Defined in:
lib/shipyard-framework.rb,
lib/shipyard-framework/icons.rb,
lib/shipyard-framework/version.rb,
lib/shipyard-framework/rails/engine.rb,
lib/shipyard-framework/rails/railtie.rb,
lib/shipyard-framework/helpers/box_helper.rb,
lib/shipyard-framework/helpers/form_helper.rb,
lib/shipyard-framework/helpers/icon_helper.rb,
lib/shipyard-framework/helpers/note_helper.rb,
lib/shipyard-framework/jekyll/tags/box_tag.rb,
lib/shipyard-framework/helpers/alert_helper.rb,
lib/shipyard-framework/jekyll/tags/icon_tag.rb,
lib/shipyard-framework/jekyll/tags/note_tag.rb,
lib/shipyard-framework/helpers/layout_helper.rb,
lib/shipyard-framework/jekyll/tags/alert_tag.rb,
lib/shipyard-framework/jekyll/shipyard_css_classes.rb,
lib/shipyard-framework/jekyll/tags/shipyard_version_tag.rb

Defined Under Namespace

Modules: AlertHelper, BoxHelper, FormHelper, IconHelper, Jekyll, LayoutHelper, NoteHelper, Rails Classes: Icons

Constant Summary collapse

VERSION =
'1.0.1'

Class Method Summary collapse

Class Method Details

.assets_pathObject



45
46
47
# File 'lib/shipyard-framework.rb', line 45

def assets_path
  @assets_path ||= File.join gem_path, 'assets'
end

.gem_pathObject

Paths



25
26
27
# File 'lib/shipyard-framework.rb', line 25

def gem_path
  @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
end

.icons_pathObject



41
42
43
# File 'lib/shipyard-framework.rb', line 41

def icons_path
  File.join assets_path, 'icons'
end

.images_pathObject



37
38
39
# File 'lib/shipyard-framework.rb', line 37

def images_path
  File.join assets_path, 'images'
end

.javascripts_pathObject



33
34
35
# File 'lib/shipyard-framework.rb', line 33

def javascripts_path
  File.join assets_path, 'javascripts'
end

.load!Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/shipyard-framework.rb', line 6

def load!
  if rails?
    register_rails_engine
  elsif sprockets?
    register_sprockets
  end
  register_icons
  load_icons if rspec?

  if jekyll?
    register_jekyll_hooks
    register_jekyll_tags
  end

  register_helpers
  configure_sass
end

.stylesheets_pathObject



29
30
31
# File 'lib/shipyard-framework.rb', line 29

def stylesheets_path
  File.join assets_path, 'stylesheets'
end