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 +4 -4
- data/CHANGELOG.md +2 -0
- data/Gemfile +1 -1
- data/Rakefile +1 -1
- data/bin/cf3samples +3 -3
- data/cf3ruby.gemspec +2 -3
- data/lib/cf3/version.rb +1 -1
- data/lib/cf3.rb +3 -1
- data/samples/levy.rb +1 -1
- data/samples/y.rb +1 -1
- metadata +7 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d80640e4fdd9eeaafb72601432d9523a01b2aea81c479a10680bef3169357882
|
4
|
+
data.tar.gz: 5b233c6c88c67edb19c50abaeb2cd12ca81502708f8877b41aad689096dab03f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/Rakefile
CHANGED
data/bin/cf3samples
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
#####
|
5
5
|
|
6
6
|
|
7
|
-
home = ENV[
|
7
|
+
home = ENV['HOME']
|
8
8
|
local = home + '/cf3work'
|
9
9
|
file = __FILE__
|
10
|
-
require
|
11
|
-
require
|
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', '~>
|
27
|
-
spec.add_development_dependency '
|
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
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
|
-
|
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
data/samples/y.rb
CHANGED
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
|
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:
|
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: '
|
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: '
|
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: '
|
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: '
|
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
|
-
|
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
|