promethee 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +164 -19
- data/Rakefile +33 -2
- data/app/assets/images/icon-promethee.png +0 -0
- data/app/assets/images/logo-promethee-horizontal.svg +14 -0
- data/app/assets/images/logo-promethee-vertical.svg +14 -0
- data/app/assets/javascripts/promethee.js +59 -0
- data/app/assets/javascripts/promethee/controller.js +22 -0
- data/app/assets/stylesheets/promethee-editor.sass +105 -0
- data/app/assets/stylesheets/promethee-editor/_mixins.sass +19 -0
- data/app/assets/stylesheets/promethee-editor/_variables.sass +4 -0
- data/app/assets/stylesheets/promethee.sass +4 -0
- data/app/views/promethee/_edit.html.erb +172 -0
- data/app/views/promethee/_show.html.erb +6 -0
- data/app/views/promethee/components/_column.html.erb +8 -0
- data/app/views/promethee/components/_column_edit.html.erb +40 -0
- data/app/views/promethee/components/_image.html.erb +7 -0
- data/app/views/promethee/components/_image_edit.html.erb +60 -0
- data/app/views/promethee/components/_index.html.erb +3 -0
- data/app/views/promethee/components/_index_edit.html.erb +7 -0
- data/app/views/promethee/components/_row.html.erb +6 -0
- data/app/views/promethee/components/_row_edit.html.erb +53 -0
- data/app/views/promethee/components/_show.html.erb +4 -0
- data/app/views/promethee/components/_show_edit.html.erb +3 -0
- data/app/views/promethee/components/_text.html.erb +6 -0
- data/app/views/promethee/components/_text_edit.html.erb +59 -0
- data/app/views/promethee/components/_video.html.erb +16 -0
- data/app/views/promethee/components/_video_edit.html.erb +63 -0
- data/app/views/promethee/partials/_toolbar_buttons.html.erb +4 -0
- data/lib/promethee.rb +37 -2
- data/lib/promethee/component.rb +28 -0
- data/lib/promethee/component/attribute.rb +42 -0
- data/lib/promethee/component/attribute/boolean.rb +4 -0
- data/lib/promethee/component/attribute/float.rb +3 -0
- data/lib/promethee/component/attribute/integer.rb +3 -0
- data/lib/promethee/component/attribute/string.rb +3 -0
- data/lib/promethee/component/attributes.rb +50 -0
- data/lib/promethee/component/attributes/definer.rb +13 -0
- data/lib/promethee/component/base.rb +68 -0
- data/lib/promethee/component/collection.rb +17 -0
- data/lib/promethee/component/column.rb +8 -0
- data/lib/promethee/component/image.rb +6 -0
- data/lib/promethee/component/row.rb +3 -0
- data/lib/promethee/component/text.rb +5 -0
- data/lib/promethee/component/video.rb +5 -0
- data/lib/promethee/core_ext/form_builder.rb +6 -0
- data/lib/promethee/core_ext/form_helper.rb +6 -0
- data/lib/promethee/core_ext/tags.rb +18 -0
- data/lib/promethee/grid.rb +52 -0
- data/lib/promethee/rails/engine.rb +7 -0
- data/lib/promethee/rails/helper.rb +26 -0
- data/lib/promethee/rails/version.rb +5 -0
- data/lib/tasks/promethee/promethee.rake +4 -0
- metadata +202 -20
- data/.gitignore +0 -9
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -6
- data/LICENSE +0 -21
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/lib/promethee/version.rb +0 -3
- data/promethee.gemspec +0 -24
data/Gemfile
DELETED
data/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2017 Les Poupées Russes
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "promethee"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/lib/promethee/version.rb
DELETED
data/promethee.gemspec
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "promethee/version"
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "promethee"
|
8
|
-
spec.version = Promethee::VERSION
|
9
|
-
spec.authors = ["Julien Dargelos", "Arnaud Levy", "Pierre-André Boissinot", "Antoine Prévost"]
|
10
|
-
spec.email = ["contact@juliendargelos.com", "alevy@lespoupees.paris", "paboissinot@lespoupees.paris", "aprevost@lespoupees.paris"]
|
11
|
-
|
12
|
-
spec.summary = "Bring fire to your page"
|
13
|
-
spec.homepage = "https://github.com/lespoupeesrusses/promethee"
|
14
|
-
|
15
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
16
|
-
f.match(%r{^(test|spec|features)/})
|
17
|
-
end
|
18
|
-
spec.bindir = "exe"
|
19
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
-
spec.require_paths = ["lib"]
|
21
|
-
|
22
|
-
spec.add_development_dependency "bundler", "~> 1.15"
|
23
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
-
end
|