rsummary 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/rsummary/file_util.rb +5 -5
- data/lib/rsummary/save.rb +3 -0
- data/lib/rsummary/version.rb +1 -1
- 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: f34f2f794fc09a8c2853f72109e6fd3f1bc2c189
|
4
|
+
data.tar.gz: 93981f5551fe1e3dec507b4e9d4971279984beb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2adc1cde3b386c5e63357e27f41e5371bdd5c107729f85c60d5e306783e8fcd79c1c7a1ee9b123f056ca745dd1741a527ac71931319e8360505b859d96efd019
|
7
|
+
data.tar.gz: 516c35792f3eabb6c0d3aa5cc87dffcd965e57db0d5c41ae049c8612fbc4740bd69409751b0998e81ace1eaa9463c4418500a4cbd91ad17829eb9581872d736c
|
data/README.md
CHANGED
@@ -41,9 +41,9 @@ in your .rspec file
|
|
41
41
|
|
42
42
|
### commands
|
43
43
|
|
44
|
-
* `history` - Showing tests output in past
|
45
|
-
* `status` - Showing test output at current
|
46
|
-
* `remove` - deleting histories
|
44
|
+
* `bundle exec rsummary history` - Showing tests output in past
|
45
|
+
* `bundle exec rsummary status` - Showing test output at current
|
46
|
+
* `bundle exec rsummary remove` - deleting histories
|
47
47
|
|
48
48
|
|
49
49
|
## Contributing
|
data/lib/rsummary/file_util.rb
CHANGED
@@ -4,7 +4,7 @@ module Rsummary
|
|
4
4
|
module FileUtil
|
5
5
|
|
6
6
|
DIR_PATH ="#{ENV['HOME']}/.rsummary/"
|
7
|
-
|
7
|
+
FILE_NAME = "#{Dir.pwd.split('/').last}_rspec_out.json"
|
8
8
|
|
9
9
|
def save_to_file(result)
|
10
10
|
make_dir
|
@@ -13,14 +13,14 @@ module Rsummary
|
|
13
13
|
|
14
14
|
def load_json
|
15
15
|
if file_exists?
|
16
|
-
open(DIR_PATH +
|
16
|
+
open(DIR_PATH + FILE_NAME) do |io|
|
17
17
|
JSON.load(io)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
22
|
def file_exists?
|
23
|
-
File.exist?(DIR_PATH +
|
23
|
+
File.exist?(DIR_PATH + FILE_NAME)
|
24
24
|
end
|
25
25
|
|
26
26
|
def make_dir
|
@@ -28,13 +28,13 @@ module Rsummary
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def write_to_file(result)
|
31
|
-
File.open(DIR_PATH +
|
31
|
+
File.open(DIR_PATH + FILE_NAME, "w") do |f|
|
32
32
|
f.puts(result)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
36
|
def delete_file
|
37
|
-
File.delete(DIR_PATH +
|
37
|
+
File.delete(DIR_PATH + FILE_NAME) if file_exists?
|
38
38
|
end
|
39
39
|
|
40
40
|
end
|
data/lib/rsummary/save.rb
CHANGED
data/lib/rsummary/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsummary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yuta kawanago
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|