puffer_pages 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +41 -51
- data/VERSION +1 -1
- data/app/assets/javascripts/puffer/codemirror.js +2197 -0
- data/app/assets/javascripts/puffer/codemirror/css.js +124 -0
- data/app/assets/javascripts/puffer/codemirror/htmlmixed.js +84 -0
- data/app/assets/javascripts/puffer/codemirror/javascript.js +352 -0
- data/app/assets/javascripts/puffer/codemirror/xml.js +231 -0
- data/app/assets/javascripts/puffer/overlay.js +51 -0
- data/app/assets/javascripts/{puffer_pages → puffer}/puffer_pages.js +21 -11
- data/app/assets/javascripts/{puffer_pages → puffer}/right-tabs-src.js +0 -0
- data/app/assets/stylesheets/puffer/codemirror.css +68 -0
- data/app/assets/stylesheets/puffer/codemirror/cobalt.css +17 -0
- data/app/assets/stylesheets/puffer/codemirror/default.css +19 -0
- data/app/assets/stylesheets/puffer/codemirror/eclipse.css +24 -0
- data/app/assets/stylesheets/puffer/codemirror/elegant.css +9 -0
- data/app/assets/stylesheets/puffer/codemirror/neat.css +8 -0
- data/app/assets/stylesheets/puffer/codemirror/night.css +20 -0
- data/app/assets/stylesheets/puffer/puffer_pages.css +7 -0
- data/app/components/page_parts/form.html.erb +7 -6
- data/app/controllers/puffer_pages/layouts_base.rb +1 -2
- data/app/controllers/puffer_pages/pages_base.rb +1 -2
- data/app/controllers/puffer_pages/snippets_base.rb +1 -2
- data/puffer_pages.gemspec +18 -12
- data/spec/dummy/app/controllers/application_controller.rb +4 -0
- data/spec/dummy/config/environments/development.rb +3 -0
- data/spec/dummy/db/schema.rb +1 -0
- metadata +51 -45
- data/app/assets/javascripts/puffer_pages/application.js +0 -3
- data/app/assets/javascripts/puffer_pages/codemirror-base.js +0 -1
- data/app/assets/javascripts/puffer_pages/codemirror-parser.js +0 -1
- data/app/assets/javascripts/puffer_pages/codemirror.js +0 -1
- data/app/assets/stylesheets/puffer_pages/application.css +0 -3
- data/app/assets/stylesheets/puffer_pages/codemirror.css +0 -135
- data/app/assets/stylesheets/puffer_pages/puffer_pages.css +0 -12
- data/app/views/layouts/puffer_pages.html.erb +0 -9
@@ -0,0 +1,9 @@
|
|
1
|
+
.cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;}
|
2
|
+
.cm-s-elegant span.cm-comment {color: #262;font-style: italic;}
|
3
|
+
.cm-s-elegant span.cm-meta {color: #555;font-style: italic;}
|
4
|
+
.cm-s-elegant span.cm-variable {color: black;}
|
5
|
+
.cm-s-elegant span.cm-variable-2 {color: #b11;}
|
6
|
+
.cm-s-elegant span.cm-qualifier {color: #555;}
|
7
|
+
.cm-s-elegant span.cm-keyword {color: #730;}
|
8
|
+
.cm-s-elegant span.cm-builtin {color: #30a;}
|
9
|
+
.cm-s-elegant span.cm-error {background-color: #fdd;}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
.cm-s-neat span.cm-comment { color: #a86; }
|
2
|
+
.cm-s-neat span.cm-keyword { font-weight: bold; color: blue; }
|
3
|
+
.cm-s-neat span.cm-string { color: #a22; }
|
4
|
+
.cm-s-neat span.cm-builtin { font-weight: bold; color: #077; }
|
5
|
+
.cm-s-neat span.cm-special { font-weight: bold; color: #0aa; }
|
6
|
+
.cm-s-neat span.cm-variable { color: black; }
|
7
|
+
.cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
|
8
|
+
.cm-s-neat span.cm-meta {color: #555;}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/* Loosely based on the Midnight Textmate theme */
|
2
|
+
|
3
|
+
.cm-s-night { background: #0a001f; color: #f8f8f8; }
|
4
|
+
.cm-s-night span.CodeMirror-selected { background: #a8f !important; }
|
5
|
+
.cm-s-night .CodeMirror-gutter { background: #0a001f; border-right: 1px solid #aaa; }
|
6
|
+
.cm-s-night .CodeMirror-gutter-text { color: #f8f8f8; }
|
7
|
+
.cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; }
|
8
|
+
|
9
|
+
.cm-s-night span.cm-comment { color: #6900a1; }
|
10
|
+
.cm-s-night span.cm-atom { color: #845dc4; }
|
11
|
+
.cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
|
12
|
+
.cm-s-night span.cm-keyword { color: #599eff; }
|
13
|
+
.cm-s-night span.cm-string { color: #37f14a; }
|
14
|
+
.cm-s-night span.cm-meta { color: #7678e2; }
|
15
|
+
.cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
|
16
|
+
.cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
|
17
|
+
.cm-s-night span.cm-error { color: #9d1e15; }
|
18
|
+
.cm-s-night span.cm-bracket { color: #8da6ce; }
|
19
|
+
.cm-s-night span.cm-comment { color: #6900a1; }
|
20
|
+
.cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
|
@@ -1,15 +1,16 @@
|
|
1
|
-
<ul id="
|
1
|
+
<ul id="<%= field.name %>" data-tabs="{closable: true, onRemove: page_part_tab_remove, addButton: page_part_tab_add}">
|
2
2
|
<ul>
|
3
|
-
<% opts[:form].object.
|
3
|
+
<% opts[:form].object.send(field.name).each_with_index do |page_part, index| %>
|
4
4
|
<li><%= link_to page_part.name, "#page_part_tab_#{index}" %></li>
|
5
5
|
<% end %>
|
6
6
|
</ul>
|
7
|
-
<% opts[:form].object.
|
7
|
+
<% opts[:form].object.send(field.name).each_with_index do |page_part, index| -%>
|
8
8
|
<li id="<%= "page_part_tab_#{index}" %>">
|
9
|
-
<% opts[:form].fields_for
|
9
|
+
<% opts[:form].fields_for field.name, page_part, :hidden_field_id => true do |page_part_builder| %>
|
10
10
|
<% field.children.each do |field| %>
|
11
11
|
<%= field.render parent_controller, :form, :form => page_part_builder %>
|
12
12
|
<% end %>
|
13
|
+
<%= page_part_builder.hidden_field :id unless page_part_builder.object.persisted? %>
|
13
14
|
<% end %>
|
14
15
|
</li>
|
15
16
|
<% end -%>
|
@@ -18,7 +19,7 @@
|
|
18
19
|
</div>
|
19
20
|
|
20
21
|
<% new_page_part_tab_panel = capture do %>
|
21
|
-
<% opts[:form].fields_for
|
22
|
+
<% opts[:form].fields_for field.name, PagePart.new, :child_index => 'new_page_part_tab_panel_index' do |page_part_builder| %>
|
22
23
|
<% field.children.each do |field| %>
|
23
24
|
<%= field.render parent_controller, :form, :form => page_part_builder %>
|
24
25
|
<% end %>
|
@@ -26,5 +27,5 @@
|
|
26
27
|
<% end %>
|
27
28
|
|
28
29
|
<%= javascript_tag do %>
|
29
|
-
var new_page_part_tab_panel = '<%=
|
30
|
+
var new_page_part_tab_panel = '<%= j new_page_part_tab_panel.strip.html_safe %>'
|
30
31
|
<% end %>
|
data/puffer_pages.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{puffer_pages}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.19"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = [%q{pyromaniac}]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-10-27}
|
13
13
|
s.description = %q{Puffer pages is integratable rails CMS with puffer admin interface}
|
14
14
|
s.email = %q{kinwizard@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -24,15 +24,22 @@ Gem::Specification.new do |s|
|
|
24
24
|
"README.md",
|
25
25
|
"Rakefile",
|
26
26
|
"VERSION",
|
27
|
-
"app/assets/javascripts/
|
28
|
-
"app/assets/javascripts/
|
29
|
-
"app/assets/javascripts/
|
30
|
-
"app/assets/javascripts/
|
31
|
-
"app/assets/javascripts/
|
32
|
-
"app/assets/javascripts/
|
33
|
-
"app/assets/
|
34
|
-
"app/assets/
|
35
|
-
"app/assets/stylesheets/
|
27
|
+
"app/assets/javascripts/puffer/codemirror.js",
|
28
|
+
"app/assets/javascripts/puffer/codemirror/css.js",
|
29
|
+
"app/assets/javascripts/puffer/codemirror/htmlmixed.js",
|
30
|
+
"app/assets/javascripts/puffer/codemirror/javascript.js",
|
31
|
+
"app/assets/javascripts/puffer/codemirror/xml.js",
|
32
|
+
"app/assets/javascripts/puffer/overlay.js",
|
33
|
+
"app/assets/javascripts/puffer/puffer_pages.js",
|
34
|
+
"app/assets/javascripts/puffer/right-tabs-src.js",
|
35
|
+
"app/assets/stylesheets/puffer/codemirror.css",
|
36
|
+
"app/assets/stylesheets/puffer/codemirror/cobalt.css",
|
37
|
+
"app/assets/stylesheets/puffer/codemirror/default.css",
|
38
|
+
"app/assets/stylesheets/puffer/codemirror/eclipse.css",
|
39
|
+
"app/assets/stylesheets/puffer/codemirror/elegant.css",
|
40
|
+
"app/assets/stylesheets/puffer/codemirror/neat.css",
|
41
|
+
"app/assets/stylesheets/puffer/codemirror/night.css",
|
42
|
+
"app/assets/stylesheets/puffer/puffer_pages.css",
|
36
43
|
"app/components/page_part_body/form.html.erb",
|
37
44
|
"app/components/page_part_body_component.rb",
|
38
45
|
"app/components/page_parts/form.html.erb",
|
@@ -53,7 +60,6 @@ Gem::Specification.new do |s|
|
|
53
60
|
"app/models/puffer_pages/page_part.rb",
|
54
61
|
"app/models/puffer_pages/snippet.rb",
|
55
62
|
"app/models/snippet.rb",
|
56
|
-
"app/views/layouts/puffer_pages.html.erb",
|
57
63
|
"app/views/puffer_pages/pages_base/_tree_page.html.erb",
|
58
64
|
"config/locales/en.yml",
|
59
65
|
"config/puffer_routes.rb",
|
data/spec/dummy/db/schema.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puffer_pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-10-27 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &14370180 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *14370180
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: puffer
|
27
|
-
requirement: &
|
27
|
+
requirement: &14369580 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *14369580
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: liquid
|
38
|
-
requirement: &
|
38
|
+
requirement: &14338380 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *14338380
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: nested_set
|
49
|
-
requirement: &
|
49
|
+
requirement: &14337760 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *14337760
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: sqlite3-ruby
|
60
|
-
requirement: &
|
60
|
+
requirement: &14337160 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *14337160
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: pg
|
71
|
-
requirement: &
|
71
|
+
requirement: &14336520 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *14336520
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: mysql
|
82
|
-
requirement: &
|
82
|
+
requirement: &14335860 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *14335860
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rspec-rails
|
93
|
-
requirement: &
|
93
|
+
requirement: &14335360 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *14335360
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: capybara
|
104
|
-
requirement: &
|
104
|
+
requirement: &14334880 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 0.4.0
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *14334880
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: database_cleaner
|
115
|
-
requirement: &
|
115
|
+
requirement: &14334400 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *14334400
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: guard
|
126
|
-
requirement: &
|
126
|
+
requirement: &14333900 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *14333900
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: libnotify
|
137
|
-
requirement: &
|
137
|
+
requirement: &14333380 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: '0'
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *14333380
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: guard-rspec
|
148
|
-
requirement: &
|
148
|
+
requirement: &14332840 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: '0'
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *14332840
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: forgery
|
159
|
-
requirement: &
|
159
|
+
requirement: &14332340 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ! '>='
|
@@ -164,10 +164,10 @@ dependencies:
|
|
164
164
|
version: '0'
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *14332340
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: fabrication
|
170
|
-
requirement: &
|
170
|
+
requirement: &14331840 !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|
173
173
|
- - ! '>='
|
@@ -175,10 +175,10 @@ dependencies:
|
|
175
175
|
version: '0'
|
176
176
|
type: :development
|
177
177
|
prerelease: false
|
178
|
-
version_requirements: *
|
178
|
+
version_requirements: *14331840
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
180
|
name: jeweler
|
181
|
-
requirement: &
|
181
|
+
requirement: &14331360 !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|
184
184
|
- - ! '>='
|
@@ -186,7 +186,7 @@ dependencies:
|
|
186
186
|
version: '0'
|
187
187
|
type: :development
|
188
188
|
prerelease: false
|
189
|
-
version_requirements: *
|
189
|
+
version_requirements: *14331360
|
190
190
|
description: Puffer pages is integratable rails CMS with puffer admin interface
|
191
191
|
email: kinwizard@gmail.com
|
192
192
|
executables: []
|
@@ -202,15 +202,22 @@ files:
|
|
202
202
|
- README.md
|
203
203
|
- Rakefile
|
204
204
|
- VERSION
|
205
|
-
- app/assets/javascripts/
|
206
|
-
- app/assets/javascripts/
|
207
|
-
- app/assets/javascripts/
|
208
|
-
- app/assets/javascripts/
|
209
|
-
- app/assets/javascripts/
|
210
|
-
- app/assets/javascripts/
|
211
|
-
- app/assets/
|
212
|
-
- app/assets/
|
213
|
-
- app/assets/stylesheets/
|
205
|
+
- app/assets/javascripts/puffer/codemirror.js
|
206
|
+
- app/assets/javascripts/puffer/codemirror/css.js
|
207
|
+
- app/assets/javascripts/puffer/codemirror/htmlmixed.js
|
208
|
+
- app/assets/javascripts/puffer/codemirror/javascript.js
|
209
|
+
- app/assets/javascripts/puffer/codemirror/xml.js
|
210
|
+
- app/assets/javascripts/puffer/overlay.js
|
211
|
+
- app/assets/javascripts/puffer/puffer_pages.js
|
212
|
+
- app/assets/javascripts/puffer/right-tabs-src.js
|
213
|
+
- app/assets/stylesheets/puffer/codemirror.css
|
214
|
+
- app/assets/stylesheets/puffer/codemirror/cobalt.css
|
215
|
+
- app/assets/stylesheets/puffer/codemirror/default.css
|
216
|
+
- app/assets/stylesheets/puffer/codemirror/eclipse.css
|
217
|
+
- app/assets/stylesheets/puffer/codemirror/elegant.css
|
218
|
+
- app/assets/stylesheets/puffer/codemirror/neat.css
|
219
|
+
- app/assets/stylesheets/puffer/codemirror/night.css
|
220
|
+
- app/assets/stylesheets/puffer/puffer_pages.css
|
214
221
|
- app/components/page_part_body/form.html.erb
|
215
222
|
- app/components/page_part_body_component.rb
|
216
223
|
- app/components/page_parts/form.html.erb
|
@@ -231,7 +238,6 @@ files:
|
|
231
238
|
- app/models/puffer_pages/page_part.rb
|
232
239
|
- app/models/puffer_pages/snippet.rb
|
233
240
|
- app/models/snippet.rb
|
234
|
-
- app/views/layouts/puffer_pages.html.erb
|
235
241
|
- app/views/puffer_pages/pages_base/_tree_page.html.erb
|
236
242
|
- config/locales/en.yml
|
237
243
|
- config/puffer_routes.rb
|
@@ -312,7 +318,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
312
318
|
version: '0'
|
313
319
|
segments:
|
314
320
|
- 0
|
315
|
-
hash:
|
321
|
+
hash: -3241101979451614417
|
316
322
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
317
323
|
none: false
|
318
324
|
requirements:
|