sensible-cinema 0.34.0 → 0.35.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.gitmodules +1 -1
  2. data/README.TXT +19 -20
  3. data/Rakefile +191 -195
  4. data/TODO +122 -149
  5. data/VERSION +1 -1
  6. data/bin/sensible-cinema +52 -52
  7. data/change_log_with_feature_list.txt +532 -481
  8. data/documentation/troubleshooting.txt +3 -9
  9. data/go.bat +2 -2
  10. data/go.sh +1 -0
  11. data/goc.bat +1 -1
  12. data/goc.sh +1 -0
  13. data/lib/check_installed_mac.rb +2 -10
  14. data/lib/edl_parser.rb +40 -16
  15. data/lib/gui/base.rb +85 -27
  16. data/lib/gui/create-file.rb +3 -2
  17. data/lib/gui/create.rb +118 -101
  18. data/lib/gui/dependencies.rb +110 -76
  19. data/lib/gui/normal.rb +32 -81
  20. data/lib/mplayer_edl.rb +7 -1
  21. data/lib/subtitle_profanity_finder.rb +10 -5
  22. data/notes_for_potential_developers.txt +18 -25
  23. data/spec/bad_beginning.srt +3778 -0
  24. data/spec/edl_parser.spec.rb +4 -0
  25. data/spec/notes +327 -167
  26. data/spec/youtube_edl.spec.rb +28 -0
  27. data/template_bats/RUN SENSIBLE CINEMA CLICK HERE WINDOWS.bat +2 -2
  28. data/todo.inventionzy.txt +3 -1
  29. data/vendor/mplayer_patches/how_to_doze.bat +6 -0
  30. data/vendor/mplayer_patches/port_dir/PortIndex.quick +1 -1
  31. data/vendor/mplayer_patches/port_dir/how_to +16 -9
  32. data/vendor/mplayer_patches/port_dir/multimedia/mplayer-edl/Portfile +10 -25
  33. data/vendor/mplayer_patches/port_dir/multimedia/rdp-projects/Portfile +2 -2
  34. data/vendor/mplayer_patches/{configure_from_betterlogic → port_dir_is_for_mac} +0 -0
  35. data/www/content_editor.html +9 -5
  36. data/zamples/edit_decision_lists/dvds/big_buck_bunny_dvd.txt +7 -4
  37. data/zamples/edit_decision_lists/dvds/court_jester.txt +0 -1
  38. data/zamples/edit_decision_lists/dvds/edls_being_edited/father_goose.txt +41 -0
  39. data/zamples/edit_decision_lists/dvds/edls_being_edited/harry_potter_and_the_goblet_of_fire.txt +45 -0
  40. data/zamples/edit_decision_lists/dvds/edls_being_edited/national_treasure.txt +6 -3
  41. data/zamples/edit_decision_lists/dvds/edls_being_edited/percy_jackson_lightening_thief.txt +40 -0
  42. data/zamples/edit_decision_lists/dvds/edls_being_edited/percy_jackson_lightening_thief_mute_scary.txt +23 -0
  43. data/zamples/edit_decision_lists/dvds/edls_being_edited/puss_in_boots.txt +33 -0
  44. data/zamples/edit_decision_lists/dvds/edls_being_edited/ratatouille.txt +5 -5
  45. data/zamples/edit_decision_lists/dvds/edls_being_edited/rio.txt +24 -0
  46. data/zamples/edit_decision_lists/dvds/sintel_open_source_blender_ntsc_dvd.txt +0 -1
  47. metadata +17 -15
  48. data/lib/count_down_timer_jruby_swing.rb +0 -55
  49. data/vendor/mplayer_patches/apply.bat +0 -12
  50. data/vendor/mplayer_patches/libdvdnav/2905259c3b45529b3d8dedba572b6e4f67a2d8f4.diff +0 -19
  51. data/vendor/mplayer_patches/libdvdnav/83f1c9256f500285e46f1e44bcc74ffce90159db.diff +0 -16
  52. data/vendor/mplayer_patches/libdvdnav/eb91fb74680d30322461a1b9e425918ad4e2b2df.diff +0 -21
  53. data/vendor/mplayer_patches/libdvdnav/jump_to_time.diff +0 -654
  54. data/vendor/mplayer_patches/libdvdnav/non_strict.diff +0 -13
  55. data/vendor/mplayer_patches/mplayer_edl.diff +0 -354
  56. data/vendor/mplayer_patches/updated_lib_too +0 -0
