bootswitch 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a00692753dc02d50ea532e62a201eb7b843a68c
4
- data.tar.gz: 112284bf266536ac4863e5818f01fe0a7815c959
3
+ metadata.gz: 8447e21c182327851533223d0336881f8a06ee57
4
+ data.tar.gz: bbf8d7c4956c29b7d41c9dd674493540bf2602d2
5
5
  SHA512:
6
- metadata.gz: 3fda2f7e049721b5dc8f65460ef6a7504e20435af8556fe9f29211d882b3ecadc593ec1d72ea7a89e25b21deb38960935045f4f568461ba73dc7cde970a3fc5d
7
- data.tar.gz: 1679d7060ce628d7ab56f949ff4220aab3354e08cf24095399e2a60cf6957d18022d20d2a874a8aa17a2217790fe48c438b2644c79bb5458c59f9050f11ca56a
6
+ metadata.gz: 368bf63fcfb4b6ad35d890760bbfc3f1cbf49af1d9a83d90ba56140ec48cb39dd368d088e76883bc1d001b8ce97ee25910ac57e6b38f53001c141cdb1e6d6d24
7
+ data.tar.gz: 43ea113116c4d7cbacada7de3dc7d875176e6b30a7a275fbb8dfd6bc83cb8e178da92dc4af988a856375bd33cc408ee6b954abd2c4259a09aad30f52d5cf33b8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -2,7 +2,7 @@ module ThemeHelper
2
2
  include Bootswitch
3
3
 
4
4
  def theme_name
5
- send(configuration.theme_method)
5
+ send(Bootswitch.configuration.theme_method) || Bootswitch.configuration.default_theme
6
6
  end
7
7
 
8
8
  def theme_stylesheet_link_tag
data/bootswitch.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bootswitch 0.0.4 ruby lib
5
+ # stub: bootswitch 0.0.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bootswitch"
9
- s.version = "0.0.4"
9
+ s.version = "0.0.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -1,4 +1,5 @@
1
1
  Bootswitch.configure do |config|
2
- # What helper method should determine the bootswatch theme displayed?
2
+ # What helper method should determine the Bootswatch theme displayed?
3
3
  config.theme_method = :user_theme
4
+ config.default_theme = 'slate'
4
5
  end
@@ -1,6 +1,11 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe ThemeHelper do
4
+ describe '#themes' do
5
+ it 'returns an array' do
6
+ helper.themes.should be_an Array
7
+ end
8
+ end
4
9
  describe '#theme_name' do
5
10
  it 'returns the a theme name' do
6
11
  ['amelia', 'cerulean', 'cosmo', 'custom', 'cyborg', 'darkly', 'flatly','global','journal','readable','simplex','slate','spacelab','superhero','united','yeti'].should include helper.theme_name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootswitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren