eitil 1.1.39 → 1.2.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bec9e917368ae2247d207eabbf6d0f8280e4ac5d27999245f81bc6d47e7a1a8e
|
4
|
+
data.tar.gz: d5dac1b85a0dff5143180c0d49db8c6773a45539a4f799ddb07b18a6de657594
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f095b69404768be104b743042e746ea08713275ffb26d39bf7f3d35612c9fd9b2d84800ab304230b3c96cd0b4902e0bd9f8b32a2786016d6efb3b23dbe74b1a
|
7
|
+
data.tar.gz: f49522248b51c3a377469ef267c584fc5f855a57040e8e5e88cc87b092ae7bb0672e4b8acf1fd5f59166296c797f5c74d050791cb08cce1f5eebd1f8155cca28
|
@@ -6,7 +6,7 @@ Kernel.module_eval do
|
|
6
6
|
def args_to_h(local_binding, *local_vars)
|
7
7
|
|
8
8
|
local_vars.reject { |lvar| lvar == local_binding }
|
9
|
-
.reject { |lvar| lvar.to_s.
|
9
|
+
.reject { |lvar| lvar.to_s.start_with?('_') }
|
10
10
|
.map { |lvar| { "#{lvar}": local_binding.local_variable_get(lvar) } }
|
11
11
|
.inject &:merge
|
12
12
|
|
@@ -8,7 +8,7 @@ Kernel.module_eval do
|
|
8
8
|
|
9
9
|
def args_to_h!(*local_vars)
|
10
10
|
|
11
|
-
local_vars.reject { |lvar| lvar.to_s.
|
11
|
+
local_vars.reject { |lvar| lvar.to_s.start_with?('_') }
|
12
12
|
.map { |lvar| { "#{lvar}": binding.of_caller(2).local_variable_get(lvar) } }
|
13
13
|
.inject &:merge
|
14
14
|
|
data/lib/eitil/version.rb
CHANGED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
|
2
|
+
require 'pry'
|
3
|
+
require 'rails'
|
4
|
+
|
5
|
+
require 'eitil'
|
6
|
+
|
7
|
+
# Implement specs for other railties later on, start with eitil_core.
|
8
|
+
|
9
|
+
require "eitil_core/railtie"
|
10
|
+
# require "eitil_store/railtie"
|
11
|
+
# require "eitil_integrate/railtie"
|
12
|
+
# require "eitil_support/railtie"
|
13
|
+
# require "eitil_wrapper/railtie"
|
14
|
+
|
15
|
+
require "eitil_core"
|
16
|
+
# require "eitil_store"
|
17
|
+
# require "eitil_integrate"
|
18
|
+
# require "eitil_support"
|
19
|
+
# require "eitil_wrapper"
|
20
|
+
|
21
|
+
RSpec.configure do |config|
|
22
|
+
|
23
|
+
config.expect_with :rspec do |expectations|
|
24
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
25
|
+
end
|
26
|
+
|
27
|
+
config.mock_with :rspec do |mocks|
|
28
|
+
mocks.verify_partial_doubles = true
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
# This block is added by us: the new methods .pry_describe and .pry_it
|
34
|
+
# automatically start a pry session after running the spec, allowing
|
35
|
+
# you to inspect the application's post spec state.
|
36
|
+
RSpec.configure do |config|
|
37
|
+
|
38
|
+
config.alias_example_group_to :pry_describe, pry: true
|
39
|
+
config.alias_example_group_to :pry_context, pry: true
|
40
|
+
config.alias_example_to :pry_it, pry: true
|
41
|
+
config.alias_example_to :pry_example, pry: true
|
42
|
+
config.alias_example_to :pry_specify, pry: true
|
43
|
+
|
44
|
+
config.after(:example, pry: true) do |example|
|
45
|
+
require 'pry'
|
46
|
+
binding.pry
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
# This is added by us, in order to set the :documentation formatter,
|
52
|
+
# which gives quite a lot of information about the tests, as default
|
53
|
+
RSpec.configure do |config|
|
54
|
+
config.formatter = :documentation
|
55
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eitil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jurriaan Schrofer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -66,6 +66,48 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 5.0.2
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 5.0.2
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
69
111
|
description: "Eitil (eitje utility) never stops increasing your life's efficacy and
|
70
112
|
productivity, yay!\n Our gem currently exists of five seperate
|
71
113
|
layers (Railties), which can be integrated as standalone gems. \n This
|
@@ -205,6 +247,7 @@ files:
|
|
205
247
|
- lib/eitil/all.rb
|
206
248
|
- lib/eitil/railtie.rb
|
207
249
|
- lib/eitil/version.rb
|
250
|
+
- spec/spec_helper.rb
|
208
251
|
homepage: https://github.com/eitje-app/eitil_engine
|
209
252
|
licenses:
|
210
253
|
- MIT
|