spsleep 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff308faad655b5ad98192847f9083a6428391df7
4
- data.tar.gz: ac84f03908a3c5e6ced1dd4475e59ad63bf1eda5
3
+ metadata.gz: 6fcb9985634c124ec384edd48e5b951e2f170319
4
+ data.tar.gz: 7dd97d8142a61cf22f119e427671f82518d2aa22
5
5
  SHA512:
6
- metadata.gz: efeaf7511641001bb1dafe241aa447b33be0b3b8f46626951afb24b78b59a3a0aac0908049764fce9d1fd82ecaeaeced6c8c3699e6b5245f011494e2fa1b4952
7
- data.tar.gz: 551e1ad2f45c0206f870e0b7d70496c474cf2235e146d644851748cf5f4d8e37780c3ad71acf207f852793134f9db6501f78fd48c46bb06dc1482f4dc09c9c8d
6
+ metadata.gz: cf1082ba32fa635b60eaef405e73541aa4be27deedfedfdcfa2af60c61beda5594ad92cb53a289f534ba0e7945613dc312624429963e9fdbce71126e4386bdae
7
+ data.tar.gz: effe4278dc85e51a952f9996762caf33a4bab623c3d6bb00a3425b0b0ee5c412a8147f47621e963168c9deaf45caf2473066723c0e8c055d3f998a3826491a52
data/NEWS.md ADDED
@@ -0,0 +1,12 @@
1
+ # NEWS
2
+
3
+ ## 0.0.2: 2013-06-23
4
+
5
+ ### Changes
6
+
7
+ * Fixes
8
+ * Supported more than 10 seconds.
9
+
10
+ ## 0.0.1: 2013-06-22
11
+
12
+ Initial release!
data/bin/spsleep CHANGED
@@ -3,7 +3,7 @@
3
3
  require "spsleep/command"
4
4
 
5
5
  options = []
6
- if /\A[0-9](?:\.[0-9]+)?\z/ =~ ARGV[0]
6
+ if /\A[0-9]+(?:\.[0-9]+)?\z/ =~ ARGV[0]
7
7
  options << ARGV.shift.to_f
8
8
  end
9
9
 
@@ -1,3 +1,3 @@
1
1
  module Spsleep
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/test/fixtures/bar ADDED
File without changes
data/test/fixtures/baz ADDED
File without changes
data/test/fixtures/foo ADDED
@@ -0,0 +1,3 @@
1
+ foo
2
+ bar
3
+ baz
data/test/run-test.sh ADDED
@@ -0,0 +1,44 @@
1
+ #!/bin/sh
2
+
3
+ # startup
4
+ rake install
5
+ cd test/fixtures
6
+
7
+ # case 1
8
+ echo "### case 1"
9
+ echo "% ls"
10
+ ls
11
+ echo
12
+ echo "% ls | spsleep"
13
+ ls | spsleep
14
+ echo
15
+
16
+ # case 2
17
+ echo "### case 2"
18
+ echo "% ls"
19
+ ls
20
+ echo
21
+ echo "% ls | spsleep 0.5"
22
+ ls | spsleep 0.5
23
+ echo
24
+
25
+ # case 3
26
+ echo "### case 3"
27
+ echo "% cat foo"
28
+ cat foo
29
+ echo
30
+ echo "% spsleep foo"
31
+ spsleep foo
32
+ echo
33
+
34
+ # case 4
35
+ echo "### case 4"
36
+ echo "% cat foo"
37
+ cat foo
38
+ echo
39
+ echo "% spsleep 0.5 foo"
40
+ spsleep 0.5 foo
41
+ echo
42
+
43
+ # shutdown
44
+ cd - >/dev/null
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spsleep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masafumi Yokoyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-22 00:00:00.000000000 Z
11
+ date: 2013-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -49,6 +49,7 @@ files:
49
49
  - .gitignore
50
50
  - Gemfile
51
51
  - LICENSE.txt
52
+ - NEWS.md
52
53
  - README.md
53
54
  - Rakefile
54
55
  - bin/spsleep
@@ -56,6 +57,10 @@ files:
56
57
  - lib/spsleep/command.rb
57
58
  - lib/spsleep/version.rb
58
59
  - spsleep.gemspec
60
+ - test/fixtures/bar
61
+ - test/fixtures/baz
62
+ - test/fixtures/foo
63
+ - test/run-test.sh
59
64
  homepage: https://github.com/myokoym/spsleep
60
65
  licenses:
61
66
  - MIT
@@ -80,5 +85,9 @@ rubygems_version: 2.0.3
80
85
  signing_key:
81
86
  specification_version: 4
82
87
  summary: A command line tool for sleep by space.
83
- test_files: []
88
+ test_files:
89
+ - test/fixtures/bar
90
+ - test/fixtures/baz
91
+ - test/fixtures/foo
92
+ - test/run-test.sh
84
93
  has_rdoc: