express_translate 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,6 +2,8 @@ Express Translate
2
2
  =====
3
3
  I18n Translation Interface for end user in Rails app
4
4
 
5
+ <!-- ![Express Translate](/reviews/thumb.png) -->
6
+
5
7
  ```bash
6
8
  __ _____ _ _
7
9
  /__\_ ___ __ _ __ ___ ___ ___ /__ \_ __ __ _ _ __ ___| | __ _| |_ ___
@@ -20,10 +22,16 @@ I18n Translation Interface for end user in Rails app
20
22
 
21
23
  =====
22
24
 
25
+ [Demo Link](http://express-translate.herokuapp.com)
26
+
27
+ Login with demo account:
28
+ username: ``express_translate``
29
+ password: ``password``
30
+
23
31
  ## Installation
24
32
  ### 1. Gemfile
25
33
  ```bash
26
- gem 'express_translate', '~> 1.0.11'
34
+ gem 'express_translate', '~> 1.0.12'
27
35
  ```
28
36
 
29
37
  ### 2. Setup
data/Rakefile CHANGED
@@ -16,11 +16,12 @@ Jeweler::Tasks.new do |gem|
16
16
  gem.name = "express_translate"
17
17
  gem.homepage = "https://github.com/RubifyTechnology/express_translate"
18
18
  gem.license = "MIT"
19
- gem.summary = %Q{Express Translate for you}
20
- gem.description = %Q{Express Translate for you}
19
+ gem.summary = %Q{I18n Translation Interface for end user in Rails app}
20
+ gem.description = %Q{I18n Translation Interface for end user in Rails app}
21
21
  gem.email = "karl@rubify.com"
22
22
  gem.authors = ["Karl"]
23
23
  gem.version = File.exist?('VERSION') ? File.read('VERSION') : ""
24
+ gem.files.exclude 'reviews'
24
25
  # dependencies defined in Gemfile
25
26
  end
26
27
  Jeweler::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.11
1
+ 1.0.12
@@ -17,9 +17,10 @@ class ExpressTranslate::AccountController < ExpressTranslate::BaseController
17
17
  def login_check
18
18
  account = Account.find(params[:username])
19
19
  if account.present? and account["password"] == Account.encoding(params[:password])
20
- account["token"] = new_token
20
+ token = new_token
21
+ account["token"] = [account["token"], token].join
21
22
  Account.update(account)
22
- render :json => {success: true, token: account["token"], username: account["username"]}
23
+ render :json => {success: true, token: token, username: account["username"]}
23
24
  else
24
25
  render :json => {success: false, error: "Username or password is incorrect!"}
25
26
  end
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "express_translate"
8
- s.version = "1.0.11"
8
+ s.version = "1.0.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Karl"]
12
12
  s.date = "2014-07-04"
13
- s.description = "Express Translate for you"
13
+ s.description = "I18n Translation Interface for end user in Rails app"
14
14
  s.email = "karl@rubify.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
@@ -221,6 +221,7 @@ Gem::Specification.new do |s|
221
221
  "node_modules/redis/package.json",
222
222
  "node_modules/redis/test-unref.js",
223
223
  "node_modules/redis/test.js",
224
+ "reviews/thumb.png",
224
225
  "spec/.rspec",
225
226
  "spec/controllers/account_controller_spec.rb",
226
227
  "spec/controllers/ajax/codes_controller_spec.rb",
@@ -237,7 +238,7 @@ Gem::Specification.new do |s|
237
238
  s.licenses = ["MIT"]
238
239
  s.require_paths = ["lib"]
239
240
  s.rubygems_version = "1.8.23"
240
- s.summary = "Express Translate for you"
241
+ s.summary = "I18n Translation Interface for end user in Rails app"
241
242
 
242
243
  if s.respond_to? :specification_version then
243
244
  s.specification_version = 3
@@ -17,7 +17,7 @@ module ExpressTranslate
17
17
 
18
18
  # Find account with token, check status login bt cookie
19
19
  def self.find_by_token(token)
20
- _find = self.all.select{|s| (s["token"] == token)}
20
+ _find = self.all.select{|s| (s["token"].index(token).to_i >= 0)}
21
21
  return _find.count > 0 ? _find[0] : nil
22
22
  end
23
23
 
data/reviews/thumb.png ADDED
Binary file
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.11
4
+ version: 1.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -171,7 +171,7 @@ dependencies:
171
171
  - - ! '>='
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
- description: Express Translate for you
174
+ description: I18n Translation Interface for end user in Rails app
175
175
  email: karl@rubify.com
176
176
  executables: []
177
177
  extensions: []
@@ -383,6 +383,7 @@ files:
383
383
  - node_modules/redis/package.json
384
384
  - node_modules/redis/test-unref.js
385
385
  - node_modules/redis/test.js
386
+ - reviews/thumb.png
386
387
  - spec/.rspec
387
388
  - spec/controllers/account_controller_spec.rb
388
389
  - spec/controllers/ajax/codes_controller_spec.rb
@@ -409,7 +410,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
409
410
  version: '0'
410
411
  segments:
411
412
  - 0
412
- hash: 3832431762245078865
413
+ hash: -3008604440187161714
413
414
  required_rubygems_version: !ruby/object:Gem::Requirement
414
415
  none: false
415
416
  requirements:
@@ -421,5 +422,5 @@ rubyforge_project:
421
422
  rubygems_version: 1.8.23
422
423
  signing_key:
423
424
  specification_version: 3
424
- summary: Express Translate for you
425
+ summary: I18n Translation Interface for end user in Rails app
425
426
  test_files: []