ritual 0.4.1 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 86da081b92d4254c77a5edf42eca0d285a3ebbd398a2886c2b11bfd884f3adb3
4
+ data.tar.gz: 68368f3caa9bcb71fb53d9f72978c8fb80721636176797daf22ec2fbf3aea7ae
5
+ SHA512:
6
+ metadata.gz: 2f9746fdf2214c374c88342d49d061fd71689baa98a81478e3d8e0962d14aa15594fa31edec5585414199588a3eeaba609be766dad80978bb00532cca7563f54
7
+ data.tar.gz: f36e5fcbb4c42c330babb9013d6852436057481db5a6907d3ba0bc8e5aed06e18fc28e5970bc938132c08f6a7ab405ae9378c2ad2b080687ccbfd2900f428766
data/CHANGELOG CHANGED
@@ -1,3 +1,13 @@
1
+ == 0.5.1 2024-04-21
2
+
3
+ * Remove period from git subject line in "ritual new".
4
+
5
+ == 0.5.0 2022-04-22
6
+
7
+ * Support whitespace before LATEST title.
8
+ * Require date library in generated gemspecs.
9
+ * Gitignore gem lock in new projects.
10
+
1
11
  == 0.4.1 2012-05-20
2
12
 
3
13
  * Fix building JRuby extensions in 1.9 mode.
data/README.markdown CHANGED
@@ -1,4 +1,4 @@
1
- # Ritual
1
+ # Ritual [![Build Status](https://travis-ci.org/oggy/ritual.png?branch=master)](https://travis-ci.org/oggy/ritual) [![Gem Version](https://badge.fury.io/rb/ritual.svg)](http://badge.fury.io/rb/ritual)
2
2
 
3
3
  Sweet, simple Rakefiles for your gem.
4
4
 
@@ -38,6 +38,16 @@ For example:
38
38
 
39
39
  "Release early, release often" has never been so easy!
40
40
 
41
+ ## Getting Started
42
+
43
+ Got an existing project?
44
+
45
+ ritual apply
46
+
47
+ Starting a new one?
48
+
49
+ ritual new GEM-NAME
50
+
41
51
  ## Gemspec
42
52
 
43
53
  You [maintain the gemspec directly][using-gemspecs-as-intended], rather than via
data/Rakefile CHANGED
@@ -1,12 +1,12 @@
1
1
  $:.unshift File.expand_path('lib', File.dirname(__FILE__))
2
2
  require 'ritual'
3
3
 
4
- task :default do
4
+ task :ci do
5
5
  sh 'bundle exec rspec -I. spec'
6
6
 
7
7
  if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
8
- sh 'bundle exec cucumber --tags=~@ext'
8
+ sh "bundle exec cucumber --tags='not @ext'"
9
9
  else
10
- sh 'bundle exec cucumber --tags=~@jruby'
10
+ sh "bundle exec cucumber --tags='not @jruby'"
11
11
  end
12
12
  end
data/bin/ritual CHANGED
@@ -18,12 +18,13 @@ module Ritual
18
18
  apply
19
19
  system 'git', 'init'
20
20
  system 'git', 'add', '.'
21
- system 'git', 'commit', '-m', 'New gem.'
21
+ system 'git', 'commit', '-m', 'New gem'
22
22
  end
23
23
  end
24
24
 
25
25
  desc "apply", "Ritualize the gem in the current directory."
26
26
  def apply
27
+ template "#{ROOT}/templates/gitignore", ".gitignore"
27
28
  template "#{ROOT}/templates/Gemfile", "Gemfile"
28
29
  template "#{ROOT}/templates/Rakefile", "Rakefile"
29
30
  template "#{ROOT}/templates/CHANGELOG", "CHANGELOG"
@@ -13,7 +13,7 @@ module Ritual
13
13
  raise Error, "Don't release without a CHANGELOG!"
14
14
  text = File.read(path)
15
15
  heading = "#{version} #{Date.today.strftime('%Y-%m-%d')}"
16
- text.sub!(/^(== )LATEST$/i, "\\1#{heading}") or
16
+ text.sub!(/^(\s*== )LATEST$/i, "\\1#{heading}") or
17
17
  raise Error, "No LATEST entry in CHANGELOG - did you forget to update it?"
18
18
  open(path, 'w'){|f| f.print text}
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Ritual
2
- VERSION = [0, 4, 1]
2
+ VERSION = [0, 5, 1]
3
3
 
4
4
  class << VERSION
5
5
  include Comparable
data/templates/Gemfile CHANGED
@@ -1,2 +1,4 @@
1
- source :rubygems
1
+ source 'https://rubygems.org/'
2
2
  gemspec
