bone_tree 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/.gitignore +5 -0
  2. data/Gemfile +17 -0
  3. data/Gemfile.lock +190 -0
  4. data/Guardfile +14 -0
  5. data/README +1 -0
  6. data/Rakefile +21 -0
  7. data/app/assets/images/bonetree.png +0 -0
  8. data/app/assets/images/crushed_bone.png +0 -0
  9. data/app/assets/index.html +439 -0
  10. data/app/assets/javascripts/bone_tree.js +1292 -0
  11. data/app/assets/stylesheets/bone_tree.css +186 -0
  12. data/app/assets/stylesheets/bone_tree_repo.css +73 -0
  13. data/bone_tree-0.0.1.gem +0 -0
  14. data/bone_tree.gemspec +20 -0
  15. data/config.rb +26 -0
  16. data/config.ru +4 -0
  17. data/docs/index.html +222 -0
  18. data/docs/resources/base.css +70 -0
  19. data/docs/resources/index.css +20 -0
  20. data/docs/resources/module.css +24 -0
  21. data/docs/source/javascripts/bone_tree/_namespace.js.html +45 -0
  22. data/docs/source/javascripts/bone_tree/models/_directory.js.html +126 -0
  23. data/docs/source/javascripts/bone_tree/models/_file.js.html +112 -0
  24. data/docs/source/javascripts/bone_tree/models/_nodes.js.html +174 -0
  25. data/docs/source/javascripts/bone_tree/models/_settings.js.html +75 -0
  26. data/docs/source/javascripts/bone_tree/views/_directory.js.html +94 -0
  27. data/docs/source/javascripts/bone_tree/views/_file.js.html +82 -0
  28. data/docs/source/javascripts/bone_tree/views/_menu.js.html +110 -0
  29. data/docs/source/javascripts/bone_tree/views/_tree.js.html +432 -0
  30. data/lib/version.rb +4 -0
  31. data/source/images/bonetree.png +0 -0
  32. data/source/images/crushed_bone.png +0 -0
  33. data/source/index.html.haml +438 -0
  34. data/source/javascripts/_backbone.js +1293 -0
  35. data/source/javascripts/_jquery.min.js +5 -0
  36. data/source/javascripts/_underscore.js +999 -0
  37. data/source/javascripts/bone_tree/_namespace.js.coffee +7 -0
  38. data/source/javascripts/bone_tree/models/_directory.js.coffee +63 -0
  39. data/source/javascripts/bone_tree/models/_file.js.coffee +55 -0
  40. data/source/javascripts/bone_tree/models/_nodes.js.coffee +117 -0
  41. data/source/javascripts/bone_tree/models/_settings.js.coffee +25 -0
  42. data/source/javascripts/bone_tree/views/_directory.js.coffee +73 -0
  43. data/source/javascripts/bone_tree/views/_file.js.coffee +49 -0
  44. data/source/javascripts/bone_tree/views/_menu.js.coffee +97 -0
  45. data/source/javascripts/bone_tree/views/_tree.js.coffee +498 -0
  46. data/source/javascripts/bone_tree.js.coffee +1 -0
  47. data/source/layout.haml +13 -0
  48. data/source/stylesheets/bone_tree.css.sass +107 -0
  49. data/source/stylesheets/bone_tree_repo.css.sass +65 -0
  50. data/spec/javascripts/directory_view_spec.coffee +91 -0
  51. data/spec/javascripts/file_view_spec.coffee +70 -0
  52. data/spec/javascripts/helpers/spec_helper.coffee +7 -0
  53. data/spec/javascripts/menu_view_spec.coffee +42 -0
  54. data/spec/javascripts/nodes_spec.coffee +37 -0
  55. data/spec/javascripts/support/jasmine.yml +8 -0
  56. data/spec/javascripts/support/jasmine_config.rb +23 -0
  57. data/spec/javascripts/support/jasmine_runner.rb +32 -0
  58. data/spec/javascripts/tree_view_spec.coffee +39 -0
  59. metadata +123 -0
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ .DS_STORE
2
+ /.sass-cache
3
+ build/
4
+ .rvmrc
5
+ .jhw-cache
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "haml-coderay"
4
+ gem 'middleman', :git => 'git://github.com/middleman/middleman.git'
5
+ gem "rack"
6
+ gem "rack-codehighlighter"
7
+
8
+ 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"
17
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,190 @@
1
+ GIT
2
+ remote: git://github.com/johnbintz/guard-jasmine-headless-webkit.git
3
+ revision: 644f24cc4cba590c99572f6ea87335e24fb93264
4
+ specs:
5
+ guard-jasmine-headless-webkit (0.4.0.rc1)
6
+ guard (>= 0.4.0)
7
+ jasmine-headless-webkit (>= 0.7.0)
8
+
9
+ GIT
10
+ remote: git://github.com/johnbintz/jasmine-headless-webkit.git
11
+ revision: 724541a2cb3ee7d730dac4eb186b451a510bf11e
12
+ ref: 724541a2cb3ee7d730dac4eb186b451a510bf11e
13
+ specs:
14
+ jasmine-headless-webkit (0.9.0.rc1)
15
+ coffee-script
16
+ jasmine-core
17
+ multi_json
18
+ rainbow
19
+ sprockets
20
+ sprockets-vendor_gems
21
+
22
+ GIT
23
+ remote: git://github.com/middleman/middleman.git
24
+ revision: 23e05868961b242812817a794c25a2efa9d069a6
25
+ specs:
26
+ middleman (3.0.0.beta.3)
27
+ middleman-core (= 3.0.0.beta.3)
28
+ middleman-more (= 3.0.0.beta.3)
29
+ middleman-core (3.0.0.beta.3)
30
+ activesupport (~> 3.2.0)
31
+ bundler (~> 1.0)
32
+ i18n (~> 0.6.0)
33
+ listen (~> 0.4.1)
34
+ padrino-helpers (~> 0.10.6)
35
+ rack (~> 1.4.0)
36
+ rack-test (~> 0.6.1)
37
+ thin (~> 1.3.1)
38
+ thor (~> 0.14.0)
39
+ tilt (~> 1.3.1)
40
+ middleman-more (3.0.0.beta.3)
41
+ coffee-script (~> 2.2.0)
42
+ compass (~> 0.12.1)
43
+ execjs (~> 1.2)
44
+ haml (~> 3.1.0)
45
+ middleman-core (= 3.0.0.beta.3)
46
+ redcarpet (~> 2.1.0)
47
+ sass (>= 3.1.7)
48
+ sprockets (~> 2.1)
49
+ sprockets-sass (~> 0.8.0)
50
+ uglifier (~> 1.2.0)
51
+
52
+ GEM
53
+ remote: http://rubygems.org/
54
+ specs:
55
+ activesupport (3.2.3)
56
+ i18n (~> 0.6)
57
+ multi_json (~> 1.0)
58
+ addressable (2.2.7)
59
+ childprocess (0.3.2)
60
+ ffi (~> 1.0.6)
61
+ chunky_png (1.2.5)
62
+ coderay (1.0.6)
63
+ coffee-filter (0.1.1)
64
+ coffee-script (>= 2.2.0)
65
+ haml (>= 3.0.18)
66
+ coffee-script (2.2.0)
67
+ coffee-script-source
68
+ execjs
69
+ coffee-script-source (1.3.1)
70
+ compass (0.12.1)
71
+ chunky_png (~> 1.2)
72
+ fssm (>= 0.2.7)
73
+ sass (~> 3.1)
74
+ daemons (1.1.8)
75
+ diff-lcs (1.1.3)
76
+ eventmachine (0.12.10)
77
+ execjs (1.3.1)
78
+ multi_json (~> 1.0)
79
+ ffi (1.0.11)
80
+ fssm (0.2.9)
81
+ growl (1.0.3)
82
+ guard (1.0.1)
83
+ ffi (>= 0.5.0)
84
+ thor (~> 0.14.6)
85
+ haml (3.1.4)
86
+ haml-coderay (0.1.2)
87
+ coderay
88
+ haml
89
+ hike (1.2.1)
90
+ http_router (0.10.2)
91
+ rack (>= 1.0.0)
92
+ url_mount (~> 0.2.1)
93
+ i18n (0.6.0)
94
+ jasmine (1.1.2)
95
+ jasmine-core (>= 1.1.0)
96
+ rack (>= 1.1)
97
+ rspec (>= 1.3.1)
98
+ selenium-webdriver (>= 0.1.3)
99
+ jasmine-core (1.1.0)
100
+ jasmine-spec-extras (0.0.2)
101
+ libwebsocket (0.1.3)
102
+ addressable
103
+ listen (0.4.1)
104
+ rb-fchange (~> 0.0.5)
105
+ rb-fsevent (~> 0.9.1)
106
+ rb-inotify (~> 0.8.8)
107
+ multi_json (1.3.4)
108
+ nokogiri (1.5.2)
109
+ padrino-core (0.10.6)
110
+ activesupport (~> 3.2.0)
111
+ http_router (~> 0.10.2)
112
+ sinatra (~> 1.3.1)
113
+ thor (~> 0.14.3)
114
+ tilt (~> 1.3.0)
115
+ padrino-helpers (0.10.6)
116
+ i18n (~> 0.6)
117
+ padrino-core (= 0.10.6)
118
+ rack (1.4.1)
119
+ rack-codehighlighter (0.5.0)
120
+ nokogiri (>= 1.4.1)
121
+ rack (>= 1.0.0)
122
+ rack-protection (1.2.0)
123
+ rack
124
+ rack-test (0.6.1)
125
+ rack (>= 1.0)
126
+ rainbow (1.1.4)
127
+ rake (0.9.2.2)
128
+ rb-fchange (0.0.5)
129
+ ffi
130
+ rb-fsevent (0.9.1)
131
+ rb-inotify (0.8.8)
132
+ ffi (>= 0.5.0)
133
+ redcarpet (2.1.1)
134
+ rspec (2.9.0)
135
+ rspec-core (~> 2.9.0)
136
+ rspec-expectations (~> 2.9.0)
137
+ rspec-mocks (~> 2.9.0)
138
+ rspec-core (2.9.0)
139
+ rspec-expectations (2.9.1)
140
+ diff-lcs (~> 1.1.3)
141
+ rspec-mocks (2.9.0)
142
+ rubyzip (0.9.8)
143
+ sass (3.1.16)
144
+ selenium-webdriver (2.21.2)
145
+ childprocess (>= 0.2.5)
146
+ ffi (~> 1.0)
147
+ libwebsocket (~> 0.1.3)
148
+ multi_json (~> 1.0)
149
+ rubyzip
150
+ sinatra (1.3.2)
151
+ rack (~> 1.3, >= 1.3.6)
152
+ rack-protection (~> 1.2)
153
+ tilt (~> 1.3, >= 1.3.3)
154
+ sprockets (2.4.1)
155
+ hike (~> 1.2)
156
+ multi_json (~> 1.0)
157
+ rack (~> 1.0)
158
+ tilt (~> 1.1, != 1.3.0)
159
+ sprockets-sass (0.8.0)
160
+ sprockets (~> 2.0)
161
+ tilt (~> 1.1)
162
+ sprockets-vendor_gems (0.1.1)
163
+ thin (1.3.1)
164
+ daemons (>= 1.0.9)
165
+ eventmachine (>= 0.12.6)
166
+ rack (>= 1.0.0)
167
+ thor (0.14.6)
168
+ tilt (1.3.3)
169
+ uglifier (1.2.4)
170
+ execjs (>= 0.3.0)
171
+ multi_json (>= 1.0.2)
172
+ url_mount (0.2.1)
173
+ rack
174
+
175
+ PLATFORMS
176
+ ruby
177
+
178
+ DEPENDENCIES
179
+ coffee-filter
180
+ growl
181
+ guard-jasmine-headless-webkit!
182
+ haml-coderay
183
+ jasmine
184
+ jasmine-headless-webkit!
185
+ jasmine-spec-extras
186
+ middleman!
187
+ rack
188
+ rack-codehighlighter
189
+ rake
190
+ rb-fsevent
data/Guardfile ADDED
@@ -0,0 +1,14 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ # Run JS and CoffeeScript files in a typical Rails 3.1/Sprockets fashion.
5
+ # Your spec files end with _spec.{js,coffee}.
6
+
7
+ spec_location = "spec/javascripts/%s_spec"
8
+
9
+ guard 'jasmine-headless-webkit', :quiet => true do
10
+ watch(%r{^app/views/.*\.jst$})
11
+ watch(%r{^public/javascripts/(.*)\.js$}) { |m| newest_js_file(spec_location % m[1]) }
12
+ watch(%r{^app/assets/javascripts/(.*)\.(js|coffee)$}) { |m| newest_js_file(spec_location % m[1]) }
13
+ watch(%r{^spec/javascripts/(.*)_spec\..*}) { |m| newest_js_file(spec_location % m[1]) }
14
+ end
data/README ADDED
@@ -0,0 +1 @@
1
+ http://mdiebolt.github.com/bone_tree
data/Rakefile ADDED
@@ -0,0 +1,21 @@
1
+ require 'fileutils'
2
+ include FileUtils
3
+
4
+ task :default => [:build]
5
+
6
+ task :build => [:spec] do
7
+ # Remove all but .git from build directory
8
+ rm_r Dir.glob("build/*")
9
+
10
+ # Build static assets
11
+ `middleman build`
12
+
13
+ `cp -r app/assets/* build/`
14
+ `gem build bone_tree.gemspec`
15
+ end
16
+
17
+ desc "Run jasmine specs"
18
+ task :spec do
19
+ sh %[bundle exec jasmine-headless-webkit -cq]
20
+ end
21
+
Binary file
Binary file