picrate 1.0.0-java → 1.1.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,11 +28,7 @@ package processing.core;
28
28
  public interface PSurface {
29
29
 
30
30
  /**
31
- * Minimum dimensions for the window holding an applet. This varies between
32
- * platforms, Mac OS X 10.3 (confirmed with 10.7 and Java 6) can do any height
33
- * but requires at least 128 pixels width. Windows XP has another set of
34
- * limitations. And for all I know, Linux probably allows window sizes to be
35
- * negative numbers.
31
+ * Minimum dimensions for the window holding an applet.
36
32
  */
37
33
  static public final int MIN_WINDOW_WIDTH = 128;
38
34
 
@@ -10,78 +10,70 @@ VIDEO = 'video-2.zip'
10
10
  VIDEO_VERSION = '2'
11
11
  EXAMPLES = '0.4.0'
12
12
  HOME_DIR = ENV['HOME']
13
+ LIBRARY = File.join(HOME_DIR, '.picrate', 'libraries')
13
14
  CLOBBER.include(EXAMPLES, SOUND, GLVIDEO, VIDEO)
14
15
 
15
- desc 'download, and copy picrate examples'
16
- task default: %i[download_and_copy_samples config_geany]
17
-
18
- desc 'download and copy examples to user home'
19
- task download_and_copy_samples: %i[download_examples copy_examples]
20
-
21
- task :download_examples
22
- file_name = "#{EXAMPLES}.tar.gz"
23
- wget_base = 'wget https://github.com/ruby-processing/picrate-examples'
24
- wget_string = [wget_base, 'archive', file_name].join('/')
25
- file file_name do
26
- begin
27
- sh wget_string
28
- rescue
29
- warn(WARNING)
30
- end
16
+ def dependency
17
+ system 'which wget'
18
+ end
19
+
20
+ desc 'check dependency'
21
+ task :check_dependency do
22
+ warn(WARNING) unless dependency
23
+ end
24
+
25
+ desc 'download, and copy picrate examples & configure geany'
26
+ task default: %i[check_dependency install_samples install_config]
27
+
28
+ file "#{EXAMPLES}.tar.gz" do
29
+ wget_base = 'wget https://github.com/ruby-processing/picrate-examples'
30
+ wget_string = [wget_base, 'archive', "#{EXAMPLES}.tar.gz"].join('/')
31
+ system wget_string
31
32
  end
32
33
 
34
+ desc 'download and install samples to ~/picrate_samples'
35
+ task install_samples: %i[check_dependency download_samples copy_examples]
36
+
33
37
  desc 'download and copy sound library to ~/.picrate'
34
- task download_and_copy_sound: %i[init_dir download_sound copy_sound clobber]
38
+ task install_sound: %i[init_dir download_sound copy_sound clobber]
35
39
 
36
40
  desc 'download and copy video library to ~/.picrate'
37
- task download_and_copy_video: %i[init_dir download_video copy_video clobber]
41
+ task install_video: %i[init_dir download_video copy_video clobber]
38
42
 
39
43
  desc 'download and copy glvideo library to ~/.picrate'
40
- task download_and_copy_glvideo: %i[init_dir download_glvideo copy_glvideo clobber]
44
+ task install_glvideo: %i[init_dir download_glvideo copy_glvideo clobber]
45
+
46
+ desc 'download, and copy picrate examples'
47
+ task download_samples: ["#{EXAMPLES}.tar.gz"]
41
48
 
42
49
  desc 'download sound library'
43
50
  task :download_sound do
44
51
  wget_base = 'wget https://github.com/processing/processing-sound'
45
52
  wget_string = [wget_base, 'releases/download/latest', SOUND].join('/')
46
- begin
47
- sh wget_string
48
- rescue
49
- puts 'Not Currently Available'
50
- # warn(WARNING)
51
- end
53
+ system wget_string
52
54
  end
53
55
 
54
56
  desc 'download glvideo library'
55
57
  task :download_glvideo do
56
58
  wget_base = 'wget https://github.com/gohai/processing-glvideo'
57
59
  wget_string = [wget_base, 'releases/download/latest', GLVIDEO].join('/')
58
- begin
59
- sh wget_string
60
- rescue
61
- warn(WARNING)
62
- end
60
+ system wget_string
63
61
  end
64
62
 
65
63
  desc 'download video library'
66
64
  task :download_video do
67
65
  wget_base = 'wget https://github.com/processing/processing-video'
68
66
  wget_string = [wget_base, 'releases/download', VIDEO_VERSION, VIDEO].join('/')
69
- begin
70
- sh wget_string
71
- rescue
72
- warn(WARNING)
73
- end
67
+ system wget_string
74
68
  end
75
69
 
76
70
  desc 'initialize ~/.picrate directories'
77
71
  task :init_dir do
78
- unless File.exist? "#{HOME_DIR}/.picrate/libraries"
79
- FileUtils.mkdir_p "#{HOME_DIR}/.picrate/libraries"
80
- end
72
+ FileUtils.mkdir_p LIBRARY unless File.exist? LIBRARY
81
73
  end
82
74
 
83
75
  desc 'configure geany'
84
- task :config_geany do
76
+ task :install_config do
85
77
  unless File.exist? "#{HOME_DIR}/.config/geany/templates/files/picrate.rb"
86
78
  FileUtils.mkdir_p "#{HOME_DIR}/.config/geany/templates/files"
87
79
  FileUtils.cp 'picrate.rb', "#{HOME_DIR}/.config/geany/templates/files"
@@ -93,8 +85,8 @@ task :config_geany do
93
85
  end
94
86
 
95
87
  desc 'copy examples'
96
- task copy_examples: file_name do
97
- sh "tar xzvf #{EXAMPLES}.tar.gz"
88
+ task copy_examples: %i[download_samples] do
89
+ system "tar xzvf #{EXAMPLES}.tar.gz"
98
90
  FileUtils.rm_r "#{HOME_DIR}/picrate_samples" if File.exist? "#{HOME_DIR}/picrate_samples"
99
91
  FileUtils.cp_r "picrate-examples-#{EXAMPLES}", "#{HOME_DIR}/picrate_samples"
100
92
  FileUtils.rm_r "picrate-examples-#{EXAMPLES}"
@@ -102,26 +94,25 @@ end
102
94
 
103
95
  desc 'copy sound library'
104
96
  task copy_sound: SOUND do
105
- sh "unzip #{SOUND}"
106
- FileUtils.rm_r "#{HOME_DIR}/.picrate/libraries/sound" if File.exist? "#{HOME_DIR}/.picrate/libraries/sound"
107
- FileUtils.cp_r 'sound', "#{HOME_DIR}/.picrate/libraries"
97
+ system "unzip #{SOUND}"
98
+ FileUtils.rm_r "#{LIBRARY}/sound" if File.exist? "#{LIBRARY}/sound"
99
+ FileUtils.cp_r 'sound', LIBRARY
108
100
  FileUtils.rm_r 'sound'
109
- FileUtils.rm_r '__MACOSX'
110
101
  end
111
102
 
112
103
  desc 'copy video library'
113
104
  task copy_video: VIDEO do
114
- sh "unzip #{VIDEO}"
115
- FileUtils.rm_r "#{HOME_DIR}/.picrate/libraries/video" if File.exist? "#{HOME_DIR}/.picrate/libraries/video"
116
- FileUtils.cp_r 'video', "#{HOME_DIR}/.picrate/libraries/video"
105
+ system "unzip #{VIDEO}"
106
+ FileUtils.rm_r "#{LIBRARY}/video" if File.exist? "#{LIBRARY}/video"
107
+ FileUtils.cp_r 'video', LIBRARY
117
108
  FileUtils.rm_r 'video'
118
109
  end
119
110
 
120
111
  desc 'copy glvideo library'
121
112
  task copy_glvideo: GLVIDEO do
122
- directory "#{HOME_DIR}/.picrate/libraries/glvideo"
123
- sh "unzip #{GLVIDEO}"
124
- FileUtils.rm_r "#{HOME_DIR}/.picrate/libraries/glvideo" if File.exist? "#{HOME_DIR}/.picrate/libraries/glvideo"
125
- FileUtils.cp_r 'glvideo', "#{HOME_DIR}/.picrate/libraries/glvideo"
113
+ directory "#{LIBRARY}/glvideo"
114
+ system "unzip #{GLVIDEO}"
115
+ FileUtils.rm_r "#{LIBRARY}/glvideo" if File.exist? "#{LIBRARY}/glvideo"
116
+ FileUtils.cp_r 'glvideo', LIBRARY
126
117
  FileUtils.rm_r 'glvideo'
127
118
  end
@@ -3,7 +3,7 @@ require 'picrate'
3
3
  # Sketch class
4
4
  class MySketch < Processing::App
5
5
  def settings
6
- size 200, 200
6
+ size 400, 300
7
7
  end
8
8
 
9
9
  def setup
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: java
6
6
  authors:
7
7
  - monkstone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-12 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -42,22 +42,44 @@ dependencies:
42
42
  name: arcball
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.0.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
46
53
  - !ruby/object:Gem::Version
47
- version: 1.0.0
54
+ version: 1.0.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: geomerative
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
48
59
  - - "~>"
49
60
  - !ruby/object:Gem::Version
50
- version: '1.0'
61
+ version: '1.1'
51
62
  type: :runtime
52
63
  prerelease: false
53
64
  version_requirements: !ruby/object:Gem::Requirement
54
65
  requirements:
55
- - - ">="
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ruby_wordcram
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
56
74
  - !ruby/object:Gem::Version
57
- version: 1.0.0
75
+ version: 2.0.4
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
58
80
  - - "~>"
59
81
  - !ruby/object:Gem::Version
60
- version: '1.0'
82
+ version: 2.0.4
61
83
  description: |
62
84
  A batteries included version of processing in ruby, for raspberrypi and
63
85
  linux. Install samples to configures geany ide.
@@ -74,6 +96,7 @@ files:
74
96
  - ".mvn/wrapper/maven-wrapper.properties"
75
97
  - ".travis.yml"
76
98
  - CHANGELOG.md
99
+ - Gemfile
77
100
  - LICENSE.md
78
101
  - README.md
79
102
  - Rakefile
@@ -182,7 +205,7 @@ files:
182
205
  - lib/jogl-all-natives-linux-amd64.jar
183
206
  - lib/jogl-all-natives-linux-armv6hf.jar
184
207
  - lib/jogl-all.jar
185
- - lib/picrate-1.0.0.jar
208
+ - lib/picrate-1.1.0.jar
186
209
  - lib/picrate.rb
187
210
  - lib/picrate/app.rb
188
211
  - lib/picrate/creators/parameters.rb
@@ -321,7 +344,6 @@ files:
321
344
  - src/main/java/processing/opengl/shaders/TexLightVert-vc4.glsl
322
345
  - src/main/java/processing/opengl/shaders/TexLightVert.glsl
323
346
  - src/main/java/processing/opengl/shaders/TexVert.glsl
324
- - src/main/resources/icon/icon-1024.png
325
347
  - src/main/resources/icon/icon-128.png
326
348
  - src/main/resources/icon/icon-16.png
327
349
  - src/main/resources/icon/icon-256.png
@@ -347,7 +369,7 @@ licenses:
347
369
  - GPL-3.0
348
370
  - LGPL-2.0
349
371
  metadata: {}
350
- post_install_message: Use 'picrate --install Samples' to install samples
372
+ post_install_message: Use 'picrate --install' to config geany & install samples
351
373
  rdoc_options: []
352
374
  require_paths:
353
375
  - lib
@@ -362,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
362
384
  - !ruby/object:Gem::Version
363
385
  version: '0'
364
386
  requirements:
365
- - java runtime >= 1.8.0_161+
387
+ - java runtime == 8
366
388
  rubygems_version: 3.0.6
367
389
  signing_key:
368
390
  specification_version: 4