puffer_pages 0.1.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. data/.gitignore +5 -0
  2. data/.rspec +3 -1
  3. data/.rvmrc +1 -1
  4. data/.travis.yml +13 -5
  5. data/CHANGELOG.md +130 -7
  6. data/Gemfile +10 -1
  7. data/README.md +18 -20
  8. data/Rakefile +1 -1
  9. data/app/assets/javascripts/puffer/codemirror.js +4237 -2223
  10. data/app/assets/javascripts/puffer/codemirror/css.js +359 -18
  11. data/app/assets/javascripts/puffer/codemirror/htmlmixed.js +15 -14
  12. data/app/assets/javascripts/puffer/codemirror/javascript.js +91 -29
  13. data/app/assets/javascripts/puffer/codemirror/liquid.js +185 -0
  14. data/app/assets/javascripts/puffer/codemirror/xml.js +99 -27
  15. data/app/assets/javascripts/puffer/codemirror/yaml.js +95 -0
  16. data/app/assets/javascripts/puffer/liquid.js +28 -12
  17. data/app/assets/javascripts/puffer/matchbrackets.js +63 -0
  18. data/app/assets/javascripts/puffer/multiplex.js +95 -0
  19. data/app/assets/javascripts/puffer/puffer_pages.js +140 -44
  20. data/app/assets/stylesheets/puffer/codemirror.css +203 -67
  21. data/app/assets/stylesheets/puffer/codemirror/ambiance-mobile.css +6 -0
  22. data/app/assets/stylesheets/puffer/codemirror/ambiance.css +76 -0
  23. data/app/assets/stylesheets/puffer/codemirror/blackboard.css +25 -0
  24. data/app/assets/stylesheets/puffer/codemirror/cobalt.css +4 -4
  25. data/app/assets/stylesheets/puffer/codemirror/eclipse.css +1 -1
  26. data/app/assets/stylesheets/puffer/codemirror/elegant.css +2 -2
  27. data/app/assets/stylesheets/puffer/codemirror/erlang-dark.css +21 -0
  28. data/app/assets/stylesheets/puffer/codemirror/lesser-dark.css +44 -0
  29. data/app/assets/stylesheets/puffer/codemirror/monokai.css +4 -4
  30. data/app/assets/stylesheets/puffer/codemirror/neat.css +3 -3
  31. data/app/assets/stylesheets/puffer/codemirror/night.css +4 -4
  32. data/app/assets/stylesheets/puffer/codemirror/rubyblue.css +5 -5
  33. data/app/assets/stylesheets/puffer/codemirror/solarized.css +207 -0
  34. data/app/assets/stylesheets/puffer/codemirror/twilight.css +26 -0
  35. data/app/assets/stylesheets/puffer/codemirror/vibrant-ink.css +27 -0
  36. data/app/assets/stylesheets/puffer/codemirror/xq-dark.css +46 -0
  37. data/app/assets/stylesheets/puffer/puffer_pages.css +64 -35
  38. data/app/components/codemirror/form.html.erb +22 -6
  39. data/app/components/codemirror_component.rb +1 -8
  40. data/app/components/handlers/form.html.erb +8 -0
  41. data/app/components/handlers_component.rb +8 -0
  42. data/app/components/page_parts/_page_part.html.erb +6 -0
  43. data/app/components/page_parts/form.html.erb +8 -27
  44. data/app/components/page_parts_component.rb +1 -3
  45. data/app/components/render/_tree_page.html.erb +3 -2
  46. data/app/controllers/admin/layouts_controller.rb +1 -1
  47. data/app/controllers/admin/origins_controller.rb +3 -0
  48. data/app/controllers/admin/pages_controller.rb +1 -1
  49. data/app/controllers/admin/snippets_controller.rb +1 -1
  50. data/app/controllers/pages_controller.rb +3 -3
  51. data/app/helpers/puffer_pages_helper.rb +3 -3
  52. data/app/models/puffer_pages/layout.rb +2 -7
  53. data/app/models/puffer_pages/origin.rb +2 -0
  54. data/app/models/puffer_pages/page.rb +1 -117
  55. data/app/models/puffer_pages/page_part.rb +2 -22
  56. data/app/models/puffer_pages/snippet.rb +2 -5
  57. data/config/routes.rb +3 -0
  58. data/db/migrate/20120812100913_create_origins.rb +16 -0
  59. data/db/migrate/20120924120226_migrate_to_uuid.rb +126 -0
  60. data/db/migrate/20130110144030_add_handler_to_page_parts.rb +9 -0
  61. data/db/migrate/20130118064524_add_locales_to_pages.rb +9 -0
  62. data/gemfiles/Gemfile.rails-3-1 +7 -0
  63. data/gemfiles/Gemfile.rails-3-2 +7 -0
  64. data/gemfiles/Gemfile.rails-head +7 -0
  65. data/lib/puffer_pages.rb +43 -7
  66. data/lib/puffer_pages/backends.rb +16 -0
  67. data/{app/controllers/puffer_pages → lib/puffer_pages/backends/controllers}/layouts_base.rb +2 -5
  68. data/lib/puffer_pages/backends/controllers/origins_base.rb +43 -0
  69. data/lib/puffer_pages/backends/controllers/pages_base.rb +52 -0
  70. data/{app/controllers/puffer_pages → lib/puffer_pages/backends/controllers}/snippets_base.rb +2 -5
  71. data/lib/puffer_pages/backends/models/layout.rb +34 -0
  72. data/lib/puffer_pages/backends/models/mixins/importable.rb +42 -0
  73. data/lib/puffer_pages/backends/models/mixins/localable.rb +65 -0
  74. data/lib/puffer_pages/backends/models/mixins/renderable.rb +153 -0
  75. data/lib/puffer_pages/backends/models/mixins/translatable.rb +52 -0
  76. data/lib/puffer_pages/backends/models/origin.rb +59 -0
  77. data/lib/puffer_pages/backends/models/page.rb +221 -0
  78. data/lib/puffer_pages/backends/models/page_part.rb +71 -0
  79. data/lib/puffer_pages/backends/models/snippet.rb +34 -0
  80. data/lib/puffer_pages/engine.rb +13 -2
  81. data/lib/puffer_pages/extensions/context.rb +31 -0
  82. data/lib/puffer_pages/extensions/core.rb +1 -8
  83. data/lib/puffer_pages/extensions/pagenator.rb +69 -0
  84. data/lib/puffer_pages/extensions/renderer.rb +31 -0
  85. data/lib/puffer_pages/globalize/migrator.rb +23 -0
  86. data/lib/puffer_pages/handlers.rb +29 -0
  87. data/lib/puffer_pages/handlers/base.rb +21 -0
  88. data/lib/puffer_pages/handlers/yaml.rb +20 -0
  89. data/lib/puffer_pages/helpers.rb +14 -0
  90. data/lib/puffer_pages/liquid/backend.rb +16 -0
  91. data/lib/puffer_pages/liquid/file_system.rb +36 -12
  92. data/lib/puffer_pages/liquid/page_drop.rb +26 -23
  93. data/lib/puffer_pages/liquid/tags/array.rb +39 -0
  94. data/lib/puffer_pages/liquid/tags/{javascripts.rb → assets.rb} +13 -4
  95. data/lib/puffer_pages/liquid/tags/helper.rb +15 -0
  96. data/lib/puffer_pages/liquid/tags/include.rb +32 -0
  97. data/lib/puffer_pages/liquid/tags/javascript.rb +15 -0
  98. data/lib/puffer_pages/liquid/tags/partials.rb +22 -0
  99. data/lib/puffer_pages/liquid/tags/render.rb +28 -0
  100. data/lib/puffer_pages/liquid/tags/scope.rb +31 -0
  101. data/lib/puffer_pages/liquid/tags/super.rb +36 -0
  102. data/lib/puffer_pages/liquid/tags/translate.rb +56 -0
  103. data/lib/puffer_pages/liquid/tags/url.rb +53 -0
  104. data/lib/puffer_pages/liquid/tags/yield.rb +3 -1
  105. data/lib/puffer_pages/log_subscriber.rb +29 -0
  106. data/lib/puffer_pages/migrations.rb +31 -0
  107. data/lib/puffer_pages/renderer.rb +25 -0
  108. data/lib/puffer_pages/rspec/matchers.rb +27 -0
  109. data/lib/puffer_pages/rspec/matchers/render_page.rb +90 -0
  110. data/lib/puffer_pages/version.rb +1 -1
  111. data/puffer_pages.gemspec +18 -18
  112. data/spec/controllers/pages_controller_spec.rb +44 -0
  113. data/spec/controllers/puffer_pages_controller_spec.rb +194 -0
  114. data/spec/data/broken.json +8 -0
  115. data/spec/data/import.json +55 -0
  116. data/spec/data/localized.json +106 -0
  117. data/spec/data/unlocalized.json +82 -0
  118. data/spec/dummy/.rvmrc +1 -0
  119. data/spec/dummy/app/controllers/application_controller.rb +6 -0
  120. data/spec/dummy/app/views/layouts/sample.en.erb +1 -0
  121. data/spec/dummy/app/views/layouts/sample.ru.erb +1 -0
  122. data/spec/dummy/app/views/shared/_first.html.erb +1 -0
  123. data/spec/dummy/config/application.rb +21 -2
  124. data/spec/dummy/config/boot.rb +0 -2
  125. data/spec/dummy/config/database.yml +7 -1
  126. data/spec/dummy/config/environments/development.rb +11 -2
  127. data/spec/dummy/config/environments/pg_test.rb +6 -6
  128. data/spec/dummy/config/environments/production.rb +19 -3
  129. data/spec/dummy/config/environments/test.rb +6 -6
  130. data/spec/dummy/config/initializers/inflections.rb +5 -0
  131. data/spec/dummy/config/initializers/puffer_pages.rb +4 -0
  132. data/spec/dummy/config/initializers/secret_token.rb +1 -1
  133. data/spec/dummy/config/initializers/wrap_parameters.rb +5 -3
  134. data/spec/dummy/config/routes.rb +2 -1
  135. data/spec/dummy/db/migrate/{20090422092419_create_pages.rb → 20130118071511_create_pages.rb} +1 -0
  136. data/spec/dummy/db/migrate/{20090504132337_create_page_parts.rb → 20130118071512_create_page_parts.rb} +1 -0
  137. data/spec/dummy/db/migrate/{20090506102004_create_layouts.rb → 20130118071513_create_layouts.rb} +1 -0
  138. data/spec/dummy/db/migrate/{20090510121824_create_snippets.rb → 20130118071514_create_snippets.rb} +1 -0
  139. data/spec/dummy/db/migrate/20130118071515_create_origins.rb +17 -0
  140. data/spec/dummy/db/migrate/20130118071516_migrate_to_uuid.rb +127 -0
  141. data/spec/dummy/db/migrate/20130118071517_add_handler_to_page_parts.rb +10 -0
  142. data/spec/dummy/db/migrate/20130118071518_add_locales_to_pages.rb +10 -0
  143. data/spec/dummy/db/migrate/20130118071519_add_translations.rb +9 -0
  144. data/spec/dummy/db/schema.rb +65 -17
  145. data/spec/fabricators/articles_fabricator.rb +2 -2
  146. data/spec/fabricators/layouts_fabricator.rb +24 -3
  147. data/spec/fabricators/origin_fabricator.rb +5 -0
  148. data/spec/fabricators/page_parts_fabricator.rb +17 -2
  149. data/spec/fabricators/pages_fabricator.rb +20 -5
  150. data/spec/fabricators/snippets_fabricator.rb +14 -3
  151. data/spec/lib/handlers/base_spec.rb +10 -0
  152. data/spec/lib/handlers/yaml_spec.rb +34 -0
  153. data/spec/lib/handlers_spec.rb +36 -0
  154. data/spec/lib/liquid/backend_spec.rb +20 -0
  155. data/spec/lib/liquid/interpolation_spec.rb +25 -0
  156. data/spec/lib/liquid/tags/include_spec.rb +38 -0
  157. data/spec/lib/liquid/tags/partials_spec.rb +39 -0
  158. data/spec/lib/liquid/tags/scope_spec.rb +18 -0
  159. data/spec/lib/liquid/tags/translate_spec.rb +107 -0
  160. data/spec/lib/liquid/tags_spec.rb +81 -0
  161. data/spec/lib/page_drop_spec.rb +65 -0
  162. data/spec/lib/pagenator_spec.rb +176 -0
  163. data/spec/lib/rspec/matchers/render_page_spec.rb +107 -0
  164. data/spec/models/puffer_pages/layout_spec.rb +15 -0
  165. data/spec/models/puffer_pages/localable_spec.rb +62 -0
  166. data/spec/models/puffer_pages/origin_spec.rb +112 -0
  167. data/spec/models/puffer_pages/page_part_spec.rb +14 -0
  168. data/spec/models/puffer_pages/page_spec.rb +307 -0
  169. data/spec/models/puffer_pages/renderable_spec.rb +84 -0
  170. data/spec/models/puffer_pages/snippet_spec.rb +15 -0
  171. data/spec/requests/origins_requests_spec.rb +37 -0
  172. data/spec/spec_helper.rb +7 -6
  173. metadata +349 -87
  174. data/Gemfile.lock +0 -176
  175. data/app/assets/javascripts/puffer/overlay.js +0 -51
  176. data/app/controllers/puffer_pages/pages_base.rb +0 -38
  177. data/app/models/layout.rb +0 -2
  178. data/app/models/page.rb +0 -2
  179. data/app/models/page_part.rb +0 -2
  180. data/app/models/snippet.rb +0 -2
  181. data/app/views/layouts/puffer_pages_layout.html.erb +0 -2
  182. data/config/puffer_routes.rb +0 -3
  183. data/gemfiles/Gemfile-rails-3.1 +0 -5
  184. data/gemfiles/Gemfile-rails-3.1.lock +0 -173
  185. data/gemfiles/Gemfile-rails-3.2 +0 -5
  186. data/gemfiles/Gemfile-rails-3.2.lock +0 -171
  187. data/lib/puffer_pages/extensions/controller.rb +0 -30
  188. data/lib/puffer_pages/extensions/mapper.rb +0 -23
  189. data/lib/puffer_pages/liquid/tags/page_attribute.rb +0 -39
  190. data/lib/puffer_pages/liquid/tags/stylesheets.rb +0 -38
  191. data/spec/controllers/articles_controller_spec.rb +0 -65
  192. data/spec/dummy/app/controllers/articles_controller.rb +0 -9
  193. data/spec/integration/navigation_spec.rb +0 -9
  194. data/spec/lib/drops_spec.rb +0 -55
  195. data/spec/lib/tags_spec.rb +0 -98
  196. data/spec/models/page_spec.rb +0 -235
  197. data/spec/puffer_pages_spec.rb +0 -7
