simple-templater 0.0.1.5 → 0.0.1.6

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.
@@ -12,7 +12,7 @@ require "simple-templater/discoverer"
12
12
  require "simple-templater/generator_set"
13
13
 
14
14
  class SimpleTemplater
15
- VERSION ||= "0.0.1.5"
15
+ VERSION ||= "0.0.1.6"
16
16
 
17
17
  GeneratorNotFound ||= Class.new(StandardError)
18
18
  TargetAlreadyExist ||= Class.new(StandardError)
@@ -19,7 +19,7 @@ class SimpleTemplater
19
19
  end
20
20
 
21
21
  def custom
22
- File.join(ENV["HOME"], ".simple-templater", self.name)
22
+ File.join(ENV["HOME"], ".simple-templater", self.name.to_s)
23
23
  end
24
24
 
25
25
  def generators
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env gem build
2
+ # encoding: utf-8
3
+
4
+ # You might think this is a terrible mess and guess what, you're
5
+ # right mate! However say thanks to authors of RubyGems, not me.
6
+ eval(File.read("simple-templater.gemspec")).tap do |specification|
7
+ specification.version = "#{specification.version}.pre"
8
+ end
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.summary = "" # TODO: summary
15
15
  s.description = "" # TODO: long description
16
16
  s.cert_chain = nil
17
- s.email = # TODO: your mail
17
+ s.email = Base64.decode64() # TODO: your encrypted e-mail
18
18
  s.has_rdoc = true
19
19
 
20
20
  # files
@@ -1,11 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
- # constants
4
- SPEC_ROOT = File.dirname(__FILE__)
5
- ROOT = File.expand_path(File.join(SPEC_ROOT, ".."))
6
- LIBDIR = File.join(ROOT, "lib")
3
+ # dependencies
4
+ require "spec"
7
5
 
8
- # load paths
9
- $:.unshift(LIBDIR)
10
-
11
- require "spec" # so you can run ruby spec/<%= @name %>/whatever_spec.rb
6
+ # setup load paths
7
+ $:.unshift(File.expand_path("../lib"), __FILE__)
@@ -1,13 +1,14 @@
1
- #!./script/nake
1
+ #!/usr/bin/env nake
2
2
  # encoding: utf-8
3
3
 
4
4
  begin
5
- require_relative "gems/environment.rb"
5
+ require File.expand_path("../.bundle/environment", __FILE__)
6
6
  rescue LoadError
7
- abort "You have to install bundler and run gem bundle first!"
7
+ require "bundler"
8
+ Bundler.setup
8
9
  end
9
10
 
10
- ENV["PATH"] = "script:#{ENV["PATH"]}"
11
+ $LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
11
12
 
12
13
  require "nake/tasks/gem"
13
14
  require "nake/tasks/spec"
data/tasks.rb CHANGED
@@ -1,13 +1,14 @@
1
- #!./script/nake
1
+ #!/usr/bin/env nake
2
2
  # encoding: utf-8
3
3
 
4
4
  begin
5
- require_relative "gems/environment.rb"
5
+ require File.expand_path("../.bundle/environment", __FILE__)
6
6
  rescue LoadError
7
- abort "You have to install bundler and run gem bundle first!"
7
+ require "bundler"
8
+ Bundler.setup
8
9
  end
9
10
 
10
- ENV["PATH"] = "script:#{ENV["PATH"]}"
11
+ $LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
11
12
 
12
13
  require "nake/tasks/gem"
13
14
  require "nake/tasks/spec"
metadata CHANGED
@@ -1,46 +1,50 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-templater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.5
4
+ prerelease:
5
+ version: 0.0.1.6
5
6
  platform: ruby
6
7
  authors:
7
8
  - "Jakub \xC5\xA0\xC5\xA5astn\xC3\xBD aka Botanicus"
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain:
11
- date: 2010-01-27 00:00:00 +00:00
12
+ date: 2011-06-12 00:00:00 +02:00
12
13
  default_executable: simple-templater
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: cli
16
- type: :runtime
17
- version_requirement:
18
- version_requirements: !ruby/object:Gem::Requirement
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
19
20
  requirements:
