enjoy_cms_news 0.4.0.2 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -39
- data/enjoy_cms_news.gemspec +1 -1
- data/lib/enjoy/news/models/category.rb +1 -7
- data/lib/enjoy/news/models/image.rb +0 -4
- data/lib/enjoy/news/models/mongoid/news.rb +1 -8
- data/lib/enjoy/news/models/news.rb +1 -7
- data/lib/enjoy/news/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e09bc46b34f23e8fe207c8ec5bbf5ef6f72b1ae
|
4
|
+
data.tar.gz: 9beb7d3b855608da870f7d885933aae255b08d0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77285b9d6318fa4a2f79bbc2c040a45bda155923cbe4454b529496f9faaadf311063c2168b54738b25d667d22bc5d023009fa20fac55cc6ff83e3b892dc3800d
|
7
|
+
data.tar.gz: ce321c0374f3747a1ace9b880438045c80e41145e2f9334b5ed0af4d2868991ba7c9f05d19c3262281ac7312ae507654cc64f164b45f47daa0add89e6ebf761f
|
data/README.md
CHANGED
@@ -1,41 +1,3 @@
|
|
1
1
|
# EnjoyCmsNews
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'enjoy_cms_news'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install enjoy_cms_news
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/enjoy_cms_news.
|
36
|
-
|
37
|
-
|
38
|
-
## License
|
39
|
-
|
40
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
3
|
+
# NO LONGER MAINTAINED. SEE [HancockCMS News](https://github.com/red-rocks/hancock_cms_news)
|
data/enjoy_cms_news.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 1.10"
|
31
31
|
spec.add_development_dependency "rake", "~> 10.0"
|
32
32
|
|
33
|
-
spec.add_dependency 'enjoy_cms', "~> 0.4.
|
33
|
+
spec.add_dependency 'enjoy_cms', "~> 0.4.1"
|
34
34
|
spec.add_dependency 'stringex'
|
35
35
|
spec.add_dependency 'smart_excerpt'
|
36
36
|
|
@@ -30,9 +30,7 @@ module Enjoy::News
|
|
30
30
|
manual_slug :name
|
31
31
|
|
32
32
|
if Enjoy::News.config.gallery_support and Enjoy::News.configuration.category_image_styles
|
33
|
-
enjoy_cms_attached_file(:image
|
34
|
-
styles: lambda { |attachment| attachment.instance.image_styles }
|
35
|
-
)
|
33
|
+
enjoy_cms_attached_file(:image)
|
36
34
|
end
|
37
35
|
|
38
36
|
acts_as_nested_set
|
@@ -50,10 +48,6 @@ module Enjoy::News
|
|
50
48
|
Enjoy::News.configuration.category_image_styles
|
51
49
|
end
|
52
50
|
|
53
|
-
def image_jcrop_options
|
54
|
-
{}
|
55
|
-
end
|
56
|
-
|
57
51
|
def page_title
|
58
52
|
end
|
59
53
|
|
@@ -22,17 +22,10 @@ module Enjoy::News
|
|
22
22
|
|
23
23
|
if Enjoy::News.config.gallery_support
|
24
24
|
embeds_many :images, cascade_callbacks: true, class_name: "Enjoy::News::Image"
|
25
|
+
accepts_nested_attributes_for :images, allow_destroy: true
|
25
26
|
end
|
26
27
|
|
27
28
|
end
|
28
|
-
|
29
|
-
def image_styles
|
30
|
-
Enjoy::News.configuration.news_image_styles
|
31
|
-
end
|
32
|
-
|
33
|
-
def image_jcrop_options
|
34
|
-
{}
|
35
|
-
end
|
36
29
|
end
|
37
30
|
end
|
38
31
|
end
|
@@ -32,9 +32,7 @@ module Enjoy::News
|
|
32
32
|
end
|
33
33
|
|
34
34
|
if Enjoy::News.config.gallery_support and Enjoy::News.configuration.news_image_styles
|
35
|
-
enjoy_cms_attached_file(:image
|
36
|
-
styles: lambda { |attachment| attachment.instance.image_styles }
|
37
|
-
)
|
35
|
+
enjoy_cms_attached_file(:image)
|
38
36
|
end
|
39
37
|
|
40
38
|
alias :news_categories :categories
|
@@ -48,10 +46,6 @@ module Enjoy::News
|
|
48
46
|
def image_styles
|
49
47
|
Enjoy::News.config.news_image_styles
|
50
48
|
end
|
51
|
-
|
52
|
-
def image_jcrop_options
|
53
|
-
{}
|
54
|
-
end
|
55
49
|
end
|
56
50
|
end
|
57
51
|
end
|
data/lib/enjoy/news/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enjoy_cms_news
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kiseliev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.4.
|
47
|
+
version: 0.4.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.4.
|
54
|
+
version: 0.4.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: stringex
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|