spree_essentials 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -1
- data/app/models/{image_decorator.rb → asset_decorator.rb} +2 -2
- data/app/models/upload.rb +3 -17
- data/lib/spree_essentials/version.rb +1 -1
- metadata +84 -91
data/README.md
CHANGED
@@ -27,7 +27,7 @@ If you don't already have an existing Spree site, [click here](https://gist.gith
|
|
27
27
|
|
28
28
|
Spree Essentials can be installed by itself by adding the following to your Gemfile:
|
29
29
|
|
30
|
-
gem 'spree_essentials', '>= 0.2.
|
30
|
+
gem 'spree_essentials', '>= 0.2.3'
|
31
31
|
|
32
32
|
This isn't necessary if you're using spree_essentials based extensions. If that's the case, just include the extensions normally:
|
33
33
|
|
@@ -160,6 +160,11 @@ To Do
|
|
160
160
|
Change Log
|
161
161
|
----------
|
162
162
|
|
163
|
+
**0.2.3 - 2012/1/6**
|
164
|
+
|
165
|
+
* Removed automatic attachment config with SpreeHeroku
|
166
|
+
|
167
|
+
|
163
168
|
**0.2.2 - 2011/7/22**
|
164
169
|
|
165
170
|
* Moved pagination above new image form
|
data/app/models/upload.rb
CHANGED
@@ -4,23 +4,9 @@ class Upload < Asset
|
|
4
4
|
|
5
5
|
validate :no_attachement_errors
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
if defined?(SpreeHeroku)
|
11
|
-
has_attached_file :attachment,
|
12
|
-
:styles => Proc.new{ |clip| clip.instance.attachment_sizes },
|
13
|
-
:default_style => :medium,
|
14
|
-
:path => "assets/uploads/:id/:style/:basename.:extension",
|
15
|
-
:storage => "s3",
|
16
|
-
:s3_credentials => "#{Rails.root}/config/s3.yml"
|
17
|
-
else
|
18
|
-
has_attached_file :attachment,
|
19
|
-
:styles => Proc.new{ |clip| clip.instance.attachment_sizes },
|
20
|
-
:default_style => :medium,
|
21
|
-
:url => "/assets/uploads/:id/:style/:basename.:extension",
|
22
|
-
:path => ":rails_root/public/assets/uploads/:id/:style/:basename.:extension"
|
23
|
-
end
|
7
|
+
has_attached_file :attachment,
|
8
|
+
:styles => Proc.new{ |clip| clip.instance.attachment_sizes },
|
9
|
+
:default_style => :medium
|
24
10
|
|
25
11
|
def image_content?
|
26
12
|
attachment_content_type.match(/\/(jpeg|png|gif|tiff|x-photoshop)/)
|
metadata
CHANGED
@@ -1,127 +1,124 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_essentials
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.2.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Spencer Steffen
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-01-06 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: spree_core
|
18
|
-
requirement: &
|
16
|
+
requirement: &70343609052760 !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 0.60.0
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
|
-
version_requirements: *
|
27
|
-
- !ruby/object:Gem::Dependency
|
24
|
+
version_requirements: *70343609052760
|
25
|
+
- !ruby/object:Gem::Dependency
|
28
26
|
name: rdiscount
|
29
|
-
requirement: &
|
27
|
+
requirement: &70343609052140 !ruby/object:Gem::Requirement
|
30
28
|
none: false
|
31
|
-
requirements:
|
32
|
-
- -
|
33
|
-
- !ruby/object:Gem::Version
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
34
32
|
version: 1.6.8
|
35
33
|
type: :runtime
|
36
34
|
prerelease: false
|
37
|
-
version_requirements: *
|
38
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *70343609052140
|
36
|
+
- !ruby/object:Gem::Dependency
|
39
37
|
name: shoulda
|
40
|
-
requirement: &
|
38
|
+
requirement: &70343609051340 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
45
43
|
version: 2.11.3
|
46
44
|
type: :development
|
47
45
|
prerelease: false
|
48
|
-
version_requirements: *
|
49
|
-
- !ruby/object:Gem::Dependency
|
46
|
+
version_requirements: *70343609051340
|
47
|
+
- !ruby/object:Gem::Dependency
|
50
48
|
name: dummier
|
51
|
-
requirement: &
|
49
|
+
requirement: &70343609050500 !ruby/object:Gem::Requirement
|
52
50
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
56
54
|
version: 0.2.0
|
57
55
|
type: :development
|
58
56
|
prerelease: false
|
59
|
-
version_requirements: *
|
60
|
-
- !ruby/object:Gem::Dependency
|
57
|
+
version_requirements: *70343609050500
|
58
|
+
- !ruby/object:Gem::Dependency
|
61
59
|
name: factory_girl
|
62
|
-
requirement: &
|
60
|
+
requirement: &70343609050020 !ruby/object:Gem::Requirement
|
63
61
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
67
65
|
version: 2.0.0.beta4
|
68
66
|
type: :development
|
69
67
|
prerelease: false
|
70
|
-
version_requirements: *
|
71
|
-
- !ruby/object:Gem::Dependency
|
68
|
+
version_requirements: *70343609050020
|
69
|
+
- !ruby/object:Gem::Dependency
|
72
70
|
name: capybara
|
73
|
-
requirement: &
|
71
|
+
requirement: &70343609049440 !ruby/object:Gem::Requirement
|
74
72
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
78
76
|
version: 1.0.0
|
79
77
|
type: :development
|
80
78
|
prerelease: false
|
81
|
-
version_requirements: *
|
82
|
-
- !ruby/object:Gem::Dependency
|
79
|
+
version_requirements: *70343609049440
|
80
|
+
- !ruby/object:Gem::Dependency
|
83
81
|
name: sqlite3
|
84
|
-
requirement: &
|
82
|
+
requirement: &70343609048820 !ruby/object:Gem::Requirement
|
85
83
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
89
87
|
version: 1.3.3
|
90
88
|
type: :development
|
91
89
|
prerelease: false
|
92
|
-
version_requirements: *
|
93
|
-
- !ruby/object:Gem::Dependency
|
90
|
+
version_requirements: *70343609048820
|
91
|
+
- !ruby/object:Gem::Dependency
|
94
92
|
name: spork
|
95
|
-
requirement: &
|
93
|
+
requirement: &70343609048360 !ruby/object:Gem::Requirement
|
96
94
|
none: false
|
97
|
-
requirements:
|
98
|
-
- -
|
99
|
-
- !ruby/object:Gem::Version
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
100
98
|
version: 0.9.0.rc9
|
101
99
|
type: :development
|
102
100
|
prerelease: false
|
103
|
-
version_requirements: *
|
104
|
-
- !ruby/object:Gem::Dependency
|
101
|
+
version_requirements: *70343609048360
|
102
|
+
- !ruby/object:Gem::Dependency
|
105
103
|
name: spork-testunit
|
106
|
-
requirement: &
|
104
|
+
requirement: &70343609047760 !ruby/object:Gem::Requirement
|
107
105
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
111
109
|
version: 0.0.5
|
112
110
|
type: :development
|
113
111
|
prerelease: false
|
114
|
-
version_requirements: *
|
115
|
-
description: Spree Essentials provides a base for several other Spree Commerce extensions.
|
116
|
-
|
112
|
+
version_requirements: *70343609047760
|
113
|
+
description: Spree Essentials provides a base for several other Spree Commerce extensions.
|
114
|
+
The idea is to provide other extensions with common functionality such as an asset-upload
|
115
|
+
interface, a markdown editor, and a common admin-navigation tab.
|
116
|
+
email:
|
117
117
|
- spencer@citrusme.com
|
118
118
|
executables: []
|
119
|
-
|
120
119
|
extensions: []
|
121
|
-
|
122
120
|
extra_rdoc_files: []
|
123
|
-
|
124
|
-
files:
|
121
|
+
files:
|
125
122
|
- README.md
|
126
123
|
- LICENSE
|
127
124
|
- config/locales/en.yml
|
@@ -135,7 +132,7 @@ files:
|
|
135
132
|
- app/controllers/admin/markdown_controller.rb
|
136
133
|
- app/controllers/admin/uploads_controller.rb
|
137
134
|
- app/helpers/admin/base_helper_decorator.rb
|
138
|
-
- app/models/
|
135
|
+
- app/models/asset_decorator.rb
|
139
136
|
- app/models/upload.rb
|
140
137
|
- app/validators/datetime_validator.rb
|
141
138
|
- app/views/admin/shared/_contents_sub_menu.html.erb
|
@@ -176,39 +173,35 @@ files:
|
|
176
173
|
- public/javascripts/markdown.set.js
|
177
174
|
- public/stylesheets/markitup.css
|
178
175
|
- Rakefile
|
179
|
-
has_rdoc: true
|
180
176
|
homepage: https://github.com/citrus/spree_essentials
|
181
177
|
licenses: []
|
182
|
-
|
183
178
|
post_install_message:
|
184
179
|
rdoc_options: []
|
185
|
-
|
186
|
-
require_paths:
|
180
|
+
require_paths:
|
187
181
|
- lib
|
188
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
182
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
189
183
|
none: false
|
190
|
-
requirements:
|
191
|
-
- -
|
192
|
-
- !ruby/object:Gem::Version
|
193
|
-
|
194
|
-
segments:
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
segments:
|
195
189
|
- 0
|
196
|
-
|
197
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
|
+
hash: -4112717621804391650
|
191
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
192
|
none: false
|
199
|
-
requirements:
|
200
|
-
- -
|
201
|
-
- !ruby/object:Gem::Version
|
202
|
-
|
203
|
-
segments:
|
193
|
+
requirements:
|
194
|
+
- - ! '>='
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '0'
|
197
|
+
segments:
|
204
198
|
- 0
|
205
|
-
|
199
|
+
hash: -4112717621804391650
|
206
200
|
requirements: []
|
207
|
-
|
208
201
|
rubyforge_project:
|
209
|
-
rubygems_version: 1.
|
202
|
+
rubygems_version: 1.8.10
|
210
203
|
signing_key:
|
211
204
|
specification_version: 3
|
212
|
-
summary: Spree Essentials provides a base for several other Spree Commerce extensions.
|
205
|
+
summary: Spree Essentials provides a base for several other Spree Commerce extensions.
|
206
|
+
See readme for details...
|
213
207
|
test_files: []
|
214
|
-
|