sinsiliux-hornsby 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hornsby_context.rb +13 -0
- metadata +4 -2
@@ -0,0 +1,13 @@
|
|
1
|
+
module HornsbyContext
|
2
|
+
def self.execute(&block)
|
3
|
+
module_eval(&block) if block
|
4
|
+
end
|
5
|
+
|
6
|
+
def self.copy_ivars(to, reload = false)
|
7
|
+
instance_variables.each do |iv|
|
8
|
+
v = instance_variable_get(iv)
|
9
|
+
v.reload if reload and v.respond_to?(:reload)
|
10
|
+
to.instance_variable_set(iv, v)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinsiliux-hornsby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrius Chamentauskas
|
@@ -43,11 +43,13 @@ extra_rdoc_files: []
|
|
43
43
|
|
44
44
|
files:
|
45
45
|
- lib/hornsby.rb
|
46
|
+
- lib/hornsby_context.rb
|
46
47
|
- lib/tasks/hornsby_tasks.rake
|
47
48
|
- README.rdoc
|
48
49
|
- LICENSE
|
49
50
|
has_rdoc: false
|
50
51
|
homepage: http://github.com/sinsiliux/hornsby
|
52
|
+
licenses:
|
51
53
|
post_install_message:
|
52
54
|
rdoc_options: []
|
53
55
|
|
@@ -68,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
70
|
requirements: []
|
69
71
|
|
70
72
|
rubyforge_project:
|
71
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.3.5
|
72
74
|
signing_key:
|
73
75
|
specification_version: 2
|
74
76
|
summary: Fixtures replacement with scenarios
|