refinerycms-news 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,11 @@ module Refinery
7
7
 
8
8
  attr_accessor :locale # to hold temporarily
9
9
 
10
+ attr_accessible :title, :body, :content, :source, :publish_date, :expiration_date
11
+ class Translation
12
+ attr_accessible :locale
13
+ end
14
+
10
15
  alias_attribute :content, :body
11
16
  validates :title, :content, :publish_date, :presence => true
12
17
 
@@ -3,32 +3,45 @@ pt-BR:
3
3
  plugins:
4
4
  refinerycms_news:
5
5
  title: Notícias
6
+ description: Disponibiliza uma simples sessão de notícias
6
7
  news:
7
8
  admin:
8
- item:
9
- view_live: "Ver esta notícia no site<br/><em>(abrirá em uma nova janela)</em>"
10
- edit: "Alterar esta notícia"
11
- delete: "Remover esta notícia para sempre"
9
+ items:
10
+ item:
11
+ view_live_html: "Ver esta notícia no site<br/><em>(abrirá em uma nova janela)</em>"
12
+ edit: "Alterar esta notícia"
13
+ delete: "Remover esta notícia para sempre"
14
+ published: Publicado
15
+ index:
16
+ create: "Criar Notícia"
17
+ item: Notícia
18
+ no_items_yet: 'Não há notícias cadastradas. Clique em "Criar Notícia" para cadastrar sua primeira notícia.'
19
+ shared:
20
+ items:
21
+ created_at: 'Criado em %{when}'
22
+ archives: Arquivos
23
+ items:
24
+ show:
25
+ back_to_index: "Voltar para todas as notícias"
12
26
  published: Publicado
27
+ source: Fonte
28
+ recent_posts:
29
+ recent_posts: Notícias recentes
13
30
  index:
14
- actions: Ações
15
- create: "Criar Notícia"
16
- item: Notícia
17
- no_items: 'Não há notícias cadastradas.'
18
- no_items_yet: 'Não há notícias cadastradas. Clique em "Criar Notícia" para cadastrar sua primeira notícia.'
31
+ published: Publicado
19
32
  read_more: Leia mais
20
- show:
21
- back_to_index: "Voltar para todas as notícias"
22
- published: Publicado
23
- recent_posts:
24
- recent_posts: Notícias recentes
25
- index:
26
- published: Publicado
33
+ no_items_yet: Não há notícias cadastradas.
34
+ source: Fonte
35
+ archive:
36
+ news_item_archive_for: 'Arquivo do dia: %{date}'
37
+ no_news_articles_posted: 'Não existe nenhuma notícia postada em %{date}.'
27
38
  activerecord:
28
39
  attributes:
29
40
  'refinery/news/item':
30
41
  title: Título
31
- body: Contéudo
42
+ body: Conteúdo
32
43
  publish_date: Data de publicação
44
+ expiration_date: Data de expiração
45
+ source: Fonte
33
46
  models:
34
47
  'refinery/news/item': Notícia
@@ -9,9 +9,9 @@ module Refinery
9
9
  Refinery::Plugin.register do |plugin|
10
10
  plugin.pathname = root
11
11
  plugin.name = "refinerycms_news"
12
- plugin.menu_match = /refinery\/news(_items)?$/
13
- plugin.url = {:controller => '/refinery/news/admin/items'}
12
+ plugin.menu_match = /refinery\/news(\/items)?$/
14
13
  plugin.activity = { :class_name => 'Refinery::News::Item' }
14
+ plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.news_admin_items_path }
15
15
  end
16
16
  end
17
17
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinerycms-news}
5
- s.version = %q{2.0.0}
5
+ s.version = %q{2.0.1}
6
6
  s.description = %q{A really straightforward open source Ruby on Rails news engine designed for integration with Refinery CMS.}
7
7
  s.date = "#{Date.today.strftime("%Y-%m-%d")}"
8
8
  s.summary = %q{Ruby on Rails news engine for Refinery CMS.}
metadata CHANGED
@@ -1,80 +1,72 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-news
3
- version: !ruby/object:Gem::Version
4
- hash: 15
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.1
5
5
  prerelease:
6
- segments:
7
- - 2
8
- - 0
9
- - 0
10
- version: 2.0.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Philip Arndt
14
- - "U\xC4\xA3is Ozols"
9
+ - Uģis Ozols
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2012-03-13 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
13
+ date: 2012-04-05 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: refinerycms-core
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
19
+ requirements:
27
20
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 13
30
- segments:
31
- - 2
32
- - 0
33
- - 1
21
+ - !ruby/object:Gem::Version
34
22
  version: 2.0.1
35
23
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: refinerycms-settings
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ version: 2.0.1
31
+ - !ruby/object:Gem::Dependency
32
+ name: refinerycms-settings
33
+ requirement: !ruby/object:Gem::Requirement
41
34
  none: false
42
- requirements:
35
+ requirements:
43
36
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 2
48
- - 0
49
- - 0
37
+ - !ruby/object:Gem::Version
50
38
  version: 2.0.0
51
39
  type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: friendly_id
55
40
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
41
+ version_requirements: !ruby/object:Gem::Requirement
57
42
  none: false
58
- requirements:
43
+ requirements:
59
44
  - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 61
62
- segments:
63
- - 4
64
- - 0
65
- - 1
45
+ - !ruby/object:Gem::Version
46
+ version: 2.0.0
47
+ - !ruby/object:Gem::Dependency
48
+ name: friendly_id
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
66
54
  version: 4.0.1
67
55
  type: :runtime
68
- version_requirements: *id003
69
- description: A really straightforward open source Ruby on Rails news engine designed for integration with Refinery CMS.
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: 4.0.1
63
+ description: A really straightforward open source Ruby on Rails news engine designed
64
+ for integration with Refinery CMS.
70
65
  email: info@refinerycms.com
71
66
  executables: []
72
-
73
67
  extensions: []
74
-
75
68
  extra_rdoc_files: []
76
-
77
- files:
69
+ files:
78
70
  - .gitignore
79
71
  - .travis.yml
80
72
  - Gemfile
@@ -144,38 +136,29 @@ files:
144
136
  - tasks/rspec.rake
145
137
  homepage: http://refinerycms.com
146
138
  licenses: []
147
-
148
139
  post_install_message:
149
140
  rdoc_options: []
150
-
151
- require_paths:
141
+ require_paths:
152
142
  - lib
153
- required_ruby_version: !ruby/object:Gem::Requirement
143
+ required_ruby_version: !ruby/object:Gem::Requirement
154
144
  none: false
155
- requirements:
156
- - - ">="
157
- - !ruby/object:Gem::Version
158
- hash: 3
159
- segments:
160
- - 0
161
- version: "0"
162
- required_rubygems_version: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ! '>='
147
+ - !ruby/object:Gem::Version
148
+ version: '0'
149
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
150
  none: false
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- hash: 3
168
- segments:
169
- - 0
170
- version: "0"
151
+ requirements:
152
+ - - ! '>='
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
171
155
  requirements: []
172
-
173
156
  rubyforge_project:
174
- rubygems_version: 1.8.17
157
+ rubygems_version: 1.8.19
175
158
  signing_key:
176
159
  specification_version: 3
177
160
  summary: Ruby on Rails news engine for Refinery CMS.
178
- test_files:
161
+ test_files:
179
162
  - spec/factories/news.rb
180
163
  - spec/models/refinery/news/item_spec.rb
181
164
  - spec/requests/manage_news_items_spec.rb