origin 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,12 @@
6
6
 
7
7
  ### Resolved Issues
8
8
 
9
+ ## 1.0.4
10
+
11
+ ### Resolved Issues
12
+
13
+ * \#39 Fixed errors when using forwarding when active support is not present.
14
+
9
15
  ## 1.0.3
10
16
 
11
17
  ### Resolved Issues
data/Rakefile CHANGED
@@ -21,6 +21,7 @@ task :release => :build do
21
21
  system "git tag -a v#{Origin::VERSION} -m 'Tagging #{Origin::VERSION}'"
22
22
  system "git push --tags"
23
23
  system "gem push origin-#{Origin::VERSION}.gem"
24
+ system "rm origin-#{Origin::VERSION}.gem"
24
25
  end
25
26
 
26
27
  RSpec::Core::RakeTask.new("spec") do |spec|
@@ -45,11 +45,15 @@ module Origin
45
45
  def __forward__(name, receiver)
46
46
  if self.class == Module
47
47
  module_eval <<-SEL
48
- delegate :#{name}, to: :#{receiver}
48
+ def #{name}(*args, &block)
49
+ #{receiver}.__send__(:#{name}, *args, &block)
50
+ end
49
51
  SEL
50
52
  else
51
53
  (class << self; self; end).class_eval <<-SEL
52
- delegate :#{name}, to: :#{receiver}
54
+ def #{name}(*args, &block)
55
+ #{receiver}.__send__(:#{name}, *args, &block)
56
+ end
53
57
  SEL
54
58
  end
55
59
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Origin
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-05 00:00:00.000000000 Z
12
+ date: 2012-07-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  segments:
147
147
  - 0
148
- hash: -80852933804557315
148
+ hash: 844686172235787907
149
149
  required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements: