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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26791c22a7cac31328dd80cc56fb19a265ef8bf4
4
- data.tar.gz: b2640167dc4bf3d6501b79175077fd38b5d4ecad
3
+ metadata.gz: 70e56de104258e6f25e7c22a37106027d4f918af
4
+ data.tar.gz: 7a0af8db7988dcdba8ca1f09ab531bcb8e7f4103
5
5
  SHA512:
6
- metadata.gz: 18bfd3d63c90cf9e5ec8b1d5cf52029f046f224489a2953c7333a9b72d750b821df48c5ab67894018a92592918a0c07989a43b6cba6b35bb94c31bc73171a106
7
- data.tar.gz: 413c10b5ef5ca799ecd70ae737b0c661062e5edf6e57c3adb4eaddc336c5b02c8e8aec9a53f5d24e05b8fabed23e5e33092c26c29fdfdeb77e676c6a1831a328
6
+ metadata.gz: 8a066df62754f3884f108f36e660129cca7f28e1d3b6339cd40435f23507360f0a81fa058d5f2975b29bc660e559247de203ac064491adc5560c80a1bbadbecf
7
+ data.tar.gz: 61b7b1dd2139691896761c561a51b16d2074607aaef70ad9c7522d2160b34b5ad287e38dd78226fead0368d7f579d9639b3475392252d5ffabe61eb01347845f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.13
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.0.13 ruby lib
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.0.13"
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/methods.rb",
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/theme_helper_spec.rb",
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/methods'
6
+ require 'bootswitch/helpers'
7
7
  require 'bootswitch/version'
8
8
  require 'bootswitch/engine'
9
9
 
10
10
  require 'bootstrap-sass'
11
- end
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
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe ThemeHelper do
3
+ describe ApplicationHelper, type: :helper do
4
4
  describe '#themes' do
5
5
  it 'returns an array' do
6
6
  helper.themes.should be_an Array
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.13
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/methods.rb
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/theme_helper_spec.rb
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
@@ -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