resource_manager 0.0.1 → 0.0.2

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: bbce9166d689ff918807792caae7eacb6c0df155
4
- data.tar.gz: c67cdeee9ff59d77eac3040cb8944a64327113f4
3
+ metadata.gz: d90093d19855b845dacbc8b51ddab53c2855de1a
4
+ data.tar.gz: 8756423753576d0dc3f8f77d152cc34870e75935
5
5
  SHA512:
6
- metadata.gz: a5accd7d89bd4506714589ce773c3c2d1dab450f523d1b1175527b81cd43816f89bbe023c3848235c448ad32bc5abb0393034b16a07e58436e219ee1d2d6aede
7
- data.tar.gz: 1facfcbcd414c1370222f99d1ea4e8c053fa5ad279a530f215b1e24e079884548fb7704747861c641ea3a3f4b8a85411c713af9fa0d55274d82b92a2a9553b37
6
+ metadata.gz: 70ba929d26f9fd3e97c5366c19bda7905c2eb1cc596412564da987f605d80a767e6c29d9c6a1b040094d239744bcc5121341df0cf543fad44aeb424c316a6abf
7
+ data.tar.gz: db1d94e4c6310f999166ced86ec4c9423a9cb77012322cd6c4a1a6bb2576c13e5fba7fe03bcd1f84a3a4bab6fb2ab91d8880b9cb02dbe5bf5ec29add5186a8d2
@@ -1,3 +1,3 @@
1
1
  module ResourceManager
2
- VERSION = "0.0.1"
2
+ VERSION = '0.0.2'
3
3
  end
@@ -62,10 +62,11 @@ module ResourceManager
62
62
  else
63
63
  item.assign_attributes(params)
64
64
  changed = item.changed
65
- yield(item, item.save) if block_given?
65
+ saved = item.save
66
+ yield(item, saved) if block_given?
66
67
  end
67
68
 
68
- run_callback(:after_update, item, params, changed) if result
69
+ run_callback(:after_update, item, params, changed) if saved
69
70
  result
70
71
  end
71
72
  end
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'resource_manager/version'
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.1
4
+ version: 0.0.2
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-28 00:00:00.000000000 Z
11
+ date: 2014-10-29 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.2.2
78
+ rubygems_version: 2.0.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Base for service objects that encapsulates model actions and callbacks