iron_core 0.4.4 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
data/iron_core.gemspec
CHANGED
@@ -15,8 +15,8 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.version = IronCore::VERSION
|
16
16
|
|
17
17
|
gem.required_rubygems_version = ">= 1.3.6"
|
18
|
-
gem.required_ruby_version = Gem::Requirement.new(">= 1.
|
19
|
-
gem.add_runtime_dependency "rest", ">= 2.
|
18
|
+
gem.required_ruby_version = Gem::Requirement.new(">= 1.8")
|
19
|
+
gem.add_runtime_dependency "rest", ">= 2.2.0"
|
20
20
|
|
21
21
|
gem.add_development_dependency "test-unit"
|
22
22
|
gem.add_development_dependency "minitest"
|
data/lib/iron_core/client.rb
CHANGED
File without changes
|
data/lib/iron_core/version.rb
CHANGED
data/lib/iron_core.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require
|
2
|
-
|
3
|
-
|
4
|
-
require_relative 'iron_core/logger'
|
5
|
-
require_relative 'iron_core/client'
|
1
|
+
require 'iron_core/version'
|
2
|
+
require 'iron_core/iron_logger'
|
3
|
+
require 'iron_core/client'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-01-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 2.
|
22
|
+
version: 2.2.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ! '>='
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 2.
|
30
|
+
version: 2.2.0
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: test-unit
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,11 +91,10 @@ files:
|
|
91
91
|
- Rakefile
|
92
92
|
- VERSION
|
93
93
|
- iron_core.gemspec
|
94
|
-
- lib/3rdparty/facets/require_relative.rb
|
95
94
|
- lib/iron_core.rb
|
96
95
|
- lib/iron_core/client.rb
|
97
96
|
- lib/iron_core/error.rb
|
98
|
-
- lib/iron_core/
|
97
|
+
- lib/iron_core/iron_logger.rb
|
99
98
|
- lib/iron_core/response_error.rb
|
100
99
|
- lib/iron_core/version.rb
|
101
100
|
homepage: https://github.com/iron-io/iron_core_ruby
|
@@ -109,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
108
|
requirements:
|
110
109
|
- - ! '>='
|
111
110
|
- !ruby/object:Gem::Version
|
112
|
-
version: '1.
|
111
|
+
version: '1.8'
|
113
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
113
|
none: false
|
115
114
|
requirements:
|
@@ -123,3 +122,4 @@ signing_key:
|
|
123
122
|
specification_version: 3
|
124
123
|
summary: Core library for Iron products
|
125
124
|
test_files: []
|
125
|
+
has_rdoc:
|
@@ -1,22 +0,0 @@
|
|
1
|
-
module Kernel
|
2
|
-
unless private_method_defined?(:require_relative) # 1.9
|
3
|
-
# Require file from same dir as calling script...
|
4
|
-
#
|
5
|
-
# require_local 'myscript'
|
6
|
-
#
|
7
|
-
# CREDIT: Paul Brannan, Pragmatic Programmers
|
8
|
-
#
|
9
|
-
def require_relative(relative_feature)
|
10
|
-
c = caller.first
|
11
|
-
fail "Can't parse #{c}" unless c.rindex(/:\d+(:in `.*')?$/)
|
12
|
-
|
13
|
-
file = $` # File.dirname(c)
|
14
|
-
if /\A\((.*)\)/ =~ file # eval, etc.
|
15
|
-
raise LoadError, "require_relative is called in #{$1}"
|
16
|
-
end
|
17
|
-
|
18
|
-
absolute = File.expand_path(relative_feature, File.dirname(file))
|
19
|
-
require absolute
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|