fullstack-cms 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  source "http://rubygems.org"
6
6
 
7
- gem "fullstack-admin", '~> 0.2.1'
7
+ gem "fullstack-admin", '~> 0.2.2'
8
8
 
9
9
  gem "ars-permalink"
10
10
  gem "acts-as-taggable-on"
@@ -12,12 +12,9 @@ gem "acts_as_indexed"
12
12
  gem "awesome_nested_set"
13
13
 
14
14
  gem "rails_i18n_gettext"
15
- gem "sitemap", :git => "git://github.com/viseztrance/rails-sitemap.git"
16
15
  gem "whenever"
17
16
  gem 'rinku', '~> 1.2.2', :require => 'rails_rinku'
18
-
19
17
  gem 'bluecloth'
20
- # gem 'i18n_fields'
21
18
 
22
19
  group :development do
23
20
  gem "jeweler"
data/Gemfile.lock CHANGED
@@ -1,9 +1,3 @@
1
- GIT
2
- remote: git://github.com/viseztrance/rails-sitemap.git
3
- revision: 6592de4117ea43bf376c0bc588e7f0e2c6d3691e
4
- specs:
5
- sitemap (0.3.2)
6
-
7
1
  GEM
8
2
  remote: http://rubygems.org/
9
3
  specs:
@@ -125,7 +119,7 @@ GEM
125
119
  remotipart
126
120
  resource-presentation-helpers
127
121
  squeel
128
- fullstack-admin (0.2.1)
122
+ fullstack-admin (0.2.2)
129
123
  bootstrap-datepicker-rails
130
124
  bootstrap-helpers (~> 0.1.7)
131
125
  chosen-rails
@@ -286,9 +280,8 @@ DEPENDENCIES
286
280
  ars-permalink
287
281
  awesome_nested_set
288
282
  bluecloth
289
- fullstack-admin (~> 0.2.1)
283
+ fullstack-admin (~> 0.2.2)
290
284
  jeweler
291
285
  rails_i18n_gettext
292
286
  rinku (~> 1.2.2)
293
- sitemap!
294
287
  whenever
data/TODO.tasks CHANGED
@@ -1,14 +1,9 @@
1
1
  # Fullstack CMS roadmap
2
2
 
3
- - integrate with globalize
4
- ✓ release ARS with right migration file names
5
- ✓ fix long index names issue
6
- ✓ pack into a gem and release
7
- - require the packed gem
8
- - use :translatable for `page_parts`
9
- - available languages with switch into UI
10
-
3
+ - RSS
4
+
11
5
  - Linkables/Related
6
+ - dashboard stats?
7
+ - Contacts
12
8
 
13
- - statistics
14
- - RSS
9
+ - Sitemap (with optional cache)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fullstack-cms"
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
12
- s.date = "2012-11-04"
12
+ s.date = "2012-11-05"
13
13
  s.description = "CMS system built on fullstack"
14
14
  s.email = "maurizio.cas@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -92,6 +92,18 @@ Gem::Specification.new do |s|
92
92
  "lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/bootstrap.min.css",
93
93
  "lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/site.css",
94
94
  "lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb",
95
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/_links.erb",
96
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/confirmations/new.html.erb",
97
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/mailer/confirmation_instructions.html.erb",
98
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/mailer/reset_password_instructions.html.erb",
99
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/mailer/unlock_instructions.html.erb",
100
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/passwords/edit.html.erb",
101
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/passwords/new.html.erb",
102
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/registrations/edit.html.erb",
103
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/registrations/new.html.erb",
104
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/sessions/new.html.erb",
105
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/shared/_links.erb",
106
+ "lib/generators/fullstack/cms/templates/rails/app/views/devise/unlocks/new.html.erb",
95
107
  "lib/generators/fullstack/cms/templates/rails/app/views/layouts/application.html.erb",
96
108
  "lib/generators/fullstack/cms/templates/rails/app/views/layouts/email.html.erb",
97
109
  "lib/generators/fullstack/cms/templates/rails/app/views/site/_footer.html.erb",
@@ -135,38 +147,35 @@ Gem::Specification.new do |s|
135
147
  s.specification_version = 3
136
148
 
137
149
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
138
- s.add_runtime_dependency(%q<fullstack-admin>, ["~> 0.2.1"])
150
+ s.add_runtime_dependency(%q<fullstack-admin>, ["~> 0.2.2"])
139
151
  s.add_runtime_dependency(%q<ars-permalink>, [">= 0"])
140
152
  s.add_runtime_dependency(%q<acts-as-taggable-on>, [">= 0"])
