redgit 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +53 -0
- data/bin/redgit +2 -2
- data/lib/redgit/version.rb +1 -1
- data/redgit.gemspec +2 -2
- metadata +5 -4
- data/README.rdoc +0 -64
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33238ac506281a74133e1a28ab732adcfab73026
|
|
4
|
+
data.tar.gz: 24dbb124718ae8517e8ff9fd0b16e95d916a5b4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7778cf5a25d85953fe72a0d8192d9cedcf994c01a1026313c6b40a065ead7d12968a6bcd44f88e0f9d93dd6747b26931c18d86122c150a13ccfc937d7be2ce86
|
|
7
|
+
data.tar.gz: 38fe226cd9661f56b0dd359f484542517df8584b9a44a8219e4befabf2fa0d1e3faa23540a8d62820d1fffeb18a473b4d026f26ab44aa74c4d2c34bb035b44ad
|
data/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Redgit
|
|
2
|
+
Redgit is gem for commit-msg git hook redmine integration.
|
|
3
|
+
|
|
4
|
+
It offers you opened issues and forces you to select one when you dealing with redmine project manager. Or just skip all if you put `refs #<issue>` in commit message.
|
|
5
|
+
|
|
6
|
+
## Example
|
|
7
|
+
### Setup
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
jerry@jerry ~/devel/iteq/lk redgit
|
|
11
|
+
|
|
12
|
+
Используйте: /home/jerry/bin/redgit setup <project> <api-key> [host = http://redmine.pro]
|
|
13
|
+
Отменено: Не задан проект или API-ключ.
|
|
14
|
+
```
|
|
15
|
+
```sh
|
|
16
|
+
jerry@jerry ~/devel/iteq/lk $ redgit setup prj 123d5a71aa1f5ae555dca88746daa337e9a28321
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Usage
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
jerry@jerry ~/devel/iteq/lk $ git commit -am "тестовый коммит"
|
|
23
|
+
|
|
24
|
+
В сообщении не указан номер задачи в виде refs #XXX или fixes #XXX
|
|
25
|
+
=======================================
|
|
26
|
+
Трекер: http://redmine.pro Проект: prj
|
|
27
|
+
============Выберите задачу============
|
|
28
|
+
Последняя:
|
|
29
|
+
[1] 04 Aug 10:55 #4856 (НЕТ) ИС Личный Кабинет
|
|
30
|
+
Открытые:
|
|
31
|
+
[2] 04 Aug 10:55 #4856 (Работаю) ИС Личный Кабинет
|
|
32
|
+
[3] 04 Aug 07:33 #4846 (Работаю) Адаптация ИС Пророк под новую архитектуру.
|
|
33
|
+
> 2
|
|
34
|
+
[master 7346ec3] тестовый коммит refs #4856
|
|
35
|
+
1 file changed, 1 insertion(+)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
### Gem
|
|
40
|
+
`gem install redgit`
|
|
41
|
+
|
|
42
|
+
### Setup
|
|
43
|
+
`redgit setup <redmine-project> <api-key> [redmine host]`
|
|
44
|
+
|
|
45
|
+
## Test
|
|
46
|
+
```ruby
|
|
47
|
+
jerry@jerry ~/devel/iteq/lk $ redgit issues
|
|
48
|
+
[2] 04 Aug 10:55 #4856 (Работаю) ИС Личный Кабинет
|
|
49
|
+
[3] 04 Aug 07:33 #4846 (Работаю) Адаптация ИС Пророк под новую архитектуру.
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## ToDo
|
|
53
|
+
|
data/bin/redgit
CHANGED
|
@@ -26,13 +26,13 @@ class IssueManager
|
|
|
26
26
|
|
|
27
27
|
def initialize
|
|
28
28
|
@host=`git config redmine.host`.strip
|
|
29
|
-
@host=(@host.empty?) ? 'http://
|
|
29
|
+
@host=(@host.empty?) ? 'http://redmine.pro' : @host
|
|
30
30
|
|
|
31
31
|
@project=`git config redmine.project`.strip
|
|
32
32
|
@apikey=`git config redmine.key`.strip
|
|
33
33
|
|
|
34
34
|
if @project.empty? or @apikey.empty?
|
|
35
|
-
puts "Используйте: #{$0} setup <project> <api-key> [host = http://
|
|
35
|
+
puts "Используйте: #{$0} setup <project> <api-key> [host = http://redmine.pro]"
|
|
36
36
|
die "Не задан проект или API-ключ."
|
|
37
37
|
end
|
|
38
38
|
|
data/lib/redgit/version.rb
CHANGED
data/redgit.gemspec
CHANGED
|
@@ -7,9 +7,9 @@ Gem::Specification.new do |s|
|
|
|
7
7
|
s.version = Redgit::VERSION
|
|
8
8
|
s.authors = ["Samoilenko Yuri"]
|
|
9
9
|
s.email = ["kinnalru@gmail.com"]
|
|
10
|
-
|
|
10
|
+
s.homepage = "http://github.com/kinnalru/redgit"
|
|
11
11
|
s.summary = %q{Redgit is gem for commit-msg git hook redmine integration}
|
|
12
|
-
s.description = %q{Redgit is gem for commit-msg git hook redmine integration.}
|
|
12
|
+
s.description = %q{Redgit is gem for commit-msg git hook redmine integration. Run redgit in git reposirory folder.}
|
|
13
13
|
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
|
15
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: redgit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samoilenko Yuri
|
|
@@ -80,7 +80,8 @@ dependencies:
|
|
|
80
80
|
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
|
-
description: Redgit is gem for commit-msg git hook redmine integration.
|
|
83
|
+
description: Redgit is gem for commit-msg git hook redmine integration. Run redgit
|
|
84
|
+
in git reposirory folder.
|
|
84
85
|
email:
|
|
85
86
|
- kinnalru@gmail.com
|
|
86
87
|
executables:
|
|
@@ -90,12 +91,12 @@ extra_rdoc_files: []
|
|
|
90
91
|
files:
|
|
91
92
|
- ".gitignore"
|
|
92
93
|
- Gemfile
|
|
93
|
-
- README.
|
|
94
|
+
- README.md
|
|
94
95
|
- Rakefile
|
|
95
96
|
- bin/redgit
|
|
96
97
|
- lib/redgit/version.rb
|
|
97
98
|
- redgit.gemspec
|
|
98
|
-
homepage:
|
|
99
|
+
homepage: http://github.com/kinnalru/redgit
|
|
99
100
|
licenses: []
|
|
100
101
|
metadata: {}
|
|
101
102
|
post_install_message:
|
data/README.rdoc
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
= Jumping Words
|
|
2
|
-
The program speaks and displays in the pop-up window the word or phrase and the word's translation or phrase.
|
|
3
|
-
After end of list back to the start.
|
|
4
|
-
|
|
5
|
-
Supports OS MAC OS X 10.8 or higher or Ubuntu
|
|
6
|
-
|
|
7
|
-
== Dependencies
|
|
8
|
-
For linux
|
|
9
|
-
sudo apt-get install libnotify-bin
|
|
10
|
-
|
|
11
|
-
On MAC OS X before you start, you should add to your system the voices for words and translates.
|
|
12
|
-
To enable the speech recognition ability and use speech commands on your Mac, the first thing you have to do is open the Speech menu from System Preferences.
|
|
13
|
-
|
|
14
|
-
For example for Russian you should install the Milena voice.
|
|
15
|
-
|
|
16
|
-
== Config
|
|
17
|
-
Default:
|
|
18
|
-
Show message: true
|
|
19
|
-
Timeout between a word and translate: 3 sec.
|
|
20
|
-
Timeout to start list: 10 sec.
|
|
21
|
-
MAC OS X word voice: Vicki.
|
|
22
|
-
MAC OS X translate voice: Milena.
|
|
23
|
-
|
|
24
|
-
More:
|
|
25
|
-
jwords -h
|
|
26
|
-
|
|
27
|
-
== Actions
|
|
28
|
-
Starting
|
|
29
|
-
jwords start
|
|
30
|
-
or
|
|
31
|
-
jwords -v Fiona -t Milena -i5 start
|
|
32
|
-
|
|
33
|
-
Stoping
|
|
34
|
-
ctrl+c
|
|
35
|
-
|
|
36
|
-
View a list of words
|
|
37
|
-
jwords list
|
|
38
|
-
|
|
39
|
-
1 convenient: удобный | 7
|
|
40
|
-
2 If I were you: на твоем месте | 6
|
|
41
|
-
3 in turns: по очереди | 5
|
|
42
|
-
4 endurance: выносливость | 2
|
|
43
|
-
5 spoil, spoilt, spoilt: портиться, испортилось | 2
|
|
44
|
-
6 to lead, led, led: приводить, привели | 2
|
|
45
|
-
7 to achieve: достигать | 2
|
|
46
|
-
...
|
|
47
|
-
|
|
48
|
-
Adding words to the database
|
|
49
|
-
jwords -a root: корень
|
|
50
|
-
jwords -a to play: играть
|
|
51
|
-
|
|
52
|
-
Delete a word from the database (indicated by the index of the word in the list)
|
|
53
|
-
jwords -d 1
|
|
54
|
-
|
|
55
|
-
If you want to change words in directly in CSV find .jwords directory in your home directory, then open jumping_words_db.csv. After saving the file restart the script.
|
|
56
|
-
|
|
57
|
-
== Install
|
|
58
|
-
gem install jumping_words
|
|
59
|
-
|
|
60
|
-
For OS X users: you also should install the https://github.com/alloy/terminal-notifier for notifications.
|
|
61
|
-
brew install terminal-notifier
|
|
62
|
-
|
|
63
|
-
== ToDo
|
|
64
|
-
For Ubuntu users give config for changing language system voice.
|