data/spec/spec_helper.rb CHANGED
@@ -13,14 +13,14 @@ ActionMailer::Base.default_url_options[:host] = "test.com"
13
13
 
14
14
  Rails.backtrace_cleaner.remove_silencers!
15
15
 
16
- # Configure capybara for integration testing
17
- require "capybara/rails"
18
- Capybara.default_driver = :rack_test
19
- Capybara.default_selector = :css
20
-
16
+ # ActiveRecord::Base.logger = Logger.new(STDOUT)
21
17
  # Run any available migration
22
18
  ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
23
19
 
20
+ if ActiveRecord::Base.connection.respond_to? :schema_cache
21
+ ActiveRecord::Base.connection.schema_cache.clear!
22
+ end
23
+
24
24
  # Load support files
25
25
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
26
26
  Dir["#{File.dirname(__FILE__)}/fabricators/**/*.rb"].each { |f| require f }
@@ -30,12 +30,13 @@ RSpec.configure do |config|
30
30
  # methods or matchers
31
31
  require 'rspec/expectations'
32
32
  config.include RSpec::Matchers
33
+ config.include PufferPages::Rspec::Matchers
33
34
 
34
35
  # == Mock Framework
35
36
  config.mock_with :rspec
36
37
 
37
38
  config.use_transactional_fixtures = false
