fixit 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/fixit.gemspec +3 -3
- data/lib/fixit/fixit.rb +8 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06f9d580976dc6995a835703f5e3a21e5b1a3e02
|
|
4
|
+
data.tar.gz: 11cfd7a6bb178cbb8379e614a15a06208aff5621
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 560703e0ca510f0687609b413252227365450b9dd12d7803b5d56a0454b84eeb9edfbd40640d4d7a0592e7cb46d13e2b9a488ac04d07f9d6cf2a62fc526eecd6
|
|
7
|
+
data.tar.gz: 9e895dc0d93e74929b192d8f4a7e93cf655dd7391aeb81e1cd2d3c532665e27957b4059dd8a0cf5ff10834b2a584dcbef8367dd24a0d4c263ed54a4bfbe13d6e
|
data/fixit.gemspec
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "fixit"
|
|
3
|
-
s.version = "0.0.
|
|
3
|
+
s.version = "0.0.5"
|
|
4
4
|
s.platform = Gem::Platform::RUBY
|
|
5
5
|
s.summary = "simple fixture for rspec"
|
|
6
6
|
s.license = "MIT"
|
|
7
7
|
|
|
8
8
|
s.description = <<-EOF
|
|
9
9
|
Fixit provides a minimal interface for using fixuture.
|
|
10
|
-
Also see https://github.com/borot .
|
|
10
|
+
Also see https://github.com/borot/fixit .
|
|
11
11
|
EOF
|
|
12
12
|
|
|
13
13
|
s.files = Dir['{lib/**/*}'] +
|
|
@@ -16,5 +16,5 @@ EOF
|
|
|
16
16
|
|
|
17
17
|
s.author = 'Masato Ishimoto'
|
|
18
18
|
s.email = 'masato.ishimoto@gmail.com'
|
|
19
|
-
s.homepage = '
|
|
19
|
+
s.homepage = 'https://github.com/borot/fixit'
|
|
20
20
|
end
|
data/lib/fixit/fixit.rb
CHANGED
|
@@ -45,8 +45,14 @@ class Fixit
|
|
|
45
45
|
candidate[:attributes].each do |attr, val|
|
|
46
46
|
candidate[:obj].send("#{attr}=", val.is_a?(Proc) ? val.call : val)
|
|
47
47
|
end
|
|
48
|
-
|
|
49
|
-
assigneds[name]
|
|
48
|
+
|
|
49
|
+
assigneds[name] = obj = candidate[:obj]
|
|
50
|
+
|
|
51
|
+
if obj.respond_to? :save!
|
|
52
|
+
obj.save!
|
|
53
|
+
elsif obj.respond_to? :save
|
|
54
|
+
obj.save
|
|
55
|
+
end
|
|
50
56
|
end
|
|
51
57
|
end
|
|
52
58
|
|
metadata
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fixit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Masato Ishimoto
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-06-
|
|
11
|
+
date: 2013-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
Fixit provides a minimal interface for using fixuture.
|
|
15
|
-
Also see https://github.com/borot .
|
|
15
|
+
Also see https://github.com/borot/fixit .
|
|
16
16
|
email: masato.ishimoto@gmail.com
|
|
17
17
|
executables: []
|
|
18
18
|
extensions: []
|
|
@@ -23,7 +23,7 @@ files:
|
|
|
23
23
|
- fixit.gemspec
|
|
24
24
|
- Rakefile
|
|
25
25
|
- README.md
|
|
26
|
-
homepage:
|
|
26
|
+
homepage: https://github.com/borot/fixit
|
|
27
27
|
licenses:
|
|
28
28
|
- MIT
|
|
29
29
|
metadata: {}
|