themeable 1.0.0 → 1.0.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: 1fec3b1a194206c07f3ccdeb121f0648121c74cb
4
- data.tar.gz: 77b948755c1d29ba790db5e273c06973beee019f
3
+ metadata.gz: 3d994ec319535ad6ca31ee8f6d14caf24ac10c5c
4
+ data.tar.gz: 578f1155a4328f835f8b007554f5b6a29790be9f
5
5
  SHA512:
6
- metadata.gz: 124a1b09225454e062193d951b26f8ebeeb8e3c640064e0709b394bb5536b07408c6f330ef7d4f14af6cda93bb80956c268b2a757b35e9613331a555d891b068
7
- data.tar.gz: 40b8d7fb90386c937670e3c6950d59857642e256e96182da7489d957727f6f99c67d916ceb799572909e367963e1a177fa362541f37e5f59c9d0447c351c7dfe
6
+ metadata.gz: 0993b7200f31de50eef9538452549f612658c3a9a11eed8ec8a3d8c34d17fb49bb737415bf46079b45c43be984cc4b4a522d96a4738e14cbb92d78648530318c
7
+ data.tar.gz: bd010b629d4aa0d1b1d941dcf92d3303a19e574452c81ebf29dae8019e9046632f3113a65229337778888d173bcad72c06f365b5fa94e39791c50a4d49d73147
data/bin/themeable ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ $:.push File.dirname(__FILE__) + '/../lib'
3
+
4
+ require 'rubygems'
5
+ require 'themeable/command'
6
+
7
+ Themeable::Command.start
@@ -1,3 +1,3 @@
1
1
  module Themeable
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -0,0 +1,10 @@
1
+ module Themeable
2
+ module <%= theme_name.camelize %>
3
+ class AssetsGenerator < Rails::Generators::Base
4
+ source_root File.expand_path("../../../../../theme", __FILE__)
5
+ def copy_assets
6
+ directory 'assets', 'app/assets/themes'
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,8 @@
1
+ require 'themeable'
2
+ require 'theme_<%= theme_name %>/version'
3
+
4
+ module <%= app_name.camelize %>
5
+ include Themeable::Theme
6
+ set_name '<%= theme_name %>'
7
+ set_path File.expand_path('../../theme', __FILE__)
8
+ end
@@ -0,0 +1,10 @@
1
+ module Themeable
2
+ module <%= theme_name.camelize %>
3
+ class ViewsGenerator < Rails::Generators::Base
4
+ source_root File.expand_path("../../../../../theme", __FILE__)
5
+ def copy_views
6
+ directory 'views', 'app/views'
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title><%= theme_name.camelize %> template</title>
5
+ <%%= stylesheet_link_tag '<%= theme_name %>/application' %>
6
+ </head>
7
+ <body>
8
+ <%%= yield %>
9
+ </body>
10
+ </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: themeable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - xiaohui
@@ -55,13 +55,15 @@ dependencies:
55
55
  description: Creating theme, and puting into your Rails app
56
56
  email:
57
57
  - xiaohui@zhangxh.net
58
- executables: []
58
+ executables:
59
+ - themeable
59
60
  extensions: []
60
61
  extra_rdoc_files: []
61
62
  files:
62
63
  - MIT-LICENSE
63
64
  - README.md
64
65
  - Rakefile
66
+ - bin/themeable
65
67
  - lib/tasks/themeable_tasks.rake
66
68
  - lib/themeable.rb
67
69
  - lib/themeable/acts_as_themeable.rb
@@ -69,6 +71,10 @@ files:
69
71
  - lib/themeable/railtie.rb
70
72
  - lib/themeable/theme.rb
71
73
  - lib/themeable/version.rb
74
+ - templates/theme_assets_generator.rb
75
+ - templates/theme_main.rb
76
+ - templates/theme_views_generator.rb
77
+ - templates/view_application.html.erb
72
78
  homepage: https://github.com/xiaohui-zhangxh/
73
79
  licenses:
74
80
  - MIT