38
-
39
+
39
40
  config.before(:suite) do
40
41
  DatabaseCleaner.clean_with(:truncation)
41
42
  DatabaseCleaner.strategy = :transaction
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.1.1
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,27 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-08 00:00:00.000000000Z
12
+ date: 2013-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &69827603712780 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *69827603712780
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: puffer
27
- requirement: &69827603709460 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *69827603709460
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: liquid
38
- requirement: &69827603707120 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,21 +53,63 @@ dependencies:
43
53
  version: '0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *69827603707120
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: nested_set
49
- requirement: &69827603704680 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
50
73
  none: false
51
74
  requirements:
52
75
  - - ! '>='
53
76
  - !ruby/object:Gem::Version
54
77
  version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: activeuuid
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: 0.4.0
55
86
  type: :runtime
56
87
  prerelease: false
57
- version_requirements: *69827603704680
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 0.4.0
94
+ - !ruby/object:Gem::Dependency
95
+ name: contextuality
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
58
110
  - !ruby/object:Gem::Dependency
59
111
  name: bcrypt-ruby
60
- requirement: &69827603701960 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
61
113
  none: false
62
114
  requirements:
63
115
  - - ! '>='
@@ -65,10 +117,15 @@ dependencies:
65
117
  version: '0'
66
118
  type: :development
