Skip to content

Commit

Permalink
Removing RubyGems inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimkin committed Feb 8, 2012
1 parent b974cab commit 5b1e87c
Show file tree
Hide file tree
Showing 752 changed files with 8,869 additions and 699 deletions.
1 change: 1 addition & 0 deletions ads_common/ChangeLog
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,7 @@
0.6.3: 0.6.3:
- Support for CAPTCHA challenge handling. - Support for CAPTCHA challenge handling.
- Added .gemspec and updated packaging process. - Added .gemspec and updated packaging process.
- Removed explicit require for RubyGems.


0.6.2: 0.6.2:
- Requiring Savon as "~>" now. - Requiring Savon as "~>" now.
Expand Down
1 change: 0 additions & 1 deletion ads_common/lib/ads_common/config.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# Configuration handler, can load data from a YAML configuration file and # Configuration handler, can load data from a YAML configuration file and
# rewrite it in memory. # rewrite it in memory.


require 'rubygems'
require 'yaml' require 'yaml'


require 'ads_common/errors' require 'ads_common/errors'
Expand Down
1 change: 0 additions & 1 deletion ads_common/test/test_client_login_handler.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# #
# Tests client login handler methods. # Tests client login handler methods.


require 'rubygems'
require 'test/unit' require 'test/unit'


require 'ads_common/config' require 'ads_common/config'
Expand Down
2 changes: 1 addition & 1 deletion ads_common/test/test_config.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
# #
# Tests the array replies from services. # Tests the array replies from services.


require 'rubygems'
require 'test/unit' require 'test/unit'

require 'ads_common/config' require 'ads_common/config'


class TestConfig < Test::Unit::TestCase class TestConfig < Test::Unit::TestCase
Expand Down
1 change: 0 additions & 1 deletion ads_common/test/test_parameters_validator.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# #
# Tests validator methods. # Tests validator methods.


require 'rubygems'
require 'test/unit' require 'test/unit'


require 'ads_common/errors' require 'ads_common/errors'
Expand Down
1 change: 0 additions & 1 deletion ads_common/test/test_savon_service.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# #
# Tests the array replies from services. # Tests the array replies from services.


require 'rubygems'
require 'test/unit' require 'test/unit'


require 'ads_common/config' require 'ads_common/config'
Expand Down
1 change: 1 addition & 0 deletions adwords_api/ChangeLog
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Require google-ads-common 0.6.3 or later from now on. - Require google-ads-common 0.6.3 or later from now on.
- Support for CAPTCHA challenge handling. - Support for CAPTCHA challenge handling.
- Added .gemspec and updated packaging process. - Added .gemspec and updated packaging process.
- Removed explicit require for RubyGems, see README.


0.5.0: 0.5.0:
- Removed deprecated API versions (pre-v201109). - Removed deprecated API versions (pre-v201109).
Expand Down
34 changes: 18 additions & 16 deletions adwords_api/README
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,25 +33,16 @@ The following gem libraries are required:


== 2 - Using the client library: == 2 - Using the client library:


It's pretty easy to use. Include the library with 'require':
See http://docs.rubygems.org/read/chapter/3#page70 for how to set the rubygem
environment.
$ export RUBYOPT=rubygems
or
$ ruby -rubygems my_program_that_uses_gems

If you are running Ruby 1.8 and do not use the rubygems option, you need to add
require 'rubygems'
at the beginning of your programs.

Then:
gem 'google-adwords-api'
require 'adwords_api' require 'adwords_api'


Then create an API instance:
adwords = AdwordsApi::Api.new adwords = AdwordsApi::Api.new
creates an Api object that will grant you access to all the services for all of
the currently supported vesions of the APIs. It uses a config file in: The created API object will grant you access to all the services for all of the
ENV['HOME']/adwords_api.yml to read all of your configurations. currently supported vesions of the APIs. It uses a config file in:
ENV['HOME']/adwords_api.yml to read all of your configurations by default.

There is an example configuration file shipped with these libraries. There is an example configuration file shipped with these libraries.


You can also pass API a manually constructed config hash like: You can also pass API a manually constructed config hash like:
Expand Down Expand Up @@ -85,6 +76,17 @@ please set the appropriate options in the config file or config hash. E.g.:
:proxy => 'http://user:password@proxy_hostname:8080' :proxy => 'http://user:password@proxy_hostname:8080'
} }


*Note*: if you are using Ruby 1.8 you may need to include RubyGems to be able
to require other gems code. There are several ways to do it, the easiest one is
to pass '-rubygems' parameter to the ruby interpreter:
$ ruby -rubygems my_program_that_uses_gems

you can also set this up in the environment:
$ export RUBYOPT="rubygems"

