hammer_cli_foreman_ansible 0.1.0 → 0.1.1

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: da724d3d6c808a4c808f0f821dc8fb869fbf3a46
4
- data.tar.gz: 8acd2f58159f90b964fd1102564e4bcdc28c8603
3
+ metadata.gz: 54f34fccaaace9e4925e44f345a79c76f83e565c
4
+ data.tar.gz: a774e12b53e96dadf57a7b4684499f186ed63463
5
5
  SHA512:
6
- metadata.gz: e1f1b700980255b333e8d8751e27289746e090b192e78463490e8a4b833a1226cbd73ebc3f5c3376c8c46dde2bc37da2ee04ae7de0b7172978c12438dfa38d59
7
- data.tar.gz: 77858d9fdb7680f0a7ea7fe16974b753c5959cefed0b0126b28db63bdd79864932a4d3b9ff267d2c236f548908fa27f663b7e6014ddba466dc1e5082e90be128
6
+ metadata.gz: fe2db7999330e7d9068a91e24c1bdcc5288dd41d088c88d56df9082b40ea611a8b7f743c438078648e60d3731ed1b7c629e3b6fbb7018889e90917f4f5211c3d
7
+ data.tar.gz: 71b47f1c798651bbb5fd8ca01b9f13a721c35958fe55b8da8abda0cea23ba814060a033563b282b6ea87676283bd64777acc5dd118ac87767a03ea4a2a163192
@@ -1,3 +1,3 @@
1
1
  module HammerCLIForemanAnsible
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleh Fedorenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-13 00:00:00.000000000 Z
11
+ date: 2018-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hammer_cli_foreman
@@ -84,8 +84,6 @@ files:
84
84
  - lib/hammer_cli_foreman_ansible/hostgroup.rb
85
85
  - lib/hammer_cli_foreman_ansible/i18n.rb
86
86
  - lib/hammer_cli_foreman_ansible/version.rb
87
- - locale/Makefile
88
- - locale/README.md
89
87
  - test/test_helper.rb
90
88
  homepage: https://github.com/theforeman/hammer-cli-foreman-ansible
91
89
  licenses:
@@ -1,65 +0,0 @@
1
- #
2
- # Makefile for PO merging and MO generation. More info in the README.
3
- #
4
- # make all-mo (default) - generate MO files
5
- # make check - check translations using translate-tool
6
- # make tx-update - download and merge translations from Transifex
7
- # make clean - clean everything
8
- #
9
- DOMAIN = hammer_cli_foreman_ansible
10
- VERSION = $(shell ruby -e 'require "rubygems";spec = Gem::Specification::load("../hammer_cli_foreman_ansible.gemspec");puts spec.version')
11
- POTFILE = $(DOMAIN).pot
12
- MOFILE = $(DOMAIN).mo
13
- POFILES = $(shell find . -name '*.po')
14
- MOFILES = $(patsubst %.po,%.mo,$(POFILES))
15
- POXFILES = $(patsubst %.po,%.pox,$(POFILES))
16
-
17
- %.mo: %.po
18
- mkdir -p $(shell dirname $@)/LC_MESSAGES
19
- msgfmt -o $(shell dirname $@)/LC_MESSAGES/$(MOFILE) $<
20
-
21
- # Generate MO files from PO files
22
- all-mo: $(MOFILES)
23
-
24
- # Check for malformed strings
25
- %.pox: %.po
26
- msgfmt -c $<
27
- pofilter --nofuzzy -t variables -t blank -t urls -t emails -t long -t newlines \
28
- -t endwhitespace -t endpunc -t puncspacing -t options -t printf -t validchars --gnome $< > $@
29
- cat $@
30
- ! grep -q msgid $@
31
-
32
- check: $(POXFILES)
33
- msgfmt -c ${POTFILE}
34
-
35
- # Merge PO files
36
- update-po:
37
- for f in $(shell find ./ -name "*.po") ; do \
38
- msgmerge -N --backup=none -U $$f ${POTFILE} ; \
39
- done
40
-
41
- # Unify duplicate translations
42
- uniq-po:
43
- for f in $(shell find ./ -name "*.po") ; do \
44
- msguniq $$f -o $$f ; \
45
- done
46
-
47
- tx-pull:
48
- tx pull -f
49
- for f in $(POFILES) ; do \
50
- sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
51
- done
52
- -git commit -a -m "i18n - extracting new, pulling from tx"
53
-
54
- extract-strings:
55
- bundle exec rake gettext:find
56
-
57
- reset-po:
58
- # merging po files is unnecessary when using transifex.com
59
- git checkout -- ../locale/*/*po
60
-
61
- tx-update: tx-pull extract-strings reset-po $(MOFILES)
62
- # amend mo files
63
- git add ../locale/*/LC_MESSAGES
64
- git commit -a --amend -m "i18n - extracting new, pulling from tx"
65
- -echo Changes commited!
@@ -1,18 +0,0 @@
1
- Updating the translations
2
- -------------------------
3
-
4
- 1. Check if there are any new languages with progress more than 50% on [transifex](https://www.transifex.com/projects/p/foreman/resource/hammer-cli-foreman-ansible/). If so, do the following for each of the new languages:
5
-
6
- ```
7
- mkdir locale/<lang>
8
- cp locale/hammer-cli-foreman-ansible.pot locale/<lang>/hammer-cli-foreman-ansible.po
9
- ```
10
- 2. Make sure you have `transifex-client` installed
11
-
12
- 3. Update the translations. From GIT repo root directory run:
13
-
14
- ```
15
- make -C locale tx-update
16
- ```
17
-
18
- It will download translations from transifex, generates `mo` files, updates strings in `pot` file and wraps all the changes in a new commit. Transifex automatically updates its strings when the commit is pushed to Github.