67
119
  prerelease: false
68
- version_requirements: *69827603701960
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
69
126
  - !ruby/object:Gem::Dependency
70
- name: sqlite3-ruby
71
- requirement: &69827603697880 !ruby/object:Gem::Requirement
127
+ name: sqlite3
128
+ requirement: !ruby/object:Gem::Requirement
72
129
  none: false
73
130
  requirements:
74
131
  - - ! '>='
@@ -76,10 +133,15 @@ dependencies:
76
133
  version: '0'
77
134
  type: :development
78
135
  prerelease: false
79
- version_requirements: *69827603697880
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
80
142
  - !ruby/object:Gem::Dependency
81
143
  name: pg
82
- requirement: &69827603696180 !ruby/object:Gem::Requirement
144
+ requirement: !ruby/object:Gem::Requirement
83
145
  none: false
84
146
  requirements:
85
147
  - - ! '>='
@@ -87,10 +149,15 @@ dependencies:
87
149
  version: '0'
88
150
  type: :development
89
151
  prerelease: false
90
- version_requirements: *69827603696180
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
91
158
  - !ruby/object:Gem::Dependency
92
- name: mysql
93
- requirement: &69827603693480 !ruby/object:Gem::Requirement
159
+ name: mysql2
160
+ requirement: !ruby/object:Gem::Requirement
94
161
  none: false
95
162
  requirements:
96
163
  - - ! '>='
@@ -98,10 +165,31 @@ dependencies:
98
165
  version: '0'
99
166
  type: :development
100
167
  prerelease: false
101
- version_requirements: *69827603693480
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: globalize3
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
102
190
  - !ruby/object:Gem::Dependency
103
191
  name: rspec-rails
104
- requirement: &69827603685520 !ruby/object:Gem::Requirement
192
+ requirement: !ruby/object:Gem::Requirement
105
193
  none: false
106
194
  requirements:
107
195
  - - ! '>='
@@ -109,21 +197,31 @@ dependencies:
109
197
  version: '0'
110
198
  type: :development
111
199
  prerelease: false
112
- version_requirements: *69827603685520
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
113
206
  - !ruby/object:Gem::Dependency
114
- name: capybara
115
- requirement: &69827603680780 !ruby/object:Gem::Requirement
207
+ name: shoulda
208
+ requirement: !ruby/object:Gem::Requirement
116
209
  none: false
117
210
  requirements:
118
211
  - - ! '>='
119
212
  - !ruby/object:Gem::Version
120
- version: 0.4.0
213
+ version: '0'
121
214
  type: :development
122
215
  prerelease: false
123
- version_requirements: *69827603680780
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
124
222
  - !ruby/object:Gem::Dependency
125
223
  name: database_cleaner
126
- requirement: &69827603672120 !ruby/object:Gem::Requirement
224
+ requirement: !ruby/object:Gem::Requirement
127
225
  none: false
128
226
  requirements:
129
227
  - - ! '>='
@@ -131,10 +229,15 @@ dependencies:
131
229
  version: '0'
132
230
  type: :development
133
231
  prerelease: false
134
- version_requirements: *69827603672120
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ! '>='
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
135
238
  - !ruby/object:Gem::Dependency
136
239
  name: forgery
137
- requirement: &69827603663820 !ruby/object:Gem::Requirement
240
+ requirement: !ruby/object:Gem::Requirement
138
241
  none: false
139
242
  requirements:
140
243
  - - ! '>='
@@ -142,10 +245,15 @@ dependencies:
142
245
  version: '0'
143
246
  type: :development
144
247
  prerelease: false
145
- version_requirements: *69827603663820
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ! '>='
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
146
254
  - !ruby/object:Gem::Dependency
147
255
  name: fabrication
148
- requirement: &69827603658620 !ruby/object:Gem::Requirement
256
+ requirement: !ruby/object:Gem::Requirement
149
257
  none: false
150
258
  requirements:
151
259
  - - ! '>='
@@ -153,21 +261,15 @@ dependencies:
153
261
  version: '0'
154
262
  type: :development
155
263
  prerelease: false
156
- version_requirements: *69827603658620
157
- - !ruby/object:Gem::Dependency
158
- name: guard
159
- requirement: &69827603656080 !ruby/object:Gem::Requirement
264
+ version_requirements: !ruby/object:Gem::Requirement
160
265
  none: false
161
266
  requirements:
162
267
  - - ! '>='
163
268
  - !ruby/object:Gem::Version
164
269
  version: '0'
165
- type: :development
166
- prerelease: false
167
- version_requirements: *69827603656080
168
270
  - !ruby/object:Gem::Dependency
169
- name: guard-rspec
170
- requirement: &69827603653780 !ruby/object:Gem::Requirement
271
+ name: fakeweb
272
+ requirement: !ruby/object:Gem::Requirement
171
273
  none: false
