comatose-rubyisbeautiful 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig
CHANGED
Binary file
|
@@ -13,10 +13,10 @@ module Comatose
|
|
13
13
|
locale_language, locale_country = params[:locale].to_s.split('-')
|
14
14
|
locale_language ||= 'en'
|
15
15
|
locale_country ||= 'US'
|
16
|
-
locale_language.downcase
|
16
|
+
locale_language.downcase!
|
17
17
|
locale_country.upcase!
|
18
|
-
I18n.locale = locale_language
|
19
|
-
logger.debug "Locale set to #{
|
18
|
+
I18n.locale = "#{locale_language}-#{locale_country}"
|
19
|
+
logger.debug "Locale set to #{I18n.locale} from param #{params[:locale]}"
|
20
20
|
end
|
21
21
|
|
22
22
|
|
@@ -1,5 +1,13 @@
|
|
1
1
|
<%- # TODO error_messages_for :page %>
|
2
2
|
|
3
|
+
3 <% if @page.new_record? %>
|
4
|
+
4 @_form_url = "/#{I18n.locale}/comatose/pages"
|
5
|
+
5 <% else %>
|
6
|
+
6 @_form_url = comatose_page_path(@page, :locale => I18n.locale)
|
7
|
+
7 <% end %>
|
8
|
+
8
|
9
|
+
9 <% form_for @page, :url => @_form_url, :as => :page do |f| %>
|
10
|
+
|
3
11
|
<% form_for @page, :url => comatose_page_path(@page), :as => :page do |f| %>
|
4
12
|
<table class="page-form" cellpadding="0" cellspacing="0">
|
5
13
|
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{comatose-rubyisbeautiful}
|
5
|
-
s.version = "3.0.
|
5
|
+
s.version = "3.0.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.8.4") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = [%q{Bryan Taylor, Matt McCray, Michael Kovacs}]
|
9
9
|
s.cert_chain = [%q{/Users/bryan/.gem_credentials/gem-public_cert.pem}]
|
10
|
-
s.date = %q{2011-
|
10
|
+
s.date = %q{2011-09-01}
|
11
11
|
s.description = %q{Web Content Management in Rails 3.}
|
12
12
|
s.email = %q{ artofobjects at gmail dot com }
|
13
13
|
s.extra_rdoc_files = [%q{CHANGELOG}, %q{LICENSE}, %q{README}, %q{README.markdown}, %q{lib/comatose.rb}, %q{lib/comatose/configuration.rb}, %q{lib/comatose/drop.rb}, %q{lib/comatose/engine.rb}, %q{lib/comatose/filters/inline_filter.rb}, %q{lib/comatose/filters/timeago_filter.rb}, %q{lib/comatose/filters/translation_filter.rb}, %q{lib/comatose/locale_constraint.rb}, %q{lib/comatose/logger.rb}, %q{lib/comatose/page_wrapper.rb}, %q{lib/comatose/processing_context.rb}, %q{lib/comatose/routes.rb}, %q{lib/comatose/tasks/admin.rb}, %q{lib/comatose/tasks/data.rb}, %q{lib/comatose/tasks/setup.rb}, %q{lib/comatose/text_filters.rb}, %q{lib/comatose/version.rb}, %q{lib/generators/comatose/USAGE}, %q{lib/generators/comatose/comatose_generator.rb}, %q{lib/generators/comatose/templates/comatose.rb}, %q{lib/generators/comatose/templates/migration.erb}, %q{lib/generators/comatose/templates/seeds.erb}, %q{lib/support/class_options.rb}, %q{lib/support/inline_rendering.rb}, %q{lib/support/route_mapper.rb}, %q{lib/tasks/comatose.rake}, %q{lib/text_filters/markdown.rb}, %q{lib/text_filters/markdown_smartypants.rb}, %q{lib/text_filters/none.rb}, %q{lib/text_filters/rdoc.rb}, %q{lib/text_filters/simple.rb}, %q{lib/text_filters/textile.rb}]
|
@@ -31,7 +31,7 @@ From here you'll want to run:
|
|
31
31
|
s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Comatose-rubyisbeautiful}, %q{--main}, %q{README}]
|
32
32
|
s.require_paths = [%q{lib}]
|
33
33
|
s.rubyforge_project = %q{comatose-rubyisbeautiful}
|
34
|
-
s.rubygems_version = %q{1.8.
|
34
|
+
s.rubygems_version = %q{1.8.6}
|
35
35
|
s.signing_key = %q{/Users/bryan/.gem_credentials/gem-private_key.pem}
|
36
36
|
s.summary = %q{Micro CMS - resurrected for Rails 3}
|
37
37
|
s.test_files = [%q{test/functional/comatose_admin_controller_test.rb}, %q{test/functional/comatose_controller_test.rb}, %q{test/integration/comatose_routing_test.rb}, %q{test/performance/browsing_test.rb}, %q{test/test_helper.rb}, %q{test/unit/class_options_test.rb}, %q{test/unit/comatose_page_test.rb}, %q{test/unit/processing_context_test.rb}, %q{test/unit/text_filters_test.rb}]
|
data/lib/comatose/version.rb
CHANGED
metadata
CHANGED
@@ -1,111 +1,128 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: comatose-rubyisbeautiful
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.3
|
4
5
|
prerelease:
|
5
|
-
version: 3.0.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Bryan Taylor, Matt McCray, Michael Kovacs
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
-
|
13
|
-
|
11
|
+
cert_chain:
|
12
|
+
- ! '-----BEGIN CERTIFICATE-----
|
13
|
+
|
14
14
|
MIIDMDCCAhigAwIBAgIBADANBgkqhkiG9w0BAQUFADA+MRIwEAYDVQQDDAlidGF5
|
15
|
+
|
15
16
|
bG9yMzkxEzARBgoJkiaJk/IsZAEZFgNjc2MxEzARBgoJkiaJk/IsZAEZFgNjb20w
|
17
|
+
|
16
18
|
HhcNMTEwMjE2MTI1MzQzWhcNMTIwMjE2MTI1MzQzWjA+MRIwEAYDVQQDDAlidGF5
|
19
|
+
|
17
20
|
bG9yMzkxEzARBgoJkiaJk/IsZAEZFgNjc2MxEzARBgoJkiaJk/IsZAEZFgNjb20w
|
21
|
+
|
18
22
|
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDid0W3CiAzCKP+H70D/FFq
|
23
|
+
|
19
24
|
RnwfMdTqsIGK6pKZ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011-09-01 00:00:00.000000000Z
|
54
|
+
dependencies:
|
55
|
+
- !ruby/object:Gem::Dependency
|
37
56
|
name: rake
|
38
|
-
|
39
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
57
|
+
requirement: &2156116860 !ruby/object:Gem::Requirement
|
40
58
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
44
62
|
version: 0.9.2
|
45
63
|
type: :runtime
|
46
|
-
version_requirements: *id001
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: rails
|
49
64
|
prerelease: false
|
50
|
-
|
65
|
+
version_requirements: *2156116860
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
name: rails
|
68
|
+
requirement: &2156116240 !ruby/object:Gem::Requirement
|
51
69
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
55
73
|
version: 3.0.9
|
56
74
|
type: :runtime
|
57
|
-
version_requirements: *id002
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: acts_as_versioned
|
60
75
|
prerelease: false
|
61
|
-
|
76
|
+
version_requirements: *2156116240
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: acts_as_versioned
|
79
|
+
requirement: &2156115640 !ruby/object:Gem::Requirement
|
62
80
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version:
|
81
|
+
requirements:
|
82
|
+
- - ! '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
67
85
|
type: :runtime
|
68
|
-
version_requirements: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: acts_as_list-rails3
|
71
86
|
prerelease: false
|
72
|
-
|
87
|
+
version_requirements: *2156115640
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: acts_as_list-rails3
|
90
|
+
requirement: &2156114940 !ruby/object:Gem::Requirement
|
73
91
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version:
|
92
|
+
requirements:
|
93
|
+
- - ! '>='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
78
96
|
type: :runtime
|
79
|
-
version_requirements: *id004
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: acts_as_tree_rails3
|
82
97
|
prerelease: false
|
83
|
-
|
98
|
+
version_requirements: *2156114940
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: acts_as_tree_rails3
|
101
|
+
requirement: &2156114320 !ruby/object:Gem::Requirement
|
84
102
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version:
|
103
|
+
requirements:
|
104
|
+
- - ! '>='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
89
107
|
type: :runtime
|
90
|
-
version_requirements: *id005
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: term-ansicolor
|
93
108
|
prerelease: false
|
94
|
-
|
109
|
+
version_requirements: *2156114320
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: term-ansicolor
|
112
|
+
requirement: &2156090380 !ruby/object:Gem::Requirement
|
95
113
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version:
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
100
118
|
type: :development
|
101
|
-
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: *2156090380
|
102
121
|
description: Web Content Management in Rails 3.
|
103
|
-
email:
|
122
|
+
email: ! ' artofobjects at gmail dot com '
|
104
123
|
executables: []
|
105
|
-
|
106
124
|
extensions: []
|
107
|
-
|
108
|
-
extra_rdoc_files:
|
125
|
+
extra_rdoc_files:
|
109
126
|
- CHANGELOG
|
110
127
|
- LICENSE
|
111
128
|
- README
|
@@ -142,7 +159,7 @@ extra_rdoc_files:
|
|
142
159
|
- lib/text_filters/rdoc.rb
|
143
160
|
- lib/text_filters/simple.rb
|
144
161
|
- lib/text_filters/textile.rb
|
145
|
-
files:
|
162
|
+
files:
|
146
163
|
- CHANGELOG
|
147
164
|
- Gemfile
|
148
165
|
- Gemfile.lock
|
@@ -327,40 +344,38 @@ files:
|
|
327
344
|
- test/unit/text_filters_test.rb
|
328
345
|
homepage: http://comatose-rubyisbeautiful.github.com/comatose-rubyisbeautiful/
|
329
346
|
licenses: []
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
rdoc_options:
|
347
|
+
post_install_message: ! "\n======================\n Welcome to Comatose!\n======================\n\nFrom
|
348
|
+
here you'll want to run:\n\n $ rails generate comatose\n $ rake db:migrate\n\n
|
349
|
+
\ Add the default comatose routes to the top of your routes.rb file:\n\n routes_for_comatose\n
|
350
|
+
\ admin_routes_for_comatose\n"
|
351
|
+
rdoc_options:
|
336
352
|
- --line-numbers
|
337
353
|
- --inline-source
|
338
354
|
- --title
|
339
355
|
- Comatose-rubyisbeautiful
|
340
356
|
- --main
|
341
357
|
- README
|
342
|
-
require_paths:
|
358
|
+
require_paths:
|
343
359
|
- lib
|
344
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
360
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
345
361
|
none: false
|
346
|
-
requirements:
|
347
|
-
- -
|
348
|
-
- !ruby/object:Gem::Version
|
349
|
-
version:
|
350
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
362
|
+
requirements:
|
363
|
+
- - ! '>='
|
364
|
+
- !ruby/object:Gem::Version
|
365
|
+
version: '0'
|
366
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
351
367
|
none: false
|
352
|
-
requirements:
|
353
|
-
- -
|
354
|
-
- !ruby/object:Gem::Version
|
368
|
+
requirements:
|
369
|
+
- - ! '>='
|
370
|
+
- !ruby/object:Gem::Version
|
355
371
|
version: 1.8.4
|
356
372
|
requirements: []
|
357
|
-
|
358
373
|
rubyforge_project: comatose-rubyisbeautiful
|
359
|
-
rubygems_version: 1.8.
|
374
|
+
rubygems_version: 1.8.6
|
360
375
|
signing_key:
|
361
376
|
specification_version: 3
|
362
377
|
summary: Micro CMS - resurrected for Rails 3
|
363
|
-
test_files:
|
378
|
+
test_files:
|
364
379
|
- test/functional/comatose_admin_controller_test.rb
|
365
380
|
- test/functional/comatose_controller_test.rb
|
366
381
|
- test/integration/comatose_routing_test.rb
|
metadata.gz.sig
CHANGED
Binary file
|