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 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.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
@@ -1,7 +1,7 @@
1
- Image.class_eval do
1
+ Asset.class_eval do
2
2
 
3
3
  def has_alt?
4
4
  !alt.blank?
5
5
  end
6
6
 
7
- end
7
+ end
data/app/models/upload.rb CHANGED
@@ -4,23 +4,9 @@ class Upload < Asset
4
4
 
5
5
  validate :no_attachement_errors
6
6
 
7
- # Check for spree_heroku
8
- # https://github.com/paxer/spree-heroku
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)/)
@@ -1,3 +1,3 @@
1
1
  module SpreeEssentials
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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
- date: 2011-07-22 00:00:00 -07:00
14
- default_executable:
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: &id001 !ruby/object:Gem::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: *id001
27
- - !ruby/object:Gem::Dependency
24
+ version_requirements: *70343609052760
25
+ - !ruby/object:Gem::Dependency
28
26
  name: rdiscount
29
- requirement: &id002 !ruby/object:Gem::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: *id002
38
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *70343609052140
36
+ - !ruby/object:Gem::Dependency
39
37
  name: shoulda
40
- requirement: &id003 !ruby/object:Gem::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: *id003
49
- - !ruby/object:Gem::Dependency
46
+ version_requirements: *70343609051340
47
+ - !ruby/object:Gem::Dependency
50
48
  name: dummier
51
- requirement: &id004 !ruby/object:Gem::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: *id004
60
- - !ruby/object:Gem::Dependency
57
+ version_requirements: *70343609050500
58
+ - !ruby/object:Gem::Dependency
61
59
  name: factory_girl
62
- requirement: &id005 !ruby/object:Gem::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: *id005
71
- - !ruby/object:Gem::Dependency
68
+ version_requirements: *70343609050020
69
+ - !ruby/object:Gem::Dependency
72
70
  name: capybara
73
- requirement: &id006 !ruby/object:Gem::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: *id006
82
- - !ruby/object:Gem::Dependency
79
+ version_requirements: *70343609049440
80
+ - !ruby/object:Gem::Dependency
83
81
  name: sqlite3
84
- requirement: &id007 !ruby/object:Gem::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: *id007
93
- - !ruby/object:Gem::Dependency
90
+ version_requirements: *70343609048820
91
+ - !ruby/object:Gem::Dependency
94
92
  name: spork
95
- requirement: &id008 !ruby/object:Gem::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: *id008
104
- - !ruby/object:Gem::Dependency
101
+ version_requirements: *70343609048360
102
+ - !ruby/object:Gem::Dependency
105
103
  name: spork-testunit
106
- requirement: &id009 !ruby/object:Gem::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: *id009
115
- description: Spree Essentials provides a base for several other Spree Commerce extensions. The idea is to provide other extensions with common functionality such as an asset-upload interface, a markdown editor, and a common admin-navigation tab.
116
- email:
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/image_decorator.rb
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
- hash: -122173490251409664
194
- segments:
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ segments:
195
189
  - 0
196
- version: "0"
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
- hash: -122173490251409664
203
- segments:
193
+ requirements:
194
+ - - ! '>='
195
+ - !ruby/object:Gem::Version
196
+ version: '0'
197
+ segments:
204
198
  - 0
205
- version: "0"
199
+ hash: -4112717621804391650
206
200
  requirements: []
207
-
208
201
  rubyforge_project:
209
- rubygems_version: 1.6.2
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. See readme for details...
205
+ summary: Spree Essentials provides a base for several other Spree Commerce extensions.
206
+ See readme for details...
213
207
  test_files: []
214
-