xkimo 0.0.3 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +17 -0
- data/lib/generators/railsview/{import_generator.rb → import/import_generator.rb} +1 -5
- data/lib/generators/railsview/install/install_generator.rb +19 -0
- data/xkimo.gemspec +2 -2
- metadata +6 -6
- data/xkimo-0.0.0.gem +0 -0
- data/xkimo-0.0.1.gem +0 -0
- data/xkimo.rb +0 -0
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
xkimo-0.0.5.gem
|
data/README.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
Xkimo : Railsview Installer & Theme Handler
|
2
|
+
==========================================
|
3
|
+
|
4
|
+
To Install add the gem to your gemfile or type:
|
5
|
+
$ gem install 'xkimo'
|
6
|
+
|
7
|
+
Then run:
|
8
|
+
$ rails generate railsview:install
|
9
|
+
|
10
|
+
Installing/Importing a Theme into your app:
|
11
|
+
Make sure that the theme is in the "lib//railsview/themes" directory then run:
|
12
|
+
$ rails generate railsview:import
|
13
|
+
|
14
|
+
|
15
|
+
Credit:
|
16
|
+
Xkimo is brought to you by Railsview. Built by Richardson Dackam (@Richardsondx)
|
17
|
+
|
@@ -7,16 +7,12 @@ module Railsview
|
|
7
7
|
|
8
8
|
|
9
9
|
def install_theme
|
10
|
-
|
11
|
-
if yes?("Install #{file_name} theme into your app #{Rails.application.class.parent_name}?")
|
10
|
+
if yes?("Install #{file_name} theme into your app #{Rails.application.class.parent_name}? (yes/no)...")
|
12
11
|
directory "#{Rails.root}/lib/railsview/themes/#{file_name}/application/", "#{Rails.root}"
|
13
12
|
contents = File.read("#{Rails.root}/lib/railsview/themes/#{file_name}/ROUTES")
|
14
13
|
route(contents)
|
15
14
|
remove_file "#{Rails.root}/public/index.html"
|
16
15
|
end
|
17
|
-
else
|
18
|
-
puts "Create a brand new app then run this generator again."
|
19
|
-
end
|
20
16
|
end
|
21
17
|
|
22
18
|
private
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Railsview
|
2
|
+
module Generators
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
source_root File.expand_path('../templates', __FILE__)
|
5
|
+
|
6
|
+
def create_folders
|
7
|
+
empty_directory "#{Rails.root}/lib/railsview/themes"
|
8
|
+
puts "Railsview was succesfully installed."
|
9
|
+
puts "You can now add all your themes in the 'lib/railsview/themes' directory"
|
10
|
+
puts "Be aware that installing a railsview theme will overwrite your app."
|
11
|
+
puts "============================================================================="
|
12
|
+
puts "Run 'rails generate railsview:import Theme_Name' to import and install theme."
|
13
|
+
puts "============================================================================="
|
14
|
+
puts "If you don't have a theme yet..."
|
15
|
+
puts "You can get themes at http://www.railsview.com"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/xkimo.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'xkimo'
|
3
|
-
s.version = '0.0.
|
4
|
-
s.date = '2013-02-
|
3
|
+
s.version = '0.0.6'
|
4
|
+
s.date = '2013-02-14'
|
5
5
|
s.summary = "A Railsiew gem"
|
6
6
|
s.description = "xkimo is a railsview gem that add a vest to your app"
|
7
7
|
s.authors = ["Richardson Dx"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xkimo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-14 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: xkimo is a railsview gem that add a vest to your app
|
15
15
|
email: richardsondx@gmail.com
|
@@ -17,11 +17,11 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
-
|
21
|
-
-
|
22
|
-
-
|
20
|
+
- .gitignore
|
21
|
+
- README.md
|
22
|
+
- lib/generators/railsview/import/import_generator.rb
|
23
|
+
- lib/generators/railsview/install/install_generator.rb
|
23
24
|
- xkimo.gemspec
|
24
|
-
- xkimo.rb
|
25
25
|
homepage: http://www.railsview.com
|
26
26
|
licenses: []
|
27
27
|
post_install_message:
|
data/xkimo-0.0.0.gem
DELETED
Binary file
|
data/xkimo-0.0.1.gem
DELETED
Binary file
|
data/xkimo.rb
DELETED
File without changes
|