bootswitch 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/helpers/theme_helper.rb +3 -1
- data/bootswitch.gemspec +2 -2
- data/lib/bootswitch/configuration.rb +3 -1
- data/lib/bootswitch/methods.rb +2 -2
- data/spec/dummy/config/initializers/bootswitch.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a43ad5a5f81a8fbc959089a590a73bef737a930a
|
4
|
+
data.tar.gz: 61756d60904ca315bf08d672733409b79fc25d5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2bdeedbeaecde038d26171bdf36d437d447d5ef0eaf272e49427bdbcc1b331dde4cbfe8b1151ff9d70304b1eeafdb19cd6c9b18caad4c382ced30614245fc9e
|
7
|
+
data.tar.gz: d813c47ec20b70a8871a1aadab07a9ac6bcc9c257352060e2afee75a9879deeb97fe4b2a913208a94dd8a34d02ec0ff692a288d2f1f42ea14e4484eac44ab26d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/app/helpers/theme_helper.rb
CHANGED
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.
|
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.
|
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
|
data/lib/bootswitch/methods.rb
CHANGED
@@ -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 = :
|
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
|