jeweler2 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/lib/jeweler/version.rb +1 -1
  2. metadata +30 -145
  3. data/.document +0 -8
  4. data/Gemfile +0 -18
  5. data/Gemfile.lock +0 -47
  6. data/Rakefile +0 -80
  7. data/features/generator/cucumber.feature +0 -103
  8. data/features/generator/directory_layout.feature +0 -86
  9. data/features/generator/dotdocument.feature +0 -13
  10. data/features/generator/env_options.feature +0 -9
  11. data/features/generator/gemfile.feature +0 -71
  12. data/features/generator/git.feature +0 -102
  13. data/features/generator/license.feature +0 -20
  14. data/features/generator/rakefile.feature +0 -158
  15. data/features/generator/readme.feature +0 -12
  16. data/features/generator/test.feature +0 -54
  17. data/features/generator/test_helper.feature +0 -149
  18. data/features/placeholder.feature +0 -5
  19. data/features/step_definitions/debug_steps.rb +0 -6
  20. data/features/step_definitions/filesystem_steps.rb +0 -70
  21. data/features/step_definitions/generator_steps.rb +0 -380
  22. data/features/step_definitions/task_steps.rb +0 -6
  23. data/features/support/env.rb +0 -42
  24. data/features/tasks/build_gem.feature +0 -9
  25. data/features/tasks/version.feature +0 -31
  26. data/features/tasks/version_bumping.feature +0 -49
  27. data/jeweler.gemspec +0 -245
  28. data/jeweler2.gemspec +0 -233
  29. data/lib/jeweler/templates/.document +0 -5
  30. data/lib/jeweler/templates/.gitignore +0 -48
  31. data/lib/jeweler/templates/Gemfile +0 -12
  32. data/lib/jeweler/templates/LICENSE.txt +0 -20
  33. data/lib/jeweler/templates/README.rdoc +0 -19
  34. data/lib/jeweler/templates/Rakefile +0 -9
  35. data/lib/jeweler/templates/bacon/flunking.rb +0 -7
  36. data/lib/jeweler/templates/bacon/helper.rb +0 -9
  37. data/lib/jeweler/templates/bundler_setup.erb +0 -10
  38. data/lib/jeweler/templates/features/default.feature +0 -9
  39. data/lib/jeweler/templates/features/support/env.rb +0 -10
  40. data/lib/jeweler/templates/jeweler_tasks.erb +0 -31
  41. data/lib/jeweler/templates/micronaut/flunking.rb +0 -7
  42. data/lib/jeweler/templates/micronaut/helper.rb +0 -18
  43. data/lib/jeweler/templates/minitest/flunking.rb +0 -7
  44. data/lib/jeweler/templates/minitest/helper.rb +0 -12
  45. data/lib/jeweler/templates/other_tasks.erb +0 -86
  46. data/lib/jeweler/templates/riot/flunking.rb +0 -11
  47. data/lib/jeweler/templates/riot/helper.rb +0 -4
  48. data/lib/jeweler/templates/rspec/.rspec +0 -1
  49. data/lib/jeweler/templates/rspec/flunking.rb +0 -7
  50. data/lib/jeweler/templates/rspec/helper.rb +0 -12
  51. data/lib/jeweler/templates/shindo/flunking.rb +0 -8
  52. data/lib/jeweler/templates/shindo/helper.rb +0 -6
  53. data/lib/jeweler/templates/shoulda/flunking.rb +0 -7
  54. data/lib/jeweler/templates/shoulda/helper.rb +0 -11
  55. data/lib/jeweler/templates/testspec/flunking.rb +0 -7
  56. data/lib/jeweler/templates/testspec/helper.rb +0 -7
  57. data/lib/jeweler/templates/testunit/flunking.rb +0 -7
  58. data/lib/jeweler/templates/testunit/helper.rb +0 -10
  59. data/test/fixtures/bar/VERSION.yml +0 -4
  60. data/test/fixtures/bar/bin/foo_the_ultimate_bin +0 -1
  61. data/test/fixtures/bar/hey_include_me_in_gemspec +0 -0
  62. data/test/fixtures/bar/lib/foo_the_ultimate_lib.rb +0 -1
  63. data/test/fixtures/existing-project-with-version-constant/.document +0 -5
  64. data/test/fixtures/existing-project-with-version-constant/.gitignore +0 -5
  65. data/test/fixtures/existing-project-with-version-constant/LICENSE.txt +0 -20
  66. data/test/fixtures/existing-project-with-version-constant/README.rdoc +0 -7
  67. data/test/fixtures/existing-project-with-version-constant/Rakefile +0 -85
  68. data/test/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec +0 -29
  69. data/test/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb +0 -0
  70. data/test/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb +0 -7
  71. data/test/fixtures/existing-project-with-version-constant/test/test_helper.rb +0 -10
  72. data/test/fixtures/existing-project-with-version-plaintext/.document +0 -5
  73. data/test/fixtures/existing-project-with-version-plaintext/.gitignore +0 -5
  74. data/test/fixtures/existing-project-with-version-plaintext/LICENSE.txt +0 -20
  75. data/test/fixtures/existing-project-with-version-plaintext/README.rdoc +0 -7
  76. data/test/fixtures/existing-project-with-version-plaintext/Rakefile +0 -84
  77. data/test/fixtures/existing-project-with-version-plaintext/VERSION +0 -1
  78. data/test/fixtures/existing-project-with-version-plaintext/existing-project-with-version.gemspec +0 -29
  79. data/test/fixtures/existing-project-with-version-plaintext/lib/existing_project_with_version.rb +0 -0
  80. data/test/fixtures/existing-project-with-version-plaintext/test/existing_project_with_version_test.rb +0 -7
  81. data/test/fixtures/existing-project-with-version-plaintext/test/test_helper.rb +0 -10
  82. data/test/fixtures/existing-project-with-version-yaml/.document +0 -5
  83. data/test/fixtures/existing-project-with-version-yaml/.gitignore +0 -5
  84. data/test/fixtures/existing-project-with-version-yaml/LICENSE.txt +0 -20
  85. data/test/fixtures/existing-project-with-version-yaml/README.rdoc +0 -7
  86. data/test/fixtures/existing-project-with-version-yaml/Rakefile +0 -84
  87. data/test/fixtures/existing-project-with-version-yaml/VERSION.yml +0 -4
  88. data/test/fixtures/existing-project-with-version-yaml/bin/foo_the_ultimate_bin +0 -0
  89. data/test/fixtures/existing-project-with-version-yaml/existing-project-with-version.gemspec +0 -29
  90. data/test/fixtures/existing-project-with-version-yaml/lib/existing_project_with_version.rb +0 -0
  91. data/test/fixtures/existing-project-with-version-yaml/test/existing_project_with_version_test.rb +0 -7
  92. data/test/fixtures/existing-project-with-version-yaml/test/test_helper.rb +0 -10
  93. data/test/geminstaller.yml +0 -12
  94. data/test/jeweler/commands/test_build_gem.rb +0 -103
  95. data/test/jeweler/commands/test_install_gem.rb +0 -35
  96. data/test/jeweler/commands/test_release_to_gemcutter.rb +0 -39
  97. data/test/jeweler/commands/test_release_to_git.rb +0 -198
  98. data/test/jeweler/commands/test_release_to_github.rb +0 -390
  99. data/test/jeweler/commands/test_validate_gemspec.rb +0 -27
  100. data/test/jeweler/commands/test_write_gemspec.rb +0 -101
  101. data/test/jeweler/commands/version/test_base.rb +0 -32
  102. data/test/jeweler/commands/version/test_bump_major.rb +0 -22
  103. data/test/jeweler/commands/version/test_bump_minor.rb +0 -19
  104. data/test/jeweler/commands/version/test_bump_patch.rb +0 -20
  105. data/test/jeweler/commands/version/test_write.rb +0 -22
  106. data/test/jeweler/generator/test_application.rb +0 -120
  107. data/test/jeweler/generator/test_options.rb +0 -225
  108. data/test/jeweler/test_gemspec_helper.rb +0 -44
  109. data/test/jeweler/test_generator.rb +0 -141
  110. data/test/jeweler/test_generator_initialization.rb +0 -164
  111. data/test/jeweler/test_generator_mixins.rb +0 -23
  112. data/test/jeweler/test_specification.rb +0 -237
  113. data/test/jeweler/test_tasks.rb +0 -50
  114. data/test/jeweler/test_version_helper.rb +0 -214
  115. data/test/shoulda_macros/jeweler_macros.rb +0 -35
  116. data/test/test_helper.rb +0 -178
  117. data/test/test_jeweler.rb +0 -175
