spree_essentials 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
- Spree Essentials
2
- ================
1
+ # Spree Essentials [![Build Status](https://secure.travis-ci.org/citrus/spree_essentials.png)](http://travis-ci.org/citrus/spree_essentials)
2
+
3
3
 
4
4
  Spree Essentials is the base for many content related extensions for Spree. It doesn't do much on it's own ;)
5
5
 
@@ -27,13 +27,13 @@ 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.3.1""
30
+ gem 'spree_essentials', '>= 0.3.2'
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
 
34
- gem 'spree_essential_cms', :git => 'git://github.com/citrus/spree_essential_cms.git'
35
- gem 'spree_essential_blog', :git => 'git://github.com/citrus/spree_essential_blog.git'
36
-
34
+ gem 'spree_essential_cms'
35
+ gem 'spree_essential_blog'
36
+
37
37
 
38
38
  Then run:
39
39
 
@@ -103,7 +103,7 @@ Setting up an essential aware extension is easy. In your `lib/[extension_name].r
103
103
  Notes
104
104
  -----
105
105
 
106
- Spree Essentials is under constant development... Development is being done on OSX with Ruby 1.9.2 and usually the latest version of Spree. (currently 0.60.0)
106
+ Spree Essentials is under constant development... Development is being done on OSX with Ruby 1.9.2 and usually the latest version of Spree. (currently 0.70.0)
107
107
 
108
108
  Please let me know if you find any bugs or have feature requests you'd like to see.
109
109
 
@@ -147,6 +147,11 @@ To Do
147
147
  Change Log
148
148
  ----------
149
149
 
150
+ **0.3.2 - 2011/12/30**
151
+
152
+ * Safer decorator load path
153
+
154
+
150
155
  **0.3.1 - 2011/12/13**
151
156
 
152
157
  * Fix broken markitup editor
@@ -176,19 +181,6 @@ Change Log
176
181
  * Removed `app/controllers/admin/resource_controller.rb` in favor of the Spree Default one
177
182
  * Updated development gems to most recent versions
178
183
 
179
-
180
- **0.1.4 - 2011/6/10**
181
-
182
- * Removed console.log from jquery.autodate.js
183
- * Updated resource controller with better flash message handling
184
- * Added faker.lorem.words to en.yml to prevent NoMethodError in integration tests
185
-
186
-
187
- **0.1.3 - 2011/6/8**
188
-
189
- * Added test in teardown to check for missing translations
190
- * Removed some old bits of CMS code
191
-
192
184
  ....more in [CHANGELOG.md](https://github.com/citrus/spree_essentials/blob/master/CHANGELOG.md)
193
185
 
194
186
 
data/app/models/upload.rb CHANGED
@@ -4,24 +4,10 @@ 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
24
-
7
+ has_attached_file :attachment,
8
+ :styles => Proc.new{ |clip| clip.instance.attachment_sizes },
9
+ :default_style => :medium
10
+
25
11
  def image_content?
26
12
  attachment_content_type.match(/\/(jpeg|png|gif|tiff|x-photoshop)/)
27
13
  end
@@ -25,14 +25,10 @@ module SpreeEssentials
25
25
  class Engine < Rails::Engine
26
26
 
27
27
  config.autoload_paths += %W(#{config.root}/lib)
28
-
29
- initializer "static assets" do |app|
30
- app.middleware.insert_before ::Rack::Lock, ::ActionDispatch::Static, "#{config.root}/public"
31
- end
32
28
 
33
29
  config.to_prepare do
34
30
  #loads application's model / class decorators
35
- Dir.glob File.expand_path("../../app/**/*_decorator*.rb") do |c|
31
+ Dir.glob File.expand_path("../../app/**/*_decorator.rb", __FILE__) do |c|
36
32
  Rails.configuration.cache_classes ? require(c) : load(c)
37
33
  end
38
34
 
@@ -1,3 +1,3 @@
1
1
  module SpreeEssentials
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_essentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-15 00:00:00.000000000Z
12
+ date: 2011-12-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_core
16
- requirement: &70108455614680 !ruby/object:Gem::Requirement
16
+ requirement: &70337041126960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.70.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70108455614680
24
+ version_requirements: *70337041126960
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdiscount
27
- requirement: &70108455614020 !ruby/object:Gem::Requirement
27
+ requirement: &70337041125920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.6.8
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70108455614020
35
+ version_requirements: *70337041125920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: shoulda
38
- requirement: &70108455613300 !ruby/object:Gem::Requirement
38
+ requirement: &70337041125300 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 3.0.0.beta2
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70108455613300
46
+ version_requirements: *70337041125300
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: dummier
49
- requirement: &70108455612720 !ruby/object:Gem::Requirement
49
+ requirement: &70337041124640 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.2.4
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70108455612720
57
+ version_requirements: *70337041124640
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: factory_girl
60
- requirement: &70108455611860 !ruby/object:Gem::Requirement
60
+ requirement: &70337041123700 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 2.3.2
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70108455611860
68
+ version_requirements: *70337041123700
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: capybara
71
- requirement: &70108455610640 !ruby/object:Gem::Requirement
71
+ requirement: &70337041123220 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.1.2
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70108455610640
79
+ version_requirements: *70337041123220
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: sqlite3
82
- requirement: &70108455598500 !ruby/object:Gem::Requirement
82
+ requirement: &70337041122700 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: 1.3.4
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70108455598500
90
+ version_requirements: *70337041122700
91
91
  description: Spree Essentials provides a base for several other Spree Commerce extensions.
92
92
  The idea is to provide other extensions with common functionality such as an asset-upload
93
93
  interface, a markdown editor, and a common admin-navigation tab.
@@ -164,18 +164,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  - - ! '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
- segments:
168
- - 0
169
- hash: -706572084736491213
170
167
  required_rubygems_version: !ruby/object:Gem::Requirement
171
168
  none: false
172
169
  requirements:
173
170
  - - ! '>='
174
171
  - !ruby/object:Gem::Version
175
172
  version: '0'
176
- segments:
177
- - 0
178
- hash: -706572084736491213
179
173
  requirements: []
180
174
  rubyforge_project:
181
175
  rubygems_version: 1.8.10