141
153
  s.add_runtime_dependency(%q<acts_as_indexed>, [">= 0"])
142
154
  s.add_runtime_dependency(%q<awesome_nested_set>, [">= 0"])
143
155
  s.add_runtime_dependency(%q<rails_i18n_gettext>, [">= 0"])
144
- s.add_runtime_dependency(%q<sitemap>, [">= 0"])
145
156
  s.add_runtime_dependency(%q<whenever>, [">= 0"])
146
157
  s.add_runtime_dependency(%q<rinku>, ["~> 1.2.2"])
147
158
  s.add_runtime_dependency(%q<bluecloth>, [">= 0"])
148
159
  s.add_development_dependency(%q<jeweler>, [">= 0"])
149
160
  else
150
- s.add_dependency(%q<fullstack-admin>, ["~> 0.2.1"])
161
+ s.add_dependency(%q<fullstack-admin>, ["~> 0.2.2"])
151
162
  s.add_dependency(%q<ars-permalink>, [">= 0"])
152
163
  s.add_dependency(%q<acts-as-taggable-on>, [">= 0"])
153
164
  s.add_dependency(%q<acts_as_indexed>, [">= 0"])
154
165
  s.add_dependency(%q<awesome_nested_set>, [">= 0"])
155
166
  s.add_dependency(%q<rails_i18n_gettext>, [">= 0"])
156
- s.add_dependency(%q<sitemap>, [">= 0"])
157
167
  s.add_dependency(%q<whenever>, [">= 0"])
158
168
  s.add_dependency(%q<rinku>, ["~> 1.2.2"])
159
169
  s.add_dependency(%q<bluecloth>, [">= 0"])
160
170
  s.add_dependency(%q<jeweler>, [">= 0"])
161
171
  end
162
172
  else
163
- s.add_dependency(%q<fullstack-admin>, ["~> 0.2.1"])
173
+ s.add_dependency(%q<fullstack-admin>, ["~> 0.2.2"])
164
174
  s.add_dependency(%q<ars-permalink>, [">= 0"])
165
175
  s.add_dependency(%q<acts-as-taggable-on>, [">= 0"])
166
176
  s.add_dependency(%q<acts_as_indexed>, [">= 0"])
167
177
  s.add_dependency(%q<awesome_nested_set>, [">= 0"])
168
178
  s.add_dependency(%q<rails_i18n_gettext>, [">= 0"])
169
- s.add_dependency(%q<sitemap>, [">= 0"])
170
179
  s.add_dependency(%q<whenever>, [">= 0"])
171
180
  s.add_dependency(%q<rinku>, ["~> 1.2.2"])
172
181
  s.add_dependency(%q<bluecloth>, [">= 0"])
data/lib/fullstack/cms.rb CHANGED
@@ -29,13 +29,11 @@ require "acts_as_indexed"
29
29
  require "awesome_nested_set"
30
30
 
31
31
  require "rails_i18n_gettext"
32
- require "sitemap"
33
32
  require "whenever"
34
33
 
35
34
  require 'fullstack/cms/engine'
36
35
  require 'fullstack/cms/configuration'
37
36
  require 'bluecloth'
38
- # require 'i18n_fields'
39
37
 
40
38
  module Fullstack
41
39
  module Cms
