From b05f6f5dbf37e3525520a27195889f133accc476 Mon Sep 17 00:00:00 2001 From: lanrion Date: Fri, 7 Nov 2014 16:22:32 +0800 Subject: [PATCH] 添加 # encoding: utf-8 --- lib/qy_wechat_api.rb | 2 ++ lib/qy_wechat_api/api/department.rb | 2 ++ lib/qy_wechat_api/api/tag.rb | 2 ++ lib/qy_wechat_api/api/user.rb | 2 ++ lib/qy_wechat_api/client.rb | 2 ++ lib/qy_wechat_api/handler/global_code.rb | 1 + 6 files changed, 11 insertions(+), 0 deletions(-) diff --git a/lib/qy_wechat_api.rb b/lib/qy_wechat_api.rb index be90a4b..ef3f2ee 100644 --- a/lib/qy_wechat_api.rb +++ b/lib/qy_wechat_api.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require "rest-client" require 'yajl/json_gem' diff --git a/lib/qy_wechat_api/api/department.rb b/lib/qy_wechat_api/api/department.rb index 7bfc54b..ebf70c1 100644 --- a/lib/qy_wechat_api/api/department.rb +++ b/lib/qy_wechat_api/api/department.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + module QyWechatApi module Api class Department < Base diff --git a/lib/qy_wechat_api/api/tag.rb b/lib/qy_wechat_api/api/tag.rb index c49169b..a3ef301 100644 --- a/lib/qy_wechat_api/api/tag.rb +++ b/lib/qy_wechat_api/api/tag.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + module QyWechatApi module Api class Tag < Base diff --git a/lib/qy_wechat_api/api/user.rb b/lib/qy_wechat_api/api/user.rb index 8bc48c2..02d7c0c 100644 --- a/lib/qy_wechat_api/api/user.rb +++ b/lib/qy_wechat_api/api/user.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + module QyWechatApi module Api class User < Base diff --git a/lib/qy_wechat_api/client.rb b/lib/qy_wechat_api/client.rb index b6a3603..b002e17 100644 --- a/lib/qy_wechat_api/client.rb +++ b/lib/qy_wechat_api/client.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + module QyWechatApi class Client attr_accessor :corp_id, :corp_secret, :expired_at # Time.now + expires_in diff --git a/lib/qy_wechat_api/handler/global_code.rb b/lib/qy_wechat_api/handler/global_code.rb index d402acb..e7fa60d 100644 --- a/lib/qy_wechat_api/handler/global_code.rb +++ b/lib/qy_wechat_api/handler/global_code.rb @@ -1,3 +1,4 @@ +# encoding: utf-8 module QyWechatApi GLOBAL_CODES = { -1 => "系统繁忙", -- libgit2 0.21.0