cf3 1.0.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb9b632a3a5525bed8fd4b32f510abe90989add50b50ae31bfe5b60adef1c23b
4
- data.tar.gz: 3ba5755cb4d30945ba2e320dbfea7b21c450e6b79b6915517553ad1e1a5e7f34
3
+ metadata.gz: d80640e4fdd9eeaafb72601432d9523a01b2aea81c479a10680bef3169357882
4
+ data.tar.gz: 5b233c6c88c67edb19c50abaeb2cd12ca81502708f8877b41aad689096dab03f
5
5
  SHA512:
6
- metadata.gz: 7dec9e31905d9748f19d32cd3c6905d053901dfa72754e88259ba29f6349251e6b9611be8d49834fa86ebbc9ebd0fd82c31ed91925a9e82ab27cb0813d895066
7
- data.tar.gz: e57f11ec2c5e561294efe2c21d71efc22d3dd7259fa6d01c89c9a291f1fd7037774942d15ad96763926b8853a2ea77273f3f60f715a9a641ef11d50359848177
6
+ metadata.gz: 04f17206aa306cb9b7a1e7fe0d735ce880bbce1ef8b50d65965088aa70f62cb6ba4d197b4addbf7d6fa4665c1ea699f1589f4ae8be396d3a97509eb15abad09f
7
+ data.tar.gz: febdfc1482e63dba911869f0f3212ce8b7c6a57ab0bdb873ccff838298c098b97e2289913a0a1341246b93f459dc359c98366a8a6d3b67103e29cec4990270ce
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ v1.2.0 Update to more recent JRuby, JRubyArt versions
2
+
1
3
  v1.0.1 Created a website in docs folder (gemfile points to new website, that links to wiki and back to repo). Re-factored `class_eval` to `instance_eval` and added guards, somewhat simplifies code
2
4
 
3
5
  v1.0.0 About time for a regular release number, fixed and update some examples NB: see also [Funatsufumiya san sketches][funniti]
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in cf3ruby.gemspec
4
- ruby "2.3.3", :engine => "jruby", :engine_version => "9.1.15.0"
4
+ ruby "2.5.0", :engine => "jruby", :engine_version => "9.2.19.0"
5
5
  gemspec
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  #require "bundler/gem_tasks"
2
2
 
3
3
  task :install => :build do
4
- sh "jruby -S gem install #{Dir.glob('*.gem').join(' ')} --no-ri --no-rdoc"
4
+ sh "jruby -S gem install #{Dir.glob('*.gem').join(' ')} --no-doc"
5
5
  end
6
6
 
7
7
  task :build do
data/bin/cf3samples CHANGED
@@ -4,11 +4,11 @@
4
4
  #####
5
5
 
6
6
 
7
- home = ENV["HOME"]
7
+ home = ENV['HOME']
8
8
  local = home + '/cf3work'
9
9
  file = __FILE__
10
- require "pathname"
11
- require "fileutils"
10
+ require 'pathname'
11
+ require 'fileutils'
12
12
  file = Pathname.new(file).realpath
13
13
 
14
14
  sample_dir = File.expand_path(File.dirname(file) + "/../samples")
data/cf3ruby.gemspec CHANGED
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
24
24
  spec.executables = ['cf3samples']
25
25
  spec.require_paths = ['lib']
26
- spec.add_runtime_dependency 'jruby_art', '~> 1.4'
27
- spec.add_development_dependency 'bundler', '~> 1.3'
28
- spec.add_development_dependency 'rake', '~> 12.0'
26
+ spec.add_runtime_dependency 'jruby_art', '~> 2.5'
27
+ spec.add_development_dependency 'rake', '~> 13.0'
29
28
  end
data/lib/cf3/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cf3
2
- VERSION = '1.0.1'
2
+ VERSION = '1.2.0'
3
3
  end
data/lib/cf3.rb CHANGED
@@ -52,7 +52,8 @@ module Processing
52
52
  @rules[rule_name][:procs] << [(total...(prob + total)), proc]
53
53
  @rules[rule_name][:total] += prob
54
54
  return if ContextFree.method_defined? rule_name
55
- self.instance_eval do
55
+
56
+ instance_eval do
56
57
  eval <<-METH
57
58
  def #{rule_name}(options)
58
59
  merge_options(@values, options)
@@ -78,6 +79,7 @@ module Processing
78
79
  # Many of them have different strategies for being merged.
79
80
  def merge_options(old_ops, new_ops)
80
81
  return unless new_ops
82
+
81
83
  # Do size first
82
84
  old_ops[:size] *= new_ops.fetch(:size, 1.0)
83
85
  new_ops.each do |key, value|
data/samples/levy.rb CHANGED
@@ -25,7 +25,7 @@ def setup
25
25
  sketch_title 'Levy Fractal'
26
26
  setup_the_levy
27
27
  draw_it
28
- save_frame("levy.png")
28
+ save_frame(data_path('levy.png'))
29
29
  end
30
30
 
31
31
 
data/samples/y.rb CHANGED
@@ -35,7 +35,7 @@ def setup
35
35
  no_stroke
36
36
  color_mode RGB, 1
37
37
  draw_it
38
- save_frame("y.png")
38
+ save_frame(data_path('y.png'))
39
39
  end
40
40
 
41
41
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-22 00:00:00.000000000 Z
12
+ date: 2021-09-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jruby_art
@@ -17,42 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '1.4'
20
+ version: '2.5'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '1.4'
28
- - !ruby/object:Gem::Dependency
29
- name: bundler
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: '1.3'
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - "~>"
40
- - !ruby/object:Gem::Version
41
- version: '1.3'
27
+ version: '2.5'
42
28
  - !ruby/object:Gem::Dependency
43
29
  name: rake
44
30
  requirement: !ruby/object:Gem::Requirement
45
31
  requirements:
46
32
  - - "~>"
47
33
  - !ruby/object:Gem::Version
48
- version: '12.0'
34
+ version: '13.0'
49
35
  type: :development
50
36
  prerelease: false
51
37
  version_requirements: !ruby/object:Gem::Requirement
52
38
  requirements:
53
39
  - - "~>"
54
40
  - !ruby/object:Gem::Version
55
- version: '12.0'
41
+ version: '13.0'
56
42
  description: |2
57
43
  A library for JRubyArt, that allows the writing of context free
58
44
  sketches (like context free art) in a ruby DSL. It is a bit of a toy
@@ -144,8 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
130
  - !ruby/object:Gem::Version
145
131
  version: '0'
146
132
  requirements: []
147
- rubyforge_project:
148
- rubygems_version: 2.7.6
133
+ rubygems_version: 3.1.2
149
134
  signing_key:
150
135
  specification_version: 4
151
136
  summary: A ruby-DSL library for CF3 sketches