atdo 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +32 -0
- data/lib/atdo.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 555a85a3b237ef5da7cb7f3946790eafe07d36b1
|
4
|
+
data.tar.gz: 11234da5c86fa981bb0034d64ca65e146e1af8a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb993d986361038735039ef1cd7f2547569e8f8dbe6b29171aa6f5403a2bb361e16922ff331314b45d24710b41f8d4c496ce080da1e9a22d03a4381f08ae510d
|
7
|
+
data.tar.gz: 1e8e86339816bb5bf998895a8917ce43fa39719f52402fc1d03df34a8642cb09ea609bce0e32806f974df7b1f3f10363036d935784c1921fa6e0a2f2b3009372
|
data/Rakefile
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/testtask'
|
3
3
|
|
4
|
+
def version
|
5
|
+
require 'atdo'
|
6
|
+
@version ||= AtDo::VERSION
|
7
|
+
end
|
8
|
+
|
9
|
+
prj = "atdo"
|
10
|
+
|
4
11
|
desc "Run tests"
|
5
12
|
Rake::TestTask.new :test do |t|
|
6
13
|
t.libs << "lib"
|
@@ -12,3 +19,28 @@ Rake::TestTask.new :bench do |t|
|
|
12
19
|
t.libs << "lib"
|
13
20
|
t.test_files = FileList["bench/*.rb"]
|
14
21
|
end
|
22
|
+
|
23
|
+
desc "commit, tag, and push repo; build and push gem"
|
24
|
+
task :release do
|
25
|
+
require 'tempfile'
|
26
|
+
|
27
|
+
tag = "#{prj}-#{version}"
|
28
|
+
|
29
|
+
sh "gem build #{prj}.gemspec"
|
30
|
+
|
31
|
+
file = Tempfile.new "template"
|
32
|
+
begin
|
33
|
+
file.puts "release #{version}"
|
34
|
+
file.close
|
35
|
+
sh "git commit -a -v -t #{file.path}"
|
36
|
+
ensure
|
37
|
+
file.close unless file.closed?
|
38
|
+
file.unlink
|
39
|
+
end
|
40
|
+
|
41
|
+
sh "git tag #{prj}-#{version}"
|
42
|
+
sh "git push"
|
43
|
+
sh "git push --tags"
|
44
|
+
|
45
|
+
sh "gem push #{prj}-#{version}.gem"
|
46
|
+
end
|
data/lib/atdo.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atdo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel VanderWerf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: At time, do code.
|
14
14
|
email: vjoel@users.sourceforge.net
|