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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e06a31abcbe31c5e5d94b7f9f55f3926b2f8099
4
- data.tar.gz: 0daa6858b685d9c7abfcdbb6ee420633b0727d0c
3
+ metadata.gz: f5c4b5ea15cd175c7a235205e4be02c4bd3ab71f
4
+ data.tar.gz: 6b19260080fcca81c27f3e1b0795b06d89b06f6c
5
5
  SHA512:
6
- metadata.gz: cba123bff4998d56dfc042685fe44f271a4465cabb13b69d5ef5fd5783cb418003cf2adba0aeea433337b6e494697e8555d401888eb2076c2e7fa7d006860952
7
- data.tar.gz: bcef74d6d37607e87d81accb49569c3a8787c31626c98be15935d350aed8f23243a9c32fe15f4db3fd28d5d5ff4a7890d8ea47c54e4a1fb8db033010c345f653
6
+ metadata.gz: dc382ce10f542c3dec26680c667398e7561716cdb2cff95a0f92fcaa9dc31442167a0b0d86896bdb8f739ed6461261c7b39c2052fd17068a3ebda47fd359aaef
7
+ data.tar.gz: d5aeaae4da3a6127d4b00e60190d73d4db9426354fe555913b790c0f001fb66bb3855cbb018d7347de3b4733fb10cf136b04bd9981c7eb8e6dd83fbb7a8d9b67
@@ -1,3 +1,11 @@
1
+ # 0.5.9
2
+ - Merge #7
3
+
4
+ # 0.5.8.2
5
+ - Update foreverb
6
+ - Drop support to mri 1.9.3
7
+ - Add support to mri 2.2.1
8
+
1
9
  # 0.5.8.1
2
10
  - Make optional trackFile
3
11
 
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem 'rake'
4
4
  gem 'rufus-scheduler'
5
- gem 'yamazaki', '>= 0.3.4'
5
+ gem 'yamazaki', '>= 0.3.5'
6
6
  gem 'foreverb', '>= 0.3.3'
7
7
  gem 'terminal-notifier'
8
8
  gem 'libnotify'
@@ -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.1)
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.4)
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.4)
72
+ yamazaki (>= 0.3.5)
@@ -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']
@@ -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
@@ -27,6 +27,8 @@ module Miyuki
27
27
  const_set(:TRACK_FILE, track_file)
28
28
  end
29
29
 
30
+ Yamazaki.load_database
31
+
30
32
  @series = series || []
31
33
  @callback = callback if block_given?
32
34
  end
@@ -13,5 +13,5 @@
13
13
  ##
14
14
 
15
15
  module Miyuki
16
- VERSION = '0.5.8.2'
16
+ VERSION = '0.5.9'
17
17
  end
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.8.2
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-16 00:00:00.000000000 Z
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