@@ -0,0 +1,3 @@
1
+ <% ActiveSupport::Deprecation.warn "Rendering partials devise/_links.erb is deprecated" \
2
+ "please use devise/shared/_links.erb instead."%>
3
+ <%= render "shared/links" %>
@@ -0,0 +1,15 @@
1
+ <h2 class="page-header"><%= t('.resend_confirmation_instructions', :default => 'Resend confirmation instructions') %></h2>
2
+
3
+ <%= bootstrap_form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post, :class => "form-horizontal" }) do |f| %>
4
+
5
+ <%= f.inputs do %>
6
+ <%= f.input :email %>
7
+ <% end %>
8
+
9
+ <%= f.actions do %>
10
+ <%= f.submit t('.resend_confirmation_instructions', :default => 'Resend confirmation instructions') , :class => "btn btn-primary btn-large" %>
11
+ <% end %>
12
+
13
+ <% end %>
14
+
15
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,8 @@
1
+ <h2>Benvenuto!</h2>
2
+
3
+ <p>Benvenuto <b><%= @resource.name %></b>,</p>
4
+
5
+ <p><%= t('.instruction', :default => "You can confirm your account email through the link below:") %></p>
6
+
7
+ <p><%= link_to t('.action', :default => "Confirm my account"),
8
+ confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p>
@@ -0,0 +1,8 @@
1
+ <p><%= t('.greeting', :recepient => @resource.name, :default => "Hello #{@resource.name}!") %></p>
2
+
3
+ <p><%= t('.instruction', :default => "Someone has requested a link to change your password, and you can do this through the link below.") %></p>
4
+
5
+ <p><%= link_to t('.action', :default => "Change my password"), edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p>
6
+
7
+ <p><%= t('.instruction_2', :default => "If you didn't request this, please ignore this email.") %></p>
8
+ <p><%= t('.instruction_3', :default => "Your password won't change until you access the link above and create a new one.") %></p>
@@ -0,0 +1,7 @@
1
+ <p><%= t('.greeting', :recepient => @resource.name, :default => "Hello #{@resource.name}!") %></p>
2
+
3
+ <p><%= t('.message', :default => "Your account has been locked due to an excessive amount of unsuccessful sign in attempts.") %></p>
4
+
5
+ <p><%= t('.instruction', :default => "Click the link below to unlock your account:") %></p>
6
+
7
+ <p><%= link_to t('.action', :default => "Unlock my account"), unlock_url(@resource, :unlock_token => @resource.unlock_token) %></p>
@@ -0,0 +1,17 @@
1
+ <h2 class="page-header"><%= t('.change_your_password', :default => "Change your password") %></h2>
2
+
3
+ <%= bootstrap_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put, :class => "form-horizontal" }) do |f| %>
4
+
5
+ <%= f.hidden_field :reset_password_token %>
6
+
7
+ <%= f.inputs do %>
8
+ <%= f.input :password, :label => t('.new_password', :default => "New password") %>
9
+ <%= f.input :password_confirmation, :label => t('.confirm_new_password', :default => "Confirm new password") %>
10
+ <% end %>
11
+ <%= f.actions do %>
12
+ <%= f.submit t('.change_my_password', :default => "Change my password"), :class => "btn btn-primary btn-large" %>
13
+ <% end %>
14
+
15
+ <% end %>
16
+
17
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,13 @@
1
+ <h2 class="page-header"><%= t('.forgot_your_password', :default => 'Forgot your password?') %></h2>
2
+
3
+ <%= bootstrap_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post, :class => "form-horizontal" }) do |f| %>
4
+ <%= f.inputs do %>
5
+ <%= f.input :email %>
6
+ <% end %>
7
+ <%= f.actions do %>
8
+ <%= f.submit t('.send_me_reset_password_instructions', :default => "Send me reset password instructions"), :class => "btn btn-primary btn-large" %>
9
+ <% end %>
10
+
11
+ <% end %>
12
+
13
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,18 @@
1
+ <h2 class="page-header">Modifica il tuo Account</h2>
2
+
3
+ <%= bootstrap_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => "form-horizontal"}) do |f| %>
4
+
5
+
6
+ <%= f.inputs do %>
7
+ <%= f.input :email %>
8
+ <%= f.input :password %>
9
+ <%= f.input :password_confirmation %>
10
+ <% end %>
11
+
12
+ <%= f.actions do %>
13
+ <%= f.submit "Aggiorna" , :class => "btn btn-primary btn-large" %>
14
+ <% end %>
15
+
16
+ <% end %>
17
+
18
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,18 @@
1
+ <h2 class="page-header"><%= t('.sign_up', :default => "Sign up") %></h2>
2
+
3
+ <%= bootstrap_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:class => "form-horizontal"}) do |f| %>
4
+ <%= f.inputs do %>
5
+ <%= f.input :first_name %>
6
+ <%= f.input :last_name %>
7
+ <%= f.input :email %>
8
+ <%= f.input :password %>
9
+ <%= f.input :password_confirmation %>
10
+ <% end %>
11
+
12
+ <%= f.actions do %>
13
+ <%= f.submit t('.sign_up', :default => "Sign up"), :class => "btn btn-primary btn-large" %>
14
+ <% end %>
15
+
16
+ <% end %>
17
+
18
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,16 @@
1
+ <h2 class="page-header"><%= t('.sign_in', :default => "Sign in") %></h2>
2
+
3
+ <%= bootstrap_form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => {:class => "form-horizontal"}) do |f| %>
4
+ <%= f.inputs do %>
5
+ <%= f.input :email %>
6
+ <%= f.input :password %>
7
+ <%= f.input :remember_me, :as => :boolean %>
8
+ <% end %>
9
+
10
+ <%= f.actions do %>
11
+ <%= f.submit t('.sign_in', :default => "Sign in"), :class => "btn btn-primary btn-large" %>
12
+ <% end %>
13
+ <% end %>
14
+
15
+
16
+ <%= render "devise/shared/links" %>
@@ -0,0 +1,25 @@
1
+ <%- if controller_name != 'sessions' %>
2
+ <%= link_to t(".sign_in", :default => "Sign in"), new_session_path(resource_name) %><br />
3
+ <% end -%>
4
+
5
+ <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
+ <%= link_to t(".sign_up", :default => "Sign up"), new_registration_path(resource_name) %><br />
7
+ <% end -%>
8
+
9
+ <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
10
+ <%= link_to t(".forgot_your_password", :default => "Forgot your password?"), new_password_path(resource_name) %><br />
11
+ <% end -%>
12
+
13
+ <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
14
+ <%= link_to t('.didn_t_receive_confirmation_instructions', :default => "Didn't receive confirmation instructions?"), new_confirmation_path(resource_name) %><br />
15
+ <% end -%>
16
+
17
+ <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
18
+ <%= link_to t('.didn_t_receive_unlock_instructions', :default => "Didn't receive unlock instructions?"), new_unlock_path(resource_name) %><br />
19
+ <% end -%>
20
+
21
+ <%- if devise_mapping.omniauthable? %>
22
+ <%- resource_class.omniauth_providers.each do |provider| %>
23
+ <%= link_to t('.sign_in_with_provider', :provider => provider.to_s.titleize, :default => "Sign in with #{provider.to_s.titleize}"), omniauth_authorize_path(resource_name, provider) %><br />
24
+ <% end -%>
25
+ <% end -%>
@@ -0,0 +1,12 @@
1
+ <h2><%= t('.resend_unlock_instructions', :default => "Resend unlock instructions") %></h2>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
4
+
5
+
6
+ <div><%= f.label :email %><br />
7
+ <%= f.email_field :email %></div>
8
+
9
+ <div><%= f.submit t('.resend_unlock_instructions', :default => "Resend unlock instructions") %></div>
10
+ <% end %>
11
+
12
+ <%= render "devise/shared/links" %>
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div id="logo">
5
5
  <h1>