@@ -1,103 +0,0 @@
1
- Feature: generating cucumber stories
2
- In order to get started using cucumber in a project
3
- A user should be able to
4
- generate a project setup for their testing framework of choice
5
-
6
- Scenario: sans cucumber setup
7
- Given a working directory
8
- And I have configured git sanely
9
- And I do not want cucumber stories
10
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
11
-
12
- And a file named 'the-perfect-gem/features/the-perfect-gem.feature' is not created
13
- And a file named 'the-perfect-gem/features/support/env.rb' is not created
14
- And a file named 'the-perfect-gem/features/steps/the-perfect-gem_steps.rb' is not created
15
-
16
- Scenario: basic cucumber setup
17
- Given a working directory
18
- And I have configured git sanely
19
- And I want cucumber stories
20
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
21
-
22
- Then cucumber directories are created
23
-
24
- And a file named 'the-perfect-gem/features/the-perfect-gem.feature' is created
25
- And a file named 'the-perfect-gem/features/support/env.rb' is created
26
- And a file named 'the-perfect-gem/features/step_definitions/the-perfect-gem_steps.rb' is created
27
-
28
- And 'features/support/env.rb' requires 'bundler'
29
- And 'features/support/env.rb' sets up bundler using the default and development groups
30
- And 'features/support/env.rb' requires 'the-perfect-gem'
31
-
32
- Scenario: bundler
33
- Given a working directory
34
- And I want bundler
35
- And I have configured git sanely
36
- And I want cucumber stories
37
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
38
- And 'features/support/env.rb' requires 'bundler'
39
- And 'features/support/env.rb' sets up bundler using the default and development groups
40
-
41
- Scenario: no bundler
42
- Given a working directory
43
- And I have configured git sanely
44
- And I do not want bundler
45
- And I want cucumber stories
46
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
47
- And 'features/support/env.rb' does not require 'bundler'
48
- And 'features/support/env.rb' does not setup bundler
49
-
50
- Scenario: cucumber setup for bacon
51
- Given a working directory
52
- And I have configured git sanely
53
- And I want cucumber stories
54
- When I generate a bacon project named 'the-perfect-gem' that is 'zomg, so good'
55
-
56
- Then 'features/support/env.rb' requires 'test/unit/assertions'
57
- And cucumber world extends "Test::Unit::Assertions"
58
-
59
- Scenario: cucumber setup for shoulda
60
- Given a working directory
61
- And I have configured git sanely
62
- And I want cucumber stories
63
- When I generate a shoulda project named 'the-perfect-gem' that is 'zomg, so good'
64
-
65
- Then 'features/support/env.rb' requires 'test/unit/assertions'
66
- And cucumber world extends "Test::Unit::Assertions"
67
-
68
- Scenario: cucumber setup for testunit
69
- Given a working directory
70
- And I have configured git sanely
71
- And I want cucumber stories
72
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
73
-
74
- Then 'features/support/env.rb' requires 'test/unit/assertions'
75
- And cucumber world extends "Test::Unit::Assertions"
76
-
77
- Scenario: cucumber setup for minitest
78
- Given a working directory
79
- And I have configured git sanely
80
- And I want cucumber stories
81
- When I generate a minitest project named 'the-perfect-gem' that is 'zomg, so good'
82
-
83
- Then 'features/support/env.rb' requires 'minitest/unit'
84
- And cucumber world extends "MiniTest::Assertions"
85
-
86
- Scenario: cucumber setup for rspec
87
- Given a working directory
88
- And I have configured git sanely
89
- And I want cucumber stories
90
- When I generate a rspec project named 'the-perfect-gem' that is 'zomg, so good'
91
-
92
- Then 'features/support/env.rb' requires 'the-perfect-gem'
93
- And 'features/support/env.rb' requires 'rspec/expectations'
94
-
95
- Scenario: cucumber setup for mirconaut
96
- Given a working directory
97
- And I have configured git sanely
98
- And I want cucumber stories
99
- When I generate a micronaut project named 'the-perfect-gem' that is 'zomg, so good'
100
-
101
- Then 'features/support/env.rb' requires 'the-perfect-gem'
102
- And 'features/support/env.rb' requires 'micronaut/expectations'
103
- And cucumber world extends "Micronaut::Matchers"
@@ -1,86 +0,0 @@
1
- Feature: generated directory layout
2
- In order to start a new gem
3
- A user should be able to
4
- generate a directory layout
5
-
6
- Scenario: shared
7
- Given a working directory
8
- And I have configured git sanely
9
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
10
-
11
- Then a directory named 'the-perfect-gem' is created
12
- And a directory named 'the-perfect-gem/lib' is created
13
-
14
- And a file named 'the-perfect-gem/README.rdoc' is created
15
- And a file named 'the-perfect-gem/.document' is created
16
- And a file named 'the-perfect-gem/lib/the-perfect-gem.rb' is created
17
-
18
- Scenario: bacon
19
- Given a working directory
20
- And I have configured git sanely
21
- When I generate a bacon project named 'the-perfect-gem' that is 'zomg, so good'
22
-
23
- Then a directory named 'the-perfect-gem/spec' is created
24
-
25
- And a file named 'the-perfect-gem/spec/spec_helper.rb' is created
26
- And a file named 'the-perfect-gem/spec/the-perfect-gem_spec.rb' is created
27
-
28
- Scenario: minitest
29
- Given a working directory
30
- And I have configured git sanely
31
- When I generate a minitest project named 'the-perfect-gem' that is 'zomg, so good'
32
-
33
- Then a directory named 'the-perfect-gem/test' is created
34
-
35
- And a file named 'the-perfect-gem/test/helper.rb' is created
36
- And a file named 'the-perfect-gem/test/test_the-perfect-gem.rb' is created
37
-
38
- Scenario: rspec
39
- Given a working directory
40
- And I have configured git sanely
41
- When I generate a rspec project named 'the-perfect-gem' that is 'zomg, so good'
42
-
43
- Then a directory named 'the-perfect-gem/spec' is created
44
-
45
- And a file named 'the-perfect-gem/spec/spec_helper.rb' is created
46
- And a file named 'the-perfect-gem/spec/the-perfect-gem_spec.rb' is created
47
-
48
- Scenario: shoulda
49
- Given a working directory
50
- And I have configured git sanely
51
- When I generate a shoulda project named 'the-perfect-gem' that is 'zomg, so good'
52
-
53
- Then a directory named 'the-perfect-gem/test' is created
54
-
55
- And a file named 'the-perfect-gem/test/helper.rb' is created
56
- And a file named 'the-perfect-gem/test/test_the-perfect-gem.rb' is created
57
-
58
- Scenario: testunit
59
- Given a working directory
60
- And I have configured git sanely
61
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
62
-
63
- Then a directory named 'the-perfect-gem/test' is created
64
-
65
- And a file named 'the-perfect-gem/test/helper.rb' is created
66
- And a file named 'the-perfect-gem/test/test_the-perfect-gem.rb' is created
67
-
68
- Scenario: micronaut
69
- Given a working directory
70
- And I have configured git sanely
71
- When I generate a micronaut project named 'the-perfect-gem' that is 'zomg, so good'
72
-
73
- Then a directory named 'the-perfect-gem/examples' is created
74
-
75
- And a file named 'the-perfect-gem/examples/example_helper.rb' is created
76
- And a file named 'the-perfect-gem/examples/the-perfect-gem_example.rb' is created
77
-
78
- Scenario: shindo
79
- Given a working directory
80
- And I have configured git sanely
81
- When I generate a shindo project named 'the-perfect-gem' that is 'zomg, so good'
82
-
83
- Then a directory named 'the-perfect-gem/tests' is created
84
-
85
- And a file named 'the-perfect-gem/tests/tests_helper.rb' is created
86
- And a file named 'the-perfect-gem/tests/the-perfect-gem_tests.rb' is created
@@ -1,13 +0,0 @@
1
- Feature: generated .document
2
- In order to easily generate RDoc
3
- A user should be able to
4
- generate reasonable .document file
5
-
6
- Scenario: .document
7
- Given a working directory
8
- And I have configured git sanely
9
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
10
- Then '.document' contains 'lib/**/*.rb'
11
- And '.document' contains 'bin/*'
12
- And '.document' contains 'features/**/*.feature'
13
- And '.document' contains 'LICENSE.txt'
@@ -1,9 +0,0 @@
1
- Feature: Getting options from environment variable
2
- In order to avoid having to type --rspec over and over
3
- A user will need to set up a JEWELER_OPTS environment variable
4
-
5
- Scenario: Environment variable set
6
- Given a working directory
7
- And I set JEWELER_OPTS env variable to "--rspec"
8
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
9
- Then 'spec/the-perfect-gem_spec.rb' should describe 'ThePerfectGem'
@@ -1,71 +0,0 @@
1
- Feature: generated Gemfiel
2
- In order to start a new gem
3
- A user should be able to
4
- generate a Gemfile
5
-
6
- Background:
7
- Given a working directory
8
- And I have configured git sanely
9
-
10
- Scenario: disabled
11
- Given I do not want bundler
12
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
13
- Then a file named 'the-perfect-gemGemfile' is not created
14
-
15
- Scenario: enabled
16
- Given I want bundler
17
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
18
- Then a file named 'the-perfect-gem/Gemfile' is created
19
-
20
- Scenario: default
21
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
22
- Then a file named 'the-perfect-gem/Gemfile' is created
23
- And 'Gemfile' uses the gemcutter source
24
- And 'Gemfile' has a development dependency on 'bundler'
25
- And 'Gemfile' has a development dependency on the current version of jeweler
26
- And 'Gemfile' has a development dependency on 'rcov'
27
-
28
- Scenario: bacon
29
- When I generate a bacon project named 'the-perfect-gem' that is 'zomg, so good'
30
- Then 'Gemfile' has a development dependency on 'bacon'
31
-
32
- Scenario: minitest
33
- When I generate a minitest project named 'the-perfect-gem' that is 'zomg, so good'
34
- Then 'Gemfile' has a development dependency on 'minitest'
35
-
36
- Scenario: rspec
37
- When I generate a rspec project named 'the-perfect-gem' that is 'zomg, so good'
38
-
39
- Then 'Gemfile' has a development dependency on 'rspec'
40
-
41
- Scenario: shoulda
42
- When I generate a shoulda project named 'the-perfect-gem' that is 'zomg, so good'
43
- Then 'Gemfile' has a development dependency on 'shoulda'
44
-
45
- Scenario: micronaut
46
- When I generate a micronaut project named 'the-perfect-gem' that is 'zomg, so good'
47
- Then 'Gemfile' has a development dependency on 'micronaut'
48
-
49
- Scenario: cucumber
50
- Given I want cucumber stories
51
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
52
- Then 'Gemfile' has a development dependency on 'cucumber'
53
-
54
- Scenario: reek
55
- Given I want reek
56
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
57
- Then 'Gemfile' has a development dependency on 'reek'
58
-
59
- Scenario: roodi
60
- Given I want roodi
61
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
62
- Then 'Gemfile' has a development dependency on 'roodi'
63
-
64
- Scenario: yard
65
- Given I want to use yard instead of rdoc
66
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
67
- Then 'Gemfile' has a development dependency on 'yard'
68
-
69
- Scenario: shindo
70
- When I generate a shindo project named 'the-perfect-gem' that is 'zomg, so good'
71
- Then 'Gemfile' has a development dependency on 'shindo'
@@ -1,102 +0,0 @@
1
- Feature: git support
2
- In order to start a new gem for GitHub
3
- A user should be able to
4
- generate a project that is setup for git
5
-
6
- Scenario: git remote configuration
7
- Given a working directory
8
- And I have configured git sanely
9
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
10
-
11
- Then git repository has 'origin' remote
12
- And git repository 'origin' remote should be 'git@github.com:technicalpickles/the-perfect-gem.git'
13
-
14
- Scenario: .gitignore
15
- Given a working directory
16
- And I have configured git sanely
17
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
18
-
19
- Then a sane '.gitignore' is created
20
-
21
- Scenario: baseline repository
22
- Given a working directory
23
- And I have configured git sanely
24
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
25
-
26
- Then a commit with the message 'Initial commit to the-perfect-gem.' is made
27
- And 'README.rdoc' was checked in
28
- And 'Rakefile' was checked in
29
- And 'LICENSE.txt' was checked in
30
- And 'lib/the-perfect-gem.rb' was checked in
31
- And '.gitignore' was checked in
32
-
33
- And no files are untracked
34
- And no files are changed
35
- And no files are added
36
- And no files are deleted
37
-
38
- Scenario: bacon
39
- Given a working directory
40
- And I have configured git sanely
41
- When I generate a bacon project named 'the-perfect-gem' that is 'zomg, so good'
42
-
43
- Then 'spec/spec_helper.rb' was checked in
44
- And 'spec/the-perfect-gem_spec.rb' was checked in
45
-
46
- Scenario: minitest
47
- Given a working directory
48
- And I have configured git sanely
49
- When I generate a minitest project named 'the-perfect-gem' that is 'zomg, so good'
50
-
51
- Then 'test/helper.rb' was checked in
52
- And 'test/test_the-perfect-gem.rb' was checked in
53
-
54
- Scenario: rspec
55
- Given a working directory
56
- And I have configured git sanely
57
- When I generate a rspec project named 'the-perfect-gem' that is 'zomg, so good'
58
-
59
- Then 'spec/spec_helper.rb' was checked in
60
- And 'spec/the-perfect-gem_spec.rb' was checked in
61
-
62
- Scenario: shoulda
63
- Given a working directory
64
- And I have configured git sanely
65
- When I generate a shoulda project named 'the-perfect-gem' that is 'zomg, so good'
66
-
67
- Then 'test/helper.rb' was checked in
68
- And 'test/test_the-perfect-gem.rb' was checked in
69
-
70
- Scenario: testunit
71
- Given a working directory
72
- And I have configured git sanely
73
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
74
-
75
- Then 'test/helper.rb' was checked in
76
- And 'test/test_the-perfect-gem.rb' was checked in
77
-
78
- Scenario: micronaut
79
- Given a working directory
80
- And I have configured git sanely
81
- When I generate a micronaut project named 'the-perfect-gem' that is 'zomg, so good'
82
-
83
- Then 'examples/example_helper.rb' was checked in
84
- And 'examples/the-perfect-gem_example.rb' was checked in
85
-
86
- Scenario: cucumber
87
- Given a working directory
88
- And I have configured git sanely
89
- And I want cucumber stories
90
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
91
-
92
- Then 'features/the-perfect-gem.feature' was checked in
93
- And 'features/support/env.rb' was checked in
94
- And 'features/step_definitions/the-perfect-gem_steps.rb' was checked in
95
-
96
- Scenario: shindo
97
- Given a working directory
98
- And I have configured git sanely
99
- When I generate a shindo project named 'the-perfect-gem' that is 'zomg, so good'
100
-
101
- Then 'tests/tests_helper.rb' was checked in
102
- And 'tests/the-perfect-gem_tests.rb' was checked in
@@ -1,20 +0,0 @@
1
- Feature: generated license
2
- In order to start a new gem
3
- A user should be able to
4
- generate a default license
5
-
6
- Background:
7
- Given a working directory
8
-
9
- Scenario: crediting user
10
- Given I have configured git sanely
11
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
12
-
13
- Then LICENSE.txt credits 'foo'
14
-
15
- Scenario: copyright in the current year
16
- Given it is the year 2005
17
- And I have configured git sanely
18
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
19
-
20
- Then LICENSE.txt has a copyright in the year 2005
@@ -1,158 +0,0 @@
1
- Feature: generated Rakefile
2
- In order to start a new gem
3
- A user should be able to
4
- generate a Rakefile
5
-
6
- Background:
7
- Given a working directory
8
- And I have configured git sanely
9
-
10
- Scenario: shared
11
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good' and described as 'Descriptive'
12
-
13
- Then 'Rakefile' requires 'bundler'
14
- And 'Rakefile' sets up bundler using the default and development groups
15
- And 'Rakefile' requires 'rubygems'
16
- And 'Rakefile' requires 'rake'
17
- And 'Rakefile' requires 'rake/rdoctask'
18
- And Rakefile has 'the-perfect-gem' for the Jeweler::Tasks name
19
- And Rakefile has 'bar@example.com' for the Jeweler::Tasks email
20
- And Rakefile has 'zomg, so good' for the Jeweler::Tasks summary
21
- And Rakefile has 'Descriptive' for the Jeweler::Tasks description
22
- And Rakefile has 'http://github.com/technicalpickles/the-perfect-gem' for the Jeweler::Tasks homepage
23
- And Rakefile has 'MIT' for the Jeweler::Tasks license
24
- And Rakefile instantiates a Jeweler::RubygemsDotOrgTasks
25
- And Rakefile has a magic comment for UTF-8
26
-
27
- Scenario: bacon
28
- When I generate a bacon project named 'the-perfect-gem' that is 'zomg, so good'
29
- Then 'Rakefile' requires 'rcov/rcovtask'
30
- And Rakefile has 'spec/**/*_spec.rb' for the Rake::TestTask pattern
31
- And Rakefile has 'spec/**/*_spec.rb' for the Rcov::RcovTask pattern
32
- And Rakefile has 'spec' in the Rcov::RcovTask libs
33
- And Rakefile has "spec" as the default task
34
-
35
- Scenario: minitest
36
- When I generate a minitest project named 'the-perfect-gem' that is 'zomg, so good'
37
-
38
- Then 'Rakefile' requires 'rcov/rcovtask'
39
- And Rakefile has 'test/**/test_*.rb' for the Rake::TestTask pattern
40
- And Rakefile has 'test/**/test_*.rb' for the Rcov::RcovTask pattern
41
- And Rakefile has 'test' in the Rcov::RcovTask libs
42
- And Rakefile has "test" as the default task
43
-
44
- @rspec
45
- Scenario: rspec
46
- When I generate a rspec project named 'the-perfect-gem' that is 'zomg, so good'
47
-
48
- Then 'Rakefile' requires 'rspec/core'
49
- And 'Rakefile' requires 'rspec/core/rake_task'
50
- And Rakefile has 'spec/**/*_spec.rb' for the RSpec::Core::RakeTask pattern
51
- And Rakefile has "spec" as the default task
52
-
53
- Scenario: shoulda
54
- When I generate a shoulda project named 'the-perfect-gem' that is 'zomg, so good'
55
-
56
- Then 'Rakefile' requires 'rcov/rcovtask'
57
- And Rakefile has 'test/**/test_*.rb' for the Rake::TestTask pattern
58
- And Rakefile has 'test/**/test_*.rb' for the Rcov::RcovTask pattern
59
- And Rakefile has 'test' in the Rcov::RcovTask libs
60
- And Rakefile has "test" as the default task
61
-
62
- Scenario: micronaut
63
- When I generate a micronaut project named 'the-perfect-gem' that is 'zomg, so good'
64
-
65
- Then 'Rakefile' requires 'micronaut/rake_task'
66
- And Rakefile has 'examples/**/*_example.rb' for the Micronaut::RakeTask pattern
67
- And Rakefile has "examples" as the default task
68
-
69
- Scenario: testunit
70
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
71
-
72
- Then 'Rakefile' requires 'rcov/rcovtask'
73
- Then Rakefile has 'test/**/test_*.rb' for the Rake::TestTask pattern
74
- And Rakefile has 'test/**/test_*.rb' for the Rcov::RcovTask pattern
75
- And Rakefile has 'test' in the Rcov::RcovTask libs
76
- And Rakefile has '--exclude "gems/*"' in the Rcov::RcovTask rcov_opts
77
- And Rakefile has "test" as the default task
78
-
79
- Scenario: no cucumber
80
- Given I do not want cucumber stories
81
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
82
- Then Rakefile does not require 'cucumber/rake/task'
83
- And Rakefile does not instantiate a Cucumber::Rake::Task
84
-
85
- Scenario: cucumber
86
- Given I want cucumber stories
87
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
88
- Then Rakefile requires 'cucumber/rake/task'
89
- And Rakefile instantiates a Cucumber::Rake::Task
90
-
91
- Scenario: no reek
92
- Given I do not want reek
93
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
94
- Then Rakefile does not require 'reek/rake/task'
95
- And Rakefile does not instantiate a Reek::Rake::Task
96
-
97
- Scenario: reek
98
- Given I want reek
99
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
100
- Then Rakefile requires 'reek/rake/task'
101
- And Rakefile instantiates a Reek::Rake::Task
102
-
103
- Scenario: no roodi
104
- Given I do not want roodi
105
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
106
- Then Rakefile does not require 'roodi'
107
- And Rakefile does not require 'roodi_task'
108
- And Rakefile does not instantiate a RoodiTask
109
-
110
- Scenario: roodi
111
- Given I want roodi
112
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
113
- Then Rakefile requires 'roodi'
114
- And Rakefile requires 'roodi_task'
115
- And Rakefile instantiates a RoodiTask
116
-
117
- Scenario: no rubyforge
118
- Given I do not want rubyforge setup
119
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
120
- Then Rakefile does not instantiate a Jeweler::RubyforgeTasks
121
-
122
- Scenario: yard
123
- Given I want to use yard instead of rdoc
124
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
125
-
126
- Then 'Rakefile' does not require 'rake/rdoctask'
127
- And 'Rakefile' requires 'yard'
128
- And Rakefile instantiates a YARD::Rake::YardocTask
129
-
130
- Scenario: rdoc
131
- Given I want to use rdoc instead of yard
132
- When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
133
-
134
- Then 'Rakefile' does not require 'yard'
135
- And 'Rakefile' requires 'rake/rdoctask'
136
- And Rakefile does not instantiate a YARD::Rake::YardocTask
137
- And Rakefile instantiates a Rake::RDocTask.new
138
-
139
- Scenario: shindo
140
- When I generate a shindo project named 'the-perfect-gem' that is 'zomg, so good'
141
- And 'Rakefile' requires 'shindo/rake'
142
- And Rakefile instantiates a Shindo::Rake.new
143
- And Rakefile has "tests" as the default task
144
-
145
-
146
- Scenario: bundler
147
- Given I want bundler
148
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good' and described as 'Descriptive'
149
- Then 'Rakefile' requires 'bundler'
150
- And 'Rakefile' sets up bundler using the default and development groups
151
- And Rakefile does not add 'jeweler' as a development dependency to Jeweler::Tasks
152
-
153
- Scenario: no bundler
154
- Given I do not want bundler
155
- When I generate a project named 'the-perfect-gem' that is 'zomg, so good' and described as 'Descriptive'
156
- Then 'Rakefile' does not require 'bundler'
157
- And 'Rakefile' does not setup bundler
158
- And Rakefile adds 'jeweler' as a development dependency to Jeweler::Tasks