andhapp-decoct 1.9.6 → 1.9.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 6
2
+ :patch: 7
3
3
  :major: 1
4
4
  :minor: 9
data/bin/decoct CHANGED
@@ -1,7 +1,7 @@
1
1
  app_path = ARGV.first
2
2
 
3
3
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", 'lib')
4
- require 'dscript'
4
+ require 'decoct'
5
5
 
6
6
  decoct = Decoct::Dscript.new(app_path)
7
7
  decoct.run
data/decoct.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{decoct}
5
- s.version = "1.9.6"
5
+ s.version = "1.9.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Anuj Dutta"]
9
- s.date = %q{2009-07-29}
9
+ s.date = %q{2009-08-17}
10
10
  s.default_executable = %q{decoct}
11
11
  s.description = %q{Sinatra Rspec project generator}
12
12
  s.email = %q{anuj@andhapp.com}
@@ -20,9 +20,10 @@ Gem::Specification.new do |s|
20
20
  "VERSION.yml",
21
21
  "bin/decoct",
22
22
  "decoct.gemspec",
23
- "lib/dconstants.rb",
24
- "lib/dmeta.rb",
25
- "lib/dscript.rb",
23
+ "lib/decoct.rb",
24
+ "lib/decoct/dconstants.rb",
25
+ "lib/decoct/dmeta.rb",
26
+ "lib/decoct/dscript.rb",
26
27
  "lib/templates/.autotest",
27
28
  "lib/templates/generic_app.rb",
28
29
  "lib/templates/icons/fail.png",
@@ -31,7 +32,8 @@ Gem::Specification.new do |s|
31
32
  "lib/templates/spec/rcov.opts",
32
33
  "lib/templates/spec/spec.opts",
33
34
  "lib/templates/spec/spec_helper.rb",
34
- "test/ts_script.rb"
35
+ "test/decoct/ts_script.rb",
36
+ "test/test_helper.rb"
35
37
  ]
36
38
  s.homepage = %q{http://github.com/andhapp/decoct}
37
39
  s.rdoc_options = ["--charset=UTF-8"]
@@ -39,7 +41,8 @@ Gem::Specification.new do |s|
39
41
  s.rubygems_version = %q{1.3.4}
40
42
  s.summary = %q{Its a simple gem which creates a project structure for sinatra to work with rspec, ZenTest, Growl, RedGreen, Rcov}
41
43
  s.test_files = [
42
- "test/ts_script.rb"
44
+ "test/decoct/ts_script.rb",
45
+ "test/test_helper.rb"
43
46
  ]
44
47
 
45
48
  if s.respond_to? :specification_version then
data/lib/decoct.rb ADDED
@@ -0,0 +1,3 @@
1
+ require 'decoct/dconstants'
2
+ require 'decoct/dmeta'
3
+ require 'decoct/dscript'
@@ -4,6 +4,6 @@ module Decoct
4
4
  VIEWS = 'views'
5
5
  SPEC = 'spec'
6
6
  PUBLIC = 'public'
7
- TEMPLATES = File.join(File.dirname(__FILE__), "..", 'lib', 'templates') + File::SEPARATOR.to_s
7
+ TEMPLATES = File.join(File.dirname(__FILE__), "..", '..', 'lib', 'templates') + File::SEPARATOR.to_s
8
8
  end
9
9
  end
@@ -1,5 +1,4 @@
1
1
  require 'ftools'
2
- require File.join(File.dirname(__FILE__), "..", 'lib', 'dconstants')
3
2
 
4
3
  module Decoct
5
4
  module Dmeta
@@ -19,7 +18,6 @@ module Decoct
19
18
  if name.is_a?(Array)
20
19
  name.map {|x| create_dir(x)}
21
20
  else
22
- #attr_reader name - tests do not break on commenting this out
23
21
  define_method("create_#{name}") do
24
22
  path = "#{@app_name}#{File::SEPARATOR}#{name}"
25
23
  Dir.mkdir(path) if !test(?d, path)
@@ -1,5 +1,3 @@
1
- require File.join(File.dirname(__FILE__), "..", 'lib', 'dmeta')
2
-
3
1
  module Decoct
4
2
 
5
3
  class Dscript
@@ -1,5 +1,4 @@
1
- %w(rubygems redgreen test/unit shoulda fileutils).each{|x| require x}
2
- require File.join(File.dirname(__FILE__), "..", 'lib', 'dscript')
1
+ require File.join(File.dirname(__FILE__), '../test_helper.rb')
3
2
 
4
3
  class TestScript < Test::Unit::TestCase
5
4
 
@@ -32,7 +31,7 @@ class TestScript < Test::Unit::TestCase
32
31
  assert File.exists?("#{@app_name}#{File::SEPARATOR}spec#{File::SEPARATOR}spec_helper.rb")
33
32
  assert File.exists?("#{@app_name}#{File::SEPARATOR}spec#{File::SEPARATOR}#{@app_name}_spec.rb")
34
33
 
35
- assert_not_nil dir_in_app_folder.index("spec")
34
+ assert_not_nil dir_in_app_folder.index("spec")
36
35
  end
37
36
 
38
37
  should 'create a directory called views' do
@@ -0,0 +1,5 @@
1
+ $: << File.join(File.dirname(__FILE__), "/../lib")
2
+
3
+ %w(rubygems redgreen test/unit shoulda fileutils).each{|x| require x}
4
+
5
+ require 'decoct'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: andhapp-decoct
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.6
4
+ version: 1.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anuj Dutta
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-29 00:00:00 -07:00
12
+ date: 2009-08-17 00:00:00 -07:00
13
13
  default_executable: decoct
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -66,9 +66,10 @@ files:
66
66
  - VERSION.yml
67
67
  - bin/decoct
68
68
  - decoct.gemspec
69
- - lib/dconstants.rb
70
- - lib/dmeta.rb
71
- - lib/dscript.rb
69
+ - lib/decoct.rb
70
+ - lib/decoct/dconstants.rb
71
+ - lib/decoct/dmeta.rb
72
+ - lib/decoct/dscript.rb
72
73
  - lib/templates/.autotest
73
74
  - lib/templates/generic_app.rb
74
75
  - lib/templates/icons/fail.png
@@ -77,7 +78,8 @@ files:
77
78
  - lib/templates/spec/rcov.opts
78
79
  - lib/templates/spec/spec.opts
79
80
  - lib/templates/spec/spec_helper.rb
80
- - test/ts_script.rb
81
+ - test/decoct/ts_script.rb
82
+ - test/test_helper.rb
81
83
  has_rdoc: false
82
84
  homepage: http://github.com/andhapp/decoct
83
85
  licenses:
@@ -106,4 +108,5 @@ signing_key:
106
108
  specification_version: 3
107
109
  summary: Its a simple gem which creates a project structure for sinatra to work with rspec, ZenTest, Growl, RedGreen, Rcov
108
110
  test_files:
109
- - test/ts_script.rb
111
+ - test/decoct/ts_script.rb
112
+ - test/test_helper.rb