express_translate 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,14 +23,12 @@ I18n Translation Interface for end user in Rails app
23
23
  ## Installation
24
24
  ### 1. Gemfile
25
25
  ```bash
26
- gem 'express_translate', '~> 1.0.9'
26
+ gem 'express_translate', '~> 1.0.10'
27
27
  ```
28
28
 
29
29
  ### 2. Setup
30
30
  Run on terminal.
31
31
 
32
- ```gem install express_translate```
33
-
34
32
  ```bundle install```
35
33
 
36
34
  ### 3. Install
@@ -84,17 +82,27 @@ Note:
84
82
 
85
83
  ## Support
86
84
 
87
- ### Import files
85
+ #### Import files
88
86
  * CSV file
89
87
  * YML file
90
88
 
91
- ### Export files
89
+ #### Export files
92
90
  * CSV file
93
91
 
94
- ### Application
92
+ #### Application
95
93
  * Backend for Ruby on Rails
96
94
  * Frontend (Single Page Application) with I18next (can you see more info: http://i18next.com)
97
95
 
96
+ ## Supported ruby versions
97
+ - This library aims to support and is tested against the following Ruby implementations:
98
+ * Ruby 1.9.3
99
+ * Ruby 2.0.0
100
+ * Ruby 2.1.2
101
+
102
+ ## Supported rails versions
103
+ - This library aims to support the following Rails implementations:
104
+ * More than Rails 3.0
105
+
98
106
  ## Contributing to formnestic
99
107
 
100
108
  - Contribution, Suggestion and Issues are very much appreciated :). Please also fork and send your pull request!
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.9
1
+ 1.0.10
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "express_translate"
8
- s.version = "1.0.9"
8
+ s.version = "1.0.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Karl"]
@@ -4,7 +4,12 @@ module ExpressTranslate
4
4
  require 'redis'
5
5
 
6
6
  def self.redis
7
- @redis ||= Redis.new(host: ExpressTranslate.config["connect"]["host"], port: ExpressTranslate.config["connect"]["port"], db: ExpressTranslate.config["connect"]["db"])
7
+ host = ExpressTranslate.config["connect"]["host"]
8
+ port = ExpressTranslate.config["connect"]["port"]
9
+ db = ExpressTranslate.config["connect"]["db"]
10
+ password =ExpressTranslate.config["connect"]["password"]
11
+
12
+ @redis ||= Redis.new(:url => "redis://:#{password}@#{host}:#{port}/#{db}")
8
13
  end
9
14
 
10
15
  def self.set(key, obj)
@@ -2,6 +2,7 @@ connect:
2
2
  host: "0.0.0.0"
3
3
  port: 6379
4
4
  db: 10
5
+ password:
5
6
 
6
7
  # Default
7
8
  language:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: express_translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -409,7 +409,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
409
409
  version: '0'
410
410
  segments:
411
411
  - 0
412
- hash: 2191332962475855690
412
+ hash: -3428626290468336478
413
413
  required_rubygems_version: !ruby/object:Gem::Requirement
414
414
  none: false
415
415
  requirements: