mokkku 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mokkku +4 -0
- data/lib/mokkku/version.rb +1 -1
- data/lib/mokkku.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bc74f6aa066c531790d02be4d8b461978dd586b0a8c3f4275b0e74d2d12d5c7
|
4
|
+
data.tar.gz: 630c84be5245471760c79f245caacc240b733cded99c11db2761fb9655d70a12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f738b67f66cc8dac9d73104eda8f01152cd173ecba1787f8b6be2acecf9f9726552cdcf51d0ab91de36db91c925872e93e122bae5a39abecb7a0c47ebea9eabb
|
7
|
+
data.tar.gz: dd6b831f50e46b375dafa703eb165f6be1f4dd6097f50201f7fdef5ab40f6b7364b30371f94acd8a088afe615891ebc37079372508828d06ffc0500c817e5097
|
data/bin/mokkku
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
require 'mokkku'
|
5
5
|
require 'optionparser'
|
6
|
+
require 'fileutils'
|
6
7
|
|
7
8
|
options = {}
|
8
9
|
|
@@ -38,6 +39,7 @@ OptionParser.new do |opts|
|
|
38
39
|
end
|
39
40
|
end.parse!
|
40
41
|
|
42
|
+
base_dir = Dir.pwd
|
41
43
|
# Load Rails project
|
42
44
|
begin
|
43
45
|
require File.join(base_dir, 'config', 'boot')
|
@@ -52,4 +54,6 @@ Rails.application.eager_load! if defined?(Rails)
|
|
52
54
|
# Rails 6 support
|
53
55
|
Zeitwerk::Loader.eager_load_all if defined?(Zeitwerk)
|
54
56
|
|
57
|
+
FileUtils.mkdir_p(File.join(base_dir, 'spec/mocks'))
|
58
|
+
|
55
59
|
Mokkku::Cli::Runner.start(options)
|
data/lib/mokkku/version.rb
CHANGED
data/lib/mokkku.rb
CHANGED
@@ -5,12 +5,14 @@ module Mokkku
|
|
5
5
|
extend Mokkku::Utils
|
6
6
|
|
7
7
|
class << self
|
8
|
-
|
8
|
+
attr_writer :configuration
|
9
|
+
|
10
|
+
def configuration
|
11
|
+
@configuration ||= Configuration.new
|
12
|
+
end
|
9
13
|
end
|
10
14
|
|
11
15
|
def self.configure
|
12
|
-
self.configuration ||= Configuration.new
|
13
|
-
|
14
16
|
yield(configuration)
|
15
17
|
end
|
16
18
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mokkku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paweł Dąbrowski
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
|
-
rubygems_version: 3.
|
127
|
+
rubygems_version: 3.2.32
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Generate mock data that is unique for your application
|