bud 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTgyYTM2NWZkYmJlNjI4ODhkNWE3MGMwYmM0ZTFkYjFjMjQxYzdhOA==
5
- data.tar.gz: !binary |-
6
- ZDI1ZDMzNWJiYTgzOGFhOTYxMmEyMjM4NjdmZDM5ZjFhYTBkYjg0Zg==
2
+ SHA1:
3
+ metadata.gz: 628133a838208bab16e5ec51d166da3b35803cc1
4
+ data.tar.gz: afeab2b5aaa75b379aa5561559fb7acc89cfb50a
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MTlhYWYxMTAyZDVhZWU4OTRmYjIwYjU5NzRlYzY1NDdmYzk3MWJjYTY1MDMw
10
- OGRlYjNlMzc4MDZkOWZmOTdhZjRmNDYwMmYyYzk1MDU2NmUyNjdkMGU5NjBj
11
- ZjY4NzYwYjU3MzBlOTlmZjUyMTgwMGEyYjdmNmNlZGMwNmU4MTU=
12
- data.tar.gz: !binary |-
13
- MmJkNjZhNzNlMzdhOGJjZDk0ZWRiMWY2MTk2MWY4OWQ1MGI2NzA2NTMxZDk0
14
- NTdjODdiMDg1MGY3ZTQ3YTBjZmU2ODE4NjYwMTY0NzRiNmRlMDI2YzYzZmZh
15
- MGVkZWVmZDk5NDllMDFhYTMyMTg3YTUzZGE0NWVhYzgxNGVjYjc=
6
+ metadata.gz: cd64cbf997cd2592e90f1be28e9818c074ff8bbfbb0cc997dfe0d4af455484e98959f72408ab70487ba29de32cfd10fdf7d662bca702c8ff92ddf82862d47941
7
+ data.tar.gz: 541c9f257e269de04137d6217e8960c680e1864cc9065cd12eb6a04eecf869dc6080ea184ac12c8d45e0f24ae589339aaddf99ea47c4020b2d3060a0669a7b00
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Build Status](https://travis-ci.org/bloom-lang/bud.svg?branch=v0.9.8)](https://travis-ci.org/bloom-lang/bud)
1
2
  # Bud
2
3
 
3
4
  This is Bud, a.k.a. "Bloom Under Development". It is an initial cut at a Bloom
@@ -248,6 +248,26 @@ class Bud::SetLattice < Bud::Lattice
248
248
  Bud::BoolLattice.new(@v.member? i)
249
249
  end
250
250
 
251
+ monotone :group_count do |key_cols|
252
+ # Assume key_cols for now gives indices
253
+ rv = Hash.new(Bud::MaxLattice.new(0))
254
+ @v.each do |t|
255
+ unless t.class == Array
256
+ raise Bud::TypeError, "group_count only works if lset elements are type Array"
257
+ end
258
+
259
+ key = []
260
+ key_cols.each do |ind|
261
+ if ind >= t.length
262
+ raise Bud::Error, "lset element in group_count does not have column index #{ind}"
263
+ end
264
+ key << t[ind]
265
+ end
266
+ rv[key] += 1
267
+ end
268
+ Bud::MapLattice.new(rv)
269
+ end
270
+
251
271
  morph :pro do |&blk|
252
272
  # We don't use Set#map, since it returns an Array (ugh).
253
273
  rv = Set.new
@@ -1,3 +1,3 @@
1
1
  module Bud
2
- VERSION = "0.9.8"
2
+ VERSION = "0.9.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Alvaro
@@ -9,10 +9,10 @@ authors:
9
9
  - Joseph M. Hellerstein
10
10
  - William R. Marczak
11
11
  - Sriram Srinivasan
12
- autorequire:
12
+ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2017-09-03 00:00:00.000000000 Z
15
+ date: 2020-09-01 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: backports
@@ -104,14 +104,14 @@ dependencies:
104
104
  requirements:
105
105
  - - '='
106
106
  - !ruby/object:Gem::Version
107
- version: 2.4.0
107
+ version: 2.4.4
108
108
  type: :runtime
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - '='
113
113
  - !ruby/object:Gem::Version
114
- version: 2.4.0
114
+ version: 2.4.4
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: ruby_parser
117
117
  requirement: !ruby/object:Gem::Requirement
@@ -254,26 +254,26 @@ files:
254
254
  - lib/bud/viz_util.rb
255
255
  homepage: http://www.bloom-lang.org
256
256
  licenses:
257
- - BSD
257
+ - BSD-3-Clause
258
258
  metadata: {}
259
- post_install_message:
259
+ post_install_message:
260
260
  rdoc_options: []
261
261
  require_paths:
262
262
  - lib
263
263
  required_ruby_version: !ruby/object:Gem::Requirement
264
264
  requirements:
265
- - - ! '>='
265
+ - - ">="
266
266
  - !ruby/object:Gem::Version
267
- version: 1.8.7
267
+ version: 1.9.3
268
268
  required_rubygems_version: !ruby/object:Gem::Requirement
269
269
  requirements:
270
- - - ! '>='
270
+ - - ">="
271
271
  - !ruby/object:Gem::Version
272
272
  version: '0'
273
273
  requirements: []
274
274
  rubyforge_project: bloom-lang
275
- rubygems_version: 2.4.8
276
- signing_key:
275
+ rubygems_version: 2.6.11
276
+ signing_key:
277
277
  specification_version: 4
278
278
  summary: A prototype Bloom DSL for distributed programming.
279
279
  test_files: []