localeapp 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -1
- data/README.md +10 -2
- data/bin/localeapp +1 -46
- data/features/localeapp_binary.feature +12 -0
- data/lib/localeapp/version.rb +2 -2
- metadata +3 -3
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# Version 0.1.2
|
2
|
+
|
3
|
+
* Fix incorrect documentation
|
4
|
+
* Display help if unrecognized command given
|
5
|
+
* Add section on default rails translations to README
|
6
|
+
|
1
7
|
# Version 0.1.1
|
2
8
|
|
3
9
|
* Gem compiled with 1.8.7
|
@@ -16,4 +22,4 @@
|
|
16
22
|
If you've added disabled_polling_environments,
|
17
23
|
disabled_reloading_environments or disabled_sending_environments to your
|
18
24
|
initializer you should change these to polling_environments,
|
19
|
-
reloading_environments and sending_environments and configure as per the README
|
25
|
+
reloading_environments and sending_environments and configure as per the README
|
data/README.md
CHANGED
@@ -49,7 +49,7 @@ Create a project on localeapp.com and get the api key. Then run:
|
|
49
49
|
You can import via localeapp.com or with the command line tool. To import
|
50
50
|
existing translations do:
|
51
51
|
|
52
|
-
localeapp
|
52
|
+
localeapp push config/locales/en.yml
|
53
53
|
|
54
54
|
This will queue importing the file. The projects pages on localeapp.com will
|
55
55
|
automatically refresh so you can see the import progress.
|
@@ -57,6 +57,14 @@ automatically refresh so you can see the import progress.
|
|
57
57
|
If you've more than one locale to import you can zip up the yml files. Both
|
58
58
|
localeapp.com and the localeapp import command accept zip files.
|
59
59
|
|
60
|
+
## Default Rails Translations
|
61
|
+
|
62
|
+
Locale will hide default rails translations to avoid cluttering up your
|
63
|
+
translation view with content you haven't changed. This can make it look like
|
64
|
+
we didn't import all of your translations but we promise they're there and will
|
65
|
+
appear again when you export. If you want to override a default translation you
|
66
|
+
can create the key manually in Locale and we'll use your version instead.
|
67
|
+
|
60
68
|
## Automatically sending missing translations
|
61
69
|
|
62
70
|
Missing translations are automatically sent only in the development environment
|
@@ -126,4 +134,4 @@ listeners completely to pick up the new locale.
|
|
126
134
|
### Support and feedback
|
127
135
|
|
128
136
|
You can contact us via the support link at the bottom of the page, emailing
|
129
|
-
info@localeapp.com, or on campfire at https://localeapp.campfirenow.com/d77b5
|
137
|
+
info@localeapp.com, or on campfire at https://localeapp.campfirenow.com/d77b5
|
data/bin/localeapp
CHANGED
@@ -88,49 +88,4 @@ begin
|
|
88
88
|
rescue Slop::InvalidOptionError
|
89
89
|
puts slop
|
90
90
|
end
|
91
|
-
|
92
|
-
# args = ARGV.dup
|
93
|
-
#
|
94
|
-
# command = args.shift.strip rescue nil
|
95
|
-
#
|
96
|
-
# unless %w{help install}.include?(command)
|
97
|
-
# unless Localeapp.include_config_file
|
98
|
-
# puts "Could not load config file"
|
99
|
-
# exit
|
100
|
-
# end
|
101
|
-
# end
|
102
|
-
#
|
103
|
-
# case command
|
104
|
-
# when 'install'
|
105
|
-
# key = args.shift.strip rescue nil
|
106
|
-
# installer = Localeapp::CLI::Install.new
|
107
|
-
# if installer.execute(key)
|
108
|
-
# exit 0
|
109
|
-
# else
|
110
|
-
# exit 1
|
111
|
-
# end
|
112
|
-
# when 'pull'
|
113
|
-
# Localeapp::CLI::Pull.new.execute
|
114
|
-
# when 'push'
|
115
|
-
# file = args.shift.strip rescue nil
|
116
|
-
# pusher = Localeapp::CLI::Push.new
|
117
|
-
# pusher.execute(file)
|
118
|
-
# when 'update'
|
119
|
-
# Localeapp::CLI::Update.new.execute
|
120
|
-
# when 'daemon'
|
121
|
-
# while true do
|
122
|
-
# Localeapp::CLI::Update.new.execute
|
123
|
-
# sleep 5
|
124
|
-
# end
|
125
|
-
# else
|
126
|
-
# puts <<-HELP
|
127
|
-
# Usage: localeapp COMMAND [ARGS]
|
128
|
-
#
|
129
|
-
# Commands:
|
130
|
-
# install <api_key> - Creates new configuration files and confirms key works
|
131
|
-
# pull - Pulls all translations from localeapp.com
|
132
|
-
# push <file> - Pushes a translation file to localeapp.com
|
133
|
-
# update - Gets any changes since the last poll and updates the yml files
|
134
|
-
# daemon - Simple daemon that checks every 5 seconds for new translations
|
135
|
-
# HELP
|
136
|
-
# end
|
91
|
+
puts slop unless ARGV.empty?
|
@@ -12,6 +12,18 @@ Feature: localeapp executable
|
|
12
12
|
pull - Pulls all translations from localeapp.com
|
13
13
|
"""
|
14
14
|
|
15
|
+
Scenario: Running a command that doesn't exist
|
16
|
+
In order to warn of a bad command
|
17
|
+
When I run `localeapp foo`
|
18
|
+
Then the output should contain:
|
19
|
+
"""
|
20
|
+
Usage: localeapp COMMAND [options]
|
21
|
+
|
22
|
+
COMMAND:
|
23
|
+
install <api_key> - Creates new configuration files and confirms key works
|
24
|
+
pull - Pulls all translations from localeapp.com
|
25
|
+
"""
|
26
|
+
|
15
27
|
Scenario: Running install
|
16
28
|
In order to configure my project and check my api key is correct
|
17
29
|
When I have a valid project on localeapp.com with api key "MYAPIKEY"
|
data/lib/localeapp/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Localeapp
|
2
|
-
VERSION = "0.1.
|
3
|
-
end
|
2
|
+
VERSION = "0.1.2"
|
3
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: localeapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Christopher Dell
|