refinerycms-news 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.rspec +1 -0
- data/.travis.yml +23 -10
- data/Gemfile +23 -54
- data/Rakefile +2 -0
- data/app/controllers/refinery/news/items_controller.rb +8 -11
- data/app/helpers/refinery/news/items_helper.rb +14 -17
- data/app/models/refinery/news/item.rb +9 -4
- data/app/views/refinery/news/admin/items/_form.html.erb +9 -16
- data/app/views/refinery/news/admin/items/_item.html.erb +6 -3
- data/app/views/refinery/news/admin/items/edit.html.erb +1 -1
- data/app/views/refinery/news/admin/items/index.html.erb +1 -1
- data/app/views/refinery/news/admin/items/new.html.erb +1 -1
- data/app/views/refinery/news/items/archive.html.erb +6 -6
- data/app/views/refinery/news/items/index.html.erb +3 -3
- data/app/views/refinery/news/items/show.html.erb +3 -3
- data/app/views/refinery/news/items/widgets/_news_archive.html.erb +1 -5
- data/app/views/refinery/news/shared/_body_content_right.html.erb +1 -1
- data/config/locales/bg.yml +18 -18
- data/config/locales/cs.yml +19 -19
- data/config/locales/da.yml +47 -0
- data/config/locales/de.yml +18 -18
- data/config/locales/en.yml +3 -2
- data/config/locales/es-MX.yml +18 -18
- data/config/locales/es.yml +19 -19
- data/config/locales/fr.yml +31 -19
- data/config/locales/it.yml +18 -18
- data/config/locales/ja.yml +48 -0
- data/config/locales/lv.yml +20 -18
- data/config/locales/nb.yml +18 -18
- data/config/locales/nl.yml +30 -18
- data/config/locales/pl.yml +29 -18
- data/config/locales/ru.yml +18 -18
- data/config/locales/sk.yml +31 -19
- data/config/locales/sl.yml +0 -2
- data/config/locales/zh-CN.yml +18 -18
- data/config/locales/zh-TW.yml +29 -29
- data/config/routes.rb +2 -2
- data/readme.md +51 -2
- data/refinerycms-news.gemspec +4 -5
- data/spec/controllers/refinery/news/items_controller_spec.rb +67 -0
- data/spec/{requests → features}/manage_news_items_spec.rb +6 -6
- data/spec/{requests → features}/news_archive.rb +0 -0
- data/spec/{requests → features}/visit_news_items_spec.rb +5 -7
- data/spec/helpers/refinery/news/items_helper_spec.rb +34 -0
- data/spec/models/refinery/news/item_spec.rb +38 -14
- data/spec/spec_helper.rb +20 -46
- metadata +26 -30
- data/Guardfile +0 -20
- data/app/views/refinery/news/admin/items/_locale_picker.html.erb +0 -11
- data/config/locales/jp.yml +0 -36
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-news
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Philip Arndt
|
@@ -10,56 +9,50 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2013-10-11 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: refinerycms-core
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
22
|
-
version: 2.0
|
20
|
+
version: 2.1.0
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version: 2.0
|
27
|
+
version: 2.1.0
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: refinerycms-settings
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ~>
|
37
33
|
- !ruby/object:Gem::Version
|
38
|
-
version: 2.
|
34
|
+
version: 2.1.0
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ~>
|
45
40
|
- !ruby/object:Gem::Version
|
46
|
-
version: 2.
|
41
|
+
version: 2.1.0
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: friendly_id
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ~>
|
53
47
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.0.
|
48
|
+
version: 4.0.9
|
55
49
|
type: :runtime
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ~>
|
61
54
|
- !ruby/object:Gem::Version
|
62
|
-
version: 4.0.
|
55
|
+
version: 4.0.9
|
63
56
|
description: A really straightforward open source Ruby on Rails news engine designed
|
64
57
|
for integration with Refinery CMS.
|
65
58
|
email: info@refinerycms.com
|
@@ -68,9 +61,9 @@ extensions: []
|
|
68
61
|
extra_rdoc_files: []
|
69
62
|
files:
|
70
63
|
- .gitignore
|
64
|
+
- .rspec
|
71
65
|
- .travis.yml
|
72
66
|
- Gemfile
|
73
|
-
- Guardfile
|
74
67
|
- Rakefile
|
75
68
|
- app/controllers/refinery/news/admin/items_controller.rb
|
76
69
|
- app/controllers/refinery/news/items_controller.rb
|
@@ -78,7 +71,6 @@ files:
|
|
78
71
|
- app/models/refinery/news/item.rb
|
79
72
|
- app/views/refinery/news/admin/items/_form.html.erb
|
80
73
|
- app/views/refinery/news/admin/items/_item.html.erb
|
81
|
-
- app/views/refinery/news/admin/items/_locale_picker.html.erb
|
82
74
|
- app/views/refinery/news/admin/items/edit.html.erb
|
83
75
|
- app/views/refinery/news/admin/items/index.html.erb
|
84
76
|
- app/views/refinery/news/admin/items/new.html.erb
|
@@ -92,13 +84,14 @@ files:
|
|
92
84
|
- app/views/refinery/news/shared/_item.html.erb
|
93
85
|
- config/locales/bg.yml
|
94
86
|
- config/locales/cs.yml
|
87
|
+
- config/locales/da.yml
|
95
88
|
- config/locales/de.yml
|
96
89
|
- config/locales/en.yml
|
97
90
|
- config/locales/es-MX.yml
|
98
91
|
- config/locales/es.yml
|
99
92
|
- config/locales/fr.yml
|
100
93
|
- config/locales/it.yml
|
101
|
-
- config/locales/
|
94
|
+
- config/locales/ja.yml
|
102
95
|
- config/locales/lv.yml
|
103
96
|
- config/locales/nb.yml
|
104
97
|
- config/locales/nl.yml
|
@@ -127,42 +120,45 @@ files:
|
|
127
120
|
- license.md
|
128
121
|
- readme.md
|
129
122
|
- refinerycms-news.gemspec
|
123
|
+
- spec/controllers/refinery/news/items_controller_spec.rb
|
130
124
|
- spec/factories/news.rb
|
125
|
+
- spec/features/manage_news_items_spec.rb
|
126
|
+
- spec/features/news_archive.rb
|
127
|
+
- spec/features/visit_news_items_spec.rb
|
128
|
+
- spec/helpers/refinery/news/items_helper_spec.rb
|
131
129
|
- spec/models/refinery/news/item_spec.rb
|
132
|
-
- spec/requests/manage_news_items_spec.rb
|
133
|
-
- spec/requests/news_archive.rb
|
134
|
-
- spec/requests/visit_news_items_spec.rb
|
135
130
|
- spec/spec_helper.rb
|
136
131
|
- tasks/rspec.rake
|
137
132
|
homepage: http://refinerycms.com
|
138
133
|
licenses: []
|
134
|
+
metadata: {}
|
139
135
|
post_install_message:
|
140
136
|
rdoc_options: []
|
141
137
|
require_paths:
|
142
138
|
- lib
|
143
139
|
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
-
none: false
|
145
140
|
requirements:
|
146
|
-
- -
|
141
|
+
- - '>='
|
147
142
|
- !ruby/object:Gem::Version
|
148
143
|
version: '0'
|
149
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
|
-
none: false
|
151
145
|
requirements:
|
152
|
-
- -
|
146
|
+
- - '>='
|
153
147
|
- !ruby/object:Gem::Version
|
154
148
|
version: '0'
|
155
149
|
requirements: []
|
156
150
|
rubyforge_project:
|
157
|
-
rubygems_version: 1.
|
151
|
+
rubygems_version: 2.1.0
|
158
152
|
signing_key:
|
159
|
-
specification_version:
|
153
|
+
specification_version: 4
|
160
154
|
summary: Ruby on Rails news engine for Refinery CMS.
|
161
155
|
test_files:
|
156
|
+
- spec/controllers/refinery/news/items_controller_spec.rb
|
162
157
|
- spec/factories/news.rb
|
158
|
+
- spec/features/manage_news_items_spec.rb
|
159
|
+
- spec/features/news_archive.rb
|
160
|
+
- spec/features/visit_news_items_spec.rb
|
161
|
+
- spec/helpers/refinery/news/items_helper_spec.rb
|
163
162
|
- spec/models/refinery/news/item_spec.rb
|
164
|
-
- spec/requests/manage_news_items_spec.rb
|
165
|
-
- spec/requests/news_archive.rb
|
166
|
-
- spec/requests/visit_news_items_spec.rb
|
167
163
|
- spec/spec_helper.rb
|
168
164
|
has_rdoc:
|
data/Guardfile
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
guard 'rspec', :version => 2, :cli => "--color" do
|
2
|
-
watch(%r{^spec/.+_spec\.rb$})
|
3
|
-
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
4
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
5
|
-
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/controllers/#{m[1]}_#{m[2]}_spec.rb", "spec/requests/#{m[1]}_spec.rb"] }
|
6
|
-
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
7
|
-
watch('spec/spec_helper.rb') { "spec" }
|
8
|
-
watch('config/routes.rb') { "spec/routing" }
|
9
|
-
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
10
|
-
# Capybara request specs
|
11
|
-
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
|
12
|
-
end
|
13
|
-
|
14
|
-
guard 'spork', :wait => 60, :cucumber => false, :rspec_env => { 'RAILS_ENV' => 'test' } do
|
15
|
-
watch('config/application.rb')
|
16
|
-
watch('config/environment.rb')
|
17
|
-
watch(%r{^config/environments/.+\.rb$})
|
18
|
-
watch(%r{^config/initializers/.+\.rb$})
|
19
|
-
watch('spec/spec_helper.rb')
|
20
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<input type='hidden' name='switch_locale' id='switch_locale' value='<%= local_assigns[:current_locale] %>' />
|
2
|
-
<% if (locales ||= ::Refinery::I18n.frontend_locales).present? and locales.many? %>
|
3
|
-
<ul id='switch_locale_picker' class='clearfix'>
|
4
|
-
<% locales.each do |locale| %>
|
5
|
-
<li<%= " class='selected'" if locale.to_s == local_assigns[:current_locale].to_s %>>
|
6
|
-
<%= link_to refinery_icon_tag("flags/#{locale}.png", :size => '48x33'),
|
7
|
-
refinery.url_for(:switch_locale => locale) %>
|
8
|
-
</li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
<% end %>
|
data/config/locales/jp.yml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
jp:
|
2
|
-
plugins:
|
3
|
-
refinerycms_news:
|
4
|
-
title: ニュース
|
5
|
-
description: 簡単にニュース掲載
|
6
|
-
news:
|
7
|
-
admin:
|
8
|
-
item:
|
9
|
-
view_live_html: "この記事を見る<br/><em>(新規ウインドウに開かれます)</em>"
|
10
|
-
edit: "この記事を編集"
|
11
|
-
delete: "この記事を削除"
|
12
|
-
published: 掲載時刻
|
13
|
-
index:
|
14
|
-
actions: 機能
|
15
|
-
create: "新規掲載"
|
16
|
-
item: ニュース
|
17
|
-
no_items: "何も掲載されていません。"
|
18
|
-
no_items_yet: 'まだ何も掲載されていません。「新規掲載」をクリックし記事を追加して下さい。'
|
19
|
-
show:
|
20
|
-
back_to_index: "全てのニュースに戻る"
|
21
|
-
published: 掲載時刻
|
22
|
-
recent_posts:
|
23
|
-
recent_posts: 最近の記事
|
24
|
-
index:
|
25
|
-
published: 掲載時刻
|
26
|
-
read_more: もっと読む
|
27
|
-
no_items_yet: まだ記事が掲載されていません。
|
28
|
-
activerecord:
|
29
|
-
attributes:
|
30
|
-
item:
|
31
|
-
title: 題名
|
32
|
-
body: 本文
|
33
|
-
publish_date: 掲載時刻
|
34
|
-
expiration_date: 掲載期限
|
35
|
-
models:
|
36
|
-
item: ニュース
|