amazon_seller_central 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,11 +1,15 @@
1
1
  # amazon_seller_central
2
2
 
3
- This gem is intended to wrap Amazon's SellerCentral pages with a Ruby API. Currently this gem supports accessing buyer feedback only.
3
+ This gem is intended to wrap Amazon's SellerCentral pages with a Ruby
4
+ API. Currently this gem supports accessing buyer feedback only.
4
5
 
5
- ## Configuration
6
+ ## Setup
6
7
 
7
- You need to provide the email address and password you use to login to
8
- Amazon SellerCentral via the `AmazonSellerCentral.configure` method:
8
+ You need to require the gem and then provide the email address and
9
+ password you use to login to Amazon SellerCentral via the
10
+ `AmazonSellerCentral.configure` method:
11
+
12
+ require 'amazon_seller_central'
9
13
 
10
14
  AmazonSellerCentral.configure do |config|
11
15
  config.login_email "seller@mydomain.com"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -0,0 +1,106 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{amazon_seller_central}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["optoro"]
12
+ s.date = %q{2011-07-09}
13
+ s.description = %q{This gem is intended to wrap Amazon's SellerCentral pages with a Ruby API. Currently this gem supports accessing buyer feedback only.}
14
+ s.email = %q{dev@optoro.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "Guardfile",
25
+ "LICENSE.txt",
26
+ "README.md",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "amazon_seller_central.gemspec",
30
+ "lib/amazon_seller_central.rb",
31
+ "lib/amazon_seller_central/configuration.rb",
32
+ "lib/amazon_seller_central/feedback.rb",
33
+ "lib/amazon_seller_central/feedback_page.rb",
34
+ "lib/amazon_seller_central/mechanizer.rb",
35
+ "spec/amazon_seller_central_spec.rb",
36
+ "spec/lib/feedback_page_spec.rb",
37
+ "spec/lib/feedback_spec.rb",
38
+ "spec/lib/mechanizer_spec.rb",
39
+ "spec/spec_helper.rb",
40
+ "spec/support/sample_pages.rb",
41
+ "spec/support/sample_pages/Feedback Manager.html",
42
+ "spec/support/sample_pages/Feedback Page 1.html",
43
+ "spec/support/sample_pages/Feedback Page 2.html",
44
+ "spec/support/sample_pages/Feedback Page Last.html",
45
+ "spec/support/sample_pages/Seller Central Homepage.html",
46
+ "spec/support/sample_pages/Seller Central Redirect.html",
47
+ "spec/support/sample_pages/Seller Central.html"
48
+ ]
49
+ s.homepage = %q{http://github.com/optoro/amazon_seller_central}
50
+ s.licenses = ["MIT"]
51
+ s.require_paths = ["lib"]
52
+ s.rubygems_version = %q{1.5.2}
53
+ s.summary = %q{Ruby API to access Amazon's SellerCentral}
54
+
55
+ if s.respond_to? :specification_version then
56
+ s.specification_version = 3
57
+
58
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
59
+ s.add_runtime_dependency(%q<mechanize>, [">= 1.0.0"])
60
+ s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
61
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
62
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.3"])
63
+ s.add_development_dependency(%q<rcov>, [">= 0"])
64
+ s.add_development_dependency(%q<yard>, [">= 0"])
65
+ s.add_development_dependency(%q<guard>, [">= 0"])
66
+ s.add_development_dependency(%q<guard-rspec>, [">= 0"])
67
+ s.add_development_dependency(%q<rb-inotify>, [">= 0.8.5"])
68
+ s.add_development_dependency(%q<libnotify>, [">= 0"])
69
+ s.add_development_dependency(%q<ffi>, [">= 0"])
70
+ s.add_development_dependency(%q<faker>, [">= 0"])
71
+ s.add_development_dependency(%q<fakeweb>, [">= 0"])
72
+ s.add_development_dependency(%q<ruby-debug>, [">= 0"])
73
+ else
74
+ s.add_dependency(%q<mechanize>, [">= 1.0.0"])
75
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
76
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
77
+ s.add_dependency(%q<jeweler>, ["~> 1.6.3"])
78
+ s.add_dependency(%q<rcov>, [">= 0"])
79
+ s.add_dependency(%q<yard>, [">= 0"])
80
+ s.add_dependency(%q<guard>, [">= 0"])
81
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
82
+ s.add_dependency(%q<rb-inotify>, [">= 0.8.5"])
83
+ s.add_dependency(%q<libnotify>, [">= 0"])
84
+ s.add_dependency(%q<ffi>, [">= 0"])
85
+ s.add_dependency(%q<faker>, [">= 0"])
86
+ s.add_dependency(%q<fakeweb>, [">= 0"])
87
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
88
+ end
89
+ else
90
+ s.add_dependency(%q<mechanize>, [">= 1.0.0"])
91
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
92
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
93
+ s.add_dependency(%q<jeweler>, ["~> 1.6.3"])
94
+ s.add_dependency(%q<rcov>, [">= 0"])
95
+ s.add_dependency(%q<yard>, [">= 0"])
96
+ s.add_dependency(%q<guard>, [">= 0"])
97
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
98
+ s.add_dependency(%q<rb-inotify>, [">= 0.8.5"])
99
+ s.add_dependency(%q<libnotify>, [">= 0"])
100
+ s.add_dependency(%q<ffi>, [">= 0"])
101
+ s.add_dependency(%q<faker>, [">= 0"])
102
+ s.add_dependency(%q<fakeweb>, [">= 0"])
103
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
104
+ end
105
+ end
106
+
@@ -16,7 +16,7 @@ module AmazonSellerCentral
16
16
  end
17
17
 
18
18
  def agent
19
- @agent ||= Mechanize.new {|ag| ag.user_agent_alias = MASQUERADE_AGENTS.rand }
19
+ @agent ||= Mechanize.new {|ag| ag.user_agent_alias = MASQUERADE_AGENTS[rand(MASQUERADE_AGENTS.size)] }
20
20
  end
21
21
 
22
22
  def login_to_seller_central
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon_seller_central
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - optoro
@@ -243,6 +243,7 @@ files:
243
243
  - README.md
244
244
  - Rakefile
245
245
  - VERSION
246
+ - amazon_seller_central.gemspec
246
247
  - lib/amazon_seller_central.rb
247
248
  - lib/amazon_seller_central/configuration.rb
248
249
  - lib/amazon_seller_central/feedback.rb