hexx 2.0.0 → 2.0.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: eaee6ebce4becce87383d4a646ad52738b07094e
4
- data.tar.gz: 843858ce7dd021925a335bcf78fe36c038605161
3
+ metadata.gz: e71da2454f5770b15da144731907f77d705259f6
4
+ data.tar.gz: 683c0e424c30d3a28fef7f0ceab28eae8421964f
5
5
  SHA512:
6
- metadata.gz: ec5ff9a06822630f60489fdaaea9a5ab20f01b6a130d7bfd9431a225a1f86597462adcb0d6e00ef0fb399bcf6c9c88c626d0b59c51458060ab65160e6ac45c6e
7
- data.tar.gz: c15800df267a557a08d00945ada1ea176349cf47eee331d6c94282fd8587f295daa82a6d786946cfea191d4e0d01301e8f2d6fd3e4efdbb9ccc76df080dce3f2
6
+ metadata.gz: 0ec0862dbf0553ecfcbb213bc266ef4aacf780dea390ddf42473a9068c937f269776e816e30dbe5623dd744c0e36a7e0c8ecaa2b8e9725593b422bf21b82c6be
7
+ data.tar.gz: 9549db59cfde983b9781bb2bd8a13ba68eefddaf7a75b04278d0b4b8b39ee197593062e0833a3dabcebdf91a9e412a2085ce31c22e961d3564951a3e066ac5ed
data/README.rdoc CHANGED
@@ -35,7 +35,7 @@ Service objects decouple business logics from both:
35
35
  * Delivery mechanism _controllers_ (such as Rails framework).
36
36
 
37
37
  Following object oriented architecture service objects exploit the
38
- **Observer** (Listener) pattern, using the
38
+ *Observer* (Listener) pattern, using the
39
39
  { Wisper }[https://github.com/krisleech/wisper] gem. A service doesn't
40
40
  return their result to caller but notifies its subscribers instead.
41
41
 
data/lib/hexx.rb CHANGED
@@ -1,7 +1,9 @@
1
1
  require "active_model"
2
2
  require "wisper"
3
- require "hexx/models"
4
- require "hexx/service"
3
+
4
+ # Gem files.
5
+ lib = File.dirname __FILE__
6
+ Dir[File.join(lib, "hexx/*.rb")].each { |file| require file }
5
7
 
6
8
  # Namespace for the gem.
7
9
  module Hexx
data/lib/hexx/models.rb CHANGED
@@ -1,4 +1,5 @@
1
- require "hexx/models/base_coercer"
1
+ lib = File.dirname __FILE__
2
+ Dir[File.join(lib, "models/**/*.rb")].each { |file| require file }
2
3
 
3
4
  module Hexx
4
5
 
data/lib/hexx/service.rb CHANGED
@@ -1,7 +1,5 @@
1
- require "hexx/service/messages"
2
- require "hexx/service/parameters"
3
- require "hexx/service/validations"
4
- require "hexx/service/transactions"
1
+ lib = File.dirname __FILE__
2
+ Dir[File.join(lib, "service/**/*.rb")].each { |file| require file }
5
3
 
6
4
  module Hexx
7
5
 
@@ -1,3 +1,5 @@
1
+ require_relative "message"
2
+
1
3
  module Hexx
2
4
  class Service
3
5
 
@@ -1,4 +1,4 @@
1
- require "hexx/service/message"
1
+ require_relative "message"
2
2
 
3
3
  module Hexx
4
4
  class Service
@@ -1,4 +1,4 @@
1
- require "hexx/service/invalid"
1
+ require_relative "invalid"
2
2
 
3
3
  module Hexx
4
4
  class Service
data/lib/hexx/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  module Hexx
3
3
 
4
4
  # Current release.
5
- VERSION = "2.0.0"
5
+ VERSION = "2.0.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexx
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin