mirahd 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +1 -1
- data/Gemfile.lock +3 -3
- data/README.md +4 -4
- data/VERSION +1 -1
- data/mirahd.gemspec +4 -4
- data/test/client_spec.rb +1 -6
- data/test/common.rb +2 -3
- data/test/server_spec.rb +0 -5
- metadata +70 -67
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
bitescript (0.1.
|
4
|
+
bitescript (0.1.2)
|
5
5
|
diff-lcs (1.1.3)
|
6
6
|
git (1.2.5)
|
7
7
|
jeweler (1.8.4)
|
@@ -10,8 +10,8 @@ GEM
|
|
10
10
|
rake
|
11
11
|
rdoc
|
12
12
|
json (1.7.6-java)
|
13
|
-
mirah (0.0
|
14
|
-
bitescript (>= 0.
|
13
|
+
mirah (0.1.0-java)
|
14
|
+
bitescript (>= 0.1.2)
|
15
15
|
rake (10.0.3)
|
16
16
|
rdoc (3.12)
|
17
17
|
json (~> 1.4)
|
data/README.md
CHANGED
@@ -12,15 +12,15 @@ Usage
|
|
12
12
|
We'll need:
|
13
13
|
|
14
14
|
* Bundler,
|
15
|
-
* Mirah, and as a result
|
16
|
-
* JRuby 1.
|
15
|
+
* Mirah 0.1, and as a result
|
16
|
+
* JRuby 1.7.
|
17
17
|
|
18
18
|
For your own comfort and sanity it is also advisable to install a Ruby
|
19
19
|
implementation with a reasonably short start up time. MRI or Rubinius
|
20
20
|
are good candidates.
|
21
21
|
|
22
22
|
jruby -S bundle install
|
23
|
-
jruby -S rspec test
|
23
|
+
jruby -S rspec -I. test
|
24
24
|
jruby -rubygems -I lib -S bin/mirahd --daemon
|
25
25
|
ruby -I lib bin/mirahd test/hello.mirah
|
26
26
|
|
@@ -69,7 +69,7 @@ Todo
|
|
69
69
|
Copyrights
|
70
70
|
----------
|
71
71
|
|
72
|
-
Copyright (c) 2012 Jan Stępień
|
72
|
+
Copyright (c) 2012–2013 Jan Stępień
|
73
73
|
|
74
74
|
Permission is hereby granted, free of charge, to any person obtaining
|
75
75
|
a copy of this software and associated documentation files (the
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/mirahd.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "mirahd"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Jan St\
|
12
|
-
s.date = "2013-
|
11
|
+
s.authors = ["Jan St\u{119}pie\u{144}"]
|
12
|
+
s.date = "2013-02-27"
|
13
13
|
s.description = "mirahd is a Mirah Daemon listening for your requests to compile something.\nWhen it receives one it does the job quickly. Really quickly.\n"
|
14
14
|
s.email = "jstepien@users.sourceforge.net"
|
15
15
|
s.executables = ["mirahd"]
|
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
|
|
36
36
|
s.homepage = "https://github.com/jstepien/mirahd"
|
37
37
|
s.licenses = ["MIT"]
|
38
38
|
s.require_paths = ["lib"]
|
39
|
-
s.rubygems_version = "1.8.
|
39
|
+
s.rubygems_version = "1.8.24"
|
40
40
|
s.summary = "Mirah compilation daemon (in dire need of Javanese name)"
|
41
41
|
|
42
42
|
if s.respond_to? :specification_version then
|
data/test/client_spec.rb
CHANGED
@@ -21,11 +21,6 @@ describe MirahD::Client do
|
|
21
21
|
rm_f_temp_files
|
22
22
|
end
|
23
23
|
|
24
|
-
it 'can compile to Java source code' do
|
25
|
-
@client.compile(['--java', Source]).should_not be_nil
|
26
|
-
File.file?(JavaFile).should == true
|
27
|
-
end
|
28
|
-
|
29
24
|
it 'can compile a JVM class' do
|
30
25
|
@client.compile([Source]).should_not be_nil
|
31
26
|
File.file?(ClassFile).should == true
|
@@ -44,7 +39,7 @@ describe MirahD::Client do
|
|
44
39
|
begin
|
45
40
|
@client.compile([BadSource])
|
46
41
|
rescue => ex
|
47
|
-
ex.message.should =~ /^Parsing
|
42
|
+
ex.message.should =~ /^Parsing\..*#{BadSource}.*\n1 errors?, exiting/m
|
48
43
|
end
|
49
44
|
end
|
50
45
|
end
|
data/test/common.rb
CHANGED
@@ -6,11 +6,10 @@ require 'socket'
|
|
6
6
|
|
7
7
|
Source = 'test/hello.mirah'
|
8
8
|
BadSource = 'Gemfile.lock'
|
9
|
-
|
10
|
-
ClassFile = 'test/Hello.class'
|
9
|
+
ClassFile = 'Hello.class'
|
11
10
|
|
12
11
|
def rm_f_temp_files
|
13
|
-
[
|
12
|
+
[ClassFile].each { |file| FileUtils.rm_f file }
|
14
13
|
end
|
15
14
|
|
16
15
|
# This function tries to connect to a given TCP port and close the socket
|
data/test/server_spec.rb
CHANGED
@@ -69,11 +69,6 @@ describe MirahD::Server do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
describe 'and given a valid input file' do
|
72
|
-
it 'should compile it to Java' do
|
73
|
-
@remote.compile(['--java', Source]).should_not be_nil
|
74
|
-
File.file?(JavaFile).should == true
|
75
|
-
end
|
76
|
-
|
77
72
|
it 'should compile it to a JVM class' do
|
78
73
|
@remote.compile([Source]).should_not be_nil
|
79
74
|
File.file?(ClassFile).should == true
|
metadata
CHANGED
@@ -1,84 +1,87 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mirahd
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
9
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Jan Stępień
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
12
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: mirah
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: !binary |-
|
21
|
+
MA==
|
22
|
+
none: false
|
23
|
+
requirement: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: !binary |-
|
28
|
+
MA==
|
29
|
+
none: false
|
30
|
+
prerelease: false
|
31
|
+
type: :runtime
|
26
32
|
description: |
|
27
33
|
mirahd is a Mirah Daemon listening for your requests to compile something.
|
28
34
|
When it receives one it does the job quickly. Really quickly.
|
29
|
-
|
30
35
|
email: jstepien@users.sourceforge.net
|
31
|
-
executables:
|
32
|
-
|
36
|
+
executables:
|
37
|
+
- mirahd
|
33
38
|
extensions: []
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
- test/server_spec.rb
|
39
|
+
extra_rdoc_files:
|
40
|
+
- README.md
|
41
|
+
files:
|
42
|
+
- ".rspec"
|
43
|
+
- ".travis.yml"
|
44
|
+
- Gemfile
|
45
|
+
- Gemfile.lock
|
46
|
+
- README.md
|
47
|
+
- Rakefile
|
48
|
+
- VERSION
|
49
|
+
- bin/mirahd
|
50
|
+
- lib/mirahd/client.rb
|
51
|
+
- lib/mirahd/server.rb
|
52
|
+
- mirahd.gemspec
|
53
|
+
- test/client_spec.rb
|
54
|
+
- test/common.rb
|
55
|
+
- test/hello.mirah
|
56
|
+
- test/server_spec.rb
|
53
57
|
homepage: https://github.com/jstepien/mirahd
|
54
|
-
licenses:
|
55
|
-
|
56
|
-
post_install_message:
|
58
|
+
licenses:
|
59
|
+
- MIT
|
60
|
+
post_install_message:
|
57
61
|
rdoc_options: []
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
+
require_paths:
|
63
|
+
- lib
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
segments:
|
69
|
+
- 0
|
70
|
+
version: !binary |-
|
71
|
+
MA==
|
72
|
+
hash: 2
|
62
73
|
none: false
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
version: "0"
|
70
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: !binary |-
|
79
|
+
MA==
|
71
80
|
none: false
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: "0"
|
76
81
|
requirements: []
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
signing_key:
|
82
|
+
rubyforge_project:
|
83
|
+
rubygems_version: 1.8.24
|
84
|
+
signing_key:
|
81
85
|
specification_version: 3
|
82
86
|
summary: Mirah compilation daemon (in dire need of Javanese name)
|
83
87
|
test_files: []
|
84
|
-
|