evalso 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/evalso/version.rb +1 -1
  2. data/lib/evalso.rb +2 -1
  3. metadata +8 -8
@@ -1,3 +1,3 @@
1
1
  class Evalso
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/evalso.rb CHANGED
@@ -9,6 +9,7 @@ require "base64"
9
9
 
10
10
  class Evalso
11
11
  API_VERSION = 1
12
+ DEFAULT_URI = "http://eval.so/api/"
12
13
 
13
14
  def self.base_uri(uri = nil)
14
15
  return @@base_uri unless uri
@@ -16,7 +17,7 @@ class Evalso
16
17
  @@base_uri = uri
17
18
  end
18
19
 
19
- base_uri 'http://eval.so/api/'
20
+ base_uri DEFAULT_URI
20
21
 
21
22
  def self.run(hash)
22
23
  Request.new(hash).response
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evalso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-21 00:00:00.000000000 Z
12
+ date: 2013-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &15037940 !ruby/object:Gem::Requirement
16
+ requirement: &19909360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *15037940
24
+ version_requirements: *19909360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &15037060 !ruby/object:Gem::Requirement
27
+ requirement: &19975800 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.3'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *15037060
35
+ version_requirements: *19975800
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &15036020 !ruby/object:Gem::Requirement
38
+ requirement: &19974640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *15036020
46
+ version_requirements: *19974640
47
47
  description: Evaluates code safely, via http://eval.so
48
48
  email:
49
49
  - nick@duckinator.net