ritual 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG +6 -0
- data/README.markdown +11 -1
- data/Rakefile +3 -3
- data/bin/ritual +1 -0
- data/lib/ritual/changelog.rb +1 -1
- data/lib/ritual/version.rb +1 -1
- data/templates/Gemfile +3 -1
- data/templates/gemspec.rb +1 -3
- data/templates/gitignore +1 -0
- metadata +80 -103
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0f075e96ccdbd2dd4038bb5f7f9a669e94eabb41fa8ba36cb9c03ca245f1a541
|
4
|
+
data.tar.gz: f37f135df91b02f903fa3b7f6321daa4a5f7caa6178e49010db81a7d2ec68890
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e69674445fb0dbfcd811098ad4c8c8304b232fd502292d9548b655fcfd09f91cc0bbb01903a381fc55a79f5db7cb0ca1d82bbbeadab8045be2602ed54e2383ca
|
7
|
+
data.tar.gz: edef2756a5fa60d17f965a5dbd80edf4ce19ba57f13cd9349ceeacf14748fc95c8c1f5a1aa0f1dc5be9c4c971564e88924aa2ac897fa3310f61e0b880d0203af
|
data/CHANGELOG
CHANGED
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 :
|
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
|
8
|
+
sh "bundle exec cucumber --tags='not @ext'"
|
9
9
|
else
|
10
|
-
sh
|
10
|
+
sh "bundle exec cucumber --tags='not @jruby'"
|
11
11
|
end
|
12
12
|
end
|
data/bin/ritual
CHANGED
@@ -24,6 +24,7 @@ module Ritual
|
|
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"
|
data/lib/ritual/changelog.rb
CHANGED
@@ -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!(/^(
|
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
|
data/lib/ritual/version.rb
CHANGED
data/templates/Gemfile
CHANGED
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
|
data/templates/gitignore
ADDED
@@ -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
|
-
|
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.0
|
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
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2022-04-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: rake
|
22
|
-
|
23
|
-
|
24
|
-
none: false
|
25
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
26
17
|
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
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
|
-
|
38
|
-
|
39
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: thor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
40
31
|
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
version: "0"
|
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
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
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: '2.0'
|
61
48
|
type: :development
|
62
|
-
version_requirements: *id003
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: cucumber
|
65
49
|
prerelease: false
|
66
|
-
|
67
|
-
|
68
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: cucumber
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
69
59
|
- - ">="
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
|
72
|
-
segments:
|
73
|
-
- 0
|
74
|
-
version: "0"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
75
62
|
type: :development
|
76
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
122
|
-
requirements:
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
123
112
|
- - ">="
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
|
126
|
-
|
127
|
-
|
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
|
-
|
143
|
-
rubygems_version: 1.8.17
|
144
|
-
signing_key:
|
121
|
+
rubygems_version: 3.3.6
|
122
|
+
signing_key:
|
145
123
|
specification_version: 3
|
146
124
|
summary: Rakefile release tasks and helpers.
|
147
125
|
test_files: []
|
148
|
-
|