bootswitch 0.0.2 → 0.0.3
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 +4 -4
- data/VERSION +1 -1
- data/app/controllers/theme_controller.rb +0 -10
- data/app/helpers/theme_helper.rb +4 -0
- data/bootswitch.gemspec +2 -2
- data/spec/dummy/app/helpers/application_helper.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: b13b7657a10b76f97d4460b4b61e8babd7e12dd2
|
4
|
+
data.tar.gz: 76eaa23d14b73429feacceaae0f798cee91eccdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75d33d93bf95afca3c72d986b4eb4aa7677e62f60f6d7a019dcf8e963ec2b0740183381be283ef383bc764e7bed406b085ce34358c13615f3a50f716d01663e4
|
7
|
+
data.tar.gz: fc9c8e81de0e5857f9b684ca06a4863f4320548f9bffb2d64c7f40de0be380a8bffa8954363818a322ffb2c48e0a6481945c96448e95f22317b9ea54a79a5c3e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -1,17 +1,7 @@
|
|
1
1
|
class ThemeController < BootswitchController
|
2
|
-
def variables
|
3
|
-
respond_to do |format|
|
4
|
-
format.css { render :file => "bootswatch/" + theme_name + "/variables", :handlers => [:scss]}
|
5
|
-
end
|
6
|
-
end
|
7
2
|
def theme
|
8
3
|
respond_to do |format|
|
9
4
|
format.css { render :file => "bootswatch/" + theme_name + "/theme", :handlers => [:scss]}
|
10
5
|
end
|
11
6
|
end
|
12
|
-
def layout
|
13
|
-
respond_to do |format|
|
14
|
-
format.css { render :file => "bootswatch/" + theme_name + "/bootswatch", :handlers => [:scss]}
|
15
|
-
end
|
16
|
-
end
|
17
7
|
end
|
data/app/helpers/theme_helper.rb
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
module ThemeHelper
|
2
|
+
def themes
|
3
|
+
['amelia', 'cerulean', 'cosmo', 'custom', 'cyborg', 'darkly', 'flatly','global','journal','readable','simplex','slate','spacelab','superhero','united','yeti']
|
4
|
+
end
|
5
|
+
|
2
6
|
def theme_name
|
3
7
|
send(Bootswitch.configuration.theme_method)
|
4
8
|
end
|
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.3 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.3"
|
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"]
|