spree_api 0.60.6 → 0.70.RC1
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/app/assets/javascripts/admin/all.js +9 -0
- data/app/assets/javascripts/admin/spree.js +5 -0
- data/app/assets/javascripts/admin/spree_api.js +2 -0
- data/app/assets/javascripts/store/all.js +8 -0
- data/app/assets/javascripts/store/spree.js +5 -0
- data/app/assets/javascripts/store/spree_api.js +2 -0
- data/app/assets/stylesheets/admin/all.css +9 -0
- data/app/assets/stylesheets/admin/spree.css +7 -0
- data/app/assets/stylesheets/admin/spree_api.css +4 -0
- data/app/assets/stylesheets/store/all.css +9 -0
- data/app/assets/stylesheets/store/spree.css +7 -0
- data/app/assets/stylesheets/store/spree_api.css +4 -0
- data/app/overrides/api_admin_user_edit_form.rb +6 -0
- data/lib/spree_api.rb +8 -4
- metadata +46 -30
- data/lib/spree_api_hooks.rb +0 -3
- data/lib/tasks/install.rake +0 -23
@@ -0,0 +1,9 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
+
// the compiled file.
|
6
|
+
//
|
7
|
+
|
8
|
+
//= require admin/spree_api
|
9
|
+
//= require_tree .
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
+
// the compiled file.
|
6
|
+
//
|
7
|
+
//= require store/spree_api
|
8
|
+
//= require_tree .
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
+
*
|
6
|
+
*= require admin/spree_api
|
7
|
+
*= require_self
|
8
|
+
*= require_tree .
|
9
|
+
*/
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
+
*
|
6
|
+
*= require store/spree_api
|
7
|
+
*= require_self
|
8
|
+
*= require_tree .
|
9
|
+
*/
|
data/lib/spree_api.rb
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
require 'spree_core'
|
2
|
-
require '
|
2
|
+
require 'spree_auth'
|
3
3
|
|
4
4
|
module SpreeApi
|
5
5
|
class Engine < Rails::Engine
|
6
|
-
|
6
|
+
engine_name 'spree_api'
|
7
7
|
|
8
|
+
def self.activate
|
8
9
|
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
|
9
|
-
|
10
|
+
Rails.application.config.cache_classes ? require(c) : load(c)
|
11
|
+
end
|
12
|
+
Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/*.rb")) do |c|
|
13
|
+
Rails.application.config.cache_classes ? require(c) : load(c)
|
10
14
|
end
|
11
|
-
|
12
15
|
end
|
16
|
+
|
13
17
|
config.autoload_paths += %W(#{config.root}/lib)
|
14
18
|
config.to_prepare &method(:activate).to_proc
|
15
19
|
end
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 11094103
|
5
|
+
prerelease: 5
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
|
8
|
+
- 70
|
9
|
+
- RC
|
10
|
+
- 1
|
11
|
+
version: 0.70.RC1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- David North
|
@@ -15,41 +16,43 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date:
|
19
|
+
date: 2011-09-09 00:00:00 Z
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
-
type: :runtime
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
23
|
none: false
|
25
24
|
requirements:
|
26
25
|
- - "="
|
27
26
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
27
|
+
hash: 11094103
|
29
28
|
segments:
|
30
29
|
- 0
|
31
|
-
-
|
32
|
-
-
|
33
|
-
|
34
|
-
|
30
|
+
- 70
|
31
|
+
- RC
|
32
|
+
- 1
|
33
|
+
version: 0.70.RC1
|
35
34
|
name: spree_core
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
prerelease: false
|
38
35
|
type: :runtime
|
39
|
-
|
36
|
+
prerelease: false
|
37
|
+
requirement: *id001
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - "="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
hash:
|
44
|
+
hash: 11094103
|
45
45
|
segments:
|
46
46
|
- 0
|
47
|
-
-
|
48
|
-
-
|
49
|
-
|
50
|
-
|
47
|
+
- 70
|
48
|
+
- RC
|
49
|
+
- 1
|
50
|
+
version: 0.70.RC1
|
51
51
|
name: spree_auth
|
52
|
-
|
52
|
+
type: :runtime
|
53
|
+
prerelease: false
|
54
|
+
requirement: *id002
|
55
|
+
description: Required dependency for Spree
|
53
56
|
email: david@railsdog.com
|
54
57
|
executables: []
|
55
58
|
|
@@ -60,6 +63,18 @@ extra_rdoc_files: []
|
|
60
63
|
files:
|
61
64
|
- LICENSE
|
62
65
|
- README.md
|
66
|
+
- app/assets/javascripts/admin/all.js
|
67
|
+
- app/assets/javascripts/admin/spree.js
|
68
|
+
- app/assets/javascripts/admin/spree_api.js
|
69
|
+
- app/assets/javascripts/store/all.js
|
70
|
+
- app/assets/javascripts/store/spree.js
|
71
|
+
- app/assets/javascripts/store/spree_api.js
|
72
|
+
- app/assets/stylesheets/admin/all.css
|
73
|
+
- app/assets/stylesheets/admin/spree.css
|
74
|
+
- app/assets/stylesheets/admin/spree_api.css
|
75
|
+
- app/assets/stylesheets/store/all.css
|
76
|
+
- app/assets/stylesheets/store/spree.css
|
77
|
+
- app/assets/stylesheets/store/spree_api.css
|
63
78
|
- app/controllers/admin/users_controller_decorator.rb
|
64
79
|
- app/controllers/api/base_controller.rb
|
65
80
|
- app/controllers/api/countries_controller.rb
|
@@ -73,13 +88,12 @@ files:
|
|
73
88
|
- app/models/order_decorator.rb
|
74
89
|
- app/models/shipment_decorator.rb
|
75
90
|
- app/models/user_decorator.rb
|
91
|
+
- app/overrides/api_admin_user_edit_form.rb
|
76
92
|
- app/views/admin/users/_api_fields.html.erb
|
77
93
|
- config/cucumber.yml
|
78
94
|
- config/locales/en.yml
|
79
95
|
- config/routes.rb
|
80
96
|
- lib/spree_api.rb
|
81
|
-
- lib/spree_api_hooks.rb
|
82
|
-
- lib/tasks/install.rake
|
83
97
|
- db/migrate/20100107141738_add_api_key_to_users.rb
|
84
98
|
homepage: http://spreecommerce.com
|
85
99
|
licenses: []
|
@@ -103,16 +117,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
118
|
none: false
|
105
119
|
requirements:
|
106
|
-
- - "
|
120
|
+
- - ">"
|
107
121
|
- !ruby/object:Gem::Version
|
108
|
-
hash:
|
122
|
+
hash: 25
|
109
123
|
segments:
|
110
|
-
-
|
111
|
-
|
124
|
+
- 1
|
125
|
+
- 3
|
126
|
+
- 1
|
127
|
+
version: 1.3.1
|
112
128
|
requirements:
|
113
129
|
- none
|
114
130
|
rubyforge_project: spree_api
|
115
|
-
rubygems_version: 1.8.
|
131
|
+
rubygems_version: 1.8.6
|
116
132
|
signing_key:
|
117
133
|
specification_version: 3
|
118
134
|
summary: Provides RESTful access for Spree.
|
data/lib/spree_api_hooks.rb
DELETED
data/lib/tasks/install.rake
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
namespace :spree_api do
|
2
|
-
desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
|
3
|
-
task :install do
|
4
|
-
Rake::Task['spree_api:install:migrations'].invoke
|
5
|
-
Rake::Task['spree_api:install:assets'].invoke
|
6
|
-
end
|
7
|
-
|
8
|
-
namespace :install do
|
9
|
-
|
10
|
-
desc "Copies all migrations (NOTE: This will be obsolete with Rails 3.1)"
|
11
|
-
task :migrations do
|
12
|
-
source = File.join(File.dirname(__FILE__), '..', '..', 'db')
|
13
|
-
destination = File.join(Rails.root, 'db')
|
14
|
-
Spree::FileUtilz.mirror_files(source, destination)
|
15
|
-
end
|
16
|
-
|
17
|
-
desc "Copies all assets (NOTE: This will be obsolete with Rails 3.1)"
|
18
|
-
task :assets do
|
19
|
-
# No assets
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|