bone_tree 0.5.6 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +26 -3
- data/Gemfile +5 -12
- data/Rakefile +7 -9
- data/bone_tree.gemspec +30 -14
- data/config.rb +8 -0
- data/lib/assets/javascripts/bone_tree.js +277 -981
- data/lib/assets/stylesheets/bone_tree.css +108 -0
- data/lib/bone_tree/rails.rb +5 -0
- data/lib/bone_tree/sprockets.rb +3 -0
- data/lib/{version.rb → bone_tree/version.rb} +1 -1
- data/lib/bone_tree.rb +11 -6
- data/source/index.html.haml +10 -382
- data/source/javascripts/{_backbone.js → backbone.js} +282 -142
- data/source/javascripts/bone_tree/models/directory.js.coffee +109 -0
- data/source/javascripts/bone_tree/models/file.js.coffee +12 -0
- data/source/javascripts/bone_tree/models/node.js.coffee +24 -0
- data/source/javascripts/bone_tree/models/settings.js.coffee +5 -0
- data/source/javascripts/bone_tree/{_namespace.js.coffee → namespace.js.coffee} +1 -1
- data/source/javascripts/bone_tree/views/directory.js.coffee +56 -0
- data/source/javascripts/bone_tree/views/file.js.coffee +25 -0
- data/source/javascripts/bone_tree/views/tree.js.coffee +87 -0
- data/source/javascripts/bone_tree.js.coffee +2 -1
- data/source/stylesheets/bone_tree.css.sass +0 -38
- data/spec/javascripts/directory_spec.coffee +26 -0
- data/spec/javascripts/helpers/spec_helper.coffee +3 -4
- data/spec/javascripts/sorting_spec.coffee +12 -0
- data/spec/javascripts/support/jasmine.yml +6 -4
- metadata +143 -36
- data/Gemfile.lock +0 -190
- data/docs/index.html +0 -222
- data/docs/resources/base.css +0 -70
- data/docs/resources/index.css +0 -20
- data/docs/resources/module.css +0 -24
- data/docs/source/javascripts/bone_tree/_namespace.js.html +0 -45
- data/docs/source/javascripts/bone_tree/models/_directory.js.html +0 -126
- data/docs/source/javascripts/bone_tree/models/_file.js.html +0 -112
- data/docs/source/javascripts/bone_tree/models/_nodes.js.html +0 -174
- data/docs/source/javascripts/bone_tree/models/_settings.js.html +0 -75
- data/docs/source/javascripts/bone_tree/views/_directory.js.html +0 -94
- data/docs/source/javascripts/bone_tree/views/_file.js.html +0 -82
- data/docs/source/javascripts/bone_tree/views/_menu.js.html +0 -110
- data/docs/source/javascripts/bone_tree/views/_tree.js.html +0 -432
- data/source/javascripts/_jquery.min.js +0 -5
- data/source/javascripts/_underscore.js +0 -999
- data/source/javascripts/bone_tree/models/_directory.js.coffee +0 -63
- data/source/javascripts/bone_tree/models/_file.js.coffee +0 -55
- data/source/javascripts/bone_tree/models/_nodes.js.coffee +0 -117
- data/source/javascripts/bone_tree/models/_settings.js.coffee +0 -25
- data/source/javascripts/bone_tree/views/_directory.js.coffee +0 -73
- data/source/javascripts/bone_tree/views/_file.js.coffee +0 -51
- data/source/javascripts/bone_tree/views/_menu.js.coffee +0 -97
- data/source/javascripts/bone_tree/views/_tree.js.coffee +0 -498
- data/spec/javascripts/directory_view_spec.coffee +0 -91
- data/spec/javascripts/file_view_spec.coffee +0 -70
- data/spec/javascripts/menu_view_spec.coffee +0 -42
- data/spec/javascripts/nodes_spec.coffee +0 -37
- data/spec/javascripts/tree_view_spec.coffee +0 -39
data/.gitignore
CHANGED
@@ -1,5 +1,28 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
1
3
|
.DS_STORE
|
2
|
-
|
3
|
-
|
4
|
-
.rvmrc
|
4
|
+
.bundle
|
5
|
+
.config
|
5
6
|
.jhw-cache
|
7
|
+
.rvmrc
|
8
|
+
.sass-cache
|
9
|
+
.yardoc
|
10
|
+
Gemfile.lock
|
11
|
+
InstalledFiles
|
12
|
+
_yardoc
|
13
|
+
build/
|
14
|
+
coverage
|
15
|
+
doc/
|
16
|
+
docs/
|
17
|
+
lib/assets/images/
|
18
|
+
lib/assets/index.html
|
19
|
+
lib/assets/javascripts/backbone.js
|
20
|
+
lib/assets/javascripts/bone_tree/
|
21
|
+
lib/assets/stylesheets/bone_tree_repo.css
|
22
|
+
lib/bundler/man
|
23
|
+
pkg
|
24
|
+
rdoc
|
25
|
+
spec/reports
|
26
|
+
test/tmp
|
27
|
+
test/version_tmp
|
28
|
+
tmp
|
data/Gemfile
CHANGED
@@ -1,17 +1,10 @@
|
|
1
|
-
source
|
1
|
+
source :rubygems
|
2
2
|
|
3
|
-
gem "haml-coderay"
|
4
3
|
gem 'middleman', :git => 'git://github.com/middleman/middleman.git'
|
5
|
-
gem "
|
6
|
-
gem "rack-codehighlighter"
|
4
|
+
gem "middleman-sprockets", :git => 'git://github.com/middleman/middleman-sprockets.git'
|
7
5
|
|
8
6
|
group :development, :test do
|
9
|
-
gem "
|
10
|
-
gem 'growl'
|
11
|
-
gem 'guard-jasmine-headless-webkit', :git => 'git://github.com/johnbintz/guard-jasmine-headless-webkit.git'
|
12
|
-
gem "jasmine"
|
13
|
-
gem "jasmine-headless-webkit", :git => 'git://github.com/johnbintz/jasmine-headless-webkit.git', :ref => '724541a2cb3ee7d730dac4eb186b451a510bf11e'
|
14
|
-
gem 'jasmine-spec-extras'
|
15
|
-
gem "rake"
|
16
|
-
gem "rb-fsevent"
|
7
|
+
gem "jasmine-headless-webkit", :git => 'git://github.com/johnbintz/jasmine-headless-webkit.git'
|
17
8
|
end
|
9
|
+
|
10
|
+
gemspec
|
data/Rakefile
CHANGED
@@ -1,16 +1,14 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require "bundler/gem_tasks"
|
3
3
|
|
4
|
-
task :
|
5
|
-
|
6
|
-
task :build => [:spec] do
|
7
|
-
# Build static assets
|
8
|
-
`middleman build`
|
4
|
+
task :build => [:spec, :compile]
|
9
5
|
|
10
|
-
|
11
|
-
`
|
6
|
+
task :compile do
|
7
|
+
`bundle exec middleman build`
|
12
8
|
end
|
13
9
|
|
10
|
+
task :default => [:build]
|
11
|
+
|
14
12
|
desc "Run jasmine specs"
|
15
13
|
task :spec do
|
16
14
|
sh %[bundle exec jasmine-headless-webkit -cq]
|
data/bone_tree.gemspec
CHANGED
@@ -1,19 +1,35 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
require "version"
|
2
|
+
require File.expand_path('../lib/bone_tree/version', __FILE__)
|
4
3
|
|
5
|
-
Gem::Specification.new do |
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.name = "bone_tree"
|
6
|
+
gem.version = BoneTree::VERSION
|
7
|
+
gem.authors = ["Matt Diebolt"]
|
8
|
+
gem.email = ["mdiebolt@gmail.com"]
|
9
|
+
gem.homepage = "http://mdiebolt.github.com/bone_tree"
|
10
|
+
gem.summary = "A backbone filetree widget"
|
11
|
+
gem.description = "This is a filetree, written with Backbone. It is meant to be tree that will update your file nodes live and sort them when the node state is changed."
|
13
12
|
|
14
|
-
|
13
|
+
gem.rubyforge_project = "bone_tree"
|
15
14
|
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
gem.files = `git ls-files`.split("\n")
|
16
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
|
+
gem.require_paths = ["lib"]
|
18
|
+
|
19
|
+
gem.add_dependency 'jquery-source'
|
20
|
+
gem.add_dependency 'cornerstone-source'
|
21
|
+
gem.add_dependency 'underscore-source'
|
22
|
+
|
23
|
+
%w[
|
24
|
+
jasmine-spec-extras
|
25
|
+
rake
|
26
|
+
rb-fsevent
|
27
|
+
therubyracer
|
28
|
+
rack-codehighlighter
|
29
|
+
haml-coderay
|
30
|
+
coffee-filter
|
31
|
+
jasmine
|
32
|
+
].each do |gem_name|
|
33
|
+
gem.add_development_dependency gem_name
|
34
|
+
end
|
19
35
|
end
|
data/config.rb
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
require 'coffee-filter'
|
2
2
|
require 'haml-coderay'
|
3
3
|
|
4
|
+
set :css_dir, 'stylesheets'
|
5
|
+
|
6
|
+
set :js_dir, 'javascripts'
|
7
|
+
|
8
|
+
set :images_dir, 'images'
|
9
|
+
|
10
|
+
set :build_dir, 'lib/assets'
|
11
|
+
|
4
12
|
# Build-specific configuration
|
5
13
|
configure :build do
|
6
14
|
# For example, change the Compass output style for deployment
|