3
+
4
+ gem 'ritual'
data/templates/gemspec.rb CHANGED
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  $:.unshift File.expand_path('lib', File.dirname(__FILE__))
3
2
  require '<%= gem_name %>/version'
4
3
 
@@ -7,6 +6,7 @@ Gem::Specification.new do |gem|
7
6
  gem.version = <%= namespace %>::VERSION
8
7
  gem.authors = ['<%= author %>']
9
8
  gem.email = ['<%= email %>']
9
+ gem.license = 'MIT'
10
10
  gem.description = "TODO: Write a gem description"
11
11
  gem.summary = "TODO: Write a gem summary"
12
12
  gem.homepage = ''
@@ -14,6 +14,4 @@ Gem::Specification.new do |gem|
14
14
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
15
15
  gem.files = `git ls-files`.split("\n")
16
16
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
-
18
- gem.add_development_dependency 'ritual', '~> <%= ritual_version %>'
19
17
  end
@@ -0,0 +1 @@
1
+ /Gemfile.lock
metadata CHANGED
@@ -1,148 +1,125 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ritual
3
- version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 1
10
- version: 0.4.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.1
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - George Ogata
14
- autorequire:
8
+ autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2012-05-20 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2024-04-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: rake
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
26
17
  - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
32
20
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: thor
36
21
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
40
24
  - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: thor
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
46
34
  type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: rspec
50
35
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ~>
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 2
59
- - 0
60
- version: "2.0"
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
61
48
  type: :development
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
64
- name: cucumber
65
49
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
67
- none: false
68
- requirements:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
69
52
  - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: cucumber
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
75
62
  type: :development
76
- version_requirements: *id004
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
77
69
  description: |
78
70
  Adds tasks and helpers to your Rakefile to manage releases in a
79
71
  lightweight manner.
80
-
81
- email:
72
+ email:
82
73
  - george.ogata@gmail.com
83
- executables:
74
+ executables:
84
75
  - ritual
85
76
  extensions: []
86
-
87
77
  extra_rdoc_files: []
88
-
89
- files:
78
+ files:
79
+ - CHANGELOG
80
+ - LICENSE
81
+ - README.markdown
82
+ - Rakefile
83
+ - bin/ritual
84
+ - lib/ritual.rb
90
85
  - lib/ritual/changelog.rb
86
+ - lib/ritual/extension.rb
91
87
  - lib/ritual/extension/base.rb
92
88
  - lib/ritual/extension/jruby.rb
93
89
  - lib/ritual/extension/standard.rb
94
- - lib/ritual/extension.rb
95
90
  - lib/ritual/lib.rb
96
91
  - lib/ritual/version.rb
97
92
  - lib/ritual/version_file.rb
98
- - lib/ritual.rb
99
93
  - templates/CHANGELOG
100
94
  - templates/Gemfile
101
- - templates/gemspec.rb
102
- - templates/lib.rb
103
95
  - templates/LICENSE
104
- - templates/Rakefile
105
96
  - templates/README.markdown
97
+ - templates/Rakefile
98
+ - templates/gemspec.rb
99
+ - templates/gitignore
100
+ - templates/lib.rb
106
101
  - templates/version.rb
107
- - LICENSE
108
- - README.markdown
109
- - Rakefile
110
- - CHANGELOG
111
- - bin/ritual
112
102
  homepage: http://github.com/oggy/ritual
113
- licenses: []
114
-
115
- post_install_message:
103
+ licenses:
104
+ - MIT
105
+ metadata: {}
106
+ post_install_message:
116
107
  rdoc_options: []
117
-
118
- require_paths:
108
+ require_paths:
119
109
  - lib
120
- required_ruby_version: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ requirements:
123
112
  - - ">="
124
- - !ruby/object:Gem::Version
125
- hash: 3
126
- segments:
127
- - 0
128
- version: "0"
129
- required_rubygems_version: !ruby/object:Gem::Requirement
130
- none: false
131
- requirements:
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
132
117
  - - ">="
133
- - !ruby/object:Gem::Version
134
- hash: 23
135
- segments:
136
- - 1
137
- - 3
138
- - 6
118
+ - !ruby/object:Gem::Version
139
119
  version: 1.3.6
140
120
  requirements: []
141
-
142
- rubyforge_project:
143
- rubygems_version: 1.8.17
144
- signing_key:
121
+ rubygems_version: 3.5.9
122
+ signing_key:
145
123
  specification_version: 3
146
124
  summary: Rakefile release tasks and helpers.
147
125
  test_files: []
148
-