releaser 0.0.3 → 0.0.4
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/.travis.yml +5 -0
- data/MIT-LICENCE +19 -0
- data/README.md +4 -0
- data/lib/releaser/capistrano.rb +9 -0
- data/lib/releaser/capistrano/release_tagging.rb +21 -0
- data/lib/releaser/cli.rb +0 -1
- data/lib/releaser/version.rb +1 -1
- data/releaser.gemspec +1 -0
- metadata +29 -13
data/MIT-LICENCE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (C) 2011 by Dmitriy Kiriyenko.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
namespace :releaser do
|
2
|
+
desc "Write current revision to CURRENT_VERSION file."
|
3
|
+
task :write_current do
|
4
|
+
version = run_locally("bundle exec releaser info --no-verbose").chomp
|
5
|
+
run "echo \"#{version}\" > #{release_path}/CURRENT_VERSION"
|
6
|
+
end
|
7
|
+
|
8
|
+
task :tag_deploy_commit do
|
9
|
+
run_locally "bundle exec releaser deploy --push"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
on :load do
|
14
|
+
if fetch(:write_version, false)
|
15
|
+
after "deploy:symlink", "releaser:write_current"
|
16
|
+
end
|
17
|
+
|
18
|
+
if fetch(:tag_deploy_commit, false)
|
19
|
+
before "deploy:update_code", "releaser:tag_deploy_commit"
|
20
|
+
end
|
21
|
+
end
|
data/lib/releaser/cli.rb
CHANGED
@@ -13,7 +13,6 @@ module Releaser
|
|
13
13
|
|
14
14
|
desc "major [CODENAME]", "Issue a major release"
|
15
15
|
def major(codename = "")
|
16
|
-
codename = ask "Please, give a codename: " unless codename.present?
|
17
16
|
new_version = version_from_tag_to_release.new_major(codename)
|
18
17
|
message = options.message.presence || "Major release: #{new_version}"
|
19
18
|
tag(new_version.to_tagline, :message => message)
|
data/lib/releaser/version.rb
CHANGED
data/releaser.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: releaser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-11-18 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &2161482360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2161482360
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &2161481460 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2161481460
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: thor
|
38
|
-
requirement: &
|
38
|
+
requirement: &2161480220 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2161480220
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: activesupport
|
49
|
-
requirement: &
|
49
|
+
requirement: &2161478900 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2161478900
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: railties
|
60
|
-
requirement: &
|
60
|
+
requirement: &2161478240 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,18 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2161478240
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: capistrano
|
71
|
+
requirement: &2161477300 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *2161477300
|
69
80
|
description: ! "A set of thor scripts for managing application versions.\n Use
|
70
81
|
it to control and even display your application current version."
|
71
82
|
email:
|
@@ -77,10 +88,15 @@ extra_rdoc_files: []
|
|
77
88
|
files:
|
78
89
|
- .gitignore
|
79
90
|
- .rspec
|
91
|
+
- .travis.yml
|
80
92
|
- Gemfile
|
93
|
+
- MIT-LICENCE
|
94
|
+
- README.md
|
81
95
|
- Rakefile
|
82
96
|
- bin/releaser
|
83
97
|
- lib/releaser.rb
|
98
|
+
- lib/releaser/capistrano.rb
|
99
|
+
- lib/releaser/capistrano/release_tagging.rb
|
84
100
|
- lib/releaser/cli.rb
|
85
101
|
- lib/releaser/revision.rb
|
86
102
|
- lib/releaser/version.rb
|
@@ -102,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
118
|
version: '0'
|
103
119
|
segments:
|
104
120
|
- 0
|
105
|
-
hash:
|
121
|
+
hash: -726953671475709746
|
106
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
123
|
none: false
|
108
124
|
requirements:
|
@@ -111,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
127
|
version: '0'
|
112
128
|
segments:
|
113
129
|
- 0
|
114
|
-
hash:
|
130
|
+
hash: -726953671475709746
|
115
131
|
requirements: []
|
116
132
|
rubyforge_project: releaser
|
117
133
|
rubygems_version: 1.8.6
|