miyuki 0.5.8.2 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +3 -3
- data/TROUBLESHOOTING.md +8 -0
- data/features/load_config.feature +8 -0
- data/features/step_definitions/load_config_step.rb +18 -0
- data/features/support/env.rb +3 -0
- data/features/support/turn_off_notifications.patch +13 -0
- data/lib/miyuki/tracker.rb +2 -0
- data/lib/miyuki/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5c4b5ea15cd175c7a235205e4be02c4bd3ab71f
|
4
|
+
data.tar.gz: 6b19260080fcca81c27f3e1b0795b06d89b06f6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc382ce10f542c3dec26680c667398e7561716cdb2cff95a0f92fcaa9dc31442167a0b0d86896bdb8f739ed6461261c7b39c2052fd17068a3ebda47fd359aaef
|
7
|
+
data.tar.gz: d5aeaae4da3a6127d4b00e60190d73d4db9426354fe555913b790c0f001fb66bb3855cbb018d7347de3b4733fb10cf136b04bd9981c7eb8e6dd83fbb7a8d9b67
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -26,7 +26,7 @@ GEM
|
|
26
26
|
ffi (>= 1.0.11)
|
27
27
|
multi_json (1.10.1)
|
28
28
|
multi_test (0.1.1)
|
29
|
-
oj (2.12.
|
29
|
+
oj (2.12.8)
|
30
30
|
rake (10.4.2)
|
31
31
|
rb-notifu (0.0.4)
|
32
32
|
rspec (3.1.0)
|
@@ -50,7 +50,7 @@ GEM
|
|
50
50
|
trollop (2.0)
|
51
51
|
tzinfo (1.2.2)
|
52
52
|
thread_safe (~> 0.1)
|
53
|
-
yamazaki (0.3.
|
53
|
+
yamazaki (0.3.5)
|
54
54
|
colorb (~> 0)
|
55
55
|
oj (~> 2.1)
|
56
56
|
|
@@ -69,4 +69,4 @@ DEPENDENCIES
|
|
69
69
|
ruby_deep_clone
|
70
70
|
rufus-scheduler
|
71
71
|
terminal-notifier
|
72
|
-
yamazaki (>= 0.3.
|
72
|
+
yamazaki (>= 0.3.5)
|
data/TROUBLESHOOTING.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
TROUBLESHOOTING
|
2
|
+
===============
|
3
|
+
|
4
|
+
`NoMethodError` when running tests
|
5
|
+
----------------------------------
|
6
|
+
This *probably* means that you're under Linux or OSX and you have neither `libnotify` and `notifu`, respectively.
|
7
|
+
So, in order to make tests pass correctly, you may want to run `git apply features/support/turn_off_notifications.patch` in order to disable notificationss.
|
8
|
+
Otherwise, just install one of those two libraries and enjoy your life.
|
@@ -16,3 +16,11 @@ Feature: Load configuration file
|
|
16
16
|
And I modify something in "features/support/miyuki.conf"
|
17
17
|
Then Miyuki reloads her configuration
|
18
18
|
And I get a notification about the reloading
|
19
|
+
|
20
|
+
Scenario: Track files is updated in yamazaki when configuration file path is changed
|
21
|
+
When I set the configuration file path to "features/support/miyuki.conf"
|
22
|
+
And I modify track file in "features/support/miyuki.conf"
|
23
|
+
Then Miyuki reloads her configuration
|
24
|
+
And I invoke "track!"
|
25
|
+
And Yamazaki creates the new track file
|
26
|
+
And I modify track file in "features/support/miyuki.conf" #to restore the old miyuki.conf
|
@@ -28,6 +28,24 @@ And(/^I modify something in "(.*?)"/) do |file|
|
|
28
28
|
File.open(file, ?w) { |f| f.puts(config) }
|
29
29
|
end
|
30
30
|
|
31
|
+
And(/I modify track file in "(.*?)"/) do |file|
|
32
|
+
@previous_config = DeepClone.clone(Miyuki.config)
|
33
|
+
|
34
|
+
config = File.read(file)
|
35
|
+
|
36
|
+
if config.include?('changedtrackfile.db')
|
37
|
+
config.gsub!('changedtrackfile.db', '.miyuki.db')
|
38
|
+
elsif config.include?('.miyuki.db')
|
39
|
+
config.gsub!('.miyuki.db', 'changedtrackfile.db')
|
40
|
+
end
|
41
|
+
|
42
|
+
File.open(file, ?w) { |f| f.puts(config) }
|
43
|
+
end
|
44
|
+
|
45
|
+
And(/Yamazaki creates the new track file/) do
|
46
|
+
expect(File.exists?('features/support/changedtrackfile.db')).to be_truthy
|
47
|
+
end
|
48
|
+
|
31
49
|
Then(/^Miyuki reloads her configuration/) do
|
32
50
|
expect(Miyuki.config).to_not be equal(@previous_config)
|
33
51
|
expect(Miyuki.config['refreshEvery']).to_not be @previous_config['refreshEvery']
|
data/features/support/env.rb
CHANGED
@@ -18,5 +18,8 @@ After do |s|
|
|
18
18
|
track_file = 'features/support/.miyuki.db'
|
19
19
|
FileUtils.rm(track_file) if File.exists?(track_file)
|
20
20
|
|
21
|
+
secondary_track_file = 'features/support/changedtrackfile.db'
|
22
|
+
FileUtils.rm(secondary_track_file) if File.exists?(track_file)
|
23
|
+
|
21
24
|
Cucumber.wants_to_quit = true if s.failed?
|
22
25
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
diff --git a/features/support/miyuki.conf b/features/support/miyuki.conf
|
2
|
+
index b307636..62e5588 100644
|
3
|
+
--- a/features/support/miyuki.conf
|
4
|
+
+++ b/features/support/miyuki.conf
|
5
|
+
@@ -2,7 +2,7 @@ watchDir: "features/support/testWatchDir"
|
6
|
+
trackFile: "features/support/.miyuki.db"
|
7
|
+
refreshEvery: 6s
|
8
|
+
notifications:
|
9
|
+
- enabled: true
|
10
|
+
+ enabled: false
|
11
|
+
|
12
|
+
series:
|
13
|
+
- name: Mekakucity
|
data/lib/miyuki/tracker.rb
CHANGED
data/lib/miyuki/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miyuki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roxas Shadow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yamazaki
|
@@ -148,6 +148,7 @@ files:
|
|
148
148
|
- Gemfile.lock
|
149
149
|
- README.md
|
150
150
|
- Rakefile
|
151
|
+
- TROUBLESHOOTING.md
|
151
152
|
- bin/miyuki
|
152
153
|
- example/miyuki.conf
|
153
154
|
- features/load_config.feature
|
@@ -156,6 +157,7 @@ files:
|
|
156
157
|
- features/step_definitions/tracker_step.rb
|
157
158
|
- features/support/env.rb
|
158
159
|
- features/support/miyuki.conf
|
160
|
+
- features/support/turn_off_notifications.patch
|
159
161
|
- features/track.feature
|
160
162
|
- features/tracker.feature
|
161
163
|
- lib/miyuki.rb
|