atdo 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +32 -0
  3. data/lib/atdo.rb +2 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7c4e361094e51cfb7d19b065d7d4ebf10cd750c
4
- data.tar.gz: 380b12dc661cb6fd8024a6651b100be4d5feaa02
3
+ metadata.gz: 555a85a3b237ef5da7cb7f3946790eafe07d36b1
4
+ data.tar.gz: 11234da5c86fa981bb0034d64ca65e146e1af8a2
5
5
  SHA512:
6
- metadata.gz: bdddad9056c539fd25bc8bf390b0a00ff0ebb673326403ed03c183b57e2f63a1b343cdec514174302c4d3413055f85d68acc581b3c392f89f9ac85c339738471
7
- data.tar.gz: d731ec6c16e2de918a69df81d054ab6fab38e572cf585fc91abcaee82f28e74e38f00637cb71aeb02ab154bd975aef254886dc13a78f935f0da13916152c7b65
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
@@ -1,6 +1,8 @@
1
1
  require 'thread'
2
2
 
3
3
  class AtDo
4
+ VERSION = 0.2
5
+
4
6
  def initialize
5
7
  @events = [] ## option to use rbtree
6
8
  @mutex = Mutex.new
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.1'
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-16 00:00:00.000000000 Z
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