answer-factory 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Thorfile CHANGED
@@ -30,6 +30,12 @@ class Setup_Factory < Thor::Group
30
30
  template("#{answer_factory_gem_path}/templates/answer_factory_activate_template.erb", "./activate.rb")
31
31
  end
32
32
 
33
+ def create_spec_helper
34
+ filename = "spec_helper.rb"
35
+ template("#{answer_factory_gem_path}/templates/answer_factory_spec_helper_template.erb",
36
+ "#{New_Nudge_Type.source_root}/spec/#{filename}")
37
+ end
38
+
33
39
  def say_byebye
34
40
  puts "your answer-factory project is located in directory #{Dir.pwd}\n"
35
41
  end
@@ -57,15 +63,22 @@ class New_Nudge_Type < Thor::Group
57
63
  Nudge.gem_root
58
64
  end
59
65
 
66
+ def answer_factory_gem_path
67
+ AnswerFactory.gem_root
68
+ end
69
+
70
+
71
+ def camelcased_type_name
72
+ New_Nudge_Type.type_name(typename_root)
73
+ end
74
+
60
75
  def create_lib_file
61
- @camelcased_type_name = New_Nudge_Type.type_name(typename_root)
62
- filename = "#{@camelcased_type_name}.rb"
76
+ filename = "#{camelcased_type_name}.rb"
63
77
  template("#{nudge_gem_path}/templates/nudge_type_class.erb", "#{New_Nudge_Type.source_root}/lib/nudge/types/#{filename}")
64
78
  end
65
79
 
66
80
  def create_lib_spec
67
- @camelcased_type_name = New_Nudge_Type.type_name(typename_root)
68
- filename = "#{@camelcased_type_name}_spec.rb"
81
+ filename = "#{camelcased_type_name}_spec.rb"
69
82
  template("#{nudge_gem_path}/templates/nudge_type_spec.erb", "#{New_Nudge_Type.source_root}/spec/#{filename}")
70
83
  end
71
84
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{answer-factory}
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bill Tozier", "Trek Glowacki", "Jesse Sielaff"]
@@ -58,7 +58,8 @@ Gem::Specification.new do |s|
58
58
  "spec/operators/resample_values_spec.rb",
59
59
  "spec/operators/uniformBackboneCrossover_spec.rb",
60
60
  "spec/spec_helper.rb",
61
- "templates/answer_factory_activate_template.erb"
61
+ "templates/answer_factory_activate_template.erb",
62
+ "templates/answer_factory_spec_helper_template.erb"
62
63
  ]
63
64
  s.homepage = %q{http://github.com/Vaguery/PragGP}
64
65
  s.rdoc_options = ["--charset=UTF-8"]
@@ -1 +1,27 @@
1
- # this is the runner file
1
+ require 'answer-factory'
2
+
3
+ ####
4
+ ####
5
+ #### EDIT THESE SETTINGS TO SUIT YOUR PROJECT'S NEEDS
6
+ ####
7
+ ####
8
+
9
+ def AnswerFactory.nudge_instructions_path
10
+ # Directory path for project-specific Nudge instructions:
11
+ '/lib/nudge/instructions/*'
12
+ end
13
+
14
+ def AnswerFactory.nudge_types_path
15
+ # Directory path for project-specific Nudge types:
16
+ '/lib/nudge/types/*'
17
+ end
18
+
19
+
20
+ ####
21
+ ####
22
+ #### DO NOT EDIT THE FOLLOWING CODE
23
+ ####
24
+ ####
25
+
26
+ Dir.glob(File.dirname(__FILE__) + AnswerFactory.nudge_instructions_path) {|file| require file}
27
+ Dir.glob(File.dirname(__FILE__) + AnswerFactory.nudge_types_path) {|file| require file}
@@ -0,0 +1,7 @@
1
+ #encoding: utf-8
2
+ $: << File.join(File.dirname(__FILE__), "/../lib")
3
+
4
+ require 'spec'
5
+ require 'activate'
6
+
7
+ include AnswerFactory
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bill Tozier
@@ -149,6 +149,7 @@ files:
149
149
  - spec/operators/uniformBackboneCrossover_spec.rb
150
150
  - spec/spec_helper.rb
151
151
  - templates/answer_factory_activate_template.erb
152
+ - templates/answer_factory_spec_helper_template.erb
152
153
  has_rdoc: true
153
154
  homepage: http://github.com/Vaguery/PragGP
154
155
  licenses: []