@@ -1,3 +1,3 @@
1
1
  [submodule "lib/jruby-swing-helpers"]
2
2
  path = lib/jruby-swing-helpers
3
- url = https://rdp@github.com/rdp/jruby-swing-helpers.git
3
+ url = https://github.com/rdp/jruby-swing-helpers.git
data/README.TXT CHANGED
@@ -75,6 +75,21 @@ DO NOT MAKE ILLEGAL COPIES OF DVD's for your country. See also is_it_legal_to_co
75
75
  DO NOT DISTRIBUTE EDITED DVD's.
76
76
  Watching movies edited may be legal in the US via the Family Protection Act.
77
77
 
78
+
79
+ == Feedback/Contributing to Development ==
80
+
81
+ Feedback, including feature requests, comments, etc. all welcome:
82
+
83
+ Mailing List: http://groups.google.com/group/sensible-cinema, or just mail to
84
+ sensible-cinema@googlegroups.com or rogerdpack@gmail.com
85
+
86
+ If you're a developer and want to help out with programmming or look and feel, etc., please do!
87
+ See notes_for_potential_developers.txt file, and also http://github.com/rdp/sensible-cinema for source, and/or
88
+ the wiki there.
89
+
90
+ If you want to donate something, please consider donating to a charity of your choice.
91
+ No really, feel free, go ahead.
92
+
78
93
  == FAQ ==
79
94
 
80
95
  Q. How do I watch these on my TV, not just on my computer?
@@ -96,9 +111,7 @@ A. Yes, just use some WMC plugin that allows you to "call out" to a 3rd party so
96
111
  Then use the "advanced" mode "create side-by-side EDL file" to create an EDL for your previously existing file.
97
112
  Then make your WMC plugin "call out" to smplayer to play those files (through whatever means it necessary), and
98
113
  it will automatically pick up and use the EDL file.
99
- You could also use the same side-by-side EDL file with XBMC, which also honors them, though
100
- mutes are broken currently, so it will set it to just always skip. [note: this may not be implemented all the
101
- way yet ask on the mailing list if it is or not, for XBMC]
114
+ You could also use the same side-by-side EDL file with XBMC, which also honors them (need at least an Eden release version).
102
115
 
103
116
  Q. Is it unethical to watch edited movies?
104
117
  Well, producers have been making "airplane edited" movies forever, why should this offend them? :)
@@ -171,9 +184,9 @@ Also clearplay doesn't seem to users for example leave comments on their filters
171
184
  Also you can't tell from clearplay's list whether a DVD is absent because it's clean, or because they
172
185
  haven't done a filter for it.
173
186
  Also sometimes certain DVD's "don't work" with clearplay for some reason (rental versions?) [3]
174
- As a friend once said "Clearplay is a bit of a hassle to use in today's day and age.
175
- It should either have wireless or an ethernet port on it. I should
176
- enter my login credentials to the box. When I stick a move in, it
187
+ As a friend once said "Clearplay is a bit of a hassle to use in today's day and age.
188
+ It should either have wireless or an ethernet port on it. I should
189
+ enter my login credentials to the box. When I stick a move in, it
177
190
  should go to the website and download the filter."
178
191
 
179
192
  So overall I wanted to build my own that overcame some of these hurdles.
@@ -226,20 +239,6 @@ the authors and maintainers of said libraries, and anybody else I forgot to ment
226
239
  Sensible Cinema is a conglomeration of the good ideas from several people who contacted me
227
240
  over time. Thanks for your contributions.
228
241
 
229
- == Feedback/Contributing to Development ==
230
-
231
- Feedback, including feature requests, comments, etc. all welcome:
232
-
233
- Mailing List: http://groups.google.com/group/sensible-cinema, or just mail to
234
- sensible-cinema@googlegroups.com or rogerdpack@gmail.com
235
-
236
- If you're a developer and want to help out with programmming or look and feel, etc., please do!
237
- See notes_for_potential_developers.txt file, and also http://github.com/rdp/sensible-cinema for source, and/or
238
- the wiki there.
239
-
240
- If you want to donate something, please consider donating to a charity of your choice.
241
- No really, feel free, go ahead.
242
-
243
242
  == Competition/re-use of files ==
244
243
 
245
244
  Note that competition/use of files from sensible cinema is welcome!
data/Rakefile CHANGED
@@ -1,206 +1,202 @@
1
1
  require 'rubygems'
2
- require 'jeweler' # gem
3
- require 'os' # gem
4
-
5
- ENV['PATH'] = "C:\\Program Files (x86)\\Git\\cmd;" + ENV['PATH'] # for jeweler's git gem hackaround...
6
-
7
- Jeweler::Tasks.new do |s|
8
- s.name = "sensible-cinema"
9
- s.summary = "an EDL scene-skipper/bleeper that works with DVD's and online players like hulu"
10
- s.email = "rogerdpack@gmail.com"
11
- s.homepage = "http://github.com/rdp"
12
- s.authors = ["Roger Pack"]
13
- s.add_dependency 'os', '>= 0.9.4'
14
- s.add_dependency 'sane', '>= 0.25.2'
15
- s.add_dependency 'rdp-win32screenshot', '= 0.0.9'
16
- s.add_dependency 'mini_magick', '>= 3.1' # for ocr...
17
- s.add_dependency 'whichr', '>= 0.3.6'
18
- s.add_dependency 'rdp-rautomation', '> 0.6.3' # LODO use mainline with next release, though I can't remember why
19
- s.add_dependency 'rdp-ruby-wmi' # for windows
20
- s.add_dependency 'plist' # for mac
21
- s.add_dependency 'jruby-win32ole' # jruby-complete.jar doesn't include windows specifics...
22
- s.add_dependency 'ffi' # mouse, etc. needed for windows MRI, probably jruby too [windows]
23
- s.files.exclude '**/*.exe', '**/*.wav', '**/images/*'
24
- s.add_development_dependency 'hitimes' # now jruby compat!
25
- s.add_development_dependency 'rspec', '> 2'
26
- s.add_development_dependency 'jeweler'
27
- s.add_development_dependency 'rake'
28
-
29
- # add as real dependencies for now, as gem install --development is still broken for jruby, basically installing transitive dependencies in error <sigh> (actually might be fixed now though...so we may not need this)
30
-
31
- for gem in s.development_dependencies #['hitimes', 'rspec', 'jeweler', 'rake']
32
- # bundling rake won't be too expensive, right? and this allows for easier dev setup through gem install
33
- s.add_dependency gem.name, gem.requirement
34
- end
35
- end
36
-
37
- desc 'run all specs'
38
- task 'spec' do
39
- failed = []
40
- Dir.chdir 'spec' do
41
- for file in Dir['*spec*.rb'] do
42
- puts "Running " + file
43
- if !system(OS.ruby_bin + " " + file)
44
- failed << file
45
- end
46
- end
47
- end
48
- if failed.length == 0
49
- p 'all specs passed!'
50
- else
51
- p 'at least one spec failed!', failed
52
- end
53
-
54
- end
55
-
56
- def get_transitive_dependencies dependencies
57
- new_dependencies = []
58
- dependencies.each{|d|
59
- gem d.name # make sure it's loaded so that it'll be in Gem.loaded_specs
60
- begin
61
- dependency_spec = Gem.loaded_specs.select{|name, spec| name == d.name}[0][1]
62
- rescue
63
- raise 'possibly dont have that gem are you running jruby for sure?' + d.name
64
- end
65
- transitive_deps = dependency_spec.runtime_dependencies
66
- new_dependencies << transitive_deps
67
- }
68
- new_dependencies.flatten.uniq
69
- end
70
-
71
- desc 'clear_and_copy_vendor_cache'
72
- task 'clear_and_copy_vendor_cache' do
73
- system("rm -rf ../cache.bak")
74
- system("cp -r vendor/cache ../cache.bak") # for retrieval later
75
- Dir['vendor/cache/*'].each{|f|
76
- FileUtils.rm_rf f
77
- raise 'unable to delete: ' + f if File.exist?(f)
78
- }
79
- FileUtils.mkdir_p 'vendor/cache'
80
- end
81
-
82
- desc 'collect binary and gem deps for distribution'
83
- task 'rebundle_copy_in_dependencies' => 'gemspec' do
84
- spec = eval File.read('sensible-cinema.gemspec')
2
+ require 'jeweler' # gem
3
+ require 'os' # gem
4
+
5
+ ENV['PATH'] = "C:\\Program Files (x86)\\Git\\cmd;" + ENV['PATH'] # for jeweler's git gem hackaround...
6
+
7
+ Jeweler::Tasks.new do |s|
8
+ s.name = "sensible-cinema"
9
+ s.summary = "an EDL scene-skipper/bleeper that works with DVD's and files and online players like netflix instant"
10
+ s.email = "rogerdpack@gmail.com"
11
+ s.homepage = "http://github.com/rdp"
12
+ s.authors = ["Roger Pack"]
13
+
14
+ # IF CHANGED PUBLISH NEW GEM [and delete pkg] :)
15
+ s.add_dependency 'os', '>= 0.9.4'
16
+ s.add_dependency 'sane', '>= 0.25.4'
17
+ s.add_dependency 'rdp-win32screenshot', '= 0.0.9'
18
+ s.add_dependency 'mini_magick', '>= 3.1' # for ocr...
19
+ s.add_dependency 'whichr', '>= 0.3.6'
20
+ s.add_dependency 'rdp-rautomation', '> 0.6.3' # LODO use mainline with next release, though I can't remember why
21
+ s.add_dependency 'rdp-ruby-wmi' # for windows
22
+ s.add_dependency 'plist' # for mac
23
+ s.add_dependency 'jruby-win32ole' # jruby-complete.jar doesn't include windows specifics...
24
+ s.add_dependency 'ffi' # mouse, etc. needed for windows MRI, probably jruby too [windows]
25
+ s.files.exclude '**/*.exe', '**/*.wav', '**/images/*'
26
+ s.add_development_dependency 'hitimes' # now jruby compat!
27
+ s.add_development_dependency 'rspec', '> 2'
28
+ s.add_development_dependency 'jeweler'
29
+ s.add_development_dependency 'rake'
30
+ if ENV['for_gem_release']
31
+ # add as real dependencies for now, as gem install --development is still broken https://github.com/rubygems/rubygems/issues/309
32
+ for gem in s.development_dependencies #['hitimes', 'rspec', 'jeweler', 'rake']
33
+ s.add_dependency gem.name, gem.requirement
34
+ end
35
+ end
36
+ end
37
+
38
+ desc 'run all specs'
39
+ task 'spec' do
40
+ failed = []
41
+ Dir.chdir 'spec' do
42
+ for file in Dir['*spec*.rb'] do
43
+ puts "Running " + file
44
+ if !system(OS.ruby_bin + " " + file)
45
+ failed << file
46
+ end
47
+ end
48
+ end
49
+ if failed.length == 0
50
+ p 'all specs passed!'
51
+ else
52
+ p 'at least one spec failed!', failed
53
+ end
54
+
55
+ end
56
+
57
+ def get_transitive_dependencies dependencies
58
+ new_dependencies = []
59
+ dependencies.each{|d|
60
+ gem d.name # make sure it's loaded so that it'll be in Gem.loaded_specs
61
+ begin
62
+ dependency_spec = Gem.loaded_specs.select{|name, spec| name == d.name}[0][1]
63
+ rescue
64
+ raise 'possibly dont have that gem are you running jruby for sure?' + d.name + Gem.loaded_specs.select{|name, spec| name}.inspect
65
+ end
66
+ transitive_deps = dependency_spec.runtime_dependencies
67
+ new_dependencies << transitive_deps
68
+ }
69
+ new_dependencies.flatten.uniq
70
+ end
71
+
72
+ desc 'clear_and_copy_vendor_cache'
73
+ task 'clear_and_copy_vendor_cache' do
74
+ FileUtils.rm_rf "../cache.bak"
75
+ system("cp -r vendor/cache ../cache.bak") # so we can retrieve it back later
76
+ Dir['vendor/cache/*'].each{|f|
77
+ FileUtils.rm_rf f
78
+ raise 'unable to delete: ' + f if File.exist?(f)
79
+ }
80
+ end
81
+
82
+ desc 'collect binary and gem deps for distribution'
83
+ task 'rebundle_copy_in_dependencies' => 'gemspec' do
84
+ spec = eval File.read('sensible-cinema.gemspec')
85
85
  dependencies = spec.runtime_dependencies
86
- dependencies = (dependencies + get_transitive_dependencies(dependencies)).uniq
86
+ dependencies = (dependencies + get_transitive_dependencies(dependencies)).uniq
87
87
  FileUtils.mkdir_p 'vendor/cache'
88
- Dir.chdir 'vendor/cache' do
89
- dependencies.each{|d|
90
- system("#{OS.ruby_bin} -S gem unpack #{d.name}")
91
- }
92
- end
93
- end
94
-
95
- desc 'create distro zippable dir'
96
- task 'create_distro_dir' => :gemspec do # depends on gemspec...
97
- raise 'need rebundle deps first' unless File.directory? 'vendor/cache'
98
- require 'fileutils'
99
- spec = eval File.read('sensible-cinema.gemspec')
100
- dir_out = spec.name + "-" + spec.version.version + '/sensible-cinema'
101
- old_glob = spec.name + '-*'
102
- FileUtils.rm_rf Dir[old_glob] # remove any old versions' distro files
103
- raise 'unable to delete...' if Dir[old_glob].length > 0
104
-
105
- existing = Dir['*']
106
- FileUtils.mkdir_p dir_out
107
- FileUtils.cp_r(existing, dir_out) # copies files, subdirs in
108
- # these belong in the parent dir, by themselves.
109
- root_distro = "#{dir_out}/.."
110
- FileUtils.cp_r(dir_out + '/template_bats/mac', root_distro) # the executable bit carries through somehow..
111
- FileUtils.cp_r(dir_out + '/template_bats/pc', root_distro) # the executable bit carries through somehow..
112
- FileUtils.cp(dir_out + '/template_bats/RUN SENSIBLE CINEMA CLICK HERE WINDOWS.bat', root_distro)
113
- FileUtils.cp('template_bats/README_DISTRO.TXT', root_distro)
114
- p 'created (still need to zips it) ' + dir_out
115
- FileUtils.rm_rf Dir[dir_out + '/**/{spec}'] # don't need to distribute those..save 3M!
116
- end
117
-
118
- def cur_ver
119
- File.read('VERSION').strip
120
- end
121
-
122
- def delete_now_packaged_dir name
123
- FileUtils.rm_rf name
124
- end
125
-
126
- desc 'create *.zip,tgz'
127
- task 'zip' do
128
- name = 'sensible-cinema-' + cur_ver
129
- raise 'doesnt exist yet to zip?' unless File.directory? name
88
+ Dir.chdir 'vendor/cache' do
89
+ dependencies.each{|d|
90
+ system("#{OS.ruby_bin} -S gem unpack #{d.name}")
91
+ }
92
+ end
93
+ end
94
+
95
+ desc 'create distro zippable dir'
96
+ task 'create_distro_dir' => :gemspec do # depends on gemspec...
97
+ raise 'need rebundle deps first' unless File.directory? 'vendor/cache'
98
+ require 'fileutils'
99
+ spec = eval File.read('sensible-cinema.gemspec')
100
+ dir_out = spec.name + "-" + spec.version.version + '/sensible-cinema'
101
+ old_glob = spec.name + '-*'
102
+ FileUtils.rm_rf Dir[old_glob] # remove any old versions' distro files
103
+ raise 'unable to delete...' if Dir[old_glob].length > 0
104
+
105
+ existing = Dir['*']
106
+ FileUtils.mkdir_p dir_out
107
+ FileUtils.cp_r(existing, dir_out) # copies files, subdirs in
108
+ # these belong in the parent dir, by themselves.
109
+ root_distro = "#{dir_out}/.."
110
+ FileUtils.cp_r(dir_out + '/template_bats/mac', root_distro) # the executable bit carries through somehow..
111
+ FileUtils.cp_r(dir_out + '/template_bats/pc', root_distro) # the executable bit carries through somehow..
112
+ FileUtils.cp(dir_out + '/template_bats/RUN SENSIBLE CINEMA CLICK HERE WINDOWS.bat', root_distro)
113
+ FileUtils.cp('template_bats/README_DISTRO.TXT', root_distro)
114
+ p 'created (still need to zips it) ' + dir_out
115
+ FileUtils.rm_rf Dir[dir_out + '/**/{spec}'] # don't need to distribute those..save 3M!
116
+ end
117
+
118
+ def cur_ver
119
+ File.read('VERSION').strip
120
+ end
121
+
122
+ def delete_now_packaged_dir name
123
+ FileUtils.rm_rf name
124
+ end
125
+
126
+ desc 'create *.zip,tgz'
127
+ task 'zip' do
128
+ name = 'sensible-cinema-' + cur_ver
129
+ raise 'doesnt exist yet to zip?' unless File.directory? name
130
130
  if OS.doze?
131
- sys "\"c:\\Program Files\\7-Zip\\7z.exe\" a -tzip -r #{name}.zip #{name}"
131
+ raise 'please distro from linux only so we can get mac distros too'
132
132
  else
133
- #sys "zip -r #{name}.zip #{name}"
134
- puts "NOT packaging win installer"
133
+ sys "zip -r #{name}.zip #{name}"
135
134
  end
136
- if OS.doze?
137
- puts 'NOT packaging OS X installer'
138
- else
139
- sys "tar -cvzf #{name}.mac-os-x.tgz #{name}"
140
- end
141
- delete_now_packaged_dir name
142
- p 'created ' + name + '.zip,tgz and also deleted its [create from] folder'
143
- end
144
-
145
-
146
- def sys arg, failing_is_ok = false
147
- 3.times { |n|
148
- if n > 0
149
- p 'retrying ' + arg
150
- end
151
- if system arg
152
- return
135
+ sys "tar -cvzf #{name}.mac-os-x.tgz #{name}"
136
+ delete_now_packaged_dir name
137
+ p 'created ' + name + '.zip,tgz and also deleted its [create from] folder'
138
+ end
139
+
140
+ def sys arg, failing_is_ok = false
141
+ 3.times { |n|
142
+ if n > 0
143
+ p 'retrying ' + arg
144
+ end
145
+ if system arg
146
+ return
153
147
  end
154
- }
155
- raise arg + ' failed 3x!' unless failing_is_ok
156
- end
157
-
158
- desc 'deploy to sourceforge, after zipping'
159
- task 'deploy' do
160
- p 'creating sf shell'
161
- sys "ssh rdp@ilab1.cs.byu.edu 'ssh rogerdpack,sensible-cinema@shell.sourceforge.net create'" # needed for the next command to be able to work [weird]
162
- p 'creating sf dir'
163
- sys "ssh rdp@ilab1.cs.byu.edu 'ssh rogerdpack,sensible-cinema@shell.sourceforge.net \"mkdir /home/frs/project/s/se/sensible-cinema/#{cur_ver}\"'", true
164
- for suffix in [ '.zip', '.mac-os-x.tgz']
148
+ }
149
+ raise arg + ' failed 3x!' unless failing_is_ok
150
+ end
151
+
152
+ desc 'deploy to sourceforge, after zipping'
153
+ task 'deploy' do
154
+ p 'creating sf shell'
155
+ sys "ssh rdp@ilab1.cs.byu.edu 'ssh rogerdpack,sensible-cinema@shell.sourceforge.net create'" # needed for the next command to be able to work [weird]
156
+ p 'creating sf dir'
157
+ sys "ssh rdp@ilab1.cs.byu.edu 'ssh rogerdpack,sensible-cinema@shell.sourceforge.net \"mkdir /home/frs/project/s/se/sensible-cinema/#{cur_ver}\"'", true
158
+ for suffix in [ '.zip', '.mac-os-x.tgz']
165
159
  name = 'sensible-cinema-' + cur_ver + suffix
166
- if File.exist? name
167
- p 'copying to ilab ' + name
168
- sys "scp #{name} rdp@ilab1.cs.byu.edu:~/incoming"
169
- p 'copying into sf from ilab'
160
+ if File.exist? name
161
+ p 'copying to ilab ' + name
162
+ sys "scp #{name} rdp@ilab1.cs.byu.edu:~/incoming"
163
+ p 'copying into sf from ilab ' + name
170
164
  sys "ssh rdp@ilab1.cs.byu.edu 'scp ~/incoming/#{name} rogerdpack,sensible-cinema@frs.sourceforge.net:/home/frs/project/s/se/sensible-cinema/#{cur_ver}/#{name}'"
171
165
  else
172
166
  p 'not copying:' + name
173
- end
174
- end
175
- p 'successfully deployed to sf! ' + cur_ver
176
- end
177
-
178
- # task 'gem_release' do
179
- # FileUtils.rm_rf 'pkg'
180
- # Rake::Task["build"].execute
181
- # sys("#{Gem.ruby} -S gem push pkg/sensible-cinema-#{cur_ver}.gem")
182
- # FileUtils.rm_rf 'pkg'
183
- # end
184
-
185
- def on_wbo command
186
- sys "ssh rdp@ilab1.cs.byu.edu \"ssh wilkboar@rogerdpack.t28.net '#{command}' \""
187
-
188
- end
189
-
190
- desc 'sync website'
191
- task 'update wbo' do
192
- on_wbo 'cd ~/sensible-cinema/source && git pull'
193
- end
194
-
195
- desc ' (releases with clean cache dir, which we need now)'
196
- task 'full_release' => [:clear_and_copy_vendor_cache, :rebundle_copy_in_dependencies, :create_distro_dir] do # this is :release
197
- p 'remember to run all the specs first!'
198
- raise unless system("git pull")
199
- raise unless system("git push origin master")
200
- #Rake::Task["gem_release"].execute
201
- Rake::Task["zip"].execute
202
- Rake::Task["deploy"].execute
203
- Rake::Task["update wbo"].execute
204
- system(c = "cp -r ../cache.bak/* vendor/cache")
205
- system("rm -rf ../cache.bak")
206
- end
167
+ end
168
+ end
169
+ p 'successfully deployed to sf! ' + cur_ver
170
+ end
171
+
172
+ # task 'gem_release' do
173
+ # FileUtils.rm_rf 'pkg'
174
+ # Rake::Task["build"].execute
175
+ # sys("#{Gem.ruby} -S gem push pkg/sensible-cinema-#{cur_ver}.gem")
176
+ # FileUtils.rm_rf 'pkg'
177
+ # end
178
+
179
+ def on_wbo command
180
+ sys "ssh rdp@ilab1.cs.byu.edu \"ssh wilkboar@rogerdpack.t28.net '#{command}' \""
181
+
182
+ end
183
+
184
+ desc 'sync wbo website'
185
+ task 'sync_wbo_website' do
186
+ on_wbo 'cd ~/sensible-cinema/source && git pull'
187
+ end
188
+
189
+ desc ' (releases with clean cache dir, which we need now)'
190
+ task 'full_release' => [:clear_and_copy_vendor_cache, :rebundle_copy_in_dependencies, :create_distro_dir] do # this is :release
191
+ p 'remember to run all the specs!! Have any!'
192
+ require 'os'
193
+ raise 'need jruby' unless OS.jruby?
194
+ raise unless system("git pull")
195
+ raise unless system("git push origin master")
196
+ #Rake::Task["gem_release"].execute
197
+ Rake::Task["zip"].execute
198
+ Rake::Task["deploy"].execute
199
+ Rake::Task["sync_wbo_website"].execute
200
+ system(c = "cp -r ../cache.bak/* vendor/cache")
201
+ system("rm -rf ../cache.bak")
202
+ end