shopify_api 1.1.0 → 1.1.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/CHANGELOG +6 -0
- data/Rakefile +2 -18
- data/lib/shopify_api.rb +2 -2
- data/shopify_api.gemspec +2 -6
- metadata +3 -8
- data/VERSION +0 -1
data/CHANGELOG
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
== Version 1.1.1 (October 5, 2010)
|
2
|
+
|
3
|
+
* Remove hard coded xml formatting in API calls
|
4
|
+
* Remove jeweler stuff
|
5
|
+
* Ruby 1.9 encoding fix
|
6
|
+
|
1
7
|
== Version 1.1.0 (September 24, 2010)
|
2
8
|
|
3
9
|
* Add new Events API for Shop, Order, Product, CustomCollection, SmartCollection, Page, Blog and Article
|
data/Rakefile
CHANGED
@@ -1,23 +1,7 @@
|
|
1
|
+
# encoding: UTF-8
|
1
2
|
require 'rubygems'
|
2
3
|
require 'rake'
|
3
4
|
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "shopify_api"
|
8
|
-
gem.summary = "ShopifyAPI is a lightweight gem for accessing the Shopify admin REST web services"
|
9
|
-
gem.description = File.read(File.dirname(__FILE__) + "/README.rdoc")
|
10
|
-
gem.email = "developers@jadedpixel.com"
|
11
|
-
gem.homepage = "http://github.com/Shopify/shopify_api"
|
12
|
-
gem.authors = ["Tobias Lütke", "Cody Fauser", "Dennis Theisen"]
|
13
|
-
gem.rubyforge_project = "shopify-api"
|
14
|
-
gem.add_dependency('activeresource', '>= 2.2.2')
|
15
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
|
-
end
|
17
|
-
rescue LoadError
|
18
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
19
|
-
end
|
20
|
-
|
21
5
|
require 'rake/testtask'
|
22
6
|
Rake::TestTask.new(:test) do |test|
|
23
7
|
test.libs << 'lib' << 'test'
|
@@ -54,4 +38,4 @@ Rake::RDocTask.new do |rdoc|
|
|
54
38
|
rdoc.title = "shopify_api #{version}"
|
55
39
|
rdoc.rdoc_files.include('README*')
|
56
40
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
57
|
-
end
|
41
|
+
end
|
data/lib/shopify_api.rb
CHANGED
@@ -190,7 +190,7 @@ module ShopifyAPI
|
|
190
190
|
# the shop.
|
191
191
|
class Shop < Base
|
192
192
|
def self.current
|
193
|
-
find(:one, :from => "/admin/shop.
|
193
|
+
find(:one, :from => "/admin/shop.#{format.extension}")
|
194
194
|
end
|
195
195
|
|
196
196
|
def metafields
|
@@ -423,7 +423,7 @@ module ShopifyAPI
|
|
423
423
|
if args[0].is_a?(Symbol)
|
424
424
|
super
|
425
425
|
else
|
426
|
-
find(:one, :from => "/admin/assets.
|
426
|
+
find(:one, :from => "/admin/assets.#{format.extension}", :params => {:asset => {:key => args[0]}})
|
427
427
|
end
|
428
428
|
end
|
429
429
|
|
data/shopify_api.gemspec
CHANGED
@@ -1,15 +1,12 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
5
2
|
|
6
3
|
Gem::Specification.new do |s|
|
7
4
|
s.name = %q{shopify_api}
|
8
|
-
s.version = "1.1.
|
5
|
+
s.version = "1.1.1"
|
9
6
|
|
10
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
8
|
s.authors = ["Tobias L\303\274tke", "Cody Fauser", "Dennis Theisen"]
|
12
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-10-05}
|
13
10
|
s.description = %q{= Shopify API
|
14
11
|
|
15
12
|
The Shopify API gem allows Ruby developers to programmatically access the admin section of Shopify stores.
|
@@ -78,7 +75,6 @@ Copyright (c) 2009 "JadedPixel inc.". See LICENSE for details.
|
|
78
75
|
"LICENSE",
|
79
76
|
"README.rdoc",
|
80
77
|
"Rakefile",
|
81
|
-
"VERSION",
|
82
78
|
"lib/shopify_api.rb",
|
83
79
|
"shopify_api.gemspec",
|
84
80
|
"test/order_test.rb",
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 19
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
8
|
+
- 1
|
9
|
+
version: 1.1.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- "Tobias L\xC3\xBCtke"
|
@@ -17,7 +16,7 @@ autorequire:
|
|
17
16
|
bindir: bin
|
18
17
|
cert_chain: []
|
19
18
|
|
20
|
-
date: 2010-
|
19
|
+
date: 2010-10-05 00:00:00 -04:00
|
21
20
|
default_executable:
|
22
21
|
dependencies:
|
23
22
|
- !ruby/object:Gem::Dependency
|
@@ -28,7 +27,6 @@ dependencies:
|
|
28
27
|
requirements:
|
29
28
|
- - ">="
|
30
29
|
- !ruby/object:Gem::Version
|
31
|
-
hash: 3
|
32
30
|
segments:
|
33
31
|
- 2
|
34
32
|
- 2
|
@@ -71,7 +69,6 @@ files:
|
|
71
69
|
- LICENSE
|
72
70
|
- README.rdoc
|
73
71
|
- Rakefile
|
74
|
-
- VERSION
|
75
72
|
- lib/shopify_api.rb
|
76
73
|
- shopify_api.gemspec
|
77
74
|
- test/order_test.rb
|
@@ -91,7 +88,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
88
|
requirements:
|
92
89
|
- - ">="
|
93
90
|
- !ruby/object:Gem::Version
|
94
|
-
hash: 3
|
95
91
|
segments:
|
96
92
|
- 0
|
97
93
|
version: "0"
|
@@ -100,7 +96,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
96
|
requirements:
|
101
97
|
- - ">="
|
102
98
|
- !ruby/object:Gem::Version
|
103
|
-
hash: 3
|
104
99
|
segments:
|
105
100
|
- 0
|
106
101
|
version: "0"
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.1.0
|