ritual 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.3.1 2011-09-01
2
+
3
+ * Better error message when version file is invalid.
4
+
1
5
  == 0.3.0 2011-03-28
2
6
 
3
7
  * Push tag when releasing.
@@ -45,6 +45,30 @@ a wrapper like Jeweler or Hoe.
45
45
 
46
46
  [using-gemspecs-as-intended]: http://yehudakatz.com/2010/04/02/using-gemspecs-as-intended
47
47
 
48
+ ## Version File
49
+
50
+ The version file lives at `lib/gem_name/version.rb` (`gem_name`
51
+ matches the name of the gemspec). It contains a line that looks like:
52
+
53
+ VERSION = [1, 2, 3]
54
+
55
+ When bumping the version, Ritual will only alter this line in the
56
+ file. You may have any custom code around this line.
57
+
58
+ ## Changelog
59
+
60
+ The changelog lives at `CHANGELOG`. When bumping the version, it will
61
+ look for a line like:
62
+
63
+ == LATEST
64
+
65
+ And replace it with the new version and current date:
66
+
67
+ == 1.2.3 2011-09-01
68
+
69
+ If it can't find this line, the version bump will fail. This prevents
70
+ you from releasing without a changelog update.
71
+
48
72
  ## Extensions
49
73
 
50
74
  Use `extension` to define an extension-building task. Use one of two
@@ -1,6 +1,7 @@
1
1
  require 'fileutils'
2
2
 
3
3
  module Ritual
4
+ Error = Class.new(RuntimeError)
4
5
  autoload :Changelog, 'ritual/changelog'
5
6
  autoload :Extension, 'ritual/extension'
6
7
  autoload :VersionFile, 'ritual/version_file'
@@ -1,5 +1,5 @@
1
1
  module Ritual
2
- VERSION = [0, 3, 0]
2
+ VERSION = [0, 3, 1]
3
3
 
4
4
  class << VERSION
5
5
  include Comparable
@@ -50,8 +50,9 @@ module Ritual
50
50
 
51
51
  def read
52
52
  if File.exist?(path)
53
- File.read(path) =~ VERSION_REGEXP and
54
- eval $1
53
+ File.read(path) =~ VERSION_REGEXP or
54
+ raise Error, "invalid version file: #{path}"
55
+ eval $1
55
56
  else
56
57
  [0, 0, 0]
57
58
  end
metadata CHANGED
@@ -1,75 +1,71 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ritual
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
4
5
  prerelease:
5
- version: 0.3.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - George Ogata
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-03-28 00:00:00 -04:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2011-09-01 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: rake
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70216021490160 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
25
22
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: rspec
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70216021490160
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &70216021489400 !ruby/object:Gem::Requirement
31
28
  none: false
32
- requirements:
29
+ requirements:
33
30
  - - ~>
34
- - !ruby/object:Gem::Version
35
- version: "2.0"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
36
33
  type: :development
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: cucumber
40
34
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70216021489400
36
+ - !ruby/object:Gem::Dependency
37
+ name: cucumber
38
+ requirement: &70216021488760 !ruby/object:Gem::Requirement
42
39
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
47
44
  type: :development
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: ruby-debug19
51
45
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70216021488760
47
+ - !ruby/object:Gem::Dependency
48
+ name: ruby-debug19
49
+ requirement: &70216021488220 !ruby/object:Gem::Requirement
53
50
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
58
55
  type: :development
59
- version_requirements: *id004
60
- description: |
61
- Adds tasks and helpers to your Rakefile to manage releases in a
56
+ prerelease: false
57
+ version_requirements: *70216021488220
58
+ description: ! 'Adds tasks and helpers to your Rakefile to manage releases in a
59
+
62
60
  lightweight manner.
63
61
 
64
- email:
62
+ '
63
+ email:
65
64
  - george.ogata@gmail.com
66
65
  executables: []
67
-
68
66
  extensions: []
69
-
70
67
  extra_rdoc_files: []
71
-
72
- files:
68
+ files:
73
69
  - lib/ritual/changelog.rb
74
70
  - lib/ritual/extension/base.rb
75
71
  - lib/ritual/extension/jruby.rb
@@ -83,33 +79,28 @@ files:
83
79
  - README.markdown
84
80
  - Rakefile
85
81
  - CHANGELOG
86
- has_rdoc: true
87
82
  homepage: http://github.com/oggy/ritual
88
83
  licenses: []
89
-
90
84
  post_install_message:
91
85
  rdoc_options: []
92
-
93
- require_paths:
86
+ require_paths:
94
87
  - lib
95
- required_ruby_version: !ruby/object:Gem::Requirement
88
+ required_ruby_version: !ruby/object:Gem::Requirement
96
89
  none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: "0"
101
- required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
95
  none: false
103
- requirements:
104
- - - ">="
105
- - !ruby/object:Gem::Version
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
106
99
  version: 1.3.6
107
100
  requirements: []
108
-
109
101
  rubyforge_project:
110
- rubygems_version: 1.6.2
102
+ rubygems_version: 1.8.6
111
103
  signing_key:
112
104
  specification_version: 3
113
105
  summary: Rakefile release tasks and helpers.
114
106
  test_files: []
115
-