phraseapp_updater 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +7 -16
- data/bin/phraseapp_common.sh +1 -1
- data/lib/phraseapp_updater/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90f3eb1a3fc564c81e37c06c3de35f659cb27490e3b7280f329e762a505e78c4
|
4
|
+
data.tar.gz: 8548103775510c36d7bad59957de3397cd1b3550fb2de8f4d37ff609a7ce120c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f4afe7e685edf935a7f68f8d2682b88c660c01a79ea644fa5205e25450af8108bee671334415408b416e9a1d9a4c4eb01b9ddb4da2e635b22c953c5cc83e0ff
|
7
|
+
data.tar.gz: db6342214253090ae81c35fa058719a9c96863bf17d11f47577a6312542c64e5782fb59b4fb71416f2ab88a7bcbc03526f182c330adee1f6d865db144fab70d8
|
data/README.markdown
CHANGED
@@ -80,7 +80,7 @@ corresponding to your branch. It must be provided with the current git revision
|
|
80
80
|
of the branch and the path to the locale files.
|
81
81
|
|
82
82
|
```
|
83
|
-
phraseapp_updater setup --phraseapp_project_name
|
83
|
+
phraseapp_updater setup --phraseapp_project_name=<yourbranch> --parent_commit=<yourhash> --phraseapp_api_key=<yourkey> --file-format=json <path_to_locales>
|
84
84
|
```
|
85
85
|
|
86
86
|
**Synchronize**
|
@@ -96,7 +96,7 @@ result will be uploaded to PhraseApp and the common ancestor updated to the
|
|
96
96
|
branch head.
|
97
97
|
|
98
98
|
```
|
99
|
-
phraseapp_updater synchronize <checkout_path>
|
99
|
+
phraseapp_updater synchronize <checkout_path> --prefix=config/locales --phraseapp_project_id=<yourid> --phraseapp_api_key=<yourkey> --file-format=json
|
100
100
|
```
|
101
101
|
|
102
102
|
**Download**
|
@@ -106,7 +106,7 @@ PhraseApp, saving them to the specified location. The revision of the recorded
|
|
106
106
|
common ancestor is printed to standard out.
|
107
107
|
|
108
108
|
```
|
109
|
-
phraseapp_updater download --phraseapp_project_id
|
109
|
+
phraseapp_updater download --phraseapp_project_id=<yourid> --phraseapp_api_key=<yourkey> --file-format=json <target_path>
|
110
110
|
```
|
111
111
|
|
112
112
|
**Upload**
|
@@ -115,7 +115,7 @@ phraseapp_updater download --phraseapp_project_id="yourid" --phraseapp_api_key="
|
|
115
115
|
PhraseApp and resets the recorded common ancestor to the specified revision.
|
116
116
|
|
117
117
|
```
|
118
|
-
phraseapp_updater upload --phraseapp_project_id
|
118
|
+
phraseapp_updater upload --phraseapp_project_id=<yourid> --phraseapp_api_key=<yourkey> --file-format=json <path_to_locales>
|
119
119
|
```
|
120
120
|
|
121
121
|
**Update Parent Commit**
|
@@ -123,7 +123,7 @@ phraseapp_updater upload --phraseapp_project_id="yourid" --phraseapp_api_key="yo
|
|
123
123
|
PhraseApp without changing the locales.
|
124
124
|
|
125
125
|
```
|
126
|
-
phraseapp_updater update_parent_commit --phraseapp_project_id
|
126
|
+
phraseapp_updater update_parent_commit --phraseapp_project_id=<yourid> --phraseapp_api_key=<yourkey> --parent_commit=<yournewhash>
|
127
127
|
```
|
128
128
|
|
129
129
|
**Merge**
|
@@ -135,7 +135,7 @@ accepted. The results are normalized and written to the path specified with
|
|
135
135
|
`to`.
|
136
136
|
|
137
137
|
```
|
138
|
-
phraseapp_updater merge ancestor_path our_path their_path --to target_path
|
138
|
+
phraseapp_updater merge ancestor_path our_path their_path --to target_path --file-format=json
|
139
139
|
```
|
140
140
|
|
141
141
|
|
@@ -145,18 +145,9 @@ Performs a content-aware diff between locale files in two directories. Returns
|
|
145
145
|
with exit status 1 or 0 to signal differences or no differences respectively
|
146
146
|
|
147
147
|
```
|
148
|
-
phraseapp_updater diff path1 path2
|
148
|
+
phraseapp_updater diff path1 path2 --file-format=json
|
149
149
|
```
|
150
150
|
|
151
|
-
|
152
|
-
## git-based Driver
|
153
|
-
|
154
|
-
We use a small bash script for driving this library to push and pull
|
155
|
-
from PhraseApp. While there are many ways to merge data in your
|
156
|
-
application with PhraseApp, this works for us:
|
157
|
-
|
158
|
-
https://gist.github.com/kevingriffin/d59821446ce424a56c7da2686d4ae082
|
159
|
-
|
160
151
|
## Future Improvements
|
161
152
|
|
162
153
|
If you'd like to contribute, these would be very helpful!
|
data/bin/phraseapp_common.sh
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phraseapp_updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Griffin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|