172
274
  requirements:
173
275
  - - ! '>='
@@ -175,21 +277,15 @@ dependencies:
175
277
  version: '0'
176
278
  type: :development
177
279
  prerelease: false
178
- version_requirements: *69827603653780
179
- - !ruby/object:Gem::Dependency
180
- name: libnotify
181
- requirement: &69827603652080 !ruby/object:Gem::Requirement
280
+ version_requirements: !ruby/object:Gem::Requirement
182
281
  none: false
183
282
  requirements:
184
283
  - - ! '>='
185
284
  - !ruby/object:Gem::Version
186
285
  version: '0'
187
- type: :development
188
- prerelease: false
189
- version_requirements: *69827603652080
190
286
  - !ruby/object:Gem::Dependency
191
- name: rb-inotify
192
- requirement: &69827603649100 !ruby/object:Gem::Requirement
287
+ name: timecop
288
+ requirement: !ruby/object:Gem::Requirement
193
289
  none: false
194
290
  requirements:
195
291
  - - ! '>='
@@ -197,7 +293,12 @@ dependencies:
197
293
  version: '0'
198
294
  type: :development
199
295
  prerelease: false
200
- version_requirements: *69827603649100
296
+ version_requirements: !ruby/object:Gem::Requirement
297
+ none: false
298
+ requirements:
299
+ - - ! '>='
300
+ - !ruby/object:Gem::Version
301
+ version: '0'
201
302
  description: Puffer pages is integratable rails CMS with puffer admin interface
202
303
  email:
203
304
  - kinwizard@gmail.com
@@ -211,7 +312,6 @@ files:
211
312
  - .travis.yml
212
313
  - CHANGELOG.md
213
314
  - Gemfile
214
- - Gemfile.lock
215
315
  - Guardfile
216
316
  - MIT-LICENSE
217
317
  - README.md
@@ -220,83 +320,136 @@ files:
220
320
  - app/assets/javascripts/puffer/codemirror/css.js
221
321
  - app/assets/javascripts/puffer/codemirror/htmlmixed.js
222
322
  - app/assets/javascripts/puffer/codemirror/javascript.js
323
+ - app/assets/javascripts/puffer/codemirror/liquid.js
223
324
  - app/assets/javascripts/puffer/codemirror/xml.js
325
+ - app/assets/javascripts/puffer/codemirror/yaml.js
224
326
  - app/assets/javascripts/puffer/liquid.js
225
- - app/assets/javascripts/puffer/overlay.js
327
+ - app/assets/javascripts/puffer/matchbrackets.js
328
+ - app/assets/javascripts/puffer/multiplex.js
226
329
  - app/assets/javascripts/puffer/puffer_pages.js
227
330
  - app/assets/javascripts/puffer/right-tabs-src.js
228
331
  - app/assets/stylesheets/puffer/codemirror.css
332
+ - app/assets/stylesheets/puffer/codemirror/ambiance-mobile.css
333
+ - app/assets/stylesheets/puffer/codemirror/ambiance.css
334
+ - app/assets/stylesheets/puffer/codemirror/blackboard.css
229
335
  - app/assets/stylesheets/puffer/codemirror/cobalt.css
230
336
  - app/assets/stylesheets/puffer/codemirror/eclipse.css
231
337
  - app/assets/stylesheets/puffer/codemirror/elegant.css
338
+ - app/assets/stylesheets/puffer/codemirror/erlang-dark.css
339
+ - app/assets/stylesheets/puffer/codemirror/lesser-dark.css
232
340
  - app/assets/stylesheets/puffer/codemirror/monokai.css
233
341
  - app/assets/stylesheets/puffer/codemirror/neat.css
234
342
  - app/assets/stylesheets/puffer/codemirror/night.css
235
343
  - app/assets/stylesheets/puffer/codemirror/rubyblue.css
344
+ - app/assets/stylesheets/puffer/codemirror/solarized.css
345
+ - app/assets/stylesheets/puffer/codemirror/twilight.css
346
+ - app/assets/stylesheets/puffer/codemirror/vibrant-ink.css
347
+ - app/assets/stylesheets/puffer/codemirror/xq-dark.css
236
348
  - app/assets/stylesheets/puffer/puffer_pages.css
237
349
  - app/components/codemirror/form.html.erb
238
350
  - app/components/codemirror_component.rb
351
+ - app/components/handlers/form.html.erb
352
+ - app/components/handlers_component.rb
353
+ - app/components/page_parts/_page_part.html.erb
239
354
  - app/components/page_parts/form.html.erb
240
355
  - app/components/page_parts_component.rb
241
356
  - app/components/render/_tree_page.html.erb
242
357
  - app/controllers/admin/layouts_controller.rb
358
+ - app/controllers/admin/origins_controller.rb
243
359
  - app/controllers/admin/pages_controller.rb
244
360
  - app/controllers/admin/snippets_controller.rb
245
361
  - app/controllers/pages_controller.rb
246
- - app/controllers/puffer_pages/layouts_base.rb
247
- - app/controllers/puffer_pages/pages_base.rb
248
- - app/controllers/puffer_pages/snippets_base.rb
249
362
  - app/helpers/puffer_pages_helper.rb
250
- - app/models/layout.rb
251
- - app/models/page.rb
252
- - app/models/page_part.rb
253
363
  - app/models/puffer_pages/layout.rb
364
+ - app/models/puffer_pages/origin.rb
254
365
  - app/models/puffer_pages/page.rb
255
366
  - app/models/puffer_pages/page_part.rb
256
367
  - app/models/puffer_pages/snippet.rb
257
- - app/models/snippet.rb
258
- - app/views/layouts/puffer_pages_layout.html.erb
259
368
  - config/locales/en.yml
260
- - config/puffer_routes.rb
369
+ - config/routes.rb
261
370
  - db/migrate/20090422092419_create_pages.rb
262
371
  - db/migrate/20090504132337_create_page_parts.rb
263
372
  - db/migrate/20090506102004_create_layouts.rb
264
373
  - db/migrate/20090510121824_create_snippets.rb
265
- - gemfiles/Gemfile-rails-3.1
266
- - gemfiles/Gemfile-rails-3.1.lock
267
- - gemfiles/Gemfile-rails-3.2
268
- - gemfiles/Gemfile-rails-3.2.lock
374
+ - db/migrate/20120812100913_create_origins.rb
375
+ - db/migrate/20120924120226_migrate_to_uuid.rb
376
+ - db/migrate/20130110144030_add_handler_to_page_parts.rb
377
+ - db/migrate/20130118064524_add_locales_to_pages.rb
378
+ - gemfiles/Gemfile.rails-3-1
379
+ - gemfiles/Gemfile.rails-3-2
380
+ - gemfiles/Gemfile.rails-head
269
381
  - lib/puffer_pages.rb
382
+ - lib/puffer_pages/backends.rb
383
+ - lib/puffer_pages/backends/controllers/layouts_base.rb
384
+ - lib/puffer_pages/backends/controllers/origins_base.rb
385
+ - lib/puffer_pages/backends/controllers/pages_base.rb
386
+ - lib/puffer_pages/backends/controllers/snippets_base.rb
387
+ - lib/puffer_pages/backends/models/layout.rb
388
+ - lib/puffer_pages/backends/models/mixins/importable.rb
389
+ - lib/puffer_pages/backends/models/mixins/localable.rb
390
+ - lib/puffer_pages/backends/models/mixins/renderable.rb
391
+ - lib/puffer_pages/backends/models/mixins/translatable.rb
392
+ - lib/puffer_pages/backends/models/origin.rb
393
+ - lib/puffer_pages/backends/models/page.rb
394
+ - lib/puffer_pages/backends/models/page_part.rb
395
+ - lib/puffer_pages/backends/models/snippet.rb
270
396
  - lib/puffer_pages/engine.rb
271
- - lib/puffer_pages/extensions/controller.rb
397
+ - lib/puffer_pages/extensions/context.rb
272
398
  - lib/puffer_pages/extensions/core.rb
273
- - lib/puffer_pages/extensions/mapper.rb
399
+ - lib/puffer_pages/extensions/pagenator.rb
400
+ - lib/puffer_pages/extensions/renderer.rb
401
+ - lib/puffer_pages/globalize/migrator.rb
402
+ - lib/puffer_pages/handlers.rb
403
+ - lib/puffer_pages/handlers/base.rb
404
+ - lib/puffer_pages/handlers/yaml.rb
405
+ - lib/puffer_pages/helpers.rb
406
+ - lib/puffer_pages/liquid/backend.rb
274
407
  - lib/puffer_pages/liquid/file_system.rb
275
408
  - lib/puffer_pages/liquid/page_drop.rb
276
- - lib/puffer_pages/liquid/tags/javascripts.rb
277
- - lib/puffer_pages/liquid/tags/page_attribute.rb
278
- - lib/puffer_pages/liquid/tags/stylesheets.rb
409
+ - lib/puffer_pages/liquid/tags/array.rb
410
+ - lib/puffer_pages/liquid/tags/assets.rb
411
+ - lib/puffer_pages/liquid/tags/helper.rb
412
+ - lib/puffer_pages/liquid/tags/include.rb
413
+ - lib/puffer_pages/liquid/tags/javascript.rb
414
+ - lib/puffer_pages/liquid/tags/partials.rb
415
+ - lib/puffer_pages/liquid/tags/render.rb
416
+ - lib/puffer_pages/liquid/tags/scope.rb
417
+ - lib/puffer_pages/liquid/tags/super.rb
418
+ - lib/puffer_pages/liquid/tags/translate.rb
419
+ - lib/puffer_pages/liquid/tags/url.rb
279
420
  - lib/puffer_pages/liquid/tags/yield.rb
280
421
  - lib/puffer_pages/liquid/tracker.rb
422
+ - lib/puffer_pages/log_subscriber.rb
423
+ - lib/puffer_pages/migrations.rb
424
+ - lib/puffer_pages/renderer.rb
425
+ - lib/puffer_pages/rspec/matchers.rb
426
+ - lib/puffer_pages/rspec/matchers/render_page.rb
281
427
  - lib/puffer_pages/version.rb
282
428
  - puffer_pages.gemspec
283
- - spec/controllers/articles_controller_spec.rb
429
+ - spec/controllers/pages_controller_spec.rb
430
+ - spec/controllers/puffer_pages_controller_spec.rb
431
+ - spec/data/broken.json
432
+ - spec/data/import.json
433
+ - spec/data/localized.json
434
+ - spec/data/unlocalized.json
435
+ - spec/dummy/.rvmrc
284
436
  - spec/dummy/Rakefile
285
437
  - spec/dummy/app/assets/images/rails.png
286
438
  - spec/dummy/app/assets/javascripts/application.js
287
439
  - spec/dummy/app/assets/stylesheets/application.css
288
440
  - spec/dummy/app/controllers/admin/articles_controller.rb
289
441
  - spec/dummy/app/controllers/application_controller.rb
290
- - spec/dummy/app/controllers/articles_controller.rb
291
442
  - spec/dummy/app/helpers/application_helper.rb
292
443
  - spec/dummy/app/models/article.rb
293
444
  - spec/dummy/app/views/articles/show.html.erb
294
445
  - spec/dummy/app/views/layouts/application.html.erb
295
446
  - spec/dummy/app/views/layouts/articles.html.erb
447
+ - spec/dummy/app/views/layouts/sample.en.erb
448
+ - spec/dummy/app/views/layouts/sample.ru.erb
449
+ - spec/dummy/app/views/shared/_first.html.erb
296
450
  - spec/dummy/config.ru
297
451
  - spec/dummy/config/application.rb
298
452
  - spec/dummy/config/boot.rb
299
- - spec/dummy/config/boot.rb.orig
300
453
  - spec/dummy/config/database.yml
301
454
  - spec/dummy/config/environment.rb
302
455
  - spec/dummy/config/environments/development.rb
@@ -306,16 +459,22 @@ files:
306
459
  - spec/dummy/config/initializers/backtrace_silencers.rb
307
460
  - spec/dummy/config/initializers/inflections.rb
308
461
  - spec/dummy/config/initializers/mime_types.rb
462
+ - spec/dummy/config/initializers/puffer_pages.rb
309
463
  - spec/dummy/config/initializers/secret_token.rb
310
464
  - spec/dummy/config/initializers/session_store.rb
311
465
  - spec/dummy/config/initializers/wrap_parameters.rb
312
466
  - spec/dummy/config/locales/en.yml
313
467
  - spec/dummy/config/routes.rb
314
- - spec/dummy/db/migrate/20090422092419_create_pages.rb
315
- - spec/dummy/db/migrate/20090504132337_create_page_parts.rb
316
- - spec/dummy/db/migrate/20090506102004_create_layouts.rb
317
- - spec/dummy/db/migrate/20090510121824_create_snippets.rb
318
468
  - spec/dummy/db/migrate/20111117081813_create_articles.rb
469
+ - spec/dummy/db/migrate/20130118071511_create_pages.rb
470
+ - spec/dummy/db/migrate/20130118071512_create_page_parts.rb
471
+ - spec/dummy/db/migrate/20130118071513_create_layouts.rb
472
+ - spec/dummy/db/migrate/20130118071514_create_snippets.rb
473
+ - spec/dummy/db/migrate/20130118071515_create_origins.rb
474
+ - spec/dummy/db/migrate/20130118071516_migrate_to_uuid.rb
475
+ - spec/dummy/db/migrate/20130118071517_add_handler_to_page_parts.rb
476
+ - spec/dummy/db/migrate/20130118071518_add_locales_to_pages.rb
477
+ - spec/dummy/db/migrate/20130118071519_add_translations.rb
319
478
  - spec/dummy/db/schema.rb
320
479
  - spec/dummy/db/seeds.rb
321
480
  - spec/dummy/public/404.html
@@ -326,15 +485,32 @@ files:
326
485
  - spec/dummy/script/rails
327
486
  - spec/fabricators/articles_fabricator.rb
328
487
  - spec/fabricators/layouts_fabricator.rb
488
+ - spec/fabricators/origin_fabricator.rb
329
489
  - spec/fabricators/page_parts_fabricator.rb
330
490
  - spec/fabricators/pages_fabricator.rb
331
491
  - spec/fabricators/snippets_fabricator.rb
332
- - spec/integration/navigation_spec.rb
333
492
  - spec/lib/core_spec.rb
334
- - spec/lib/drops_spec.rb
335
- - spec/lib/tags_spec.rb
336
- - spec/models/page_spec.rb
337
- - spec/puffer_pages_spec.rb
493
+ - spec/lib/handlers/base_spec.rb
494
+ - spec/lib/handlers/yaml_spec.rb
495
+ - spec/lib/handlers_spec.rb
496
+ - spec/lib/liquid/backend_spec.rb
497
+ - spec/lib/liquid/interpolation_spec.rb
498
+ - spec/lib/liquid/tags/include_spec.rb
499
+ - spec/lib/liquid/tags/partials_spec.rb
500
+ - spec/lib/liquid/tags/scope_spec.rb
501
+ - spec/lib/liquid/tags/translate_spec.rb
502
+ - spec/lib/liquid/tags_spec.rb
503
+ - spec/lib/page_drop_spec.rb
504
+ - spec/lib/pagenator_spec.rb
505
+ - spec/lib/rspec/matchers/render_page_spec.rb
506
+ - spec/models/puffer_pages/layout_spec.rb
507
+ - spec/models/puffer_pages/localable_spec.rb
508
+ - spec/models/puffer_pages/origin_spec.rb
509
+ - spec/models/puffer_pages/page_part_spec.rb
510
+ - spec/models/puffer_pages/page_spec.rb
511
+ - spec/models/puffer_pages/renderable_spec.rb
512
+ - spec/models/puffer_pages/snippet_spec.rb
513
+ - spec/requests/origins_requests_spec.rb
338
514
  - spec/spec_helper.rb
339
515
  homepage: http://github.com/puffer/puffer_pages
340
516
  licenses: []
@@ -350,7 +526,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
350
526
  version: '0'
351
527
  segments:
352
528
  - 0
353
- hash: 799277004253962049
529
+ hash: 171098880849645771
354
530
  required_rubygems_version: !ruby/object:Gem::Requirement
355
531
  none: false
356
532
  requirements:
@@ -359,11 +535,97 @@ required_rubygems_version: !ruby/object:Gem::Requirement
359
535
  version: '0'
360
536
  segments:
361
537
  - 0
362
- hash: 799277004253962049
538
+ hash: 171098880849645771
363
539
  requirements: []
