shuhari 0.1.0 → 0.1.1

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.
data/.gitignore CHANGED
@@ -15,4 +15,6 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .ruby-version
19
+ .ruby-gemset
18
20
  .rvmrc
@@ -23,7 +23,7 @@ Feature: Cucumber Kata Generation
23
23
  And the file "fizz_buzz/features/support/env.rb" should contain:
24
24
  """
25
25
  $LOAD_PATH.unshift File.expand_path('../../lib', File.dirname(__FILE__))
26
-
26
+
27
27
  require 'fizz_buzz'
28
28
  require 'rspec/expectations'
29
29
  """
@@ -46,7 +46,10 @@ Feature: Cucumber Kata Generation
46
46
  When I run `shuhari new FizzBuzz --cucumber`
47
47
  Then the file "fizz_buzz/Gemfile" should contain:
48
48
  """
49
+ source 'https://rubygems.org'
50
+
49
51
  group :development do
52
+ gem 'shuhari'
50
53
  gem 'cucumber'
51
54
  gem 'rspec'
52
55
  gem 'guard-cucumber'
@@ -54,6 +57,7 @@ Feature: Cucumber Kata Generation
54
57
  gem 'growl'
55
58
  # gem 'growl_notify'
56
59
  # gem 'ruby_gntp'
60
+ # gem 'terminal-notifier-guard'
57
61
  gem 'rb-fsevent'
58
62
  end
59
63
  """
@@ -63,12 +67,16 @@ Feature: Cucumber Kata Generation
63
67
  When I run `shuhari new FizzBuzz --cucumber`
64
68
  Then the file "fizz_buzz/Gemfile" should contain:
65
69
  """
70
+ source 'https://rubygems.org'
71
+
66
72
  group :development do
73
+ gem 'shuhari'
67
74
  gem 'cucumber'
68
75
  gem 'rspec'
69
76
  gem 'guard-cucumber'
70
77
  gem 'coolline', :require => false
71
78
  gem 'libnotify'
79
+ # gem 'ruby_gntp'
72
80
  gem 'rb-inotify'
73
81
  end
74
82
  """
@@ -78,12 +86,16 @@ Feature: Cucumber Kata Generation
78
86
  When I run `shuhari new FizzBuzz --cucumber`
79
87
  Then the file "fizz_buzz/Gemfile" should contain:
80
88
  """
89
+ source 'https://rubygems.org'
90
+
81
91
  group :development do
92
+ gem 'shuhari'
82
93
  gem 'cucumber'
83
94
  gem 'rspec'
84
95
  gem 'guard-cucumber'
85
96
  gem 'rb-notifu'
86
97
  gem 'win32console'
98
+ # gem 'ruby_gntp'
87
99
  gem 'wdm'
88
100
  end
89
101
  """
@@ -4,10 +4,23 @@ Feature: Getting Help
4
4
  When I run `shuhari help`
5
5
  Then the output should contain:
6
6
  """
7
- Tasks:
8
- shuhari empty # Restart the Kata with empty mind and project
9
- shuhari help [TASK] # Describe available tasks or one specific task
10
- shuhari new [NAME] # Create a new Kata project
7
+ Commands:
8
+ shuhari help [COMMAND] # Describe available commands or one specific command
9
+ shuhari new [NAME] # Create a new Kata project
10
+ """
11
+
12
+ Scenario: General help inside a project
13
+ Given a file named "shuhari.yml" with:
14
+ """
15
+ project_name: FizzBuzz
16
+ test_framework: rspec
17
+ """
18
+ When I run `shuhari help`
19
+ Then the output should contain:
20
+ """
21
+ Commands:
22
+ shuhari empty # Restart the Kata with empty mind and project
23
+ shuhari help [COMMAND] # Describe available commands or one specific command
11
24
  """
12
25
 
13
26
  Scenario: Help about the "new" task
@@ -31,6 +44,11 @@ Feature: Getting Help
31
44
  """
32
45
 
33
46
  Scenario: Help about the "empty" task
47
+ Given a file named "shuhari.yml" with:
48
+ """
49
+ project_name: FizzBuzz
50
+ test_framework: rspec
51
+ """
34
52
  When I run `shuhari help empty`
35
53
  Then the output should contain:
36
54
  """
@@ -32,10 +32,10 @@ Feature: Minitest Kata Generation
32
32
  """
33
33
  And the file "fizz_buzz/Guardfile" should contain:
34
34
  """
35
- guard 'minitest' do
36
- watch(%r|^test/test_(.*)\.rb|)
37
- watch(%r|^lib/(.*)\.rb|) { |m| "test/test_#{m[1]}.rb" }
38
- watch(%r|^test/test_helper\.rb|) { "test" }
35
+ guard :minitest do
36
+ watch(%r{^test/(.*)\/?test_(.*)\.rb})
37
+ watch(%r{^lib/(.*/)?([^/]+)\.rb}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
38
+ watch(%r{^test/test_helper\.rb}) { 'test' }
39
39
  end
40
40
  """
41
41
  And the file "fizz_buzz/shuhari.yml" should contain:
@@ -49,13 +49,17 @@ Feature: Minitest Kata Generation
49
49
  When I run `shuhari new FizzBuzz --minitest`
50
50
  Then the file "fizz_buzz/Gemfile" should contain:
51
51
  """
52
+ source 'https://rubygems.org'
53
+
52
54
  group :development do
55
+ gem 'shuhari'
53
56
  gem 'minitest'
54
- gem 'guard-minitest'
57
+ gem 'guard-minitest', '>= 1.0.0.rc.2'
55
58
  gem 'coolline', :require => false
56
59
  gem 'growl'
57
60
  # gem 'growl_notify'
58
61
  # gem 'ruby_gntp'
62
+ # gem 'terminal-notifier-guard'
59
63
  gem 'rb-fsevent'
60
64
  end
61
65
  """
@@ -65,11 +69,15 @@ Feature: Minitest Kata Generation
65
69
  When I run `shuhari new FizzBuzz --minitest`
66
70
  Then the file "fizz_buzz/Gemfile" should contain:
67
71
  """
72
+ source 'https://rubygems.org'
73
+
68
74
  group :development do
75
+ gem 'shuhari'
69
76
  gem 'minitest'
70
- gem 'guard-minitest'
77
+ gem 'guard-minitest', '>= 1.0.0.rc.2'
71
78
  gem 'coolline', :require => false
72
79
  gem 'libnotify'
80
+ # gem 'ruby_gntp'
73
81
  gem 'rb-inotify'
74
82
  end
75
83
  """
@@ -79,11 +87,15 @@ Feature: Minitest Kata Generation
79
87
  When I run `shuhari new FizzBuzz --minitest`
80
88
  Then the file "fizz_buzz/Gemfile" should contain:
81
89
  """
90
+ source 'https://rubygems.org'
91
+
82
92
  group :development do
93
+ gem 'shuhari'
83
94
  gem 'minitest'
84
- gem 'guard-minitest'
95
+ gem 'guard-minitest', '>= 1.0.0.rc.2'
85
96
  gem 'rb-notifu'
86
97
  gem 'win32console'
98
+ # gem 'ruby_gntp'
87
99
  gem 'wdm'
88
100
  end
89
101
  """
@@ -32,10 +32,10 @@ Feature: Minitest::Spec Kata Generation
32
32
  """
33
33
  And the file "fizz_buzz/Guardfile" should contain:
34
34
  """
35
- guard 'minitest' do
36
- watch(%r|^spec/(.*)_spec\.rb|)
37
- watch(%r|^lib/(.*)\.rb|) { |m| "spec/#{m[1]}_spec.rb" }
38
- watch(%r|^spec/spec_helper\.rb|) { "spec" }
35
+ guard :minitest do
36
+ watch(%r{^spec/(.*)_spec\.rb})
37
+ watch(%r{^lib/(.+)\.rb}) { |m| "spec/#{m[1]}_spec.rb" }
38
+ watch(%r{^spec/spec_helper\.rb}) { 'spec' }
39
39
  end
40
40
  """
41
41
  And the file "fizz_buzz/shuhari.yml" should contain:
@@ -49,13 +49,17 @@ Feature: Minitest::Spec Kata Generation
49
49
  When I run `shuhari new FizzBuzz --minitest_spec`
50
50
  Then the file "fizz_buzz/Gemfile" should contain:
51
51
  """
52
+ source 'https://rubygems.org'
53
+
52
54
  group :development do
55
+ gem 'shuhari'
53
56
  gem 'minitest'
54
- gem 'guard-minitest'
57
+ gem 'guard-minitest', '>= 1.0.0.rc.2'
55
58
  gem 'coolline', :require => false
56
59
  gem 'growl'
57
60
  # gem 'growl_notify'
58
61
  # gem 'ruby_gntp'
62
+ # gem 'terminal-notifier-guard'
59
63
  gem 'rb-fsevent'
60
64
  end
61
65
  """
@@ -65,11 +69,15 @@ Feature: Minitest::Spec Kata Generation
65
69
  When I run `shuhari new FizzBuzz --minitest_spec`
66
70
  Then the file "fizz_buzz/Gemfile" should contain:
67
71
  """
72
+ source 'https://rubygems.org'
73
+
68
74
  group :development do
75
+ gem 'shuhari'
69
76
  gem 'minitest'
70
- gem 'guard-minitest'
77
+ gem 'guard-minitest', '>= 1.0.0.rc.2'
71
78
  gem 'coolline', :require => false
72
79
  gem 'libnotify'
80
+ # gem 'ruby_gntp'
73
81
  gem 'rb-inotify'
74
82
  end
75
83
  """
@@ -79,11 +87,15 @@ Feature: Minitest::Spec Kata Generation
79
87
  When I run `shuhari new FizzBuzz --minitest_spec`
80
88
  Then the file "fizz_buzz/Gemfile" should contain:
81
89
  """
90
+ source 'https://rubygems.org'
91
+
82
92
  group :development do
93
+ gem 'shuhari'
83
94
  gem 'minitest'
84
- gem 'guard-minitest'
95
+ gem 'guard-minitest', '>= 1.0.0.rc.2'
85
96
  gem 'rb-notifu'
86
97
  gem 'win32console'
98
+ # gem 'ruby_gntp'
87
99
  gem 'wdm'
88
100
  end
89
101
  """
@@ -27,16 +27,25 @@ Feature: RSpec Kata Generation
27
27
  require 'fizz_buzz'
28
28
  require 'rspec'
29
29
 
30
- # Requires supporting files with custom matchers and macros, etc,
31
- # in ./support/ and its subdirectories.
32
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
33
-
34
30
  RSpec.configure do |config|
31
+ config.treat_symbols_as_metadata_keys_with_true_values = true
32
+ config.run_all_when_everything_filtered = true
33
+ config.filter_run :focus
34
+
35
+ # Run specs in random order to surface order dependencies. If you find an
36
+ # order dependency and want to debug it, you can fix the order by providing
37
+ # the seed, which is printed after each run.
38
+ # --seed 1234
39
+ config.order = 'random'
40
+
41
+ # Requires supporting files with custom matchers and macros, etc,
42
+ # in ./support/ and its subdirectories.
43
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
35
44
  end
36
45
  """
37
46
  And the file "fizz_buzz/Guardfile" should contain:
38
47
  """
39
- guard 'rspec', :version => 2 do
48
+ guard 'rspec' do
40
49
  watch(%r{^spec/.+_spec\.rb$})
41
50
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
42
51
  watch('spec/spec_helper.rb') { "spec/" }
@@ -53,13 +62,17 @@ Feature: RSpec Kata Generation
53
62
  When I run `shuhari new FizzBuzz --rspec`
54
63
  Then the file "fizz_buzz/Gemfile" should contain:
55
64
  """
65
+ source 'https://rubygems.org'
66
+
56
67
  group :development do
68
+ gem 'shuhari'
57
69
  gem 'rspec'
58
70
  gem 'guard-rspec'
59
71
  gem 'coolline', :require => false
60
72
  gem 'growl'
61
73
  # gem 'growl_notify'
62
74
  # gem 'ruby_gntp'
75
+ # gem 'terminal-notifier-guard'
63
76
  gem 'rb-fsevent'
64
77
  end
65
78
  """
@@ -69,11 +82,15 @@ Feature: RSpec Kata Generation
69
82
  When I run `shuhari new FizzBuzz --rspec`
70
83
  Then the file "fizz_buzz/Gemfile" should contain:
71
84
  """
85
+ source 'https://rubygems.org'
86
+
72
87
  group :development do
88
+ gem 'shuhari'
73
89
  gem 'rspec'
74
90
  gem 'guard-rspec'
75
91
  gem 'coolline', :require => false
76
92
  gem 'libnotify'
93
+ # gem 'ruby_gntp'
77
94
  gem 'rb-inotify'
78
95
  end
79
96
  """
@@ -83,11 +100,15 @@ Feature: RSpec Kata Generation
83
100
  When I run `shuhari new FizzBuzz --rspec`
84
101
  Then the file "fizz_buzz/Gemfile" should contain:
85
102
  """
103
+ source 'https://rubygems.org'
104
+
86
105
  group :development do
106
+ gem 'shuhari'
87
107
  gem 'rspec'
88
108
  gem 'guard-rspec'
89
109
  gem 'rb-notifu'
90
110
  gem 'win32console'
111
+ # gem 'ruby_gntp'
91
112
  gem 'wdm'
92
113
  end
93
114
  """
@@ -48,13 +48,17 @@ Feature: Test::Unit Kata Generation
48
48
  When I run `shuhari new FizzBuzz --testunit`
49
49
  Then the file "fizz_buzz/Gemfile" should contain:
50
50
  """
51
+ source 'https://rubygems.org'
52
+
51
53
  group :development do
54
+ gem 'shuhari'
52
55
  gem 'test-unit'
53
56
  gem 'guard-test'
54
57
  gem 'coolline', :require => false
55
58
  gem 'growl'
56
59
  # gem 'growl_notify'
57
60
  # gem 'ruby_gntp'
61
+ # gem 'terminal-notifier-guard'
58
62
  gem 'rb-fsevent'
59
63
  end
60
64
  """
@@ -64,11 +68,15 @@ Feature: Test::Unit Kata Generation
64
68
  When I run `shuhari new FizzBuzz --testunit`
65
69
  Then the file "fizz_buzz/Gemfile" should contain:
66
70
  """
71
+ source 'https://rubygems.org'
72
+
67
73
  group :development do
74
+ gem 'shuhari'
68
75
  gem 'test-unit'
69
76
  gem 'guard-test'
70
77
  gem 'coolline', :require => false
71
78
  gem 'libnotify'
79
+ # gem 'ruby_gntp'
72
80
  gem 'rb-inotify'
73
81
  end
74
82
  """
@@ -78,11 +86,15 @@ Feature: Test::Unit Kata Generation
78
86
  When I run `shuhari new FizzBuzz --testunit`
79
87
  Then the file "fizz_buzz/Gemfile" should contain:
80
88
  """
89
+ source 'https://rubygems.org'
90
+
81
91
  group :development do
92
+ gem 'shuhari'
82
93
  gem 'test-unit'
83
94
  gem 'guard-test'
84
95
  gem 'rb-notifu'
85
96
  gem 'win32console'
97
+ # gem 'ruby_gntp'
86
98
  gem 'wdm'
87
99
  end
88
100
  """
@@ -6,44 +6,49 @@ module Shuhari
6
6
  include Thor::Actions
7
7
  include ProjectGeneration
8
8
 
9
- desc 'new [NAME]', 'Create a new Kata project'
9
+ if File.exists?('shuhari.yml')
10
+
11
+ desc 'empty', 'Restart the Kata with empty mind and project'
12
+ def empty
13
+ @name = load_setting(:project_name)
14
+ @framework = load_setting(:test_framework)
15
+ clean_project
16
+ setup_source_paths
17
+ setup_code
18
+ end
10
19
 
11
- method_option :rspec, :type => :boolean, :aliases => '-r',
12
- :desc => 'Test using RSpec', :default => true
20
+ else
13
21
 
14
- method_option :minitest, :type => :boolean, :aliases => '-m',
15
- :desc => 'Test using Minitest::Unit'
22
+ desc 'new [NAME]', 'Create a new Kata project'
16
23
 
17
- method_option :minitest_spec, :type => :boolean, :aliases => '-s',
18
- :desc => 'Test using Minitest::Spec'
24
+ method_option :rspec, :type => :boolean, :aliases => '-r',
25
+ :desc => 'Test using RSpec', :default => true
19
26
 
20
- method_option :testunit, :type => :boolean, :aliases => '-t',
21
- :desc => 'Test using Test::Unit'
27
+ method_option :minitest, :type => :boolean, :aliases => '-m',
28
+ :desc => 'Test using Minitest::Unit'
22
29
 
23
- method_option :cucumber, :type => :boolean, :aliases => '-c',
24
- :desc => 'Test using Cucumber'
30
+ method_option :minitest_spec, :type => :boolean, :aliases => '-s',
31
+ :desc => 'Test using Minitest::Spec'
25
32
 
26
- if Platform.unix?
27
- method_option :gemset, :type => :boolean, :aliases => '-g',
28
- :desc => 'Create .rvmrc to use a gemset', :default => Platform.rvm?
29
- end
33
+ method_option :testunit, :type => :boolean, :aliases => '-t',
34
+ :desc => 'Test using Test::Unit'
35
+
36
+ method_option :cucumber, :type => :boolean, :aliases => '-c',
37
+ :desc => 'Test using Cucumber'
30
38
 
31
- def new(name=nil)
32
- @name = name || ask('Project Name:')
33
- setup_source_paths
34
- inside snake_name, :verbose => true do
35
- self.destination_root = '.'
36
- create_project
39
+ if Platform.unix?
40
+ method_option :gemset, :type => :boolean, :aliases => '-g',
41
+ :desc => 'Create .rvmrc to use a gemset', :default => Platform.rvm?
37
42
  end
38
- end
39
43
 
40
- desc 'empty', 'Restart the Kata with empty mind and project'
41
- def empty
42
- @name = load_setting(:project_name)
43
- @framework = load_setting(:test_framework)
44
- clean_project
45
- setup_source_paths
46
- setup_code
44
+ def new(name=nil)
45
+ @name = name || ask('Project Name:')
46
+ setup_source_paths
47
+ inside snake_name, :verbose => true do
48
+ self.destination_root = '.'
49
+ create_project
50
+ end
51
+ end
47
52
  end
48
53
 
49
54
  protected
@@ -21,6 +21,10 @@ module Shuhari
21
21
  os == :linux
22
22
  end
23
23
 
24
+ def windows?
25
+ os == :windows
26
+ end
27
+
24
28
  def os
25
29
  @os ||= case RUBY_PLATFORM
26
30
  when /darwin/ then :osx
@@ -1,41 +1,19 @@
1
1
  require 'shuhari'
2
+ require 'erb'
2
3
 
3
4
  module Shuhari
4
5
  module PlatformGems
6
+ include Platform
5
7
 
6
- protected
7
-
8
- def osx_gems
9
- unix_gems +
10
- [ "gem 'growl'",
11
- "# gem 'growl_notify'",
12
- "# gem 'ruby_gntp'",
13
- "gem 'rb-fsevent'" ]
14
- end
15
-
16
- def linux_gems
17
- unix_gems +
18
- [ "gem 'libnotify'",
19
- "gem 'rb-inotify'" ]
20
- end
8
+ TEMPLATES = File.expand_path('../../templates', File.dirname(__FILE__))
9
+ TEMPLATE_FILE = File.expand_path('platform_gems.erb', TEMPLATES)
21
10
 
22
- def unix_gems
23
- [ "gem 'coolline', :require => false" ]
24
- end
25
-
26
- def windows_gems
27
- [ "gem 'rb-notifu'",
28
- "gem 'win32console'",
29
- "gem 'wdm'" ]
30
- end
11
+ protected
31
12
 
32
13
  def platform_gems
33
- case Platform.os
34
- when :osx then osx_gems
35
- when :linux then linux_gems
36
- when :windows then windows_gems
37
- else []
38
- end.join "\n "
14
+ b = binding
15
+ erb = ERB.new(File.read(TEMPLATE_FILE))
16
+ erb.result(b).strip
39
17
  end
40
18
  end
41
19
  end
@@ -1,3 +1,3 @@
1
1
  module Shuhari
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,6 +1,7 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  group :development do
4
+ gem 'shuhari'
4
5
  gem 'cucumber'
5
6
  gem 'rspec'
6
7
  gem 'guard-cucumber'
@@ -1,7 +1,8 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  group :development do
4
+ gem 'shuhari'
4
5
  gem 'minitest'
5
- gem 'guard-minitest'
6
+ gem 'guard-minitest', '>= 1.0.0.rc.2'
6
7
  <%= platform_gems %>
7
8
  end
@@ -1,5 +1,5 @@
1
- guard 'minitest' do
2
- watch(%r|^test/test_(.*)\.rb|)
3
- watch(%r|^lib/(.*)\.rb|) { |m| "test/test_#{m[1]}.rb" }
4
- watch(%r|^test/test_helper\.rb|) { "test" }
1
+ guard :minitest do
2
+ watch(%r{^test/(.*)\/?test_(.*)\.rb})
3
+ watch(%r{^lib/(.*/)?([^/]+)\.rb}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
4
+ watch(%r{^test/test_helper\.rb}) { 'test' }
5
5
  end
@@ -1,7 +1,8 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  group :development do
4
+ gem 'shuhari'
4
5
  gem 'minitest'
5
- gem 'guard-minitest'
6
+ gem 'guard-minitest', '>= 1.0.0.rc.2'
6
7
  <%= platform_gems %>
7
8
  end
@@ -1,5 +1,5 @@
1
- guard 'minitest' do
2
- watch(%r|^spec/(.*)_spec\.rb|)
3
- watch(%r|^lib/(.*)\.rb|) { |m| "spec/#{m[1]}_spec.rb" }
4
- watch(%r|^spec/spec_helper\.rb|) { "spec" }
1
+ guard :minitest do
2
+ watch(%r{^spec/(.*)_spec\.rb})
3
+ watch(%r{^lib/(.+)\.rb}) { |m| "spec/#{m[1]}_spec.rb" }
4
+ watch(%r{^spec/spec_helper\.rb}) { 'spec' }
5
5
  end
@@ -0,0 +1,18 @@
1
+ <% if osx? %>
2
+ gem 'coolline', :require => false
3
+ gem 'growl'
4
+ # gem 'growl_notify'
5
+ # gem 'ruby_gntp'
6
+ # gem 'terminal-notifier-guard'
7
+ gem 'rb-fsevent'
8
+ <% elsif linux? %>
9
+ gem 'coolline', :require => false
10
+ gem 'libnotify'
11
+ # gem 'ruby_gntp'
12
+ gem 'rb-inotify'
13
+ <% elsif windows? %>
14
+ gem 'rb-notifu'
15
+ gem 'win32console'
16
+ # gem 'ruby_gntp'
17
+ gem 'wdm'
18
+ <% end %>
@@ -1,6 +1,7 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  group :development do
4
+ gem 'shuhari'
4
5
  gem 'rspec'
5
6
  gem 'guard-rspec'
6
7
  <%= platform_gems %>
@@ -1,4 +1,4 @@
1
- guard 'rspec', :version => 2 do
1
+ guard 'rspec' do
2
2
  watch(%r{^spec/.+_spec\.rb$})
3
3
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
4
4
  watch('spec/spec_helper.rb') { "spec/" }
@@ -1,9 +1,18 @@
1
1
  require '<%= snake_name %>'
2
2
  require 'rspec'
3
3
 
4
- # Requires supporting files with custom matchers and macros, etc,
5
- # in ./support/ and its subdirectories.
6
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
7
-
8
4
  RSpec.configure do |config|
5
+ config.treat_symbols_as_metadata_keys_with_true_values = true
6
+ config.run_all_when_everything_filtered = true
7
+ config.filter_run :focus
8
+
9
+ # Run specs in random order to surface order dependencies. If you find an
10
+ # order dependency and want to debug it, you can fix the order by providing
11
+ # the seed, which is printed after each run.
12
+ # --seed 1234
13
+ config.order = 'random'
14
+
15
+ # Requires supporting files with custom matchers and macros, etc,
16
+ # in ./support/ and its subdirectories.
17
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
9
18
  end
@@ -1,6 +1,7 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  group :development do
4
+ gem 'shuhari'
4
5
  gem 'test-unit'
5
6
  gem 'guard-test'
6
7
  <%= platform_gems %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shuhari
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-04 00:00:00.000000000 Z
12
+ date: 2013-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -49,7 +49,6 @@ files:
49
49
  - features/minitest_kata.feature
50
50
  - features/minitest_spec_kata.feature
51
51
  - features/rspec_kata.feature
52
- - features/step_definitions/steps.rb
53
52
  - features/support/env.rb
54
53
  - features/testunit_kata.feature
55
54
  - lib/shuhari.rb
@@ -75,6 +74,7 @@ files:
75
74
  - templates/minitest_spec/Guardfile
76
75
  - templates/minitest_spec/spec/kata_spec.rb.tt
77
76
  - templates/minitest_spec/spec/spec_helper.rb.tt
77
+ - templates/platform_gems.erb
78
78
  - templates/rspec/Gemfile.tt
79
79
  - templates/rspec/Guardfile
80
80
  - templates/rspec/spec/kata_spec.rb.tt
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 1.8.24
106
+ rubygems_version: 1.8.25
107
107
  signing_key:
108
108
  specification_version: 3
109
109
  summary: TDD Kata project generator
@@ -113,7 +113,6 @@ test_files:
113
113
  - features/minitest_kata.feature
114
114
  - features/minitest_spec_kata.feature
115
115
  - features/rspec_kata.feature
116
- - features/step_definitions/steps.rb
117
116
  - features/support/env.rb
118
117
  - features/testunit_kata.feature
119
118
  has_rdoc:
@@ -1,5 +0,0 @@
1
- # This step was copied verbatim from the aruba master branch but it's not yet
2
- # in the released gem as of version 0.4.11
3
- Then /^the file "([^"]*)" should contain:$/ do |file, partial_content|
4
- check_file_content(file, partial_content, true)
5
- end