FluxTuna 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/Gemfile +0 -15
- data/Gemfile.lock +0 -16
- data/HISTORY +5 -4
- data/README.rdoc +2 -2
- data/Rakefile +3 -13
- data/VERSION +1 -1
- data/lib/FluxTuna.rb +0 -0
- data/test/helper.rb +18 -0
- data/test/test_FluxTuna.rb +7 -0
- metadata +25 -124
- data/bin/whitecloth +0 -49
- data/lib/LICENSE +0 -20
- data/lib/WhiteCloth.rb +0 -24
- data/lib/whitecloth/cli.rb +0 -29
- data/lib/whitecloth/cli/base.rb +0 -102
- data/lib/whitecloth/cli/commands.rb +0 -29
- data/lib/whitecloth/cli/commands/bootstrap.rb +0 -103
- data/lib/whitecloth/cli/commands/help.rb +0 -106
- data/lib/whitecloth/cli/commands/show.rb +0 -87
- data/lib/whitecloth/cli/logger.rb +0 -88
- data/test/data/bayeux/Labs/Lab1/L1_Internet.byx +0 -536
- data/test/data/bayeux/Labs/Lab1/L1_Internet.yaml +0 -1
- data/test/data/bayeux/Labs/Lab2/L2_StaticR.byx +0 -383
- data/test/data/bayeux/Labs/Lab2/L2_StaticR.yaml +0 -1
- data/test/data/bayeux/Labs/Lab3/L3_DNS.byx +0 -943
- data/test/data/bayeux/Labs/Lab3/L3_DNS.yaml +0 -1
- data/test/data/bayeux/Labs/Labs.byx +0 -1
- data/test/data/bayeux/Labs/Labs.yaml +0 -1
- data/test/data/bayeux/Resources/Resources.byx +0 -91
- data/test/data/bayeux/Resources/Resources.yaml +0 -1
- data/test/data/bayeux/Welcome.byx +0 -49
- data/test/data/bayeux/Welcome.yaml +0 -1
- data/test/data/data_test.rb +0 -29
- data/test/dir_walk/create_witness_test.rb +0 -39
- data/test/init_test.rb +0 -26
data/.rvmrc
CHANGED
data/Gemfile
CHANGED
@@ -13,21 +13,6 @@ source "http://rubygems.org"
|
|
13
13
|
# Additional data structures
|
14
14
|
gem "algorithms"
|
15
15
|
|
16
|
-
# GUID library
|
17
|
-
gem "uuidtools"
|
18
|
-
|
19
|
-
# Gem required for linking to the Redis server
|
20
|
-
gem "hiredis", "~> 0.3.1"
|
21
|
-
gem "em-synchrony"
|
22
|
-
gem "redis", "~> 2.2.0", :require => ["redis/connection/synchrony", "redis"]
|
23
|
-
|
24
|
-
# Command line parser
|
25
|
-
gem "cli"
|
26
|
-
gem "cri"
|
27
|
-
|
28
|
-
# Simpler access to the OpenSSL library
|
29
|
-
gem "gibberish"
|
30
|
-
|
31
16
|
###
|
32
17
|
### Development Gems. All _additional_ gems required by development (as opposed to
|
33
18
|
### production environments). If it is required at run-time, it
|
data/Gemfile.lock
CHANGED
@@ -3,15 +3,8 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
algorithms (0.3.0)
|
5
5
|
ansi (1.2.5)
|
6
|
-
cli (0.0.1.2)
|
7
|
-
cri (1.0.1)
|
8
|
-
em-synchrony (0.2.0)
|
9
|
-
eventmachine (>= 0.12.9)
|
10
|
-
eventmachine (0.12.10)
|
11
6
|
facets (2.9.1)
|
12
|
-
gibberish (1.0.2)
|
13
7
|
git (1.2.5)
|
14
|
-
hiredis (0.3.1)
|
15
8
|
jeweler (1.6.0)
|
16
9
|
bundler (~> 1.0.0)
|
17
10
|
git (>= 1.2.5)
|
@@ -19,7 +12,6 @@ GEM
|
|
19
12
|
minitest (2.1.0)
|
20
13
|
rake (0.8.7)
|
21
14
|
rcov (0.9.9)
|
22
|
-
redis (2.2.0)
|
23
15
|
reek (1.2.8)
|
24
16
|
ruby2ruby (~> 1.2)
|
25
17
|
ruby_parser (~> 2.0)
|
@@ -33,7 +25,6 @@ GEM
|
|
33
25
|
ruby_parser (2.0.6)
|
34
26
|
sexp_processor (~> 3.0)
|
35
27
|
sexp_processor (3.0.5)
|
36
|
-
uuidtools (2.1.2)
|
37
28
|
vclog (1.8.1)
|
38
29
|
ansi (>= 1.2)
|
39
30
|
facets (>= 2.4)
|
@@ -45,17 +36,10 @@ PLATFORMS
|
|
45
36
|
DEPENDENCIES
|
46
37
|
algorithms
|
47
38
|
bundler (~> 1.0.0)
|
48
|
-
cli
|
49
|
-
cri
|
50
|
-
em-synchrony
|
51
|
-
gibberish
|
52
|
-
hiredis (~> 0.3.1)
|
53
39
|
jeweler (~> 1.6.0)
|
54
40
|
minitest
|
55
41
|
rcov
|
56
|
-
redis (~> 2.2.0)
|
57
42
|
reek (~> 1.2.8)
|
58
43
|
riot
|
59
|
-
uuidtools
|
60
44
|
vclog
|
61
45
|
yard (~> 0.6.0)
|
data/HISTORY
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
RELEASE HISTORY
|
2
2
|
|
3
|
-
HEAD / 2011-05-
|
3
|
+
HEAD / 2011-05-11
|
4
4
|
|
5
5
|
Current Development (David Love)
|
6
6
|
|
7
7
|
Changes:
|
8
8
|
|
9
|
-
*
|
9
|
+
* 2 Patch Enhancements
|
10
10
|
|
11
|
-
*
|
11
|
+
* Add RVM support and run Bundler to build the basic environment
|
12
|
+
* Create the basic project structure from the Jeweler core
|
12
13
|
|
13
14
|
* 1 General Enhancements
|
14
15
|
|
15
|
-
* Initial commit to
|
16
|
+
* Initial commit to FluxTuna.
|
16
17
|
|
data/README.rdoc
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
=
|
1
|
+
= FluxTuna
|
2
2
|
|
3
3
|
This is an _experimental_ language framework, attempting to put my theoretical work on semi-formal structures to work. At the moment it doesn't do a lot: hopefully that will change soon.
|
4
4
|
|
5
5
|
|
6
|
-
== Contributing to
|
6
|
+
== Contributing to FluxTuna
|
7
7
|
|
8
8
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
9
9
|
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
data/Rakefile
CHANGED
@@ -59,16 +59,8 @@ desc "Run all our tests"
|
|
59
59
|
task :test do
|
60
60
|
Rake::TestTask.new do |t|
|
61
61
|
t.libs << "test"
|
62
|
+
t.pattern = "test/**/*_test.rb"
|
62
63
|
t.verbose = false
|
63
|
-
|
64
|
-
# List of files. We need to specifiy these explicity so they
|
65
|
-
# are loaded in the correct order: init, data, then the tests
|
66
|
-
# themselves
|
67
|
-
t.test_files = ["test/init_test.rb",
|
68
|
-
|
69
|
-
"test/data/data_test.rb",
|
70
|
-
|
71
|
-
"test/dir_walk/create_witness_test.rb"]
|
72
64
|
end
|
73
65
|
end
|
74
66
|
|
@@ -93,8 +85,6 @@ task :before_release do
|
|
93
85
|
`vclog history -f gnu > HISTORY`
|
94
86
|
end
|
95
87
|
|
96
|
-
##
|
97
|
-
Rake::Task[
|
98
|
-
Rake::Task["version:bump:minor"].enhance([:before_release])
|
99
|
-
Rake::Task["version:bump:patch"].enhance([:before_release])
|
88
|
+
## Extend the default (Jeweler) 'release' task
|
89
|
+
Rake::Task[:release].enhance([:before_release])
|
100
90
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/FluxTuna.rb
ADDED
File without changes
|
data/test/helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'shoulda'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'FluxTuna'
|
16
|
+
|
17
|
+
class Test::Unit::TestCase
|
18
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: FluxTuna
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- David Love
|
@@ -10,8 +10,8 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
14
|
-
default_executable:
|
13
|
+
date: 2011-05-10 00:00:00 +01:00
|
14
|
+
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: algorithms
|
@@ -24,86 +24,9 @@ dependencies:
|
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: uuidtools
|
29
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
-
none: false
|
31
|
-
requirements:
|
32
|
-
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: "0"
|
35
|
-
type: :runtime
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: hiredis
|
40
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 0.3.1
|
46
|
-
type: :runtime
|
47
|
-
prerelease: false
|
48
|
-
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: em-synchrony
|
51
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
-
none: false
|
53
|
-
requirements:
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: "0"
|
57
|
-
type: :runtime
|
58
|
-
prerelease: false
|
59
|
-
version_requirements: *id004
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: redis
|
62
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
-
none: false
|
64
|
-
requirements:
|
65
|
-
- - ~>
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: 2.2.0
|
68
|
-
type: :runtime
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: *id005
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: cli
|
73
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
|
-
requirements:
|
76
|
-
- - ">="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: "0"
|
79
|
-
type: :runtime
|
80
|
-
prerelease: false
|
81
|
-
version_requirements: *id006
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
|
-
name: cri
|
84
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: "0"
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: *id007
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: gibberish
|
95
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
|
-
requirements:
|
98
|
-
- - ">="
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version: "0"
|
101
|
-
type: :runtime
|
102
|
-
prerelease: false
|
103
|
-
version_requirements: *id008
|
104
27
|
- !ruby/object:Gem::Dependency
|
105
28
|
name: bundler
|
106
|
-
requirement: &
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
107
30
|
none: false
|
108
31
|
requirements:
|
109
32
|
- - ~>
|
@@ -111,10 +34,10 @@ dependencies:
|
|
111
34
|
version: 1.0.0
|
112
35
|
type: :development
|
113
36
|
prerelease: false
|
114
|
-
version_requirements: *
|
37
|
+
version_requirements: *id002
|
115
38
|
- !ruby/object:Gem::Dependency
|
116
39
|
name: jeweler
|
117
|
-
requirement: &
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
118
41
|
none: false
|
119
42
|
requirements:
|
120
43
|
- - ~>
|
@@ -122,10 +45,10 @@ dependencies:
|
|
122
45
|
version: 1.6.0
|
123
46
|
type: :development
|
124
47
|
prerelease: false
|
125
|
-
version_requirements: *
|
48
|
+
version_requirements: *id003
|
126
49
|
- !ruby/object:Gem::Dependency
|
127
50
|
name: yard
|
128
|
-
requirement: &
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
129
52
|
none: false
|
130
53
|
requirements:
|
131
54
|
- - ~>
|
@@ -133,10 +56,10 @@ dependencies:
|
|
133
56
|
version: 0.6.0
|
134
57
|
type: :development
|
135
58
|
prerelease: false
|
136
|
-
version_requirements: *
|
59
|
+
version_requirements: *id004
|
137
60
|
- !ruby/object:Gem::Dependency
|
138
61
|
name: vclog
|
139
|
-
requirement: &
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
140
63
|
none: false
|
141
64
|
requirements:
|
142
65
|
- - ">="
|
@@ -144,10 +67,10 @@ dependencies:
|
|
144
67
|
version: "0"
|
145
68
|
type: :development
|
146
69
|
prerelease: false
|
147
|
-
version_requirements: *
|
70
|
+
version_requirements: *id005
|
148
71
|
- !ruby/object:Gem::Dependency
|
149
72
|
name: minitest
|
150
|
-
requirement: &
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
151
74
|
none: false
|
152
75
|
requirements:
|
153
76
|
- - ">="
|
@@ -155,10 +78,10 @@ dependencies:
|
|
155
78
|
version: "0"
|
156
79
|
type: :development
|
157
80
|
prerelease: false
|
158
|
-
version_requirements: *
|
81
|
+
version_requirements: *id006
|
159
82
|
- !ruby/object:Gem::Dependency
|
160
83
|
name: rcov
|
161
|
-
requirement: &
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
162
85
|
none: false
|
163
86
|
requirements:
|
164
87
|
- - ">="
|
@@ -166,10 +89,10 @@ dependencies:
|
|
166
89
|
version: "0"
|
167
90
|
type: :development
|
168
91
|
prerelease: false
|
169
|
-
version_requirements: *
|
92
|
+
version_requirements: *id007
|
170
93
|
- !ruby/object:Gem::Dependency
|
171
94
|
name: riot
|
172
|
-
requirement: &
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
173
96
|
none: false
|
174
97
|
requirements:
|
175
98
|
- - ">="
|
@@ -177,10 +100,10 @@ dependencies:
|
|
177
100
|
version: "0"
|
178
101
|
type: :development
|
179
102
|
prerelease: false
|
180
|
-
version_requirements: *
|
103
|
+
version_requirements: *id008
|
181
104
|
- !ruby/object:Gem::Dependency
|
182
105
|
name: reek
|
183
|
-
requirement: &
|
106
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
184
107
|
none: false
|
185
108
|
requirements:
|
186
109
|
- - ~>
|
@@ -188,11 +111,11 @@ dependencies:
|
|
188
111
|
version: 1.2.8
|
189
112
|
type: :development
|
190
113
|
prerelease: false
|
191
|
-
version_requirements: *
|
114
|
+
version_requirements: *id009
|
192
115
|
description: "See: http://research.homeunix.org.uk"
|
193
116
|
email: david@homeunix.org.uk
|
194
|
-
executables:
|
195
|
-
|
117
|
+
executables: []
|
118
|
+
|
196
119
|
extensions: []
|
197
120
|
|
198
121
|
extra_rdoc_files:
|
@@ -208,31 +131,9 @@ files:
|
|
208
131
|
- README.rdoc
|
209
132
|
- Rakefile
|
210
133
|
- VERSION
|
211
|
-
-
|
212
|
-
-
|
213
|
-
-
|
214
|
-
- lib/whitecloth/cli.rb
|
215
|
-
- lib/whitecloth/cli/base.rb
|
216
|
-
- lib/whitecloth/cli/commands.rb
|
217
|
-
- lib/whitecloth/cli/commands/bootstrap.rb
|
218
|
-
- lib/whitecloth/cli/commands/help.rb
|
219
|
-
- lib/whitecloth/cli/commands/show.rb
|
220
|
-
- lib/whitecloth/cli/logger.rb
|
221
|
-
- test/data/bayeux/Labs/Lab1/L1_Internet.byx
|
222
|
-
- test/data/bayeux/Labs/Lab1/L1_Internet.yaml
|
223
|
-
- test/data/bayeux/Labs/Lab2/L2_StaticR.byx
|
224
|
-
- test/data/bayeux/Labs/Lab2/L2_StaticR.yaml
|
225
|
-
- test/data/bayeux/Labs/Lab3/L3_DNS.byx
|
226
|
-
- test/data/bayeux/Labs/Lab3/L3_DNS.yaml
|
227
|
-
- test/data/bayeux/Labs/Labs.byx
|
228
|
-
- test/data/bayeux/Labs/Labs.yaml
|
229
|
-
- test/data/bayeux/Resources/Resources.byx
|
230
|
-
- test/data/bayeux/Resources/Resources.yaml
|
231
|
-
- test/data/bayeux/Welcome.byx
|
232
|
-
- test/data/bayeux/Welcome.yaml
|
233
|
-
- test/data/data_test.rb
|
234
|
-
- test/dir_walk/create_witness_test.rb
|
235
|
-
- test/init_test.rb
|
134
|
+
- lib/FluxTuna.rb
|
135
|
+
- test/helper.rb
|
136
|
+
- test/test_FluxTuna.rb
|
236
137
|
has_rdoc: true
|
237
138
|
homepage: http://github.com/dlove24/FluxTuna
|
238
139
|
licenses:
|
@@ -247,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
247
148
|
requirements:
|
248
149
|
- - ">="
|
249
150
|
- !ruby/object:Gem::Version
|
250
|
-
hash:
|
151
|
+
hash: -62321086043965918
|
251
152
|
segments:
|
252
153
|
- 0
|
253
154
|
version: "0"
|
data/bin/whitecloth
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
### Copyright (c) 2011 David Love <david@homeunix.org.uk>
|
4
|
-
###
|
5
|
-
### Permission to use, copy, modify, and/or distribute this software for
|
6
|
-
### any purpose with or without fee is hereby granted, provided that the
|
7
|
-
### above copyright notice and this permission notice appear in all copies.
|
8
|
-
###
|
9
|
-
### THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
10
|
-
### WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
11
|
-
### MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
12
|
-
### ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
13
|
-
### WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
14
|
-
### ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
15
|
-
### OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
16
|
-
###
|
17
|
-
|
18
|
-
### @author David Love
|
19
|
-
###
|
20
|
-
### Bootstraping Command. Used to initalize various aspects of the Mercury
|
21
|
-
### environment.
|
22
|
-
###
|
23
|
-
### @note The sub-commands provided by the bootstrap command assume (at-least)
|
24
|
-
### a minimally working Ruby environment, with the required gems installed. Various
|
25
|
-
### 'First Boot' scripts are available in the `scripts` directory for different
|
26
|
-
### platforms which will achive at least this minimal state
|
27
|
-
###
|
28
|
-
|
29
|
-
# Add lib to load path
|
30
|
-
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
|
31
|
-
|
32
|
-
# Load the rubygems library
|
33
|
-
require 'rubygems'
|
34
|
-
|
35
|
-
# Load core application library
|
36
|
-
require 'whitecloth'
|
37
|
-
|
38
|
-
# Load command line handler
|
39
|
-
require 'whitecloth/cli'
|
40
|
-
|
41
|
-
# Load the commands from the cmds dir
|
42
|
-
plugin_dir = File.expand_path(File.dirname(__FILE__) + '/../cmds')
|
43
|
-
|
44
|
-
Dir[plugin_dir + '/*.rb'].sort.each{|file|
|
45
|
-
require file
|
46
|
-
}
|
47
|
-
|
48
|
-
# Run base
|
49
|
-
WhiteCloth::CLI::Base.new.run(ARGV)
|