mygengo_string 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +37 -0
- data/VERSION +1 -1
- data/mygengo_string.gemspec +1 -1
- data/tasks/mygengo.rake +0 -18
- metadata +3 -3
data/README.rdoc
CHANGED
|
@@ -2,6 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
Description goes here.
|
|
4
4
|
|
|
5
|
+
== Installation
|
|
6
|
+
|
|
7
|
+
1.
|
|
8
|
+
Add this to you Gemfile
|
|
9
|
+
|
|
10
|
+
group :development, :test do
|
|
11
|
+
gem 'mygengo_string'
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
Do you put it into prpoduction
|
|
15
|
+
|
|
16
|
+
2.
|
|
17
|
+
Put this into lib/tasks/mygengo.rake
|
|
18
|
+
Dir["#{Gem.searcher.find('mygengo_string').full_gem_path}/tasks/*.rake"].each { |ext| load ext }
|
|
19
|
+
|
|
20
|
+
3.
|
|
21
|
+
Add a mygengo.yml file to your #{Rails.root.to_s}/config directory with the following lines
|
|
22
|
+
development:
|
|
23
|
+
token: TOKEN
|
|
24
|
+
project: PROJECT_NAME
|
|
25
|
+
|
|
26
|
+
You man optionally add default languages that you would be pulling most often
|
|
27
|
+
development:
|
|
28
|
+
token: TOKEN
|
|
29
|
+
project: PROJECT_NAME
|
|
30
|
+
languages: en,ru
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
== Usage
|
|
34
|
+
|
|
35
|
+
After this is configured you can run the rake task
|
|
36
|
+
rake mygengo:locale
|
|
37
|
+
|
|
38
|
+
In addition, if you would like to pull down only specific languages
|
|
39
|
+
|
|
40
|
+
rake mygengo:locale languages=ru
|
|
41
|
+
|
|
5
42
|
== Contributing to mygengo_string
|
|
6
43
|
|
|
7
44
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.2
|
data/mygengo_string.gemspec
CHANGED
data/tasks/mygengo.rake
CHANGED
|
@@ -1,23 +1,5 @@
|
|
|
1
1
|
require 'my_gengo_locale_downloader'
|
|
2
2
|
|
|
3
|
-
#Add a mygengo.yml file to your #{Rails.root.to_s}/config directory with the following lines
|
|
4
|
-
#development:
|
|
5
|
-
# token: TOKEN
|
|
6
|
-
# project: PROJECT_NAME
|
|
7
|
-
#
|
|
8
|
-
#You man optionally add default languages that you would be pulling most often
|
|
9
|
-
#development:
|
|
10
|
-
# token: TOKEN
|
|
11
|
-
# project: PROJECT_NAME
|
|
12
|
-
# languages: en,ru
|
|
13
|
-
#
|
|
14
|
-
#After this is configured you can run the rake task
|
|
15
|
-
# rake mygengo:locale
|
|
16
|
-
#
|
|
17
|
-
#In addition, if you would like to pull down only specific languages
|
|
18
|
-
#
|
|
19
|
-
#rake mygengo:locale languages=ru
|
|
20
|
-
|
|
21
3
|
namespace :mygengo do
|
|
22
4
|
desc "Download locale files from mygengo string account"
|
|
23
5
|
task :locale do
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mygengo_string
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.0.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ilya Katz
|