gourami 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +17 -0
- data/.ruby-version +1 -1
- data/README.md +1 -1
- data/lib/gourami/attributes.rb +2 -2
- data/lib/gourami/version.rb +1 -1
- metadata +4 -4
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4786ed7265bcf16aca2b9fb9e4a695e84b6d7e31ebe5264870e8674f71a1115
|
4
|
+
data.tar.gz: dcd57424cf0af46cda99949e77051c70beb4204c4b85f82c8d4300ed229fb09b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a1811ded432ac060c4461dc790e2cb08f9b7779157f6533cb8d32c9e189f1a716c0824dcc6ca8764d8bf21a2c8bbd67d1822860d11fb5f3d37979a75a03451a
|
7
|
+
data.tar.gz: 7158387f0e394fe67f165df9a8e63aa2b8889d13e26e867d74048a68c9655cded3a181e731bddc4d73d6d087e60a5b83deea899ce7a5a5cbbee5311344a35a33
|
@@ -0,0 +1,17 @@
|
|
1
|
+
name: ci
|
2
|
+
on: [push]
|
3
|
+
jobs:
|
4
|
+
test:
|
5
|
+
runs-on: ubuntu-latest
|
6
|
+
steps:
|
7
|
+
- uses: actions/checkout@v2
|
8
|
+
- name: Set up Ruby
|
9
|
+
uses: ruby/setup-ruby@v1
|
10
|
+
with:
|
11
|
+
ruby-version: 2.6
|
12
|
+
- name: Install dependencies
|
13
|
+
run: bundle install
|
14
|
+
- name: Build Gem
|
15
|
+
run: gem build gourami.gemspec
|
16
|
+
- name: Run tests
|
17
|
+
run: bundle exec rake test
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.0
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Gourami
|
2
2
|
|
3
|
-
|
3
|
+
![Github Actions CI](https://github.com/Vydia/gourami/workflows/ci/badge.svg)
|
4
4
|
|
5
5
|
Keep your Routes, Controllers and Models thin with Plain Old Ruby Objects (PORO).
|
6
6
|
|
data/lib/gourami/attributes.rb
CHANGED
@@ -79,11 +79,11 @@ module Gourami
|
|
79
79
|
# @option options [Class]
|
80
80
|
# The Class of the type of this attribute. Can be any of String, Integer,
|
81
81
|
# Float, Array, Hash or :boolean.
|
82
|
-
def record(name, options = {})
|
82
|
+
def record(name, options = {}, &block)
|
83
83
|
define_method(:record) do
|
84
84
|
send(name)
|
85
85
|
end
|
86
|
-
attribute(name, options.merge(:skip => true, :record => true))
|
86
|
+
attribute(name, options.merge(:skip => true, :record => true), &block)
|
87
87
|
end
|
88
88
|
|
89
89
|
# Retrieve the list of attributes of the form.
|
data/lib/gourami/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gourami
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TSMMark
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -88,9 +88,9 @@ executables: []
|
|
88
88
|
extensions: []
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
|
+
- ".github/workflows/ci.yml"
|
91
92
|
- ".gitignore"
|
92
93
|
- ".ruby-version"
|
93
|
-
- ".travis.yml"
|
94
94
|
- CODE_OF_CONDUCT.md
|
95
95
|
- Gemfile
|
96
96
|
- LICENSE.txt
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
- !ruby/object:Gem::Version
|
135
135
|
version: '0'
|
136
136
|
requirements: []
|
137
|
-
rubygems_version: 3.
|
137
|
+
rubygems_version: 3.4.12
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Keep your Routes, Controllers and Models thin.
|