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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a4b44bba053b5ad36b71185eb18bd8e49a6bda7125bfcc9749a3da53bc3b0f0
4
- data.tar.gz: cc7df6204924c76e3e93a3b8936981b4cae03075abcb84b53aeb4d117943035a
3
+ metadata.gz: 90f3eb1a3fc564c81e37c06c3de35f659cb27490e3b7280f329e762a505e78c4
4
+ data.tar.gz: 8548103775510c36d7bad59957de3397cd1b3550fb2de8f4d37ff609a7ce120c
5
5
  SHA512:
6
- metadata.gz: 45e95fb46cde0536b1d95a03da97adb2d0f38b42f4ecf91efb6b50d22cd62453634c796c28551c8d3e2e7d66ef3ed812df356aa54d5aa168d7648f6331010b92
7
- data.tar.gz: 60cb2bed6be5079268fba96cbb8b181c6f8f3d7ba5720520edd31a24ad9006cbe0ec59a51110f7ac96858536dd8a1a5a0a65fc87b2a12bcc94eab867c906850e
6
+ metadata.gz: 0f4afe7e685edf935a7f68f8d2682b88c660c01a79ea644fa5205e25450af8108bee671334415408b416e9a1d9a4c4eb01b9ddb4da2e635b22c953c5cc83e0ff
7
+ data.tar.gz: db6342214253090ae81c35fa058719a9c96863bf17d11f47577a6312542c64e5782fb59b4fb71416f2ab88a7bcbc03526f182c330adee1f6d865db144fab70d8
@@ -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="yourbranch" --parent_commit="yourhash" --phraseapp_api_key=yourkey" path_to_locales
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="yourid" --phraseapp_api_key="yourkey" target_path
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="yourid" --phraseapp_api_key="yourkey" path_to_locales
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="yourid" --phraseapp_api_key="yourkey" --parent_commit="yourhash"
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!
@@ -49,7 +49,7 @@ function extract_files() {
49
49
  }
50
50
 
51
51
  function locales_changed() {
52
- ! phraseapp_updater diff --quiet "$1" "$2"
52
+ ! phraseapp_updater diff --quiet "$1" "$2" --file-format="$FILE_FORMAT"
53
53
  }
54
54
 
55
55
  function tree_changed() {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class PhraseAppUpdater
4
- VERSION = "2.0.3"
4
+ VERSION = '2.0.4'
5
5
  end
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.3
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-10-31 00:00:00.000000000 Z
11
+ date: 2018-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor