twitter2vk 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +8 -0
- data/README.markdown +5 -0
- data/bin/twitter2vk +6 -3
- metadata +4 -3
data/ChangeLog
ADDED
data/README.markdown
CHANGED
@@ -13,6 +13,8 @@ You may install on server only twitter2vk_reposter package and create config
|
|
13
13
|
on home computer (don’t remember to add cron task). Or you can uninstall
|
14
14
|
twitter2vk after you create config.
|
15
15
|
|
16
|
+
You can follow author @andrey_sitnik to receive last updates info.
|
17
|
+
|
16
18
|
### Install
|
17
19
|
1. Install Ruby and Rubygems. For example, on Ubuntu:
|
18
20
|
|
@@ -50,6 +52,9 @@ Config is a YAML files with options:
|
|
50
52
|
настройки на домашнем компьютере (не забудьте добавить задание cron). Или можете
|
51
53
|
удалить пакет twitter2vk, после настройки.
|
52
54
|
|
55
|
+
Вы можете последовать за автором @andrey_sitnik, чтобы получать информацию
|
56
|
+
о последних обновлениях.
|
57
|
+
|
53
58
|
### Установка
|
54
59
|
1. Установите Ruby и Rubygems. Например, для Ubuntu:
|
55
60
|
|
data/bin/twitter2vk
CHANGED
@@ -39,7 +39,7 @@ end
|
|
39
39
|
config['vk_session'] = resource.body.match(/value='([a-z0-9]+)'/)[1]
|
40
40
|
config['twitter'] = ask(i18n.twitter)
|
41
41
|
|
42
|
-
config['exclude'] = ['#novk',
|
42
|
+
config['exclude'] = ['#novk', /^@\w/]
|
43
43
|
config['include'] = nil
|
44
44
|
|
45
45
|
path = ask(i18n.config) { |q| q.default = "./#{config['twitter']}.yml" }
|
@@ -54,10 +54,13 @@ FileUtils.chmod 0700, path
|
|
54
54
|
|
55
55
|
period = ask(i18n.period) { |q| q.default = 5 }
|
56
56
|
|
57
|
-
task = "
|
57
|
+
task = "*/#{period} * * * * twitter2vk_reposter #{path}"
|
58
58
|
|
59
59
|
if agree(i18n.cron) { |q| q.default = 'yes' }
|
60
|
-
|
60
|
+
tasks = `crontab -l`
|
61
|
+
tasks << "\n" if tasks[-1..-1] != "\n"
|
62
|
+
tasks << task
|
63
|
+
`echo '#{tasks}' | crontab -`
|
61
64
|
say i18n.success.cron
|
62
65
|
else
|
63
66
|
say i18n.success.print(task)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter2vk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey "A.I." Sitnik
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 0.1.1
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: highline
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: "0"
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name: r18n-
|
36
|
+
name: r18n-desktop
|
37
37
|
type: :runtime
|
38
38
|
version_requirement:
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- bin/i18n/ru.yml
|
56
56
|
- bin/i18n/en.yml
|
57
57
|
- README.markdown
|
58
|
+
- ChangeLog
|
58
59
|
- COPYING
|
59
60
|
has_rdoc: false
|
60
61
|
homepage:
|