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.
Files changed (57) hide show
  1. data/.gitignore +26 -3
  2. data/Gemfile +5 -12
  3. data/Rakefile +7 -9
  4. data/bone_tree.gemspec +30 -14
  5. data/config.rb +8 -0
  6. data/lib/assets/javascripts/bone_tree.js +277 -981
  7. data/lib/assets/stylesheets/bone_tree.css +108 -0
  8. data/lib/bone_tree/rails.rb +5 -0
  9. data/lib/bone_tree/sprockets.rb +3 -0
  10. data/lib/{version.rb → bone_tree/version.rb} +1 -1
  11. data/lib/bone_tree.rb +11 -6
  12. data/source/index.html.haml +10 -382
  13. data/source/javascripts/{_backbone.js → backbone.js} +282 -142
  14. data/source/javascripts/bone_tree/models/directory.js.coffee +109 -0
  15. data/source/javascripts/bone_tree/models/file.js.coffee +12 -0
  16. data/source/javascripts/bone_tree/models/node.js.coffee +24 -0
  17. data/source/javascripts/bone_tree/models/settings.js.coffee +5 -0
  18. data/source/javascripts/bone_tree/{_namespace.js.coffee → namespace.js.coffee} +1 -1
  19. data/source/javascripts/bone_tree/views/directory.js.coffee +56 -0
  20. data/source/javascripts/bone_tree/views/file.js.coffee +25 -0
  21. data/source/javascripts/bone_tree/views/tree.js.coffee +87 -0
  22. data/source/javascripts/bone_tree.js.coffee +2 -1
  23. data/source/stylesheets/bone_tree.css.sass +0 -38
  24. data/spec/javascripts/directory_spec.coffee +26 -0
  25. data/spec/javascripts/helpers/spec_helper.coffee +3 -4
  26. data/spec/javascripts/sorting_spec.coffee +12 -0
  27. data/spec/javascripts/support/jasmine.yml +6 -4
  28. metadata +143 -36
  29. data/Gemfile.lock +0 -190
  30. data/docs/index.html +0 -222
  31. data/docs/resources/base.css +0 -70
  32. data/docs/resources/index.css +0 -20
  33. data/docs/resources/module.css +0 -24
  34. data/docs/source/javascripts/bone_tree/_namespace.js.html +0 -45
  35. data/docs/source/javascripts/bone_tree/models/_directory.js.html +0 -126
  36. data/docs/source/javascripts/bone_tree/models/_file.js.html +0 -112
  37. data/docs/source/javascripts/bone_tree/models/_nodes.js.html +0 -174
  38. data/docs/source/javascripts/bone_tree/models/_settings.js.html +0 -75
  39. data/docs/source/javascripts/bone_tree/views/_directory.js.html +0 -94
  40. data/docs/source/javascripts/bone_tree/views/_file.js.html +0 -82
  41. data/docs/source/javascripts/bone_tree/views/_menu.js.html +0 -110
  42. data/docs/source/javascripts/bone_tree/views/_tree.js.html +0 -432
  43. data/source/javascripts/_jquery.min.js +0 -5
  44. data/source/javascripts/_underscore.js +0 -999
  45. data/source/javascripts/bone_tree/models/_directory.js.coffee +0 -63
  46. data/source/javascripts/bone_tree/models/_file.js.coffee +0 -55
  47. data/source/javascripts/bone_tree/models/_nodes.js.coffee +0 -117
  48. data/source/javascripts/bone_tree/models/_settings.js.coffee +0 -25
  49. data/source/javascripts/bone_tree/views/_directory.js.coffee +0 -73
  50. data/source/javascripts/bone_tree/views/_file.js.coffee +0 -51
  51. data/source/javascripts/bone_tree/views/_menu.js.coffee +0 -97
  52. data/source/javascripts/bone_tree/views/_tree.js.coffee +0 -498
  53. data/spec/javascripts/directory_view_spec.coffee +0 -91
  54. data/spec/javascripts/file_view_spec.coffee +0 -70
  55. data/spec/javascripts/menu_view_spec.coffee +0 -42
  56. data/spec/javascripts/nodes_spec.coffee +0 -37
  57. 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
- /.sass-cache
3
- build/
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 "http://rubygems.org"
1
+ source :rubygems
2
2
 
3
- gem "haml-coderay"
4
3
  gem 'middleman', :git => 'git://github.com/middleman/middleman.git'
5
- gem "rack"
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 "coffee-filter"
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
- require 'fileutils'
2
- include FileUtils
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
3
 
4
- task :default => [:build]
5
-
6
- task :build => [:spec] do
7
- # Build static assets
8
- `middleman build`
4
+ task :build => [:spec, :compile]
9
5
 
10
- `cp build/javascripts/bone_tree.js lib/assets/javascripts/bone_tree.js`
11
- `gem build bone_tree.gemspec`
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
- $:.push File.expand_path("../lib", __FILE__)
3
- require "version"
2
+ require File.expand_path('../lib/bone_tree/version', __FILE__)
4
3
 
5
- Gem::Specification.new do |s|
6
- s.name = "bone_tree"
7
- s.version = BoneTree::VERSION
8
- s.authors = ["Matt Diebolt"]
9
- s.email = ["mdiebolt@gmail.com"]
10
- s.homepage = "http://mdiebolt.github.com/bone_tree"
11
- s.summary = "A backbone filetree widget"
12
- s.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."
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
- s.rubyforge_project = "bone_tree"
13
+ gem.rubyforge_project = "bone_tree"
15
14
 
16
- s.files = `git ls-files`.split("\n")
17
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
- s.require_paths = ["lib"]
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