mobile_version_thrift_client 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fe2d5e635606172f110cda43287b1faf9da5339
4
- data.tar.gz: 7cf6aeef7bfc62dc7b0deea89bcb15cbeaa35445
3
+ metadata.gz: 49034f545c67e2f89e88a93001362f60a66b7c75
4
+ data.tar.gz: 7f9a358430483db1f2ef1079094f291eda568f3e
5
5
  SHA512:
6
- metadata.gz: 00a5db61597ad14aaff1ef429402184eabfba4032a3541bbc30a2b1766fb9f9cfe419aaf564adc35ec627f88673c82072fec0337ae093ba4e031791134e7a71b
7
- data.tar.gz: adc2f7c57b0a6093fd11bcfd330ada0d5eb25559a4e8787dc76528218caa520f6c5a2fc724754c98e4401542a0acec7828efb5fc7997a641a28d8820c002789c
6
+ metadata.gz: 67a0b127cc06f339b6703a48565a886848f5c9bff8b8128736cc7a0575e5ea948ba8c723b077deea5300de555b846370346a76835d51dee9983d2319102f823b
7
+ data.tar.gz: ac892b080c2f6ca08e3c667677c37605b8be1eef702430287b6228c99ec3c8f8e7f35e7b6296386978943013eb981878ca8d4a3e0b76cc4bcc7609a19f897ce6
@@ -52,12 +52,12 @@ module Mobile
52
52
  @logger.error("version manage thrift service destroyed!!")
53
53
  end
54
54
 
55
- def checkForUpgrade(app_definition={}, version=nil)
56
- if app_definition['appId'].nil? || app_definition['appId'].to_i <= 0 || version.nil?
57
- raise 'appId, version can not be null!'
55
+ def checkForUpgrade(app_definition={}, version=nil, device_id=nil)
56
+ if app_definition['appId'].nil? || app_definition['appId'].to_i <= 0 || version.nil? || device_id.nil?
57
+ raise 'appId, version, device_id can not be null!'
58
58
  end
59
59
  app_definition_struct = Mobile::Version::Thrift::AppDefinition.new(app_definition)
60
- return @thrift_client.checkForUpgrade(app_definition_struct, version)
60
+ return @thrift_client.checkForUpgrade(app_definition_struct, version, device_id)
61
61
  end
62
62
 
63
63
  def getSecurityToken(app_definition={}, version=nil)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobile_version_thrift_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rick
@@ -29,17 +29,17 @@ require_paths:
29
29
  - lib
30
30
  required_ruby_version: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '>='
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  requirements: []
41
41
  rubyforge_project:
42
- rubygems_version: 2.0.3
42
+ rubygems_version: 2.0.14
43
43
  signing_key:
44
44
  specification_version: 4
45
45
  summary: mobile_version_thrift_client is a thrift client of mobile-version