themeable 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/themeable/acts_as_themeable.rb +1 -1
- data/lib/themeable/generator_concern.rb +1 -1
- data/lib/themeable/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f9d94f34e40c6a4f0317bdf9089f1e87febf3ad
|
4
|
+
data.tar.gz: 28cfe63d945f4c13f1ee76f9aafa2218074d12b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6d05fa41d91a9cd9c8387107a4e1c4797538918dd3fc714de9ab470760d3e71aec102c5b99901c86fbd8c3c72d3d33e47742b91f0f143324c049aa2ddac2e51
|
7
|
+
data.tar.gz: 2547d1a63a0aad7de87607a1bbef3e7b2bd85294e83b01744f71908f6303f27eb74a7d0bee402b8e7480f65fcbf7d5762c368c1a88a74228284ec6614739d79c
|
@@ -20,7 +20,7 @@ module Themeable
|
|
20
20
|
theme = Themeable.theme(__themeable_theme_name)
|
21
21
|
theme_view_path = File.join(theme.root_path, theme.theme_path, 'views')
|
22
22
|
view_paths.insert(1, theme_view_path)
|
23
|
-
view_paths.insert(0, Rails.root.join(
|
23
|
+
view_paths.insert(0, Rails.root.join('app/themes/', theme_name).to_s)
|
24
24
|
lookup_context.view_paths = view_paths
|
25
25
|
end
|
26
26
|
RUBY
|
@@ -15,7 +15,7 @@ module Themeable
|
|
15
15
|
super(themed_file)
|
16
16
|
rescue Thor::Error => e
|
17
17
|
if e.message =~ /^Could not find /
|
18
|
-
say "Can't find themed file #{themed_file}, use default template", :yellow
|
18
|
+
say "Can't find themed file #{themed_file}, use default template", :yellow unless @behavior == :revoke
|
19
19
|
return super(file)
|
20
20
|
else
|
21
21
|
raise
|
data/lib/themeable/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: themeable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xiaohui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10
|
11
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.6.7
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: A tool for creating theme.
|