template 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +0 -0
- data/.redcar/tags +1 -1
- data/Gemfile +0 -0
- data/Gemfile.lock +0 -0
- data/LICENSE.txt +0 -0
- data/README.rdoc +1 -2
- data/Rakefile +0 -0
- data/VERSION +1 -1
- data/lib/generators/install_generator.rb +23 -0
- data/lib/generators/template/USAGE +0 -1
- data/lib/template.rb +3 -0
- data/lib/template/engine.rb +5 -0
- data/template.gemspec +5 -4
- data/test/helper.rb +0 -0
- data/test/test_template.rb +0 -0
- metadata +19 -17
data/.document
CHANGED
File without changes
|
data/.redcar/tags
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
1298981340
|
2
2
|
TemplateGenerator C:/Users/paul.brennan/workspace/template/lib/generators/template/template_generator.rb class TemplateGenerator
|
3
3
|
TestCase C:/Users/paul.brennan/workspace/template/test/helper.rb class Test::Unit::TestCase
|
4
4
|
TestTemplate C:/Users/paul.brennan/workspace/template/test/test_template.rb class TestTemplate
|
data/Gemfile
CHANGED
File without changes
|
data/Gemfile.lock
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
File without changes
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
module Template
|
3
|
+
#kudos to Mike Farmer from stackoverflow http://stackoverflow.com/users/4082/mike-farmer
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
5
|
+
desc "Creates some basic files for a rails 3 app"
|
6
|
+
|
7
|
+
# Add some extra options here:
|
8
|
+
# Commandline options can be defined here using Thor-like options:
|
9
|
+
# class_option :my_opt, :type => :boolean, :default => false, :desc => "My Option"
|
10
|
+
|
11
|
+
# I can later access that option using:
|
12
|
+
# options[:my_opt]
|
13
|
+
|
14
|
+
|
15
|
+
def self.source_root
|
16
|
+
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
data/lib/template.rb
CHANGED
data/template.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{template}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Yule"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-04-14}
|
13
13
|
s.description = %q{Creates a bunch of files that most apps will have. Shoudl be used at the beginning of the project. Stops the tedious job of having to set up page templates etc}
|
14
14
|
s.email = %q{paul.brennan@ahc.uk.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
"README.rdoc",
|
26
26
|
"Rakefile",
|
27
27
|
"VERSION",
|
28
|
+
"lib/generators/install_generator.rb",
|
28
29
|
"lib/generators/template/USAGE",
|
29
30
|
"lib/generators/template/template_generator.rb",
|
30
31
|
"lib/generators/template/templates/app/controllers/welcome_controller.rb",
|
@@ -35,6 +36,7 @@ Gem::Specification.new do |s|
|
|
35
36
|
"lib/generators/template/templates/public/stylesheets/.gitkeep",
|
36
37
|
"lib/generators/template/templates/public/stylesheets/screen.css",
|
37
38
|
"lib/template.rb",
|
39
|
+
"lib/template/engine.rb",
|
38
40
|
"template.gemspec",
|
39
41
|
"test/helper.rb",
|
40
42
|
"test/test_template.rb"
|
@@ -42,7 +44,7 @@ Gem::Specification.new do |s|
|
|
42
44
|
s.homepage = %q{http://github.com/yule/template}
|
43
45
|
s.licenses = ["MIT"]
|
44
46
|
s.require_paths = ["lib"]
|
45
|
-
s.rubygems_version = %q{1.
|
47
|
+
s.rubygems_version = %q{1.6.2}
|
46
48
|
s.summary = %q{Create some simple files that all rails app should have}
|
47
49
|
s.test_files = [
|
48
50
|
"test/helper.rb",
|
@@ -50,7 +52,6 @@ Gem::Specification.new do |s|
|
|
50
52
|
]
|
51
53
|
|
52
54
|
if s.respond_to? :specification_version then
|
53
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
54
55
|
s.specification_version = 3
|
55
56
|
|
56
57
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
data/test/helper.rb
CHANGED
File without changes
|
data/test/test_template.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 1.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yule
|
@@ -15,10 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-04-14 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
+
type: :development
|
22
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
23
24
|
none: false
|
24
25
|
requirements:
|
@@ -28,11 +29,11 @@ dependencies:
|
|
28
29
|
segments:
|
29
30
|
- 0
|
30
31
|
version: "0"
|
31
|
-
type: :development
|
32
|
-
prerelease: false
|
33
32
|
name: shoulda
|
34
33
|
version_requirements: *id001
|
34
|
+
prerelease: false
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
+
type: :development
|
36
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
37
38
|
none: false
|
38
39
|
requirements:
|
@@ -44,11 +45,11 @@ dependencies:
|
|
44
45
|
- 0
|
45
46
|
- 0
|
46
47
|
version: 1.0.0
|
47
|
-
type: :development
|
48
|
-
prerelease: false
|
49
48
|
name: bundler
|
50
49
|
version_requirements: *id002
|
50
|
+
prerelease: false
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
|
+
type: :development
|
52
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
54
|
none: false
|
54
55
|
requirements:
|
@@ -60,11 +61,11 @@ dependencies:
|
|
60
61
|
- 5
|
61
62
|
- 1
|
62
63
|
version: 1.5.1
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
64
|
name: jeweler
|
66
65
|
version_requirements: *id003
|
66
|
+
prerelease: false
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
|
+
type: :development
|
68
69
|
requirement: &id004 !ruby/object:Gem::Requirement
|
69
70
|
none: false
|
70
71
|
requirements:
|
@@ -74,11 +75,11 @@ dependencies:
|
|
74
75
|
segments:
|
75
76
|
- 0
|
76
77
|
version: "0"
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
78
|
name: rcov
|
80
79
|
version_requirements: *id004
|
80
|
+
prerelease: false
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
|
+
type: :runtime
|
82
83
|
requirement: &id005 !ruby/object:Gem::Requirement
|
83
84
|
none: false
|
84
85
|
requirements:
|
@@ -89,10 +90,9 @@ dependencies:
|
|
89
90
|
- 3
|
90
91
|
- 0
|
91
92
|
version: "3.0"
|
92
|
-
type: :runtime
|
93
|
-
prerelease: false
|
94
93
|
name: simple-navigation
|
95
94
|
version_requirements: *id005
|
95
|
+
prerelease: false
|
96
96
|
description: Creates a bunch of files that most apps will have. Shoudl be used at the beginning of the project. Stops the tedious job of having to set up page templates etc
|
97
97
|
email: paul.brennan@ahc.uk.com
|
98
98
|
executables: []
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- README.rdoc
|
112
112
|
- Rakefile
|
113
113
|
- VERSION
|
114
|
+
- lib/generators/install_generator.rb
|
114
115
|
- lib/generators/template/USAGE
|
115
116
|
- lib/generators/template/template_generator.rb
|
116
117
|
- lib/generators/template/templates/app/controllers/welcome_controller.rb
|
@@ -121,6 +122,7 @@ files:
|
|
121
122
|
- lib/generators/template/templates/public/stylesheets/.gitkeep
|
122
123
|
- lib/generators/template/templates/public/stylesheets/screen.css
|
123
124
|
- lib/template.rb
|
125
|
+
- lib/template/engine.rb
|
124
126
|
- template.gemspec
|
125
127
|
- test/helper.rb
|
126
128
|
- test/test_template.rb
|
@@ -154,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
156
|
requirements: []
|
155
157
|
|
156
158
|
rubyforge_project:
|
157
|
-
rubygems_version: 1.
|
159
|
+
rubygems_version: 1.6.2
|
158
160
|
signing_key:
|
159
161
|
specification_version: 3
|
160
162
|
summary: Create some simple files that all rails app should have
|