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 ADDED
@@ -0,0 +1,5 @@
1
+ rvm:
2
+ 1.8.7
3
+ 1.9.2
4
+ 1.9.3
5
+ jruby
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,4 @@
1
+ # Releaser #
2
+
3
+ Very often we need to monitor versions of application. This gem helps to
4
+ do it.
@@ -0,0 +1,9 @@
1
+ unless Capistrano::Configuration.respond_to?(:instance)
2
+ abort "Soprano requires Capistrano 2"
3
+ end
4
+
5
+ Capistrano::Configuration.instance.load do
6
+ Dir["#{File.dirname(__FILE__)}/capistrano/*.rb"].each do |recipe|
7
+ load(recipe)
8
+ end
9
+ end
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Releaser
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/releaser.gemspec CHANGED
@@ -25,4 +25,5 @@ Gem::Specification.new do |s|
25
25
  s.add_runtime_dependency "thor"
26
26
  s.add_runtime_dependency "activesupport"
27
27
  s.add_runtime_dependency "railties"
28
+ s.add_runtime_dependency "capistrano"
28
29
  end
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.3
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: &2160508860 !ruby/object:Gem::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: *2160508860
24
+ version_requirements: *2161482360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &2160507840 !ruby/object:Gem::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: *2160507840
35
+ version_requirements: *2161481460
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: thor
38
- requirement: &2160507000 !ruby/object:Gem::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: *2160507000
46
+ version_requirements: *2161480220
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: activesupport
49
- requirement: &2160505760 !ruby/object:Gem::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: *2160505760
57
+ version_requirements: *2161478900
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: railties
60
- requirement: &2160504940 !ruby/object:Gem::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: *2160504940
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: 3856569947926867799
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: 3856569947926867799
130
+ hash: -726953671475709746
115
131
  requirements: []
116
132
  rubyforge_project: releaser
117
133
  rubygems_version: 1.8.6