runner_helper 0.0.4 → 0.0.5

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: 5170c5efe7cf20cc3bb58b3ba4f08ed86652208f
4
- data.tar.gz: 2ae7233088681cf63438576aae03b48af25ffd53
3
+ metadata.gz: db1c7bad0c42ef654299f5bfc419238175bf0bf0
4
+ data.tar.gz: bc4e3bbcb74cda0841fd4b92018e3908d810e671
5
5
  SHA512:
6
- metadata.gz: ad9ad7630410f5d911c1f51fb2b76b523d63e2dbba64895e0d0eddcbe129f00382132dc53973039b324e932a9033d172fd63ea9b1a4652ba570460b414e87a01
7
- data.tar.gz: 7360443eed12e0e3911fdfd4945874b1fe0bca5e4d39774a6c7ed645e566edc609f61666751c72bdf863e6a3521f2c0fa2d1dd2ee998534dc2624807b3799dfb
6
+ metadata.gz: 1bca23a0d0b4870f6c619a71a850d61f3a16dc4a1786dbfaa921896406c2c82768c51a163576fc397d50f3448a0656ea6b13e63ec5f2583c7f86e21126240a37
7
+ data.tar.gz: 1c557a7f313f1ebdfc7df80ca770820d613180a750256550bda77912e826c01bd0351d5bbf3bf3d6ff04f4d982b5f2fc40c4b0fe6f41432051395810820ed003
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
data/Gemfile.lock ADDED
@@ -0,0 +1,145 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ runner_helper (0.0.5)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ actioncable (5.1.1)
10
+ actionpack (= 5.1.1)
11
+ nio4r (~> 2.0)
12
+ websocket-driver (~> 0.6.1)
13
+ actionmailer (5.1.1)
14
+ actionpack (= 5.1.1)
15
+ actionview (= 5.1.1)
16
+ activejob (= 5.1.1)
17
+ mail (~> 2.5, >= 2.5.4)
18
+ rails-dom-testing (~> 2.0)
19
+ actionpack (5.1.1)
20
+ actionview (= 5.1.1)
21
+ activesupport (= 5.1.1)
22
+ rack (~> 2.0)
23
+ rack-test (~> 0.6.3)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
26
+ actionview (5.1.1)
27
+ activesupport (= 5.1.1)
28
+ builder (~> 3.1)
29
+ erubi (~> 1.4)
30
+ rails-dom-testing (~> 2.0)
31
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
32
+ activejob (5.1.1)
33
+ activesupport (= 5.1.1)
34
+ globalid (>= 0.3.6)
35
+ activemodel (5.1.1)
36
+ activesupport (= 5.1.1)
37
+ activerecord (5.1.1)
38
+ activemodel (= 5.1.1)
39
+ activesupport (= 5.1.1)
40
+ arel (~> 8.0)
41
+ activesupport (5.1.1)
42
+ concurrent-ruby (~> 1.0, >= 1.0.2)
43
+ i18n (~> 0.7)
44
+ minitest (~> 5.1)
45
+ tzinfo (~> 1.1)
46
+ ansi (1.5.0)
47
+ arel (8.0.0)
48
+ ast (2.3.0)
49
+ builder (3.2.3)
50
+ concurrent-ruby (1.0.5)
51
+ erubi (1.6.0)
52
+ exception_notification (4.2.1)
53
+ actionmailer (>= 4.0, < 6)
54
+ activesupport (>= 4.0, < 6)
55
+ globalid (0.4.0)
56
+ activesupport (>= 4.2.0)
57
+ i18n (0.8.1)
58
+ loofah (2.0.3)
59
+ nokogiri (>= 1.5.9)
60
+ mail (2.6.5)
61
+ mime-types (>= 1.16, < 4)
62
+ method_source (0.8.2)
63
+ mime-types (3.1)
64
+ mime-types-data (~> 3.2015)
65
+ mime-types-data (3.2016.0521)
66
+ mini_portile2 (2.1.0)
67
+ minitest (5.10.2)
68
+ minitest-reporters (1.1.14)
69
+ ansi
70
+ builder
71
+ minitest (>= 5.0)
72
+ ruby-progressbar
73
+ nio4r (2.0.0)
74
+ nokogiri (1.7.2)
75
+ mini_portile2 (~> 2.1.0)
76
+ parser (2.4.0.0)
77
+ ast (~> 2.2)
78
+ powerpack (0.1.1)
79
+ rack (2.0.2)
80
+ rack-test (0.6.3)
81
+ rack (>= 1.0)
82
+ rails (5.1.1)
83
+ actioncable (= 5.1.1)
84
+ actionmailer (= 5.1.1)
85
+ actionpack (= 5.1.1)
86
+ actionview (= 5.1.1)
87
+ activejob (= 5.1.1)
88
+ activemodel (= 5.1.1)
89
+ activerecord (= 5.1.1)
90
+ activesupport (= 5.1.1)
91
+ bundler (>= 1.3.0, < 2.0)
92
+ railties (= 5.1.1)
93
+ sprockets-rails (>= 2.0.0)
94
+ rails-dom-testing (2.0.3)
95
+ activesupport (>= 4.2.0)
96
+ nokogiri (>= 1.6)
97
+ rails-html-sanitizer (1.0.3)
98
+ loofah (~> 2.0)
99
+ railties (5.1.1)
100
+ actionpack (= 5.1.1)
101
+ activesupport (= 5.1.1)
102
+ method_source
103
+ rake (>= 0.8.7)
104
+ thor (>= 0.18.1, < 2.0)
105
+ rainbow (2.2.2)
106
+ rake
107
+ rake (10.5.0)
108
+ rubocop (0.48.1)
109
+ parser (>= 2.3.3.1, < 3.0)
110
+ powerpack (~> 0.1)
111
+ rainbow (>= 1.99.1, < 3.0)
112
+ ruby-progressbar (~> 1.7)
113
+ unicode-display_width (~> 1.0, >= 1.0.1)
114
+ ruby-progressbar (1.8.1)
115
+ sprockets (3.7.1)
116
+ concurrent-ruby (~> 1.0)
117
+ rack (> 1, < 3)
118
+ sprockets-rails (3.2.0)
119
+ actionpack (>= 4.0)
120
+ activesupport (>= 4.0)
121
+ sprockets (>= 3.0.0)
122
+ thor (0.19.4)
123
+ thread_safe (0.3.6)
124
+ tzinfo (1.2.3)
125
+ thread_safe (~> 0.1)
126
+ unicode-display_width (1.2.1)
127
+ websocket-driver (0.6.5)
128
+ websocket-extensions (>= 0.1.0)
129
+ websocket-extensions (0.1.2)
130
+
131
+ PLATFORMS
132
+ ruby
133
+
134
+ DEPENDENCIES
135
+ bundler (~> 1.13)
136
+ exception_notification
137
+ minitest (~> 5.0)
138
+ minitest-reporters (~> 1.1)
139
+ rails
140
+ rake (~> 10.0)
141
+ rubocop (~> 0)
142
+ runner_helper!
143
+
144
+ BUNDLED WITH
145
+ 1.14.6
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  $ rails g runner_helper billing
24
24
 
