application_service 0.1.0 → 0.1.1

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: 5d28447212552769da2282106d4ee835b5830395
4
- data.tar.gz: 0c9c255a4c143c1f3ad304dc4d95c6d28cd84425
3
+ metadata.gz: 2ea9d96c1487f20cee45f1421e59592512c26914
4
+ data.tar.gz: b124d237c1c23b06537347244f0f2dc4f354351f
5
5
  SHA512:
6
- metadata.gz: 0e8b38c72179ad67fa643140c9abd4918a7c6f22f0df2c3fce63afb297a0b59b650b214612db554f32fa727957375fc46bd919ee0fa1028246a4b5259b8272b8
7
- data.tar.gz: e365a15df17edf09af45e1a4fefa37ae1e0bfb14a6364aabfbd19665581a030dc663b0b2ea8ab0a9f4bda0d8ee15eb7d3d5fb54a8933d6eb6e174445e208c195
6
+ metadata.gz: 57cc688368a77a3c63f8460ed7d0c23377aa6755c1a8e4eb1de7fc0d71e260cb2270df93b5914257d6057ea7c82c0a3a871fb5eb7b387ba1247d9f85ba1b287f
7
+ data.tar.gz: eca9f180b7396e01087c74f6226f0b1dcb14cce4de79ba5cc9f15978ea2b1463b2cbff1119ad92f9cef4bad109934247d4f2b1a5d08258fccdd2d765b19ccdab
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: application_service 0.1.0 ruby lib
5
+ # stub: application_service 0.1.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "application_service"
9
- s.version = "0.1.0"
9
+ s.version = "0.1.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Nathan Woodhull"]
14
- s.date = "2014-07-14"
14
+ s.date = "2014-07-21"
15
15
  s.description = "A service layer scaffold for rails apps extracted from Agra"
16
16
  s.email = "woodhull@gmail.com"
17
17
  s.extra_rdoc_files = [
@@ -49,6 +49,9 @@ class ApplicationService
49
49
  def update_attributes(obj, params)
50
50
  @obj = obj
51
51
  @obj.assign_attributes(params)
52
+
53
+ yield if block_given?
54
+
52
55
  run_callbacks :save do
53
56
  run_callbacks :update do
54
57
  @obj.save
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: application_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Woodhull
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-14 00:00:00.000000000 Z
11
+ date: 2014-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport