sham 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/sham.rb +4 -4
- data/lib/sham/version.rb +1 -1
- metadata +5 -16
data/.gitignore
CHANGED
data/lib/sham.rb
CHANGED
@@ -11,11 +11,11 @@ module Sham
|
|
11
11
|
@klass.sham! @options
|
12
12
|
end
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
class Config
|
16
16
|
def self.activate!
|
17
17
|
Dir["#{Rails.root}/sham/*_sham.rb"].each do |f|
|
18
|
-
|
18
|
+
load f
|
19
19
|
(File.basename(f).match(/(.*)_sham.rb/)[1]).classify.constantize.send :include, Sham::Methods
|
20
20
|
end
|
21
21
|
end
|
@@ -34,7 +34,7 @@ module Sham
|
|
34
34
|
value.sham!
|
35
35
|
else
|
36
36
|
value
|
37
|
-
end
|
37
|
+
end
|
38
38
|
end
|
39
39
|
|
40
40
|
def self.add_options! klass, options = {}, options_string = "options"
|
@@ -64,4 +64,4 @@ module Sham
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
67
|
-
end
|
67
|
+
end
|
data/lib/sham/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sham
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 0
|
10
|
-
version: 0.4.0
|
4
|
+
prerelease:
|
5
|
+
version: 0.5.0
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Pan Thomakos
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date:
|
13
|
+
date: 2011-05-18 00:00:00 -07:00
|
19
14
|
default_executable:
|
20
15
|
dependencies: []
|
21
16
|
|
@@ -53,25 +48,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
53
48
|
requirements:
|
54
49
|
- - ">="
|
55
50
|
- !ruby/object:Gem::Version
|
56
|
-
hash: 3
|
57
|
-
segments:
|
58
|
-
- 0
|
59
51
|
version: "0"
|
60
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
53
|
none: false
|
62
54
|
requirements:
|
63
55
|
- - ">="
|
64
56
|
- !ruby/object:Gem::Version
|
65
|
-
hash: 3
|
66
|
-
segments:
|
67
|
-
- 0
|
68
57
|
version: "0"
|
69
58
|
requirements: []
|
70
59
|
|
71
60
|
rubyforge_project: sham
|
72
|
-
rubygems_version: 1.
|
61
|
+
rubygems_version: 1.6.0
|
73
62
|
signing_key:
|
74
63
|
specification_version: 3
|
75
|
-
summary: sham-0.
|
64
|
+
summary: sham-0.5.0
|
76
65
|
test_files: []
|
77
66
|
|