resource_manager 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d90093d19855b845dacbc8b51ddab53c2855de1a
4
- data.tar.gz: 8756423753576d0dc3f8f77d152cc34870e75935
3
+ metadata.gz: ca47a34574bff820fa5de5fffafd1922250db9fd
4
+ data.tar.gz: 41ed5ad6d2252dc082001d89898b2296f2619e15
5
5
  SHA512:
6
- metadata.gz: 70ba929d26f9fd3e97c5366c19bda7905c2eb1cc596412564da987f605d80a767e6c29d9c6a1b040094d239744bcc5121341df0cf543fad44aeb424c316a6abf
7
- data.tar.gz: db1d94e4c6310f999166ced86ec4c9423a9cb77012322cd6c4a1a6bb2576c13e5fba7fe03bcd1f84a3a4bab6fb2ab91d8880b9cb02dbe5bf5ec29add5186a8d2
6
+ metadata.gz: 7bd257353d994a808fec5bc9c3cc4ff31e803bff31c6c9a4d590d868f3bd03bee1b35aa1dbbc8f6cf80e74bf75659a1bf833d5176e45738a44ba20bcf796e9b6
7
+ data.tar.gz: 6599659bdf811d9b6442e8aac1cd1cf3546f92873058356a9a16d5ec62ef7e6278452de01ceb40d8c74beb2a7c8ce502a5e89755c2512be89dac50ffeef4ef35
@@ -43,11 +43,11 @@ module ResourceManager
43
43
  instance_exec(params, &self.create_action)
44
44
  else
45
45
  item = model.new(params)
46
-
47
- yield(item, item.save) if block_given?
46
+ saved = item.save
47
+ yield(item, saved) if block_given?
48
48
  end
49
49
 
50
- run_callback(:after_create, item) if result
50
+ run_callback(:after_create, item) if saved
51
51
  result
52
52
  end
53
53
  end
@@ -1,3 +1,3 @@
1
1
  module ResourceManager
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resource_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Sinyavsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2014-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.7'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  description: Base for service objects that encapsulates model actions and callbacks
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - Gemfile
50
50
  - LICENSE
51
51
  - LICENSE.txt
@@ -65,17 +65,17 @@ require_paths:
65
65
  - lib
66
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.0.2
78
+ rubygems_version: 2.2.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Base for service objects that encapsulates model actions and callbacks