spree_essential_blog 0.1.0.rc1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -1
- data/Versionfile +3 -2
- data/app/models/post_image.rb +5 -16
- data/lib/spree_essential_blog.rb +1 -1
- data/lib/spree_essential_blog/version.rb +1 -1
- metadata +25 -22
data/README.md
CHANGED
@@ -15,7 +15,7 @@ Otherwise, follow these steps to get up and running with spree_essential_blog:
|
|
15
15
|
|
16
16
|
First, add spree_essential_blog to your Gemfile... it hasn't been released to Rubygems yet so we'll grab it from git.
|
17
17
|
|
18
|
-
gem 'spree_essential_blog',
|
18
|
+
gem 'spree_essential_blog', '~> 0.1.0'
|
19
19
|
|
20
20
|
Run the generators to create the migration files.
|
21
21
|
|
@@ -76,10 +76,16 @@ You can easily use the `test/dummy` app as a demo of spree_essential_blog. Just
|
|
76
76
|
Change Log
|
77
77
|
----------
|
78
78
|
|
79
|
+
**0.1.0 - 2011/12/15**
|
80
|
+
|
81
|
+
* Release v0.1.0
|
82
|
+
|
83
|
+
|
79
84
|
**2011/12/15**
|
80
85
|
|
81
86
|
* Remove spork dev dependency
|
82
87
|
|
88
|
+
|
83
89
|
**2011/12/14**
|
84
90
|
|
85
91
|
* Add Spree 0.70.x compatibility
|
data/Versionfile
CHANGED
data/app/models/post_image.rb
CHANGED
@@ -1,22 +1,11 @@
|
|
1
|
-
class PostImage <
|
1
|
+
class PostImage < Asset
|
2
2
|
|
3
3
|
validate :no_attachement_errors
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
:path => "assets/posts/:id/:style/:basename.:extension",
|
10
|
-
:storage => "s3",
|
11
|
-
:s3_credentials => "#{Rails.root}/config/s3.yml"
|
12
|
-
else
|
13
|
-
has_attached_file :attachment,
|
14
|
-
:styles => Proc.new{ |clip| clip.instance.attachment_sizes },
|
15
|
-
:default_style => :medium,
|
16
|
-
:url => "/assets/posts/:id/:style/:basename.:extension",
|
17
|
-
:path => ":rails_root/public/assets/posts/:id/:style/:basename.:extension"
|
18
|
-
end
|
19
|
-
|
5
|
+
has_attached_file :attachment,
|
6
|
+
:styles => Proc.new{ |clip| clip.instance.attachment_sizes },
|
7
|
+
:default_style => :medium
|
8
|
+
|
20
9
|
def image_content?
|
21
10
|
attachment_content_type.match(/\/(jpeg|png|gif|tiff|x-photoshop)/)
|
22
11
|
end
|
data/lib/spree_essential_blog.rb
CHANGED
@@ -17,7 +17,7 @@ module SpreeEssentialBlog
|
|
17
17
|
|
18
18
|
config.to_prepare do
|
19
19
|
#loads application's model / class decorators
|
20
|
-
Dir.glob File.expand_path("../../app/**/*_decorator
|
20
|
+
Dir.glob File.expand_path("../../app/**/*_decorator.rb", __FILE__) do |c|
|
21
21
|
Rails.configuration.cache_classes ? require(c) : load(c)
|
22
22
|
end
|
23
23
|
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_essential_blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Spencer Steffen
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-30 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_essentials
|
16
|
-
requirement: &
|
16
|
+
requirement: &70133072724880 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.3.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70133072724880
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: acts-as-taggable-on
|
27
|
-
requirement: &
|
27
|
+
requirement: &70133072724380 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.2.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70133072724380
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: shoulda
|
38
|
-
requirement: &
|
38
|
+
requirement: &70133072723880 !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: *
|
46
|
+
version_requirements: *70133072723880
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: dummier
|
49
|
-
requirement: &
|
49
|
+
requirement: &70133072723400 !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: *
|
57
|
+
version_requirements: *70133072723400
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: factory_girl
|
60
|
-
requirement: &
|
60
|
+
requirement: &70133072722880 !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: *
|
68
|
+
version_requirements: *70133072722880
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capybara
|
71
|
-
requirement: &
|
71
|
+
requirement: &70133072722420 !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: *
|
79
|
+
version_requirements: *70133072722420
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: selenium-webdriver
|
82
|
-
requirement: &
|
82
|
+
requirement: &70133072721900 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 2.15.0
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70133072721900
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: sqlite3
|
93
|
-
requirement: &
|
93
|
+
requirement: &70133072721400 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
version: 1.3.5
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70133072721400
|
102
102
|
description: Spree Essential Blog is a blog plugin for Spree sites equipped with spree_essentials.
|
103
103
|
email:
|
104
104
|
- spencer@citrusme.com
|
@@ -205,13 +205,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
205
|
version: '0'
|
206
206
|
segments:
|
207
207
|
- 0
|
208
|
-
hash:
|
208
|
+
hash: 144564251216774086
|
209
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
210
|
none: false
|
211
211
|
requirements:
|
212
|
-
- - ! '
|
212
|
+
- - ! '>='
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version:
|
214
|
+
version: '0'
|
215
|
+
segments:
|
216
|
+
- 0
|
217
|
+
hash: 144564251216774086
|
215
218
|
requirements: []
|
216
219
|
rubyforge_project:
|
217
220
|
rubygems_version: 1.8.10
|