the_sortable_tree 2.6.1 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -5
- data/app/assets/javascripts/{expandable_tree → the_sortable_tree/expandable_tree}/hashchange.js.coffee +0 -0
- data/app/assets/javascripts/{expandable_tree → the_sortable_tree/expandable_tree}/initializer.js.coffee +0 -0
- data/app/assets/javascripts/{expandable_tree → the_sortable_tree/expandable_tree}/jquery.cookie.coffee +0 -0
- data/app/assets/javascripts/{expandable_tree → the_sortable_tree/expandable_tree}/restorable.js.coffee +0 -0
- data/app/assets/javascripts/{jquery.ui.nestedSortable.js → the_sortable_tree/jquery.ui.nestedSortable.js} +0 -0
- data/app/assets/javascripts/the_sortable_tree/sortable_ui/base.js.coffee +87 -0
- data/app/assets/javascripts/{sortable_tree → the_sortable_tree/sortable_ui}/initializer.js.coffee +14 -11
- data/app/assets/stylesheets/the_sortable_tree/expandable_tree.sass +23 -0
- data/app/assets/stylesheets/the_sortable_tree/sortable_ui/base.sass +36 -0
- data/app/assets/stylesheets/the_sortable_tree/tree.sass +35 -0
- data/app/helpers/render_expandable_tree_helper.rb +3 -3
- data/app/helpers/render_sortable_tree_helper.rb +30 -12
- data/app/helpers/render_tree_helper.rb +6 -5
- data/app/helpers/the_sortable_tree_helper.rb +3 -3
- data/gem_version.rb +1 -1
- data/spec/dummy_app/Gemfile +6 -3
- data/spec/dummy_app/README.md +26 -36
- data/spec/dummy_app/app/assets/javascripts/application.js +9 -13
- data/spec/dummy_app/app/assets/stylesheets/application.css +8 -9
- data/spec/dummy_app/app/views/admin/pages/index.html.haml +1 -3
- data/spec/dummy_app/app/views/admin/pages/manage.html.haml +2 -2
- data/spec/dummy_app/app/views/admin/pages/namespaced_link.html.haml +1 -1
- data/spec/dummy_app/app/views/admin/pages/node_manage.html.haml +1 -1
- data/spec/dummy_app/app/views/article_categories/index.html.haml +1 -1
- data/spec/dummy_app/app/views/article_categories/manage.html.haml +1 -1
- data/spec/dummy_app/app/views/inventory/categories/index.html.haml +1 -2
- data/spec/dummy_app/app/views/inventory/categories/manage.html.haml +1 -1
- data/spec/dummy_app/app/views/layouts/application.html.erb +5 -1
- data/spec/dummy_app/app/views/pages/expand.html.haml +1 -1
- data/spec/dummy_app/app/views/pages/expand_node.html.haml +1 -1
- data/spec/dummy_app/app/views/pages/index.html.haml +1 -2
- data/spec/dummy_app/app/views/pages/manage.html.haml +7 -6
- data/spec/dummy_app/app/views/pages/nested_options.html.haml +3 -2
- data/spec/dummy_app/app/views/welcome/index.html.haml +30 -29
- data/spec/dummy_app/bin/bundler +17 -0
- data/spec/dummy_app/bin/coderay +17 -0
- data/spec/dummy_app/bin/erubis +17 -0
- data/spec/dummy_app/bin/haml +17 -0
- data/spec/dummy_app/bin/html2haml +17 -0
- data/spec/dummy_app/bin/htmldiff +17 -0
- data/spec/dummy_app/bin/ldiff +17 -0
- data/spec/dummy_app/bin/nokogiri +17 -0
- data/spec/dummy_app/bin/pry +17 -0
- data/spec/dummy_app/bin/rackup +17 -0
- data/spec/dummy_app/bin/rails +17 -0
- data/spec/dummy_app/bin/rake +17 -0
- data/spec/dummy_app/bin/rspec +17 -0
- data/spec/dummy_app/bin/ruby_parse +17 -0
- data/spec/dummy_app/bin/ruby_parse_extract_error +17 -0
- data/spec/dummy_app/bin/sass +17 -0
- data/spec/dummy_app/bin/sass-convert +17 -0
- data/spec/dummy_app/bin/scss +17 -0
- data/spec/dummy_app/bin/sprockets +17 -0
- data/spec/dummy_app/bin/thor +17 -0
- data/spec/dummy_app/bin/tilt +17 -0
- metadata +55 -121
- data/app/assets/stylesheets/expandable_tree.scss +0 -26
- data/app/assets/stylesheets/nested_options.scss +0 -25
- data/app/assets/stylesheets/sortable_tree.scss +0 -108
- data/app/assets/stylesheets/tree.scss +0 -35
- data/app/views/sortable/client/_tree.html.erb +0 -9
- data/app/views/tree/client/_tree.html.erb +0 -23
- data/spec/dummy_app/Gemfile.lock +0 -210
- data/spec/dummy_app/_test/fixtures/admin/pages.yml +0 -7
- data/spec/dummy_app/_test/fixtures/article_categories.yml +0 -9
- data/spec/dummy_app/_test/fixtures/comments.yml +0 -13
- data/spec/dummy_app/_test/fixtures/inventory/categories.yml +0 -9
- data/spec/dummy_app/_test/functional/inventory/category_controller_test.rb +0 -14
- data/spec/dummy_app/_test/performance/browsing_test.rb +0 -12
- data/spec/dummy_app/_test/test_helper.rb +0 -13
- data/spec/dummy_app/_test/unit/admin/page_test.rb +0 -7
- data/spec/dummy_app/_test/unit/article_category_test.rb +0 -7
- data/spec/dummy_app/_test/unit/comment_test.rb +0 -7
- data/spec/dummy_app/_test/unit/helpers/inventory/category_helper_test.rb +0 -4
- data/spec/dummy_app/_test/unit/inventory/category_test.rb +0 -7
- data/spec/dummy_app/config/database.yml +0 -7
- data/spec/dummy_app/db/development.db +0 -0
- data/spec/dummy_app/db/test.db +0 -0
- data/spec/dummy_app/doc/README_FOR_APP +0 -2
- data/spec/dummy_app/script/rails +0 -6
- data/spec/dummy_app/spec/build_tree_helper.rb +0 -39
- data/spec/dummy_app/spec/spec_helper.rb +0 -52
- data/spec/dummy_app/spec/views/pages/index.html.haml_spec.rb +0 -48
- data/spec/old_tests/controlllers/controller_mixin_spec.rb +0 -49
- data/spec/old_tests/dummy/README.rdoc +0 -261
- data/spec/old_tests/dummy/Rakefile +0 -7
- data/spec/old_tests/dummy/app/assets/javascripts/application.js +0 -15
- data/spec/old_tests/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/old_tests/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/old_tests/dummy/app/controllers/tests_controller.rb +0 -3
- data/spec/old_tests/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/old_tests/dummy/config.ru +0 -4
- data/spec/old_tests/dummy/config/application.rb +0 -56
- data/spec/old_tests/dummy/config/boot.rb +0 -10
- data/spec/old_tests/dummy/config/database.yml +0 -25
- data/spec/old_tests/dummy/config/environment.rb +0 -5
- data/spec/old_tests/dummy/config/environments/development.rb +0 -37
- data/spec/old_tests/dummy/config/environments/production.rb +0 -67
- data/spec/old_tests/dummy/config/environments/test.rb +0 -37
- data/spec/old_tests/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/old_tests/dummy/config/initializers/inflections.rb +0 -15
- data/spec/old_tests/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/old_tests/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/old_tests/dummy/config/initializers/session_store.rb +0 -8
- data/spec/old_tests/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/old_tests/dummy/config/locales/en.yml +0 -5
- data/spec/old_tests/dummy/config/routes.rb +0 -3
- data/spec/old_tests/dummy/db/test.sqlite3 +0 -0
- data/spec/old_tests/dummy/log/test.log +0 -4
- data/spec/old_tests/dummy/public/404.html +0 -26
- data/spec/old_tests/dummy/public/422.html +0 -26
- data/spec/old_tests/dummy/public/500.html +0 -25
- data/spec/old_tests/dummy/public/favicon.ico +0 -0
- data/spec/old_tests/dummy/script/rails +0 -6
- data/spec/old_tests/spec_helper.rb +0 -15
@@ -7,9 +7,9 @@ module TheSortableTreeHelper
|
|
7
7
|
|
8
8
|
# Default renderers
|
9
9
|
TREE_RENDERERS = {
|
10
|
-
:tree
|
11
|
-
:sortable
|
12
|
-
:expandable
|
10
|
+
:tree => RenderTreeHelper,
|
11
|
+
:sortable => RenderSortableTreeHelper,
|
12
|
+
:expandable => RenderExpandableTreeHelper,
|
13
13
|
:nested_options => RenderNestedOptionsHelper
|
14
14
|
}
|
15
15
|
|
data/gem_version.rb
CHANGED
data/spec/dummy_app/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails', '
|
3
|
+
gem 'rails', '4.2'
|
4
4
|
gem 'sqlite3'
|
5
5
|
|
6
6
|
gem 'json'
|
@@ -10,13 +10,16 @@ gem 'jquery-rails'
|
|
10
10
|
gem 'jquery-ui-rails'
|
11
11
|
|
12
12
|
gem 'quiet_assets'
|
13
|
+
gem 'sass-rails'
|
13
14
|
|
14
15
|
gem 'awesome_nested_set', github: "collectiveidea/awesome_nested_set"
|
15
16
|
gem 'the_sortable_tree', path: '../../'
|
17
|
+
# gem 'the_sortable_tree', '2.6.1'
|
18
|
+
|
19
|
+
gem 'protozaur', github: "the-teacher/protozaur"
|
16
20
|
|
17
21
|
group :assets do
|
18
22
|
gem 'uglifier'
|
19
|
-
gem 'sass-rails'
|
20
23
|
gem 'coffee-rails'
|
21
24
|
end
|
22
25
|
|
@@ -37,4 +40,4 @@ end
|
|
37
40
|
group :test do
|
38
41
|
gem 'factory_girl'
|
39
42
|
gem 'database_cleaner'
|
40
|
-
end
|
43
|
+
end
|
data/spec/dummy_app/README.md
CHANGED
@@ -1,48 +1,38 @@
|
|
1
|
-
## TheSortableTree Test Application
|
1
|
+
## TheSortableTree Test Application
|
2
2
|
|
3
|
-
|
3
|
+
* Ruby 2.3.3
|
4
|
+
* Rails 4
|
5
|
+
* Haml 4
|
6
|
+
* the_sortable_tree
|
4
7
|
|
8
|
+
### Setup the App
|
5
9
|
|
6
|
-
|
10
|
+
1. Copy and configure `database.yml`
|
7
11
|
|
8
|
-
|
12
|
+
```
|
13
|
+
cp config/database.yml.example config/database.yml
|
14
|
+
```
|
9
15
|
|
10
|
-
|
11
|
-
cp config/database.yml.example config/database.yml
|
12
|
-
```
|
16
|
+
2. Create DB and Seeds for development
|
13
17
|
|
14
|
-
|
18
|
+
```
|
19
|
+
rake db:bootstrap_and_seed
|
20
|
+
```
|
15
21
|
|
16
|
-
|
17
|
-
rake db:bootstrap_and_seed
|
18
|
-
```
|
22
|
+
3. Launch the App
|
19
23
|
|
20
|
-
|
24
|
+
```
|
25
|
+
bin/rails s
|
26
|
+
```
|
21
27
|
|
22
|
-
|
23
|
-
rails s
|
24
|
-
```
|
28
|
+
or
|
25
29
|
|
26
|
-
|
30
|
+
```
|
31
|
+
bin/rails s -p 3000 -b site.com
|
32
|
+
```
|
27
33
|
|
28
|
-
|
29
|
-
rails s -p 3000 -b site.com
|
30
|
-
```
|
34
|
+
4. Visit the Index page
|
31
35
|
|
32
|
-
|
33
|
-
|
34
|
-
```
|
35
|
-
localhost:3000
|
36
|
-
```
|
37
|
-
|
38
|
-
### How to run tests for TheSortable tree
|
39
|
-
|
40
|
-
```ruby
|
41
|
-
git clone git@github.com:the-teacher/the_sortable_tree.git
|
42
|
-
cd the_sortable_tree/spec/dummy_app/
|
43
|
-
|
44
|
-
# cp config/database.yml.example config/database.yml
|
45
|
-
|
46
|
-
rake db:bootstrap RAILS_ENV=test
|
47
|
-
rspec
|
48
|
-
```
|
36
|
+
```
|
37
|
+
localhost:3000
|
38
|
+
```
|
@@ -1,20 +1,16 @@
|
|
1
1
|
/*
|
2
|
-
// This is a manifest file that'll be compiled into including all the files listed below.
|
3
|
-
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
4
|
-
// be included in the compiled file accessible from http://example.com/assets/application.js
|
5
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
6
|
-
// the compiled file.
|
7
|
-
|
8
2
|
//= require jquery
|
9
3
|
//= require jquery_ujs
|
10
4
|
//= require jquery-ui/core
|
11
5
|
//= require jquery-ui/sortable
|
12
|
-
|
13
|
-
//= require jquery.ui.nestedSortable
|
14
|
-
//= require sortable_tree/initializer
|
15
6
|
|
16
|
-
//= require
|
17
|
-
|
18
|
-
//= require
|
19
|
-
//= require
|
7
|
+
//= require the_sortable_tree/jquery.ui.nestedSortable
|
8
|
+
|
9
|
+
//= require the_sortable_tree/sortable_ui/base
|
10
|
+
//= require the_sortable_tree/sortable_ui/initializer
|
11
|
+
|
12
|
+
//= require the_sortable_tree/expandable_tree/jquery.cookie
|
13
|
+
//= require the_sortable_tree/expandable_tree/restorable
|
14
|
+
//= require the_sortable_tree/expandable_tree/hashchange
|
15
|
+
//= require the_sortable_tree/expandable_tree/initializer
|
20
16
|
*/
|
@@ -1,11 +1,10 @@
|
|
1
1
|
/*
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
*= require_self
|
2
|
+
//= require ptz/reset
|
3
|
+
//= require ptz/base
|
4
|
+
//= require ptz/framework
|
6
5
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
*/
|
6
|
+
//= require the_sortable_tree/sortable_ui/base
|
7
|
+
|
8
|
+
//= require the_sortable_tree/tree
|
9
|
+
//= require the_sortable_tree/expandable_tree
|
10
|
+
*/
|
@@ -1,3 +1,3 @@
|
|
1
1
|
%p= link_to raw('← back'), '/'
|
2
|
-
%ol.
|
3
|
-
= build_server_tree @pages, type: :sortable
|
2
|
+
%ol.the_sortable_tree{ data: { rebuild_url: rebuild_admin_pages_url } }
|
3
|
+
= build_server_tree @pages, type: :sortable
|
@@ -1,4 +1,4 @@
|
|
1
1
|
%p= link_to raw('← back'), '/'
|
2
2
|
|
3
|
-
%ol.
|
3
|
+
%ol.the_sortable_tree{ :data => { :max_levels => 3, :rebuild_url => rebuild_article_categories_url } }
|
4
4
|
= build_server_tree @article_categories, :type => :sortable
|
@@ -1,4 +1,4 @@
|
|
1
1
|
%p= link_to raw('← back'), '/'
|
2
2
|
|
3
|
-
%ol.
|
3
|
+
%ol.the_sortable_tree{ data: { max_levels: 3, rebuild_url: rebuild_inventory_categories_url } }
|
4
4
|
= build_server_tree @inventory_categories, type: :sortable
|
@@ -12,7 +12,11 @@
|
|
12
12
|
</head>
|
13
13
|
<body>
|
14
14
|
|
15
|
-
|
15
|
+
<div class='ma w80p p20'>
|
16
|
+
<%= yield %>
|
17
|
+
</div>
|
16
18
|
|
17
19
|
</body>
|
20
|
+
|
21
|
+
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
|
18
22
|
</html>
|
@@ -4,5 +4,5 @@
|
|
4
4
|
|
5
5
|
Count: #{ @pages.to_a.count }
|
6
6
|
|
7
|
-
%ol.
|
7
|
+
%ol.the_sortable_tree.expandable{ data: { max_levels: 5, rebuild_url: rebuild_pages_url, expand_node_url: expand_node_pages_url, cookie_store: :true, cookie_scope: @pages.first.class } }
|
8
8
|
= expandable_tree @pages
|
@@ -1 +1 @@
|
|
1
|
-
%ol.nested_set= expandable_tree @children
|
1
|
+
%ol.the_sotrable_tree-nested_set= expandable_tree @children
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
1
|
+
.ma.w800
|
2
|
+
%p.mb20= link_to raw('← back'), '/'
|
3
|
+
%p.mb20= link_to 'Create New Page', new_page_path
|
2
4
|
|
3
|
-
|
5
|
+
.fs18.mb20
|
6
|
+
Count: #{ @pages.to_a.count }
|
4
7
|
|
5
|
-
|
6
|
-
|
7
|
-
%ol.sortable_tree{ data: { rebuild_url: rebuild_pages_url } }
|
8
|
-
= sortable_tree @pages, namespace: :admin
|
8
|
+
%ol.the_sortable_tree{ data: { rebuild_url: rebuild_pages_url } }
|
9
|
+
= sortable_tree @pages, namespace: :admin
|
@@ -1,3 +1,4 @@
|
|
1
|
-
|
1
|
+
.ma.w800
|
2
|
+
%p= link_to raw('← back'), '/'
|
2
3
|
|
3
|
-
= select_tag :pages, nested_options(@pages, selected: @pages.last), class: :nested_options
|
4
|
+
= select_tag :pages, nested_options(@pages, selected: @pages.last), class: :nested_options
|
@@ -1,40 +1,41 @@
|
|
1
|
-
|
1
|
+
.w800.ma.fs16.ffa.lh150
|
2
|
+
%h1.mb30 Welcome to TheSortableTree test application!
|
2
3
|
|
3
|
-
%h4 Default views
|
4
|
+
%h4.mb20 Default views
|
4
5
|
|
5
|
-
%h5 Pages (model Pages)
|
6
|
+
%h5.mb20 Pages (model Pages)
|
6
7
|
|
7
|
-
%ul
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
%ul.ml40.mb20
|
9
|
+
%li= link_to 'pages/index (just tree)', pages_path
|
10
|
+
%li= link_to 'pages/nested_options', nested_options_pages_path
|
11
|
+
%li= link_to 'pages/manage (sortable tree)', manage_pages_path
|
12
|
+
%li= link_to 'pages/node_manage (sortable tree)', node_manage_pages_path
|
13
|
+
%li= link_to 'pages/expand (expandable tree)', expand_pages_path
|
13
14
|
|
14
|
-
%h5 Admin::Pages (model Admin::Pages + namespace :admin)
|
15
|
+
%h5.mb20 Admin::Pages (model Admin::Pages + namespace :admin)
|
15
16
|
|
16
|
-
%ul
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
%ul.ml40.mb20
|
18
|
+
%li= link_to '/admin/pages/index (just tree)', admin_pages_path
|
19
|
+
%li= link_to '/admin/pages/nested_options', nested_options_admin_pages_path
|
20
|
+
%li= link_to '/admin/pages/manage (sortable tree)', manage_admin_pages_path
|
21
|
+
%li= link_to '/admin/pages/node_manage (sortable tree)', node_manage_admin_pages_path
|
21
22
|
|
22
|
-
%h5 Сompound model name (Inventory::Category)
|
23
|
+
%h5.mb20 Сompound model name (Inventory::Category)
|
23
24
|
|
24
|
-
%ul
|
25
|
-
|
26
|
-
|
25
|
+
%ul.ml40.mb20
|
26
|
+
%li= link_to 'inventory/categories/index', inventory_categories_path
|
27
|
+
%li= link_to 'inventory/categories/manage (sortable tree)', manage_inventory_categories_path
|
27
28
|
|
28
|
-
%h5 Сompound model name (ArticleCategory)
|
29
|
+
%h5.mb20 Сompound model name (ArticleCategory)
|
29
30
|
|
30
|
-
%ul
|
31
|
-
|
32
|
-
|
31
|
+
%ul.ml40.mb20
|
32
|
+
%li= link_to 'article_categories/index', article_categories_path
|
33
|
+
%li= link_to 'article_categories/manage (sortable tree)', manage_article_categories_path
|
33
34
|
|
34
|
-
%h4 Customized views
|
35
|
+
-# %h4 Customized views
|
35
36
|
|
36
|
-
-#
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
37
|
+
-#
|
38
|
+
%ul
|
39
|
+
%li= link_to 'comments/index (min)', comments_path
|
40
|
+
%li= link_to 'comments/manage (sortable tree)', manage_comments_path
|
41
|
+
%li= link_to 'comments/manage (Tree of Comments)', comments_comments_path
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
#
|
4
|
+
# This file was generated by Bundler.
|
5
|
+
#
|
6
|
+
# The application 'bundler' is installed as part of a gem, and
|
7
|
+
# this file is here to facilitate running it.
|
8
|
+
#
|
9
|
+
|
10
|
+
require "pathname"
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
+
Pathname.new(__FILE__).realpath)
|
13
|
+
|
14
|
+
require "rubygems"
|
15
|
+
require "bundler/setup"
|
16
|
+
|
17
|
+
load Gem.bin_path("bundler", "bundler")
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
#
|
4
|
+
# This file was generated by Bundler.
|
5
|
+
#
|
6
|
+
# The application 'coderay' is installed as part of a gem, and
|
7
|
+
# this file is here to facilitate running it.
|
8
|
+
#
|
9
|
+
|
10
|
+
require "pathname"
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
+
Pathname.new(__FILE__).realpath)
|
13
|
+
|
14
|
+
require "rubygems"
|
15
|
+
require "bundler/setup"
|
16
|
+
|
17
|
+
load Gem.bin_path("coderay", "coderay")
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
#
|
4
|
+
# This file was generated by Bundler.
|
5
|
+
#
|
6
|
+
# The application 'erubis' is installed as part of a gem, and
|
7
|
+
# this file is here to facilitate running it.
|
8
|
+
#
|
9
|
+
|
10
|
+
require "pathname"
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
+
Pathname.new(__FILE__).realpath)
|
13
|
+
|
14
|
+
require "rubygems"
|
15
|
+
require "bundler/setup"
|
16
|
+
|
17
|
+
load Gem.bin_path("erubis", "erubis")
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
#
|
4
|
+
# This file was generated by Bundler.
|
5
|
+
#
|
6
|
+
# The application 'haml' is installed as part of a gem, and
|
7
|
+
# this file is here to facilitate running it.
|
8
|
+
#
|
9
|
+
|
10
|
+
require "pathname"
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
12
|
+
Pathname.new(__FILE__).realpath)
|
13
|
+
|
14
|
+
require "rubygems"
|
15
|
+
require "bundler/setup"
|
16
|
+
|
17
|
+
load Gem.bin_path("haml", "haml")
|