pay_dirt 1.0.5 → 1.0.6

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 497b43e39556e1bd2161989fc36d09fd5bf90198
4
+ data.tar.gz: a32175d9aca9538979e4136b5284cf8cb7e1d45f
5
+ SHA512:
6
+ metadata.gz: 833a274e4dd2970dc8c2c658f79c9e68750d3209d6b9d2ffb7ce269afdd6e48e8463be589a91e799236904edaadc7bab0ad2fab10412922d6cb78376403fa3ba
7
+ data.tar.gz: b9057b19d1f34058b458b6c8f82b634cb676f003a8ccf65f55d5a3dff5d4593aa44b7d8de62bcb6294a24f0f74403da1bedc519eb5c8c40bffcaafd7554e8790
data/README.md CHANGED
@@ -25,6 +25,7 @@ $
25
25
  ```
26
26
 
27
27
  After installing, you can use your new generator *anywhere* you can use thor. It'll tell you **how it's used**:
28
+
28
29
  ```
29
30
  $ thor help pay_dirt:service_object:new
30
31
  Usage:
@@ -48,6 +49,7 @@ $ thor pay_dirt:service_object:new digit_check -d fingers toes -D fingers:10 toe
48
49
  ```
49
50
 
50
51
  Running the above generator will create the following file
52
+
51
53
  ```ruby
52
54
  require 'pay_dirt'
53
55
 
@@ -14,18 +14,18 @@ module PayDirt
14
14
  # PayDirt::Result.new(success: true, data: {})
15
15
  # # => <PayDirt::Result>
16
16
  #
17
- # @api public
17
+ # @public
18
18
  def initialize(options)
19
19
  @success = options[:success]
20
20
  @data = options[:data]
21
21
  end
22
22
 
23
- # @api public
23
+ # @public
24
24
  def successful?
25
25
  !!@success
26
26
  end
27
27
 
28
- # @api public
28
+ # @public
29
29
  def data
30
30
  @data
31
31
  end
@@ -1,15 +1,17 @@
1
1
  module PayDirt
2
2
  module UseCase
3
3
  def self.included(base)
4
- # @overload load_options(keys, options)
5
- # Sets instance variables for all provided key value pairs in +options+.
6
- # Raises error if required keys cannot be fond in options.
7
- # @param [List<String,Symbol>] keys a List of (Strings or Symbols) that must be contained in +options+
8
- # @param [Hash] options hash of options (dependencies)
9
- # @overload load_options(options)
10
- # Sets instance variables for all provided key value pairs in +options+
11
- # @param [Hash] options hash of options (dependencies)
12
- # @api public
4
+ # Load instance variables from the provided hash of dependencies.
5
+ #
6
+ # Raises if any required dependencies are missing from +options+ hash.
7
+ #
8
+ # @param [List<String,Symbol>]
9
+ # option_names list of keys representing required dependencies
10
+ #
11
+ # @param [Hash]
12
+ # options A hash of dependencies
13
+ #
14
+ # @public
13
15
  def load_options(*option_names, options)
14
16
  # Load required options
15
17
  option_names.each { |o| options = load_option(o, options) }
@@ -19,10 +21,7 @@ module PayDirt
19
21
  end
20
22
 
21
23
  private
22
- # @param [Symbol,String] option The option to load from the provided options hash.
23
- # @param [Hash] options The provided hash of options
24
- # @return [Hash] Deletes the key value pair at `option` and returns the remaining options hash
25
- # @api private
24
+ # @private
26
25
  def load_option(option, options)
27
26
  instance_variable_set("@#{option}", fetch(option, options))
28
27
  options.delete(option)
@@ -30,9 +29,7 @@ module PayDirt
30
29
  return options
31
30
  end
32
31
 
33
- # @param [Symbol, String] opt the key to fetch from +opts+
34
- # @param [Hash] opts the hash of options from which +opt+ will be fetched
35
- # @api private
32
+ # @private
36
33
  def fetch(opt, opts)
37
34
  opts.fetch(opt.to_sym) { raise "Missing required option: #{opt}" }
38
35
  end
@@ -1,3 +1,3 @@
1
1
  module PayDirt
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
data/pay_dirt.gemspec CHANGED
@@ -7,17 +7,18 @@ Gem::Specification.new do |s|
7
7
  s.version = PayDirt::VERSION
8
8
  s.authors = ["Tad Hosford"]
9
9
  s.email = ["tad.hosford@gmail.com"]
10
- s.homepage = "http://github.com/rthbound/pay_dirt"
11
- s.description = %q{
12
- Provides the basic building blocks
13
- of a pattern capable of reducing a
14
- towering codebase to modular rubble
15
- (or more Ruby gems)
16
- }
17
- s.summary = %q{
18
- Reduce a towering codebase to modular
19
- rubble (or more rubygems) with pay_dirt
20
- }
10
+ s.homepage = "http://ea.rthbound.com/pay_dirt"
11
+
12
+ s.description = <<-description
13
+ Provides the basic building blocks
14
+ of a pattern capable of reducing a
15
+ towering codebase to modular rubble
16
+ (or more Ruby gems)
17
+ description
18
+ s.summary = <<-summary
19
+ Reduce a towering codebase to modular
20
+ rubble (or more rubygems) with pay_dirt
21
+ summary
21
22
 
22
23
  s.files = `git ls-files`.split("\n")
23
24
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pay_dirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
5
- prerelease:
4
+ version: 1.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tad Hosford
@@ -14,70 +13,64 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: minitest
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: thor
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: coveralls
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
- description: ! "\n Provides the basic building blocks\n of
79
- a pattern capable of reducing a\n towering codebase to modular
80
- rubble\n (or more Ruby gems)\n "
69
+ description: |2
70
+ Provides the basic building blocks
71
+ of a pattern capable of reducing a
72
+ towering codebase to modular rubble
73
+ (or more Ruby gems)
81
74
  email:
82
75
  - tad.hosford@gmail.com
83
76
  executables: []
@@ -102,34 +95,27 @@ files:
102
95
  - test/unit/pay_dirt/base_test.rb
103
96
  - test/unit/pay_dirt/result_test.rb
104
97
  - test/unit/pay_dirt/use_case_test.rb
105
- homepage: http://github.com/rthbound/pay_dirt
98
+ homepage: http://ea.rthbound.com/pay_dirt
106
99
  licenses: []
100
+ metadata: {}
107
101
  post_install_message:
108
102
  rdoc_options: []
109
103
  require_paths:
110
104
  - lib
111
105
  required_ruby_version: !ruby/object:Gem::Requirement
112
- none: false
113
106
  requirements:
114
- - - ! '>='
107
+ - - '>='
115
108
  - !ruby/object:Gem::Version
116
109
  version: '0'
117
- segments:
118
- - 0
119
- hash: -935381315
120
110
  required_rubygems_version: !ruby/object:Gem::Requirement
121
- none: false
122
111
  requirements:
123
- - - ! '>='
112
+ - - '>='
124
113
  - !ruby/object:Gem::Version
125
114
  version: '0'
126
- segments:
127
- - 0
128
- hash: -935381315
129
115
  requirements: []
130
116
  rubyforge_project:
131
- rubygems_version: 1.8.25
117
+ rubygems_version: 2.0.3
132
118
  signing_key:
133
- specification_version: 3
119
+ specification_version: 4
134
120
  summary: Reduce a towering codebase to modular rubble (or more rubygems) with pay_dirt
135
121
  test_files: []