6
- <a href="/" rel="home" class="clearfix main-logo"><%= image_tag "/img/logo.png", :title => get_setting(:title, Settings.app.title) %></a>
6
+ <a href="/" rel="home" class="clearfix main-logo"><%= image_tag "/img/logo.png", :alt => get_setting(:title, Settings.app.title) %></a>
7
7
  </h1>
8
8
  </div>
9
9
  <div class="tagline"><%= get_setting(:slogan, Settings.app.slogan) %></div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullstack-cms
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,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-04 00:00:00.000000000 Z
12
+ date: 2012-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fullstack-admin
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.2.1
21
+ version: 0.2.2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.2.1
29
+ version: 0.2.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: ars-permalink
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -107,22 +107,6 @@ dependencies:
107
107
  - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
- - !ruby/object:Gem::Dependency
111
- name: sitemap
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
110
  - !ruby/object:Gem::Dependency
127
111
  name: whenever
128
112
  requirement: !ruby/object:Gem::Requirement
@@ -270,6 +254,18 @@ files:
270
254
  - lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/bootstrap.min.css
271
255
  - lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/site.css
272
256
  - lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
257
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/_links.erb
258
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/confirmations/new.html.erb
259
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/mailer/confirmation_instructions.html.erb
260
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/mailer/reset_password_instructions.html.erb
261
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/mailer/unlock_instructions.html.erb
262
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/passwords/edit.html.erb
263
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/passwords/new.html.erb
264
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/registrations/edit.html.erb
265
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/registrations/new.html.erb
266
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/sessions/new.html.erb
267
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/shared/_links.erb
268
+ - lib/generators/fullstack/cms/templates/rails/app/views/devise/unlocks/new.html.erb
273
269
  - lib/generators/fullstack/cms/templates/rails/app/views/layouts/application.html.erb
274
270
  - lib/generators/fullstack/cms/templates/rails/app/views/layouts/email.html.erb
275
271
  - lib/generators/fullstack/cms/templates/rails/app/views/site/_footer.html.erb
@@ -317,7 +313,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
317
313
  version: '0'
318
314
  segments:
319
315
  - 0
320
- hash: 4072153903321912068
316
+ hash: -4587852856576615504
321
317
  required_rubygems_version: !ruby/object:Gem::Requirement
322
318
  none: false
323
319
  requirements: