ideone 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +5 -1
  2. data/lib/ideone.rb +0 -2
  3. data/test/basic.rb +6 -0
  4. metadata +25 -9
data/README.md CHANGED
@@ -6,9 +6,13 @@ http://github.com/Pistos/ideone-gem
6
6
 
7
7
  Base code taken from http://github.com/staii/tgoa . See References, below.
8
8
 
9
+ ## Installation
10
+
11
+ gem install ideone
12
+
9
13
  ## Examples
10
14
 
11
- See examples/ dir of repository or gem.
15
+ See examples/ and test/ dirs of repository or gem.
12
16
 
13
17
  ## Contact
14
18
 
data/lib/ideone.rb CHANGED
@@ -99,8 +99,6 @@ module Ideone
99
99
  out = res['inouterr'].match(/<label>output:<\/label>.*?<pre.*?>(.*?)<\/pre>/m)
100
100
  if out
101
101
  out[1]
102
- else
103
- raise IdeoneError, "Error parsing output."
104
102
  end
105
103
  end
106
104
  end
data/test/basic.rb CHANGED
@@ -31,4 +31,10 @@ describe 'an ideone gem user' do
31
31
  results = Ideone.run( paste_id, nil )
32
32
  results.should.equal %{text on stdout\n}
33
33
  end
34
+
35
+ it "can submit Ruby code that doesn't print anything to stdout" do
36
+ paste_id = Ideone.submit( :ruby, %{1+1} )
37
+ results = Ideone.run( paste_id, nil )
38
+ results.should.equal nil
39
+ end
34
40
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ideone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ hash: 61
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 8
9
+ - 1
10
+ version: 0.8.1
5
11
  platform: ruby
6
12
  authors:
7
13
  - Pistos
@@ -9,19 +15,23 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-08-02 00:00:00 -04:00
18
+ date: 2010-08-03 00:00:00 -04:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: bacon
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
23
32
  version: "0"
24
- version:
33
+ type: :development
34
+ version_requirements: *id001
25
35
  description:
26
36
  email: ideonegem dot pistos aet purepistos dot net
27
37
  executables: []
@@ -49,21 +59,27 @@ rdoc_options: []
49
59
  require_paths:
50
60
  - lib
51
61
  required_ruby_version: !ruby/object:Gem::Requirement
62
+ none: false
52
63
  requirements:
53
64
  - - ">="
54
65
  - !ruby/object:Gem::Version
66
+ hash: 3
67
+ segments:
68
+ - 0
55
69
  version: "0"
56
- version:
57
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
+ none: false
58
72
  requirements:
59
73
  - - ">="
60
74
  - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
61
78
  version: "0"
62
- version:
63
79
  requirements: []
64
80
 
65
81
  rubyforge_project:
66
- rubygems_version: 1.3.5
82
+ rubygems_version: 1.3.7
67
83
  signing_key:
68
84
  specification_version: 3
69
85
  summary: A Ruby interface to the ideone.com API