simple_mailing_list 0.1.3 → 0.1.4

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: 4c6a4b903f7caf0da003f46c3fe9f1390fe202b5
4
- data.tar.gz: f46f14e4aecb91fe70d728eec2d3986599db60c9
3
+ metadata.gz: 276b9ae251f7dbf9d80b65bfc8374051a6bb5012
4
+ data.tar.gz: ef23ef63657cf44e94e46695b8bb774e26eff3d1
5
5
  SHA512:
6
- metadata.gz: c57b729c463e54318c99a94860711cfe52d2dd2bdffe31e7be170addfde14d64d3749a1c25e68a7ef99366ae01ecb39701313034aa58738b627eda59118bd311
7
- data.tar.gz: cac10d679d053d00a0898429df56451c1f11ff2218bc53fe61587a07680f64feb8b2e9705fef329750a6c41ff48bfaa2b80571f4ff7afdbcbf7a70bd34ca62e3
6
+ metadata.gz: fa31fce86c64ea22f921ee8d21c8ce51e4ab1e25c80d739a76a1262703c8c78e62b8e7692ea74a59fe63f8d20ff00e0ecb81ecc47ecb2b2cff083129b0afe6ec
7
+ data.tar.gz: 5fbd4ea4e16bb91246599eb202b41dc777f3cdd7a12bbcaa9c790f956ffa00c6d98eb670524b35c46be3067f5c80ac135a1bb6cd9b3d50cab964804ea439505a
data/README.ja.md CHANGED
@@ -57,7 +57,7 @@ YAML 形式のコンフィグファイルを用意し、
57
57
 
58
58
  で実行。
59
59
 
60
- ```<mode>``` を省略すると、「メールの受信・処理」「古いデータの削除」といった一連の処理を行います。
60
+ ```<mode>``` を省略すると、「メールの受信・処理」「古いデータの削除」といった一連の処理を行います。cron 等で定期実行させれば、メーリングリストのできあがり。
61
61
 
62
62
  ```-c``` を省略すると、「 config.yaml 」が使用されます。
63
63
 
@@ -65,7 +65,7 @@ YAML 形式のコンフィグファイルを用意し、
65
65
 
66
66
  ### Daemon 化
67
67
 
68
- $ daemons_simple_mailing_list start -- loop -c <config.yaml>
68
+ $ daemons_simple_mailing_list start -- loop_main_jobs -c <config.yaml>
69
69
 
70
70
  で、「メールの受信・処理」「古いデータの削除」といった一連の処理をずっと繰り返します。
71
71
 
data/README.md CHANGED
@@ -8,6 +8,9 @@ Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
10
  gem 'simple_mailing_list'
11
+ gem 'sqlite3'
12
+ # gem 'mysql2'
13
+ # gem 'pg'
11
14
  ```
12
15
 
13
16
  And then execute:
@@ -4,17 +4,16 @@ require "simple_mailing_list"
4
4
  require "daemons"
5
5
 
6
6
  options = {
7
- ARGV: ARGV,
8
7
  dir_mode: :normal,
9
8
  dir: Dir.pwd,
10
9
  log_output: true
11
10
  }
12
11
 
13
- File.write("daemons_simple_mailing_list.rb", <<EOS
14
- Dir.chdir(File.dirname(File.expand_path(__FILE__)))
15
- SimpleMailingList::CLI.start(ARGV)
16
- EOS
17
- )
18
-
19
- ARGV.push( "--", "loop_main_jobs" ) unless ARGV.index("--")
20
- Daemons.run("daemons_simple_mailing_list.rb", options)
12
+ Daemons.run_proc("daemons_simple_mailinglist", options) do
13
+ Dir.chdir(options[:dir])
14
+ ARGV.push( "--", "loop_main_jobs" ) unless ARGV.index("--")
15
+ until ARGV.shift == "--"
16
+ break if ARGV.empty?
17
+ end
18
+ SimpleMailingList::CLI.start(ARGV)
19
+ end
@@ -1,3 +1,3 @@
1
1
  module SimpleMailingList
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -29,7 +29,4 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency "liquid"
30
30
  spec.add_dependency "daemons"
31
31
  spec.add_dependency "thor"
32
- # spec.add_dependency "mysql2"
33
- # spec.add_dependency "pg"
34
- spec.add_dependency "sqlite3"
35
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_mailing_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - nodai2hITC
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-17 00:00:00.000000000 Z
11
+ date: 2018-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: sqlite3
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
111
  description: This is a simple mailing list system.
126
112
  email:
127
113
  - nodai2h.itc@gmail.com