piglet 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +22 -0
- data/LICENSE +20 -0
- data/README.rdoc +293 -0
- data/Rakefile +50 -0
- data/bin/piglet +9 -0
- data/examples/analysis.rb +311 -0
- data/examples/scratch.rb +11 -0
- data/examples/spike1.rb +43 -0
- data/examples/spike2.rb +40 -0
- data/examples/test1.rb +3 -0
- data/examples/test2.rb +5 -0
- data/examples/test3.rb +4 -0
- data/lib/piglet/assignment.rb +13 -0
- data/lib/piglet/cogroup.rb +31 -0
- data/lib/piglet/cross.rb +22 -0
- data/lib/piglet/describe.rb +5 -0
- data/lib/piglet/distinct.rb +16 -0
- data/lib/piglet/dump.rb +5 -0
- data/lib/piglet/explain.rb +13 -0
- data/lib/piglet/field.rb +40 -0
- data/lib/piglet/field_expression_functions.rb +62 -0
- data/lib/piglet/field_function_expression.rb +19 -0
- data/lib/piglet/field_infix_expression.rb +17 -0
- data/lib/piglet/field_prefix_expression.rb +21 -0
- data/lib/piglet/field_rename.rb +11 -0
- data/lib/piglet/field_suffix_expression.rb +17 -0
- data/lib/piglet/filter.rb +13 -0
- data/lib/piglet/foreach.rb +19 -0
- data/lib/piglet/group.rb +21 -0
- data/lib/piglet/illustrate.rb +5 -0
- data/lib/piglet/interpreter.rb +108 -0
- data/lib/piglet/join.rb +20 -0
- data/lib/piglet/limit.rb +13 -0
- data/lib/piglet/load.rb +31 -0
- data/lib/piglet/load_and_store.rb +16 -0
- data/lib/piglet/order.rb +29 -0
- data/lib/piglet/relation.rb +177 -0
- data/lib/piglet/sample.rb +13 -0
- data/lib/piglet/split.rb +41 -0
- data/lib/piglet/store.rb +17 -0
- data/lib/piglet/storing.rb +13 -0
- data/lib/piglet/stream.rb +5 -0
- data/lib/piglet/union.rb +19 -0
- data/lib/piglet.rb +45 -0
- data/spec/piglet/field_spec.rb +130 -0
- data/spec/piglet/interpreter_spec.rb +413 -0
- data/spec/piglet/relation_spec.rb +79 -0
- data/spec/piglet/split_spec.rb +34 -0
- data/spec/piglet_spec.rb +7 -0
- data/spec/spec.opts +3 -0
- data/spec/spec_helper.rb +14 -0
- metadata +123 -0
metadata
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: piglet
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Theo Hultberg
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2010-01-03 00:00:00 +01:00
|
13
|
+
default_executable: piglet
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rspec
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.2.9
|
24
|
+
version:
|
25
|
+
description: Piglet aims to look like Pig Latin while allowing for things like loops and control of flow that are missing from Pig.
|
26
|
+
email: theo@iconara.net
|
27
|
+
executables:
|
28
|
+
- piglet
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- LICENSE
|
33
|
+
- README.rdoc
|
34
|
+
files:
|
35
|
+
- .document
|
36
|
+
- .gitignore
|
37
|
+
- LICENSE
|
38
|
+
- README.rdoc
|
39
|
+
- Rakefile
|
40
|
+
- bin/piglet
|
41
|
+
- examples/spike1.rb
|
42
|
+
- examples/spike2.rb
|
43
|
+
- lib/piglet.rb
|
44
|
+
- lib/piglet/assignment.rb
|
45
|
+
- lib/piglet/cogroup.rb
|
46
|
+
- lib/piglet/cross.rb
|
47
|
+
- lib/piglet/describe.rb
|
48
|
+
- lib/piglet/distinct.rb
|
49
|
+
- lib/piglet/dump.rb
|
50
|
+
- lib/piglet/explain.rb
|
51
|
+
- lib/piglet/field.rb
|
52
|
+
- lib/piglet/field_expression_functions.rb
|
53
|
+
- lib/piglet/field_function_expression.rb
|
54
|
+
- lib/piglet/field_infix_expression.rb
|
55
|
+
- lib/piglet/field_prefix_expression.rb
|
56
|
+
- lib/piglet/field_rename.rb
|
57
|
+
- lib/piglet/field_suffix_expression.rb
|
58
|
+
- lib/piglet/filter.rb
|
59
|
+
- lib/piglet/foreach.rb
|
60
|
+
- lib/piglet/group.rb
|
61
|
+
- lib/piglet/illustrate.rb
|
62
|
+
- lib/piglet/interpreter.rb
|
63
|
+
- lib/piglet/join.rb
|
64
|
+
- lib/piglet/limit.rb
|
65
|
+
- lib/piglet/load.rb
|
66
|
+
- lib/piglet/load_and_store.rb
|
67
|
+
- lib/piglet/order.rb
|
68
|
+
- lib/piglet/relation.rb
|
69
|
+
- lib/piglet/sample.rb
|
70
|
+
- lib/piglet/split.rb
|
71
|
+
- lib/piglet/store.rb
|
72
|
+
- lib/piglet/storing.rb
|
73
|
+
- lib/piglet/stream.rb
|
74
|
+
- lib/piglet/union.rb
|
75
|
+
- spec/piglet/field_spec.rb
|
76
|
+
- spec/piglet/interpreter_spec.rb
|
77
|
+
- spec/piglet/relation_spec.rb
|
78
|
+
- spec/piglet/split_spec.rb
|
79
|
+
- spec/piglet_spec.rb
|
80
|
+
- spec/spec.opts
|
81
|
+
- spec/spec_helper.rb
|
82
|
+
has_rdoc: true
|
83
|
+
homepage: http://github.com/iconara/piglet
|
84
|
+
licenses: []
|
85
|
+
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options:
|
88
|
+
- --charset=UTF-8
|
89
|
+
require_paths:
|
90
|
+
- lib
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: "0"
|
96
|
+
version:
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: "0"
|
102
|
+
version:
|
103
|
+
requirements: []
|
104
|
+
|
105
|
+
rubyforge_project:
|
106
|
+
rubygems_version: 1.3.5
|
107
|
+
signing_key:
|
108
|
+
specification_version: 3
|
109
|
+
summary: Piglet is a DSL for Pig scripts
|
110
|
+
test_files:
|
111
|
+
- spec/piglet/field_spec.rb
|
112
|
+
- spec/piglet/interpreter_spec.rb
|
113
|
+
- spec/piglet/relation_spec.rb
|
114
|
+
- spec/piglet/split_spec.rb
|
115
|
+
- spec/piglet_spec.rb
|
116
|
+
- spec/spec_helper.rb
|
117
|
+
- examples/analysis.rb
|
118
|
+
- examples/scratch.rb
|
119
|
+
- examples/spike1.rb
|
120
|
+
- examples/spike2.rb
|
121
|
+
- examples/test1.rb
|
122
|
+
- examples/test2.rb
|
123
|
+
- examples/test3.rb
|