rsummary 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11be62684f88ed96134a60f99bcccc1edfe0d1b5
4
- data.tar.gz: 564d149c324329a7a6a7885a6acadab81018056d
3
+ metadata.gz: f34f2f794fc09a8c2853f72109e6fd3f1bc2c189
4
+ data.tar.gz: 93981f5551fe1e3dec507b4e9d4971279984beb6
5
5
  SHA512:
6
- metadata.gz: 873e71e67a2a3e0f3bcaaae36b8d8b6b64e7e5d9bed06af6b711e965a1d69c793674d4323c819217e76c4918cf7f1986152ca766e1d1717a3bea55ce334c162e
7
- data.tar.gz: c0c6a456e9be4e00103ce8e663f1b19034f8ee5c446446052a5a4ed4e5445a369d7c540b21f6834f8367ec1ec40106775e70411e2d3bcbc806b17f7a6781a90d
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
@@ -4,7 +4,7 @@ module Rsummary
4
4
  module FileUtil
5
5
 
6
6
  DIR_PATH ="#{ENV['HOME']}/.rsummary/"
7
- FILE_PATH = "rspec_out.json"
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 + FILE_PATH) do |io|
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 + FILE_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 + FILE_PATH, "w") do |f|
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 + FILE_PATH) if file_exists?
37
+ File.delete(DIR_PATH + FILE_NAME) if file_exists?
38
38
  end
39
39
 
40
40
  end
data/lib/rsummary/save.rb CHANGED
@@ -20,6 +20,9 @@ module Rsummary
20
20
  save_to_file(data)
21
21
  end
22
22
 
23
+ def seed(notification)
24
+ end
25
+
23
26
  def summary(notification)
24
27
  { example_count: notification.example_count,
25
28
  pending_count: notification.pending_count,
@@ -1,3 +1,3 @@
1
1
  module Rsummary
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-08 00:00:00.000000000 Z
11
+ date: 2017-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler