releaf-content 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +24 -0
  3. data/app/assets/javascripts/releaf/controllers/releaf/content/nodes.js +88 -0
  4. data/app/assets/stylesheets/releaf/controllers/releaf/content/nodes.scss +234 -0
  5. data/app/builders/releaf/content/builders/action_dialog.rb +60 -0
  6. data/app/builders/releaf/content/builders/dialog.rb +15 -0
  7. data/app/builders/releaf/content/builders/tree.rb +84 -0
  8. data/app/builders/releaf/content/content_type_dialog_builder.rb +74 -0
  9. data/app/builders/releaf/content/copy_dialog_builder.rb +9 -0
  10. data/app/builders/releaf/content/go_to_dialog_builder.rb +9 -0
  11. data/app/builders/releaf/content/move_dialog_builder.rb +9 -0
  12. data/app/builders/releaf/content/nodes/content_form_builder.rb +7 -0
  13. data/app/builders/releaf/content/nodes/form_builder.rb +108 -0
  14. data/app/builders/releaf/content/nodes/index_builder.rb +24 -0
  15. data/app/builders/releaf/content/nodes/toolbox_builder.rb +33 -0
  16. data/app/controllers/releaf/content/nodes_controller.rb +166 -0
  17. data/app/middleware/releaf/content/routes_reloader.rb +25 -0
  18. data/app/validators/releaf/content/node/parent_validator.rb +48 -0
  19. data/app/validators/releaf/content/node/root_validator.rb +43 -0
  20. data/app/validators/releaf/content/node/singleness_validator.rb +102 -0
  21. data/app/views/releaf/content/nodes/content_type_dialog.ruby +1 -0
  22. data/app/views/releaf/content/nodes/copy_dialog.ruby +1 -0
  23. data/app/views/releaf/content/nodes/go_to_dialog.ruby +1 -0
  24. data/app/views/releaf/content/nodes/move_dialog.ruby +1 -0
  25. data/lib/releaf-content.rb +6 -0
  26. data/lib/releaf/content/acts_as_node.rb +73 -0
  27. data/lib/releaf/content/acts_as_node/action_controller/acts/node.rb +17 -0
  28. data/lib/releaf/content/acts_as_node/active_record/acts/node.rb +55 -0
  29. data/lib/releaf/content/builders_autoload.rb +18 -0
  30. data/lib/releaf/content/engine.rb +40 -0
  31. data/lib/releaf/content/node.rb +280 -0
  32. data/lib/releaf/content/node_mapper.rb +9 -0
  33. data/lib/releaf/content/route.rb +93 -0
  34. data/lib/releaf/content/router_proxy.rb +23 -0
  35. data/releaf-content.gemspec +20 -0
  36. data/spec/builders/content/nodes/content_form_builder_spec.rb +24 -0
  37. data/spec/builders/content/nodes/form_builder_spec.rb +218 -0
  38. data/spec/builders/content/nodes/toolbox_builder_spec.rb +108 -0
  39. data/spec/controllers/releaf/content/nodes_controller_spec.rb +21 -0
  40. data/spec/features/nodes_spec.rb +239 -0
  41. data/spec/lib/releaf/content/acts_as_node_spec.rb +118 -0
  42. data/spec/lib/releaf/content/node_spec.rb +779 -0
  43. data/spec/lib/releaf/content/route_spec.rb +85 -0
  44. data/spec/middleware/routes_reloader_spec.rb +48 -0
  45. data/spec/routing/node_mapper_spec.rb +142 -0
  46. data/spec/validators/content/node/parent_validator_spec.rb +56 -0
  47. data/spec/validators/content/node/root_validator_spec.rb +69 -0
  48. data/spec/validators/content/node/singleness_validator_spec.rb +145 -0
  49. metadata +145 -0
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: releaf-content
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
+ platform: ruby
6
+ authors:
7
+ - CubeSystems
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-01-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: releaf-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: stringex
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: awesome_nested_set
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Content subsystem for releaf
56
+ email: info@cubesystems.lv
57
+ executables: []
58
+ extensions: []
59
+ extra_rdoc_files: []
60
+ files:
61
+ - LICENSE
62
+ - app/assets/javascripts/releaf/controllers/releaf/content/nodes.js
63
+ - app/assets/stylesheets/releaf/controllers/releaf/content/nodes.scss
64
+ - app/builders/releaf/content/builders/action_dialog.rb
65
+ - app/builders/releaf/content/builders/dialog.rb
66
+ - app/builders/releaf/content/builders/tree.rb
67
+ - app/builders/releaf/content/content_type_dialog_builder.rb
68
+ - app/builders/releaf/content/copy_dialog_builder.rb
69
+ - app/builders/releaf/content/go_to_dialog_builder.rb
70
+ - app/builders/releaf/content/move_dialog_builder.rb
71
+ - app/builders/releaf/content/nodes/content_form_builder.rb
72
+ - app/builders/releaf/content/nodes/form_builder.rb
73
+ - app/builders/releaf/content/nodes/index_builder.rb
74
+ - app/builders/releaf/content/nodes/toolbox_builder.rb
75
+ - app/controllers/releaf/content/nodes_controller.rb
76
+ - app/middleware/releaf/content/routes_reloader.rb
77
+ - app/validators/releaf/content/node/parent_validator.rb
78
+ - app/validators/releaf/content/node/root_validator.rb
79
+ - app/validators/releaf/content/node/singleness_validator.rb
80
+ - app/views/releaf/content/nodes/content_type_dialog.ruby
81
+ - app/views/releaf/content/nodes/copy_dialog.ruby
82
+ - app/views/releaf/content/nodes/go_to_dialog.ruby
83
+ - app/views/releaf/content/nodes/move_dialog.ruby
84
+ - lib/releaf-content.rb
85
+ - lib/releaf/content/acts_as_node.rb
86
+ - lib/releaf/content/acts_as_node/action_controller/acts/node.rb
87
+ - lib/releaf/content/acts_as_node/active_record/acts/node.rb
88
+ - lib/releaf/content/builders_autoload.rb
89
+ - lib/releaf/content/engine.rb
90
+ - lib/releaf/content/node.rb
91
+ - lib/releaf/content/node_mapper.rb
92
+ - lib/releaf/content/route.rb
93
+ - lib/releaf/content/router_proxy.rb
94
+ - releaf-content.gemspec
95
+ - spec/builders/content/nodes/content_form_builder_spec.rb
96
+ - spec/builders/content/nodes/form_builder_spec.rb
97
+ - spec/builders/content/nodes/toolbox_builder_spec.rb
98
+ - spec/controllers/releaf/content/nodes_controller_spec.rb
99
+ - spec/features/nodes_spec.rb
100
+ - spec/lib/releaf/content/acts_as_node_spec.rb
101
+ - spec/lib/releaf/content/node_spec.rb
102
+ - spec/lib/releaf/content/route_spec.rb
103
+ - spec/middleware/routes_reloader_spec.rb
104
+ - spec/routing/node_mapper_spec.rb
105
+ - spec/validators/content/node/parent_validator_spec.rb
106
+ - spec/validators/content/node/root_validator_spec.rb
107
+ - spec/validators/content/node/singleness_validator_spec.rb
108
+ homepage: https://github.com/cubesystems/releaf
109
+ licenses: []
110
+ metadata: {}
111
+ post_install_message:
112
+ rdoc_options: []
113
+ require_paths:
114
+ - lib
115
+ required_ruby_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ requirements: []
126
+ rubyforge_project:
127
+ rubygems_version: 2.4.8
128
+ signing_key:
129
+ specification_version: 4
130
+ summary: Node and content routes support for releaf
131
+ test_files:
132
+ - spec/builders/content/nodes/content_form_builder_spec.rb
133
+ - spec/builders/content/nodes/form_builder_spec.rb
134
+ - spec/builders/content/nodes/toolbox_builder_spec.rb
135
+ - spec/controllers/releaf/content/nodes_controller_spec.rb
136
+ - spec/features/nodes_spec.rb
137
+ - spec/lib/releaf/content/acts_as_node_spec.rb
138
+ - spec/lib/releaf/content/node_spec.rb
139
+ - spec/lib/releaf/content/route_spec.rb
140
+ - spec/middleware/routes_reloader_spec.rb
141
+ - spec/routing/node_mapper_spec.rb
142
+ - spec/validators/content/node/parent_validator_spec.rb
143
+ - spec/validators/content/node/root_validator_spec.rb
144
+ - spec/validators/content/node/singleness_validator_spec.rb
145
+ has_rdoc: