bigcommerce 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1 +1,14 @@
1
- #require "bundler/gem_tasks"
1
+
2
+ task :build do
3
+ sh "gem build bigcommerce.gemspec"
4
+ end
5
+
6
+ task :publish => :build do
7
+ sh "gem push bigcommerce"
8
+ end
9
+
10
+ task :clean do
11
+ sh "rm *.gem"
12
+ end
13
+
14
+ task :release => [:publish, :clean]
data/bigcommerce.gemspec CHANGED
@@ -1,11 +1,12 @@
1
+
1
2
  Gem::Specification.new do |s|
2
3
  s.name = "bigcommerce"
3
- s.version = "0.0.2"
4
- s.date = "2011-09-12"
4
+ s.version = "0.0.3"
5
+ s.date = "2011-10-14"
5
6
  s.summary = "Enables Ruby applications to communicate with the BigCommerce API"
6
7
  s.email = "dev-accounts@bigcommerce.com"
7
8
  s.homepage = "http://github.com/bigcommerce/bigcommerce-api-ruby"
8
- s.description = "Enables Ruby applications to communicate with the BigCommerce API"
9
+ s.description = "Enables Ruby applications to communicate with the BigCommerce API V2 (currently in beta trial)."
9
10
  s.has_rdoc = false
10
11
  s.authors = ["BigCommerce"]
11
12
  s.files = ["LICENSE", "Rakefile", "README.md", "bigcommerce.gemspec"] + Dir['**/*.rb'] + Dir['**/*.crt']
@@ -28,6 +28,7 @@ module BigCommerce
28
28
  uri = URI.parse(url)
29
29
 
30
30
  http = Net::HTTP.new(uri.host, uri.port)
31
+ http.use_ssl = true
31
32
 
32
33
  request = case method
33
34
  when :get then Net::HTTP::Get.new(uri.request_uri)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigcommerce
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
4
+ hash: 25
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - BigCommerce
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-12 00:00:00 +10:00
19
- default_executable:
18
+ date: 2011-10-14 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: json
@@ -32,7 +31,7 @@ dependencies:
32
31
  version: "0"
33
32
  type: :runtime
34
33
  version_requirements: *id001
35
- description: Enables Ruby applications to communicate with the BigCommerce API
34
+ description: Enables Ruby applications to communicate with the BigCommerce API V2 (currently in beta trial).
36
35
  email: dev-accounts@bigcommerce.com
37
36
  executables: []
38
37
 
@@ -45,12 +44,10 @@ files:
45
44
  - Rakefile
46
45
  - README.md
47
46
  - bigcommerce.gemspec
48
- - lib/bigcommerce/version.rb
49
47
  - lib/bigcommerce/api.rb
50
48
  - lib/bigcommerce/connection.rb
49
+ - lib/bigcommerce/version.rb
51
50
  - lib/bigcommerce.rb
52
- - run.rb
53
- has_rdoc: true
54
51
  homepage: http://github.com/bigcommerce/bigcommerce-api-ruby
55
52
  licenses: []
56
53
 
@@ -80,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
77
  requirements: []
81
78
 
82
79
  rubyforge_project:
83
- rubygems_version: 1.3.7
80
+ rubygems_version: 1.8.11
84
81
  signing_key:
85
82
  specification_version: 3
86
83
  summary: Enables Ruby applications to communicate with the BigCommerce API
data/run.rb DELETED
@@ -1,11 +0,0 @@
1
- require "lib/bigcommerce.rb"
2
- require "pp"
3
-
4
- api = BigCommerce::Api.new({
5
- :store_url => "http://bigcommerce.local",
6
- :username => "admin",
7
- :api_key => "d81aada4c19c34d913e18f07fd7f36ca"
8
- })
9
-
10
- pp api.get_orders_count
11
-