Permalink
Browse files

Fix for issue #56.

  • Loading branch information...
dklimkin committed Feb 6, 2012
1 parent 71a7ed4 commit 3960c44bb9a08f86a7c73d2945134a1c5d343c6c
@@ -20,11 +20,11 @@
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
-require 'ads_common/api_config'
+require 'ads_common/version'
Gem::Specification.new do |s|
s.name = 'google-ads-common'
- s.version = AdsCommon::ApiConfig::ADS_COMMON_VERSION
+ s.version = AdsCommon::ApiConfig::CLIENT_LIB_VERSION
s.summary = 'Common code for Google Ads APIs'
s.description = 'Essential utilities shared by all Ads Ruby client libraries'
s.homepage = 'http://code.google.com/p/google-api-ads-ruby/'
@@ -21,13 +21,13 @@
# Helper methods for loading and managing services for an API. Defines methods
# to be included as class modules in a service class for a specific API.
+require 'ads_common/version.rb'
+
module AdsCommon
# Contains helper methods for loading and managing the available services.
# This module is meant to be imported into API-specific modules.
module ApiConfig
- ADS_COMMON_VERSION = '0.6.3'
-
# Get the available API versions.
#
# Returns:
@@ -50,7 +50,7 @@ def get_code_template()
def prepare_template_strings()
@generator_stamp = "Code generated by AdsCommon library %s on %s." %
- [AdsCommon::ApiConfig::ADS_COMMON_VERSION,
+ [AdsCommon::ApiConfig::CLIENT_LIB_VERSION,
Time.now.strftime("%Y-%m-%d %H:%M:%S")]
@modules_open_string = 'module ' +
[@api_name, @version.to_s.upcase, @service_name].join('; module ')
@@ -0,0 +1,26 @@
+# Encoding: utf-8
+#
+# Authors:: api.dklimkin@gmail.com (Danial Klimkin)
+#
+# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
+#
+# License:: Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Module to keep the current library version.
+
+module AdsCommon
+ module ApiConfig
+ CLIENT_LIB_VERSION = '0.6.3'
+ end
+end
@@ -20,7 +20,7 @@
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
-require 'adwords_api/api_config'
+require 'adwords_api/version'
Gem::Specification.new do |s|
s.name = 'google-adwords-api'
@@ -24,6 +24,8 @@
require 'ads_common/api_config'
+require 'adwords_api/version'
+
module AdwordsApi
# Contains helper methods for loading and managing the available services.
@@ -41,7 +43,6 @@ class << ApiConfig
# Set other constants
API_NAME = 'AdwordsApi'
- CLIENT_LIB_VERSION = '0.5.1'
DEFAULT_CONFIG_FILENAME = 'adwords_api.yml'
# Configure the services available to each version
@@ -0,0 +1,26 @@
+# Encoding: utf-8
+#
+# Authors:: api.dklimkin@gmail.com (Danial Klimkin)
+#
+# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
+#
+# License:: Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Module to keep the current library version.
+
+module AdwordsApi
+ module ApiConfig
+ CLIENT_LIB_VERSION = '0.5.1'
+ end
+end
@@ -20,7 +20,7 @@
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
-require 'dfp_api/api_config'
+require 'dfp_api/version'
Gem::Specification.new do |s|
s.name = 'google-dfp-api'
@@ -24,6 +24,8 @@
require 'ads_common/api_config'
+require 'adwords_api/version'
+
module DfpApi
# Contains helper methods for loading and managing the available services.
@@ -40,7 +42,6 @@ class << ApiConfig
# Set other constants
API_NAME = 'DfpApi'
- CLIENT_LIB_VERSION = '0.2.8'
DEFAULT_CONFIG_FILENAME = 'dfp_api.yml'
# Configure the services available to each version
@@ -0,0 +1,26 @@
+#!/usr/bin/ruby
+#
+# Authors:: api.dklimkin@gmail.com (Danial Klimkin)
+#
+# Copyright:: Copyright 2012, Google Inc. All Rights Reserved.
+#
+# License:: Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Module to keep the current library version.
+
+module DfpApi
+ module ApiConfig
+ CLIENT_LIB_VERSION = '0.2.8'
+ end
+end

0 comments on commit 3960c44

Please sign in to comment.