hammer_cli 3.5.1 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes.md +4 -1
- data/lib/hammer_cli/version.rb +1 -1
- data/locale/Makefile.def +77 -0
- data/locale/ca/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/de/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/en_GB/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/es/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/fr/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/it/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ja/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ko/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/ru/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/hammer-cli.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/hammer-cli.mo +0 -0
- data/test/test_helper.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6293c3d040b5065886e9b590864901ce167d8599cb09e1d2acb4c0f941aae0f
|
4
|
+
data.tar.gz: e5f30fd542b84ca83f3bed8748d0914cc44efeccf6c85c22a17c6ef1895b5d0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e137dc396915144be972cae6b0824862d68536084d7d2670829e7f895f711e7d214e15f1214f0722657898bc45654284689ed98858f23d022472747bec05500e
|
7
|
+
data.tar.gz: e48ab29d2b54d9ef05bfc89839597dd9ecff9f2538509a638420cf487f971f7919b51a7720200c7a0fdf1904445f1c52bdd01a1e0d9eadad4199251870db0fbc
|
data/doc/release_notes.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
Release notes
|
2
2
|
=============
|
3
|
-
### 3.
|
3
|
+
### 3.6.0 (2023-02-23)
|
4
4
|
* Update apipie-bindings to 0.6.0
|
5
|
+
* Include makefile.def in the gem
|
6
|
+
* Correct mocha inclusion in tests
|
7
|
+
* Bump to 3.6.0-develop
|
5
8
|
|
6
9
|
### 3.5.0 (2022-10-31)
|
7
10
|
* Bump to 3.5.0-develop
|
data/lib/hammer_cli/version.rb
CHANGED
data/locale/Makefile.def
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
#
|
2
|
+
# Definition of common Makefile tasks for PO merging and MO generation.
|
3
|
+
#
|
4
|
+
# Run make help to list available targets
|
5
|
+
#
|
6
|
+
|
7
|
+
POTFILE = $(DOMAIN).pot
|
8
|
+
MOFILE = $(DOMAIN).mo
|
9
|
+
POFILES = $(shell find . -name '$(DOMAIN).po')
|
10
|
+
MOFILES = $(patsubst %.po,%.mo,$(POFILES))
|
11
|
+
POXFILES = $(patsubst %.po,%.pox,$(POFILES))
|
12
|
+
EDITFILES = $(patsubst %.po,%.edit.po,$(POFILES))
|
13
|
+
TIMESTAMPFILES = $(patsubst %.po,%.po.time_stamp,$(POFILES))
|
14
|
+
|
15
|
+
%.mo: %.po
|
16
|
+
mkdir -p $(shell dirname $@)/LC_MESSAGES
|
17
|
+
msgfmt -o $(shell dirname $@)/LC_MESSAGES/$(MOFILE) $<
|
18
|
+
|
19
|
+
.PHONY: all-mo
|
20
|
+
all-mo: $(MOFILES) ## Generate MO files from PO files (default)
|
21
|
+
|
22
|
+
# Check for malformed strings
|
23
|
+
%.pox: %.po
|
24
|
+
@command -v pofilter >/dev/null 2>&1 || { echo "Command pofilter not found. Make sure you have translate-toolkit installed." >&2; exit 1; }
|
25
|
+
msgfmt -c $<
|
26
|
+
pofilter --nofuzzy -t variables -t blank -t urls -t emails -t long -t newlines \
|
27
|
+
-t endwhitespace -t endpunc -t puncspacing -t options -t printf -t validchars --gnome $< > $@;
|
28
|
+
cat $@
|
29
|
+
! grep -q msgid $@
|
30
|
+
|
31
|
+
.PHONY: check
|
32
|
+
check: $(POXFILES) ## Check translations using translate-tool, run make with -k to skip errors and execute for all languages
|
33
|
+
|
34
|
+
.PHONY: uniq-po
|
35
|
+
uniq-po: ## Unify duplicate translations in .po files
|
36
|
+
for f in $(shell find ./ -name "*.po") ; do \
|
37
|
+
msguniq $$f -o $$f ; \
|
38
|
+
done
|
39
|
+
|
40
|
+
%.edit.po:
|
41
|
+
touch $@
|
42
|
+
|
43
|
+
# Pull translaions from transifex
|
44
|
+
.PHONY: tx-pull
|
45
|
+
tx-pull: $(EDITFILES)
|
46
|
+
@command -v tx >/dev/null 2>&1 || { echo "Command tx not found. Make sure you have transifex-client installed and configured." >&2; exit 1; }
|
47
|
+
tx pull -f
|
48
|
+
for f in $(EDITFILES); do \
|
49
|
+
sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
|
50
|
+
done
|
51
|
+
|
52
|
+
# Merge .edit.po into .po
|
53
|
+
.PHONY: update-po
|
54
|
+
update-po:
|
55
|
+
for f in $(EDITFILES); do \
|
56
|
+
msgcat --use-first --no-location $$f $${f//.edit/} > $${f//.edit/}; \
|
57
|
+
done
|
58
|
+
|
59
|
+
# Extract strings and update the .pot, prepare .edit.po files
|
60
|
+
.PHONY: extract-strings
|
61
|
+
extract-strings:
|
62
|
+
bundle exec rake gettext:find
|
63
|
+
|
64
|
+
.PHONY: tx-update
|
65
|
+
tx-update: extract-strings tx-pull update-po $(MOFILES) ## Download and merge translations from Transifex
|
66
|
+
git add ../locale
|
67
|
+
git commit -m "i18n - extracting new, pulling from tx"
|
68
|
+
@echo Changes commited!
|
69
|
+
|
70
|
+
.PHONY: clean
|
71
|
+
clean: ## Clean everything, removes *.edit.po, *.po.timestamp and *.pox files
|
72
|
+
rm -f $(EDITFILES) $(TIMESTAMPFILES) $(POXFILES)
|
73
|
+
|
74
|
+
.PHONY: help
|
75
|
+
help: ## This help message
|
76
|
+
@echo -e "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\x1b[36m\1\\x1b[m:\2/' | column -c2 -t -s :)"
|
77
|
+
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/test_helper.rb
CHANGED
@@ -11,7 +11,7 @@ SimpleCov.root Pathname.new(File.dirname(__FILE__) + "../../../")
|
|
11
11
|
require 'minitest/autorun'
|
12
12
|
require 'minitest/spec'
|
13
13
|
require "minitest-spec-context"
|
14
|
-
require "mocha/
|
14
|
+
require "mocha/minitest"
|
15
15
|
|
16
16
|
require 'hammer_cli'
|
17
17
|
require 'hammer_cli/logger'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Bačovský
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-02-
|
12
|
+
date: 2023-02-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clamp
|
@@ -294,6 +294,7 @@ files:
|
|
294
294
|
- lib/hammer_cli/utils.rb
|
295
295
|
- lib/hammer_cli/verbosity.rb
|
296
296
|
- lib/hammer_cli/version.rb
|
297
|
+
- locale/Makefile.def
|
297
298
|
- locale/ca/LC_MESSAGES/hammer-cli.mo
|
298
299
|
- locale/de/LC_MESSAGES/hammer-cli.mo
|
299
300
|
- locale/en/LC_MESSAGES/hammer-cli.mo
|
@@ -403,6 +404,7 @@ test_files:
|
|
403
404
|
- test/functional/help_test.rb
|
404
405
|
- test/functional/nil_values_test.rb
|
405
406
|
- test/functional/test_helper.rb
|
407
|
+
- test/test_helper.rb
|
406
408
|
- test/unit/abstract_test.rb
|
407
409
|
- test/unit/apipie/api_connection_test.rb
|
408
410
|
- test/unit/apipie/command_test.rb
|
@@ -465,4 +467,3 @@ test_files:
|
|
465
467
|
- test/unit/settings_test.rb
|
466
468
|
- test/unit/test_helper.rb
|
467
469
|
- test/unit/utils_test.rb
|
468
|
-
- test/test_helper.rb
|