nudge 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Thorfile +45 -45
- data/VERSION +1 -1
- data/templates/nudge_type_spec.erb +1 -2
- metadata +3 -2
data/Thorfile
CHANGED
@@ -28,48 +28,48 @@ class Extend_Nudge < Thor::Group
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
|
32
|
-
class New_Nudge_Type < Thor::Group
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
end
|
31
|
+
#
|
32
|
+
# class New_Nudge_Type < Thor::Group
|
33
|
+
# include Thor::Actions
|
34
|
+
#
|
35
|
+
# # Define arguments and options
|
36
|
+
# argument :type_root
|
37
|
+
# class_option :test_framework, :default => :rspec
|
38
|
+
# desc "Creates a new NudgeType class definition file, typical instructions, and rspec files"
|
39
|
+
#
|
40
|
+
#
|
41
|
+
# def self.source_root
|
42
|
+
# File.dirname(__FILE__)
|
43
|
+
# end
|
44
|
+
#
|
45
|
+
# def self.type_name(string)
|
46
|
+
# string.camelize + "Type"
|
47
|
+
# end
|
48
|
+
#
|
49
|
+
# def create_lib_file
|
50
|
+
# @camelcased_type_name = New_Nudge_Type.type_name(type_root)
|
51
|
+
# filename = "#{@camelcased_type_name}.rb"
|
52
|
+
# template('templates/nudge_type_class.erb', "#{type_root}/lib/types/#{filename}")
|
53
|
+
# end
|
54
|
+
#
|
55
|
+
# def create_lib_spec
|
56
|
+
# @camelcased_type_name = New_Nudge_Type.type_name(type_root)
|
57
|
+
# filename = "#{@camelcased_type_name}_spec.rb"
|
58
|
+
# template('templates/nudge_type_spec.erb', "#{type_root}/spec/#{filename}")
|
59
|
+
# end
|
60
|
+
#
|
61
|
+
# def create_instructions
|
62
|
+
# suite = ["define", "equal_q", "duplicate", "flush", "pop",
|
63
|
+
# "random", "rotate", "shove", "swap", "yank", "yankdup"]
|
64
|
+
#
|
65
|
+
# suite.each do |inst|
|
66
|
+
# @core = "#{type_root}_#{inst}"
|
67
|
+
# filename = "#{@core}.rb"
|
68
|
+
# @instname = "#{@core.camelize}Instruction"
|
69
|
+
# @type = type_root
|
70
|
+
# @camelized_type = New_Nudge_Type.type_name(type_root)
|
71
|
+
# template("templates/nudge_#{inst}_instruction.erb", "#{type_root}/lib/instructions/#{filename}")
|
72
|
+
# end
|
73
|
+
# end
|
74
|
+
#
|
75
|
+
# end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.6
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 6
|
9
|
+
version: 0.2.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Bill Tozier
|
@@ -382,6 +382,7 @@ files:
|
|
382
382
|
- spec/interpreter/stack_spec.rb
|
383
383
|
- spec/interpreter/types_spec.rb
|
384
384
|
- spec/interpreter/value_point_spec.rb
|
385
|
+
- spec/nudge_spec.rb
|
385
386
|
- spec/parsers/nudge_program_parser_spec.rb
|
386
387
|
- spec/spec_helper.rb
|
387
388
|
- spec/support/shared_examples.rb
|