364
540
  rubyforge_project: puffer_pages
365
- rubygems_version: 1.8.10
541
+ rubygems_version: 1.8.24
366
542
  signing_key:
367
543
  specification_version: 3
368
544
  summary: Content Management System
369
- test_files: []
545
+ test_files:
546
+ - spec/controllers/pages_controller_spec.rb
547
+ - spec/controllers/puffer_pages_controller_spec.rb
548
+ - spec/data/broken.json
549
+ - spec/data/import.json
550
+ - spec/data/localized.json
551
+ - spec/data/unlocalized.json
552
+ - spec/dummy/.rvmrc
553
+ - spec/dummy/Rakefile
554
+ - spec/dummy/app/assets/images/rails.png
555
+ - spec/dummy/app/assets/javascripts/application.js
556
+ - spec/dummy/app/assets/stylesheets/application.css
557
+ - spec/dummy/app/controllers/admin/articles_controller.rb
558
+ - spec/dummy/app/controllers/application_controller.rb
559
+ - spec/dummy/app/helpers/application_helper.rb
560
+ - spec/dummy/app/models/article.rb
561
+ - spec/dummy/app/views/articles/show.html.erb
562
+ - spec/dummy/app/views/layouts/application.html.erb
563
+ - spec/dummy/app/views/layouts/articles.html.erb
564
+ - spec/dummy/app/views/layouts/sample.en.erb
565
+ - spec/dummy/app/views/layouts/sample.ru.erb
566
+ - spec/dummy/app/views/shared/_first.html.erb
567
+ - spec/dummy/config.ru
568
+ - spec/dummy/config/application.rb
569
+ - spec/dummy/config/boot.rb
570
+ - spec/dummy/config/database.yml
571
+ - spec/dummy/config/environment.rb
572
+ - spec/dummy/config/environments/development.rb
573
+ - spec/dummy/config/environments/pg_test.rb
574
+ - spec/dummy/config/environments/production.rb
575
+ - spec/dummy/config/environments/test.rb
576
+ - spec/dummy/config/initializers/backtrace_silencers.rb
577
+ - spec/dummy/config/initializers/inflections.rb
578
+ - spec/dummy/config/initializers/mime_types.rb
579
+ - spec/dummy/config/initializers/puffer_pages.rb
580
+ - spec/dummy/config/initializers/secret_token.rb
581
+ - spec/dummy/config/initializers/session_store.rb
582
+ - spec/dummy/config/initializers/wrap_parameters.rb
583
+ - spec/dummy/config/locales/en.yml
584
+ - spec/dummy/config/routes.rb
585
+ - spec/dummy/db/migrate/20111117081813_create_articles.rb
586
+ - spec/dummy/db/migrate/20130118071511_create_pages.rb
587
+ - spec/dummy/db/migrate/20130118071512_create_page_parts.rb
588
+ - spec/dummy/db/migrate/20130118071513_create_layouts.rb
589
+ - spec/dummy/db/migrate/20130118071514_create_snippets.rb
590
+ - spec/dummy/db/migrate/20130118071515_create_origins.rb
591
+ - spec/dummy/db/migrate/20130118071516_migrate_to_uuid.rb
592
+ - spec/dummy/db/migrate/20130118071517_add_handler_to_page_parts.rb
593
+ - spec/dummy/db/migrate/20130118071518_add_locales_to_pages.rb
594
+ - spec/dummy/db/migrate/20130118071519_add_translations.rb
595
+ - spec/dummy/db/schema.rb
596
+ - spec/dummy/db/seeds.rb
597
+ - spec/dummy/public/404.html
598
+ - spec/dummy/public/422.html
599
+ - spec/dummy/public/500.html
600
+ - spec/dummy/public/favicon.ico
601
+ - spec/dummy/public/robots.txt
602
+ - spec/dummy/script/rails
603
+ - spec/fabricators/articles_fabricator.rb
604
+ - spec/fabricators/layouts_fabricator.rb
605
+ - spec/fabricators/origin_fabricator.rb
606
+ - spec/fabricators/page_parts_fabricator.rb
607
+ - spec/fabricators/pages_fabricator.rb
608
+ - spec/fabricators/snippets_fabricator.rb
609
+ - spec/lib/core_spec.rb
610
+ - spec/lib/handlers/base_spec.rb
611
+ - spec/lib/handlers/yaml_spec.rb
612
+ - spec/lib/handlers_spec.rb
613
+ - spec/lib/liquid/backend_spec.rb
614
+ - spec/lib/liquid/interpolation_spec.rb
615
+ - spec/lib/liquid/tags/include_spec.rb
616
+ - spec/lib/liquid/tags/partials_spec.rb
617
+ - spec/lib/liquid/tags/scope_spec.rb
618
+ - spec/lib/liquid/tags/translate_spec.rb
619
+ - spec/lib/liquid/tags_spec.rb
620
+ - spec/lib/page_drop_spec.rb
621
+ - spec/lib/pagenator_spec.rb
622
+ - spec/lib/rspec/matchers/render_page_spec.rb
623
+ - spec/models/puffer_pages/layout_spec.rb
624
+ - spec/models/puffer_pages/localable_spec.rb
625
+ - spec/models/puffer_pages/origin_spec.rb
626
+ - spec/models/puffer_pages/page_part_spec.rb
627
+ - spec/models/puffer_pages/page_spec.rb
628
+ - spec/models/puffer_pages/renderable_spec.rb
629
+ - spec/models/puffer_pages/snippet_spec.rb
630
+ - spec/requests/origins_requests_spec.rb
631
+ - spec/spec_helper.rb