bootswitch 0.0.7 → 0.0.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5628fe9d45893185b6cbecc498b712a7ba78c167
4
- data.tar.gz: 6aa093b827e8bcc2d5d5ca9cef0647e0ad016b24
3
+ metadata.gz: a43ad5a5f81a8fbc959089a590a73bef737a930a
4
+ data.tar.gz: 61756d60904ca315bf08d672733409b79fc25d5e
5
5
  SHA512:
6
- metadata.gz: 82f6340704373541d7dd1e57b6a245b7faebc7c1421d83dfc3c91b78f2a398bfcfa2bd818a86d7d46a51599200f19d134eeed92e80d39023206168c5bf0ef04d
7
- data.tar.gz: 5070d2e656bd90c24f093d5f4220a815dfa93fe4e0539da6d028d61f581bffc528a782743988f24e73258f2459686a3f06f5b3e75a06e32ad6a46c9b27da6aba
6
+ metadata.gz: e2bdeedbeaecde038d26171bdf36d437d447d5ef0eaf272e49427bdbcc1b331dde4cbfe8b1151ff9d70304b1eeafdb19cd6c9b18caad4c382ced30614245fc9e
7
+ data.tar.gz: d813c47ec20b70a8871a1aadab07a9ac6bcc9c257352060e2afee75a9879deeb97fe4b2a913208a94dd8a34d02ec0ff692a288d2f1f42ea14e4484eac44ab26d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -1,5 +1,7 @@
1
1
  module ThemeHelper
2
- include Bootswitch
2
+ def themes
3
+ Bootswitch.configuration.themes
4
+ end
3
5
 
4
6
  def theme_name
5
7
  send(Bootswitch.configuration.theme_method) || Bootswitch.configuration.default_theme
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.7 ruby lib
5
+ # stub: bootswitch 0.0.8 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bootswitch"
9
- s.version = "0.0.7"
9
+ s.version = "0.0.8"
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"]
@@ -11,10 +11,12 @@ module Bootswitch
11
11
  end
12
12
 
13
13
  class Configuration
14
- attr_accessor :theme_method
14
+ attr_accessor :theme_method, :default_theme, :themes
15
15
 
16
16
  def initialize
17
17
  self.theme_method = nil
18
+ self.default_theme = 'cyborg'
19
+ self.themes = ['amelia', 'cerulean', 'cosmo', 'custom', 'cyborg', 'darkly', 'flatly','global','journal','readable','simplex','slate','spacelab','superhero','united','yeti']
18
20
  end
19
21
  end
20
22
  end
@@ -1,5 +1,5 @@
1
1
  module Bootswitch
2
- def themes
3
-
2
+ def self.themes
3
+ configuration.themes
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  Bootswitch.configure do |config|
2
2
  # What helper method should determine the Bootswatch theme displayed?
3
- config.theme_method = :user_theme
3
+ config.theme_method = :random_theme
4
4
  config.default_theme = 'slate'
5
5
  config.themes = ['amelia', 'cerulean', 'cosmo', 'custom', 'cyborg', 'darkly', 'flatly','global','journal','readable','simplex','slate','spacelab','superhero','united','yeti']
6
6
  end
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren