arbitrium 1.0.5 → 1.0.6

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: c2efbfac932311db8e460314e5639ae8963e078c
4
- data.tar.gz: c911ec4c7753eb79cdc9f034f380f0af39decc60
3
+ metadata.gz: ccdcbaae11fe1a749a26ab47573123c83161dfff
4
+ data.tar.gz: 88c517aebc565beda012db187c7f4f13ec6fb790
5
5
  SHA512:
6
- metadata.gz: 91a752564c95ed12e83491ce9aa52768ca9025a6882cc724108fe48c696946e092039e559fafcbff6200243533eaa7f051159dcc6214876dc4c0c8bd1b00ec57
7
- data.tar.gz: 56a4bc60e282a9da760152072ba4941731553fa52ec90cff831f11d585a45da06896a1a2e46f8efb544f8a8315c6a14bf6fd4630795aa3ddd2705738869f84bf
6
+ metadata.gz: e11c00d6b9bc034b9ead45019acc82fc8bacb6721ecc2c1dccef7aed43ac4e60921a7efedc73593b363fcc6a73b3ce0d0b550df1009640470edcf6a977abb25d
7
+ data.tar.gz: ae4b15782dc92cd0c025bac1f29270e0b7b61ac7bd2bc9005403bcd0e6eb225d3d2208b9462c4a5c15df89cbdbac93610baeb3758b5e96c9d49f330cbf6602fb
data/README.md CHANGED
@@ -27,10 +27,56 @@ Once you have the gem installed type `arbitrium -h` to see the different options
27
27
  Example Usage:
28
28
  ```
29
29
  arbitrium -f place/where/I/want/file.rb -m run -a Fake,Name
30
- # Results in the following file being created: [link.to.file]
30
+ # Results in the following file being created:
31
+
32
+ require 'arbitrium'
33
+
34
+ module Fake
35
+ module Name
36
+ class File
37
+ def self.run()
38
+ new().run
39
+ end
40
+
41
+ def initialize()
42
+ # insert instance variables here
43
+ end
44
+
45
+ def run
46
+ # define tasks needed to complete here
47
+ # next, define result of tasks
48
+ Arbitrium::Result.new()
49
+ end
50
+
51
+ private
52
+ # define methods from run here
53
+ end
54
+ end
55
+ end
31
56
 
32
57
  arbitrium -f place/where/I/want/file.rb
33
- # Results in the following file being created: [link.to.file]
58
+ # Results in the following file being created:
59
+
60
+ require 'arbitrium'
61
+
62
+ class File
63
+ def self.perform()
64
+ new().perform
65
+ end
66
+
67
+ def initialize()
68
+ # insert instance variables here
69
+ end
70
+
71
+ def perform
72
+ # define tasks needed to complete here
73
+ # next, define result of tasks
74
+ Arbitrium::Result.new()
75
+ end
76
+
77
+ private
78
+ # define methods from run here
79
+ end
34
80
  ```
35
81
 
36
82
  When using the command line generator make sure that you are always using the path from your current position in the file structure.
@@ -79,4 +125,4 @@ result.object # nil
79
125
 
80
126
  ## Contributing
81
127
 
82
- Bug reports and pull requests are welcome on GitHub at https://github.com/Lollar/arbitrium.
128
+ Bug reports and pull requests are welcome on GitHub at https://github.com/lollar/arbitrium.
data/arbitrium.gemspec CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables << 'arbitrium'
21
21
  spec.require_paths = ["lib"]
22
22
 
23
+ spec.required_ruby_version = '>= 2.3'
23
24
  spec.add_development_dependency "bundler", "~> 1.14"
24
25
  spec.add_development_dependency "rake", "~> 10.0"
25
26
  spec.add_development_dependency "rspec", "~> 3.0"
@@ -67,7 +67,7 @@ module Arbitrium
67
67
  end
68
68
 
69
69
  def class_header
70
- module_array.empty? ? "class #{class_name}" : "\n#{add_spaces(module_array.length)} class #{class_name}"
70
+ module_array.empty? ? "class #{class_name}" : "\n#{add_spaces(module_array.length)}class #{class_name}"
71
71
  end
72
72
 
73
73
  def add_spaces(value = modified_module_length)
@@ -75,7 +75,7 @@ module Arbitrium
75
75
  end
76
76
 
77
77
  def modified_module_length
78
- module_array.empty? ? 0 : module_array.length + 1
78
+ module_array.empty? ? 0 : module_array.length
79
79
  end
80
80
 
81
81
  def class_name
@@ -1,3 +1,3 @@
1
1
  module Arbitrium
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arbitrium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lollar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-03 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,7 +88,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - ">="
90
90
  - !ruby/object:Gem::Version
91
- version: '0'
91
+ version: '2.3'
92
92
  required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="