xkimo 0.0.3
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.
- data/lib/generators/railsview/import_generator.rb +29 -0
- data/xkimo-0.0.0.gem +0 -0
- data/xkimo-0.0.1.gem +0 -0
- data/xkimo.gemspec +12 -0
- data/xkimo.rb +0 -0
- metadata +50 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
# rails generate railsview_import "001_smartbiz"
|
2
|
+
module Railsview
|
3
|
+
module Generators
|
4
|
+
class ImportGenerator < Rails::Generators::Base
|
5
|
+
source_root File.expand_path('../templates', __FILE__)
|
6
|
+
argument :theme_name, :type => :string
|
7
|
+
|
8
|
+
|
9
|
+
def install_theme
|
10
|
+
if yes?("This theme is mean to be installed on a brand new app. If this is a brand new app? yes or no?")
|
11
|
+
if yes?("Install #{file_name} theme into your app #{Rails.application.class.parent_name}?")
|
12
|
+
directory "#{Rails.root}/lib/railsview/themes/#{file_name}/application/", "#{Rails.root}"
|
13
|
+
contents = File.read("#{Rails.root}/lib/railsview/themes/#{file_name}/ROUTES")
|
14
|
+
route(contents)
|
15
|
+
remove_file "#{Rails.root}/public/index.html"
|
16
|
+
end
|
17
|
+
else
|
18
|
+
puts "Create a brand new app then run this generator again."
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def file_name
|
25
|
+
theme_name.underscore
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/xkimo-0.0.0.gem
ADDED
Binary file
|
data/xkimo-0.0.1.gem
ADDED
Binary file
|
data/xkimo.gemspec
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'xkimo'
|
3
|
+
s.version = '0.0.3'
|
4
|
+
s.date = '2013-02-09'
|
5
|
+
s.summary = "A Railsiew gem"
|
6
|
+
s.description = "xkimo is a railsview gem that add a vest to your app"
|
7
|
+
s.authors = ["Richardson Dx"]
|
8
|
+
s.email = 'richardsondx@gmail.com'
|
9
|
+
s.homepage = 'http://www.railsview.com'
|
10
|
+
s.files = `git ls-files`.split("\n")
|
11
|
+
s.require_paths = ["lib"]
|
12
|
+
end
|
data/xkimo.rb
ADDED
File without changes
|
metadata
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: xkimo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Richardson Dx
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-02-09 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: xkimo is a railsview gem that add a vest to your app
|
15
|
+
email: richardsondx@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/generators/railsview/import_generator.rb
|
21
|
+
- xkimo-0.0.0.gem
|
22
|
+
- xkimo-0.0.1.gem
|
23
|
+
- xkimo.gemspec
|
24
|
+
- xkimo.rb
|
25
|
+
homepage: http://www.railsview.com
|
26
|
+
licenses: []
|
27
|
+
post_install_message:
|
28
|
+
rdoc_options: []
|
29
|
+
require_paths:
|
30
|
+
- lib
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
32
|
+
none: false
|
33
|
+
requirements:
|
34
|
+
- - ! '>='
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
requirements: []
|
44
|
+
rubyforge_project:
|
45
|
+
rubygems_version: 1.8.24
|
46
|
+
signing_key:
|
47
|
+
specification_version: 3
|
48
|
+
summary: A Railsiew gem
|
49
|
+
test_files: []
|
50
|
+
has_rdoc:
|