25
- creates `BillingRunner` class file `app/runners/billing_runner.rb` with systemd unit file `vendor/systemd/billing_runner.service`. Implement your business logic in `run_once` method.
25
+ creates `BillingRunner` class file `app/runners/billing_runner.rb` with systemd unit file `vendor/systemd/billing.service`. Implement your business logic in `run_once` method.
26
26
 
27
27
  ## Contributing
28
28
 
@@ -1,3 +1,3 @@
1
1
  module RunnerHelper
2
- VERSION = '0.0.4'.freeze
2
+ VERSION = '0.0.5'.freeze
3
3
  end
data/lib/runner_helper.rb CHANGED
@@ -8,9 +8,9 @@ module RunnerHelper
8
8
  def service
9
9
  loop do
10
10
  run_once
11
- sleep TIMEOUT
11
+ sleep self.class::TIMEOUT
12
12
  end
13
- rescue Exception => ex
13
+ rescue => ex
14
14
  ExceptionNotifier.notify_exception(ex)
15
15
  end
16
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runner_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rinat Garifullin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
11
+ date: 2017-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -92,6 +92,7 @@ files:
92
92
  - ".ruby-version"
93
93
  - ".travis.yml"
94
94
  - Gemfile
95
+ - Gemfile.lock
95
96
  - LICENSE.txt
96
97
  - README.md
97
98
  - Rakefile