bootswitch 0.0.13 → 0.1.1
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/bootswitch.gemspec +4 -4
- data/lib/bootswitch.rb +4 -2
- data/lib/bootswitch/helpers.rb +15 -0
- data/spec/helpers/{theme_helper_spec.rb → application_helper_spec.rb} +1 -1
- metadata +3 -3
- data/lib/bootswitch/methods.rb +0 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 70e56de104258e6f25e7c22a37106027d4f918af
|
|
4
|
+
data.tar.gz: 7a0af8db7988dcdba8ca1f09ab531bcb8e7f4103
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a066df62754f3884f108f36e660129cca7f28e1d3b6339cd40435f23507360f0a81fa058d5f2975b29bc660e559247de203ac064491adc5560c80a1bbadbecf
|
|
7
|
+
data.tar.gz: 61b7b1dd2139691896761c561a51b16d2074607aaef70ad9c7522d2160b34b5ad287e38dd78226fead0368d7f579d9639b3475392252d5ffabe61eb01347845f
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.1.1
|
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.
|
|
5
|
+
# stub: bootswitch 0.1.1 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "bootswitch"
|
|
9
|
-
s.version = "0.
|
|
9
|
+
s.version = "0.1.1"
|
|
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"]
|
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
|
32
32
|
"lib/bootswitch.rb",
|
|
33
33
|
"lib/bootswitch/configuration.rb",
|
|
34
34
|
"lib/bootswitch/engine.rb",
|
|
35
|
-
"lib/bootswitch/
|
|
35
|
+
"lib/bootswitch/helpers.rb",
|
|
36
36
|
"lib/bootswitch/version.rb",
|
|
37
37
|
"lib/generators/bootswitch/install/install_generator.rb",
|
|
38
38
|
"lib/generators/bootswitch/install/templates/initializer.rb",
|
|
@@ -64,7 +64,7 @@ Gem::Specification.new do |s|
|
|
|
64
64
|
"spec/dummy/public/favicon.ico",
|
|
65
65
|
"spec/dummy/public/index.html",
|
|
66
66
|
"spec/dummy/script/rails",
|
|
67
|
-
"spec/helpers/
|
|
67
|
+
"spec/helpers/application_helper_spec.rb",
|
|
68
68
|
"spec/spec_helper.rb",
|
|
69
69
|
"vendor/assets/stylesheets/bootswatch/amelia/bootswatch.css.scss",
|
|
70
70
|
"vendor/assets/stylesheets/bootswatch/amelia/theme.css.scss",
|
data/lib/bootswitch.rb
CHANGED
|
@@ -3,9 +3,11 @@ module Bootswitch
|
|
|
3
3
|
require 'haml-rails'
|
|
4
4
|
|
|
5
5
|
require 'bootswitch/configuration'
|
|
6
|
-
require 'bootswitch/
|
|
6
|
+
require 'bootswitch/helpers'
|
|
7
7
|
require 'bootswitch/version'
|
|
8
8
|
require 'bootswitch/engine'
|
|
9
9
|
|
|
10
10
|
require 'bootstrap-sass'
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
ActionView::Base.send :include, Helpers
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Bootswitch
|
|
2
|
+
module Helpers
|
|
3
|
+
def themes
|
|
4
|
+
Bootswitch.configuration.themes
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
def theme_name
|
|
8
|
+
send(Bootswitch.configuration.theme_method) || Bootswitch.configuration.default_theme
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def theme_stylesheet_link_tag
|
|
12
|
+
render(partial: 'theme/stylesheet_link_tag')
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
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.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karen Lundgren
|
|
@@ -130,7 +130,7 @@ files:
|
|
|
130
130
|
- lib/bootswitch.rb
|
|
131
131
|
- lib/bootswitch/configuration.rb
|
|
132
132
|
- lib/bootswitch/engine.rb
|
|
133
|
-
- lib/bootswitch/
|
|
133
|
+
- lib/bootswitch/helpers.rb
|
|
134
134
|
- lib/bootswitch/version.rb
|
|
135
135
|
- lib/generators/bootswitch/install/install_generator.rb
|
|
136
136
|
- lib/generators/bootswitch/install/templates/initializer.rb
|
|
@@ -162,7 +162,7 @@ files:
|
|
|
162
162
|
- spec/dummy/public/favicon.ico
|
|
163
163
|
- spec/dummy/public/index.html
|
|
164
164
|
- spec/dummy/script/rails
|
|
165
|
-
- spec/helpers/
|
|
165
|
+
- spec/helpers/application_helper_spec.rb
|
|
166
166
|
- spec/spec_helper.rb
|
|
167
167
|
- vendor/assets/stylesheets/bootswatch/amelia/bootswatch.css.scss
|
|
168
168
|
- vendor/assets/stylesheets/bootswatch/amelia/theme.css.scss
|
data/lib/bootswitch/methods.rb
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module Bootswitch
|
|
2
|
-
def self.themes
|
|
3
|
-
configuration.themes
|
|
4
|
-
end
|
|
5
|
-
|
|
6
|
-
def self.theme_name
|
|
7
|
-
send(Bootswitch.configuration.theme_method) || Bootswitch.configuration.default_theme
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
def self.theme_stylesheet_link_tag
|
|
11
|
-
render(partial: 'theme/stylesheet_link_tag')
|
|
12
|
-
end
|
|
13
|
-
end
|