stove 1.1.2 → 2.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -2
- data/CHANGELOG.md +16 -0
- data/README.md +41 -29
- data/Rakefile +15 -0
- data/bin/bake +1 -2
- data/features/actions/bump.feature +22 -0
- data/features/actions/changelog.feature +45 -0
- data/features/actions/dev.feature +18 -0
- data/features/actions/upload.feature +48 -0
- data/features/plugins/git.feature +24 -0
- data/features/rake.feature +1 -2
- data/features/step_definitions/cli_steps.rb +1 -27
- data/features/step_definitions/{community_site_steps.rb → community_steps.rb} +9 -5
- data/features/step_definitions/config_steps.rb +24 -0
- data/features/step_definitions/cookbook_steps.rb +28 -6
- data/features/step_definitions/cucumber_steps.rb +12 -0
- data/features/step_definitions/git_steps.rb +10 -7
- data/features/support/env.rb +12 -28
- data/features/support/stove/git.rb +48 -0
- data/lib/stove.rb +102 -19
- data/lib/stove/actions/base.rb +21 -0
- data/lib/stove/actions/bump.rb +25 -0
- data/lib/stove/actions/changelog.rb +71 -0
- data/lib/stove/actions/dev.rb +22 -0
- data/lib/stove/actions/finish.rb +8 -0
- data/lib/stove/actions/start.rb +7 -0
- data/lib/stove/actions/upload.rb +27 -0
- data/lib/stove/cli.rb +107 -79
- data/lib/stove/community.rb +124 -0
- data/lib/stove/config.rb +62 -13
- data/lib/stove/cookbook.rb +76 -238
- data/lib/stove/cookbook/metadata.rb +16 -11
- data/lib/stove/error.rb +13 -107
- data/lib/stove/filter.rb +59 -0
- data/lib/stove/jira.rb +74 -30
- data/lib/stove/middlewares/chef_authentication.rb +60 -0
- data/lib/stove/middlewares/exceptions.rb +17 -0
- data/lib/stove/mixins/filterable.rb +11 -0
- data/lib/stove/mixins/insideable.rb +13 -0
- data/lib/stove/mixins/instanceable.rb +23 -0
- data/lib/stove/mixins/loggable.rb +32 -0
- data/lib/stove/mixins/optionable.rb +41 -0
- data/lib/stove/mixins/validatable.rb +7 -0
- data/lib/stove/packager.rb +23 -22
- data/lib/stove/plugins/base.rb +35 -0
- data/lib/stove/plugins/git.rb +71 -0
- data/lib/stove/plugins/github.rb +108 -0
- data/lib/stove/plugins/jira.rb +72 -0
- data/lib/stove/rake_task.rb +56 -37
- data/lib/stove/runner.rb +84 -0
- data/lib/stove/util.rb +56 -0
- data/lib/stove/validator.rb +67 -0
- data/lib/stove/version.rb +1 -1
- data/locales/en.yml +231 -0
- data/stove.gemspec +11 -11
- metadata +85 -67
- data/features/changelog.feature +0 -22
- data/features/cli.feature +0 -11
- data/features/devodd.feature +0 -19
- data/features/git.feature +0 -34
- data/features/upload.feature +0 -40
- data/lib/stove/community_site.rb +0 -85
- data/lib/stove/formatter.rb +0 -7
- data/lib/stove/formatter/base.rb +0 -32
- data/lib/stove/formatter/human.rb +0 -9
- data/lib/stove/formatter/silent.rb +0 -10
- data/lib/stove/git.rb +0 -82
- data/lib/stove/github.rb +0 -43
- data/lib/stove/logger.rb +0 -56
- data/lib/stove/uploader.rb +0 -64
- data/spec/support/community_site.rb +0 -33
- data/spec/support/git.rb +0 -52
data/spec/support/git.rb
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
|
3
|
-
module Stove
|
4
|
-
module RSpec
|
5
|
-
module Git
|
6
|
-
include Stove::Git
|
7
|
-
|
8
|
-
def git_init(path = Dir.pwd)
|
9
|
-
Dir.chdir(path) do
|
10
|
-
git 'init .'
|
11
|
-
git 'add --all'
|
12
|
-
git 'commit --message "Initial commit"'
|
13
|
-
git 'remote add origin file://' + fake_git_remote
|
14
|
-
git 'push origin master'
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def fake_git_remote
|
19
|
-
path = File.expand_path(File.join(tmp_path, 'remote.git'))
|
20
|
-
return path if File.exists?(path)
|
21
|
-
|
22
|
-
FileUtils.mkdir_p(path)
|
23
|
-
Dir.chdir(path) do
|
24
|
-
git 'init .'
|
25
|
-
git 'config receive.denyCurrentBranch ignore'
|
26
|
-
git 'config receive.denyNonFastforwards true'
|
27
|
-
git 'config core.sharedrepository 1'
|
28
|
-
end
|
29
|
-
|
30
|
-
path
|
31
|
-
end
|
32
|
-
|
33
|
-
def git_shas(path)
|
34
|
-
Dir.chdir(path) do
|
35
|
-
git('log --oneline').split("\n").map { |line| line.split(/\s+/, 2).first.strip } rescue []
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
def git_commits(path)
|
40
|
-
Dir.chdir(path) do
|
41
|
-
git('log --oneline').split("\n").map { |line| line.split(/\s+/, 2).last.strip } rescue []
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def git_tags(path)
|
46
|
-
Dir.chdir(path) do
|
47
|
-
git('tag --list').split("\n").map(&:strip) rescue []
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|