ad_gear_client 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +24 -22
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/ad_gear_client.gemspec +2 -2
- metadata +2 -2
data/README.rdoc
CHANGED
|
@@ -10,41 +10,41 @@ AdGear is a product of Bloom Digital Platforms, a Montreal-based company founded
|
|
|
10
10
|
|
|
11
11
|
=== Installation
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
$ gem install ad_gear_client -s http://gemcutter.org/
|
|
14
14
|
|
|
15
15
|
=== Usage
|
|
16
16
|
|
|
17
17
|
Create a config file, such as config/ad_gear.yml
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
# Sample ad_gear.yml configuration file. This file uses the same environment specifications as Rails, but they are actually optional
|
|
20
|
+
development: &defaults
|
|
21
|
+
site: http://adgear.local/api
|
|
22
|
+
user: francois
|
|
23
|
+
password: 94457f97dd3aa153c05257104e59a90f41a8110184cdefc8e52e4e295e48a782
|
|
24
|
+
use_basic_authentication: false
|
|
25
|
+
use_digest_authentication: true
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
# This is RestClient's logger support
|
|
28
|
+
logger: STDERR
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
test:
|
|
31
|
+
<<: *defaults
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
production:
|
|
34
|
+
<<: *defaults
|
|
35
|
+
site: http://admin.adgear.com/api
|
|
36
|
+
user: francois
|
|
37
|
+
password: 0
|
|
38
|
+
logger: log/ad_gear.log
|
|
39
39
|
|
|
40
40
|
Then, load the configuration:
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
require "ad_gear_client"
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
AdGear.config = AdGear::Config.new("path/to/ad_gear.yml", RAILS_ENV) # or whatever ENV you need
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
# You can start using the client here
|
|
47
|
+
formats = AdGear::Format.find(:all)
|
|
48
48
|
|
|
49
49
|
The environment is actually optional. If you do not specify it, the +site+, +user+, +password+ and other keys must exist at the root level of the file. If you specify a key, and the YAML file does not have that key at the root, an +AdGear::Config::MissingEnvironmentSpecification+ will be raised (fail early).
|
|
50
50
|
|
|
@@ -57,5 +57,7 @@ This gem also requires the francois-rest-client gem, for file upload support.
|
|
|
57
57
|
== Copyright
|
|
58
58
|
|
|
59
59
|
Copyright (c) 2009 François Beausoleil.
|
|
60
|
+
|
|
60
61
|
Copyright (c) 2009 Bloom Digital Platforms
|
|
62
|
+
|
|
61
63
|
See LICENSE for details.
|
data/Rakefile
CHANGED
|
@@ -9,7 +9,7 @@ begin
|
|
|
9
9
|
gem.name = "ad_gear_client"
|
|
10
10
|
gem.summary = %Q{A Ruby client for accessing AdGear http://bloomdigital.com/}
|
|
11
11
|
gem.email = "francois@teksol.info"
|
|
12
|
-
gem.homepage = "http://github.com/
|
|
12
|
+
gem.homepage = "http://github.com/bloom/ad_gear_client"
|
|
13
13
|
gem.authors = ["François Beausoleil"]
|
|
14
14
|
gem.rubyforge_project = "ad_gear_client"
|
|
15
15
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.1
|
data/ad_gear_client.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{ad_gear_client}
|
|
8
|
-
s.version = "0.4.
|
|
8
|
+
s.version = "0.4.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Fran\303\247ois Beausoleil"]
|
|
@@ -65,7 +65,7 @@ Gem::Specification.new do |s|
|
|
|
65
65
|
"test/fixtures/access-denied-no-auth.txt",
|
|
66
66
|
"test/test_helper.rb"
|
|
67
67
|
]
|
|
68
|
-
s.homepage = %q{http://github.com/
|
|
68
|
+
s.homepage = %q{http://github.com/bloom/ad_gear_client}
|
|
69
69
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
70
70
|
s.require_paths = ["lib"]
|
|
71
71
|
s.rubyforge_project = %q{ad_gear_client}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ad_gear_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- "Fran\xC3\xA7ois Beausoleil"
|
|
@@ -121,7 +121,7 @@ files:
|
|
|
121
121
|
- test/fixtures/access-denied-no-auth.txt
|
|
122
122
|
- test/test_helper.rb
|
|
123
123
|
has_rdoc: true
|
|
124
|
-
homepage: http://github.com/
|
|
124
|
+
homepage: http://github.com/bloom/ad_gear_client
|
|
125
125
|
licenses: []
|
|
126
126
|
|
|
127
127
|
post_install_message:
|