or add it to the bash configuration file:
$ echo 'export RUBYOPT="rubygems"' >> ~/.bashrc



=== 2.1 - Ruby names for a Ruby library: === 2.1 - Ruby names for a Ruby library:


Expand Down
9 changes: 5 additions & 4 deletions adwords_api/Rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
# #
# AdWords API Rakefile. # AdWords API Rakefile.


require 'rubygems' lib = File.expand_path('../lib/', __FILE__)
require './lib/adwords_api/api_config' $:.unshift lib unless $:.include?(lib)
require './lib/adwords_api/extensions'


# Google common ads library used for wrapper code generation. # Google common ads library used for wrapper code generation.
gem 'google-ads-common'
require 'ads_common/build/savon_generator' require 'ads_common/build/savon_generator'


require 'adwords_api/api_config'
require 'adwords_api/extensions'

desc 'Default target - generate and build.' desc 'Default target - generate and build.'
task :default => [:generate, :build] task :default => [:generate, :build]


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: CreateAccountService.mutate # Tags: CreateAccountService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'
require 'adwords_api/utils' require 'adwords_api/utils'


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AlertService.get # Tags: AlertService.get


require 'rubygems'
require 'adwords_api' require 'adwords_api'
require 'adwords_api/utils' require 'adwords_api/utils'


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: CustomerSyncService.get # Tags: CustomerSyncService.get


require 'rubygems'
require 'adwords_api' require 'adwords_api'
require 'date' require 'date'
require 'pp' require 'pp'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: ServicedAccountService.get # Tags: ServicedAccountService.get


require 'rubygems'
require 'adwords_api' require 'adwords_api'
require 'adwords_api/utils' require 'adwords_api/utils'


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
# #
# Tags: InfoService.get # Tags: InfoService.get


require 'rubygems'
require 'adwords_api' require 'adwords_api'
require 'adwords_api/utils' require 'adwords_api/utils'


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: InfoService.get # Tags: InfoService.get


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupService.mutate # Tags: AdGroupService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# #
# Tags: CampaignService.mutate # Tags: CampaignService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupCriterionService.mutate # Tags: AdGroupCriterionService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupAdService.mutate # Tags: AdGroupAdService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
1 change: 0 additions & 1 deletion adwords_api/examples/v201109/basic_operations/delete_ad.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupAdService.mutate # Tags: AdGroupAdService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupService.mutate # Tags: AdGroupService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: CampaignService.mutate # Tags: CampaignService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupCriterionService.mutate # Tags: AdGroupCriterionService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupService.get # Tags: AdGroupService.get


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# #
# Tags: CampaignService.get # Tags: CampaignService.get


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupCriterionService.get # Tags: AdGroupCriterionService.get


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupAdService.get # Tags: AdGroupAdService.get


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
1 change: 0 additions & 1 deletion adwords_api/examples/v201109/basic_operations/pause_ad.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupAdService.mutate # Tags: AdGroupAdService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupService.mutate # Tags: AdGroupService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: CampaignService.mutate # Tags: CampaignService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupCriterionService.mutate # Tags: AdGroupCriterionService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
# #
# Tags: ExperimentService.mutate # Tags: ExperimentService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
# Tags: MutateJobService.mutate, MutateJobService.get, # Tags: MutateJobService.mutate, MutateJobService.get,
# MutateJobService.getResult # MutateJobService.getResult


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: GeoLocationService.get, CampaignAdExtensionService.mutate # Tags: GeoLocationService.get, CampaignAdExtensionService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
# #
# Tags: AdExtensionOverrideService.mutate # Tags: AdExtensionOverrideService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupAdService.get # Tags: AdGroupAdService.get


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: ExperimentService.mutate # Tags: ExperimentService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupAdService.mutate, AdParamService.mutate # Tags: AdGroupAdService.mutate, AdParamService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: CampaignService.mutate # Tags: CampaignService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# http://code.google.com/apis/adwords/docs/guides/bestpractices.html#auth_tokens # http://code.google.com/apis/adwords/docs/guides/bestpractices.html#auth_tokens


require 'rubygems'
require 'adwords_api' require 'adwords_api'


API_VERSION = :v201109 API_VERSION = :v201109
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# #
# Tags: AdGroupCriterionService.mutate # Tags: AdGroupCriterionService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'
require 'adwords_api/utils' require 'adwords_api/utils'


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# #
# Tags: AdGroupAdService.mutate # Tags: AdGroupAdService.mutate


require 'rubygems'
require 'adwords_api' require 'adwords_api'
require 'adwords_api/utils' require 'adwords_api/utils'


Expand Down
Loading

0 comments on commit 5b1e87c

Please sign in to comment.