20
21
  - - ">="
21
22
  - !ruby/object:Gem::Version
22
23
  version: "0"
23
- version:
24
+ type: :runtime
25
+ version_requirements: *id001
24
26
  - !ruby/object:Gem::Dependency
25
27
  name: term-ansicolor
26
- type: :runtime
27
- version_requirement:
28
- version_requirements: !ruby/object:Gem::Requirement
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
29
31
  requirements:
30
32
  - - ">="
31
33
  - !ruby/object:Gem::Version
32
34
  version: "0"
33
- version:
35
+ type: :runtime
36
+ version_requirements: *id002
34
37
  - !ruby/object:Gem::Dependency
35
38
  name: erubis
36
- type: :runtime
37
- version_requirement:
38
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
39
42
  requirements:
40
43
  - - ">="
41
44
  - !ruby/object:Gem::Version
42
45
  version: "0"
43
- version:
46
+ type: :runtime
47
+ version_requirements: *id003
44
48
  description: SimpleTemplater is dead-simple solution for creating generators. It strongly uses convention over configuration, so you don't have to write loads of code to generate one stupid plain text README.
45
49
  email: stastny@101ideas.cz
46
50
  executables: []
@@ -84,6 +88,7 @@ files:
84
88
  - lib/simple-templater/hooks/preprocess/github.rb
85
89
  - script/spec
86
90
  - simple-templater.gemspec
91
+ - simple-templater.pre.gemspec
87
92
  - simple-templater.scope
88
93
  - spec/simple-templater/argv_parsing_spec.rb
89
94
  - spec/simple-templater/builder_spec.rb
@@ -155,35 +160,27 @@ has_rdoc: true
155
160
  homepage: http://github.com/botanicus/simple-templater
156
161
  licenses: []
157
162
 
158
- post_install_message: "[\e[32mVersion 0.0.1\e[0m] Imported from Rango\n\
159
- [\e[32mVersion 0.0.1\e[0m] bin/simple-templater can generate a project or a stub\n\
160
- [\e[32mVersion 0.0.1\e[0m] it can find all gems with simple-templater.scope file in the root\n\
161
- [\e[32mVersion 0.0.1\e[0m] it has hooks running before & after templater\n\
162
- [\e[32mVersion 0.0.1\e[0m] it knows how to work with diff stubs\n\
163
- [\e[32mVersion 0.0.1\e[0m] it can have variables in file names of stub files\n\
164
- [\e[32mVersion 0.0.1\e[0m] it can have collections in file names of stub files\n\
165
- [\e[32mVersion 0.0.1\e[0m] it use Erubis for processing templates (all files ending with .rbt)\n\
166
- [\e[32mVersion 0.0.1\e[0m] it has context and hooks for interaction with user (ARGV/STDIN)\n"
163
+ post_install_message:
167
164
  rdoc_options: []
168
165
 
169
166
  require_paths:
170
167
  - lib
171
168
  required_ruby_version: !ruby/object:Gem::Requirement
169
+ none: false
172
170
  requirements:
173
171
  - - ~>
174
172
  - !ruby/object:Gem::Version
175
173
  version: "1.9"
176
- version:
177
174
  required_rubygems_version: !ruby/object:Gem::Requirement
175
+ none: false
178
176
  requirements:
179
177
  - - ">="
180
178
  - !ruby/object:Gem::Version
181
179
  version: "0"
182
- version:
183
180
  requirements: []
184
181
 
185
182
  rubyforge_project: simple-templater
186
- rubygems_version: 1.3.5
183
+ rubygems_version: 1.6.2
187
184
  signing_key:
188
185
  specification_version: 3
189
186
  summary: SimpleTemplater is dead-simple solution for creating generators.