activeviewmodel 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +15 -2
- data/activeviewmodel.gemspec +1 -1
- data/lib/activeviewmodel/base.rb +2 -0
- data/lib/activeviewmodel/version.rb +1 -1
- metadata +13 -25
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 02377c745104eab1c97c297cb98e56d301685407
|
4
|
+
data.tar.gz: 0a50176febf1bfb3bc1183d263097e9eb1a4c065
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f6b29784f5b21bc710f14a164ec67419637d42c76e7c801bfb7a460bc088db14bdfdef5de6202f47a76b0af4ccd019b4bcc051d9b5f06cdcc6d5f309cb09adb1
|
7
|
+
data.tar.gz: ce9d7d9b357895547c061220c8a27c5f87e3492dade91741729a7683d93eb0927643d92d7483c7a3f281047542f95d24ed31a28eb478417087273bbe2eaf8457
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ActiveViewModel
|
1
|
+
# ActiveViewModel [![Code Climate](https://codeclimate.com/github/tboyko/activeviewmodel.png)](https://codeclimate.com/github/tboyko/activeviewmodel)
|
2
2
|
|
3
3
|
Quickly create view models in Rails
|
4
4
|
|
@@ -6,7 +6,11 @@ Quickly create view models in Rails
|
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
|
9
|
+
gem 'activeviewmodel'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
10
14
|
|
11
15
|
## Usage
|
12
16
|
|
@@ -17,6 +21,15 @@ Create a view model class with the attributes you need. Just have it inherit `Ac
|
|
17
21
|
validates_presence_of :username, :password
|
18
22
|
end
|
19
23
|
|
24
|
+
### Internationalization
|
25
|
+
|
26
|
+
Add attribute definitions underneath this structure:
|
27
|
+
|
28
|
+
en:
|
29
|
+
activemodel:
|
30
|
+
[your_model_name]:
|
31
|
+
[your_model_attribute_name]: Nice Readable Attribute Name
|
32
|
+
|
20
33
|
|
21
34
|
## Contributing
|
22
35
|
|
data/activeviewmodel.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["taylorboyko@gmail.com"]
|
11
11
|
spec.description = %q{Quickly create view models in Rails}
|
12
12
|
spec.summary = %q{}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/tboyko/activeviewmodel"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
data/lib/activeviewmodel/base.rb
CHANGED
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeviewmodel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Taylor Boyko
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.3'
|
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: '1.3'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
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
|
description: Quickly create view models in Rails
|
@@ -50,7 +45,7 @@ executables: []
|
|
50
45
|
extensions: []
|
51
46
|
extra_rdoc_files: []
|
52
47
|
files:
|
53
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
54
49
|
- Gemfile
|
55
50
|
- LICENSE.txt
|
56
51
|
- README.md
|
@@ -59,35 +54,28 @@ files:
|
|
59
54
|
- lib/activeviewmodel.rb
|
60
55
|
- lib/activeviewmodel/base.rb
|
61
56
|
- lib/activeviewmodel/version.rb
|
62
|
-
homepage:
|
57
|
+
homepage: https://github.com/tboyko/activeviewmodel
|
63
58
|
licenses:
|
64
59
|
- MIT
|
60
|
+
metadata: {}
|
65
61
|
post_install_message:
|
66
62
|
rdoc_options: []
|
67
63
|
require_paths:
|
68
64
|
- lib
|
69
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
66
|
requirements:
|
72
|
-
- -
|
67
|
+
- - ">="
|
73
68
|
- !ruby/object:Gem::Version
|
74
69
|
version: '0'
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
hash: -4456750679132566991
|
78
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
71
|
requirements:
|
81
|
-
- -
|
72
|
+
- - ">="
|
82
73
|
- !ruby/object:Gem::Version
|
83
74
|
version: '0'
|
84
|
-
segments:
|
85
|
-
- 0
|
86
|
-
hash: -4456750679132566991
|
87
75
|
requirements: []
|
88
76
|
rubyforge_project:
|
89
|
-
rubygems_version:
|
77
|
+
rubygems_version: 2.6.6
|
90
78
|
signing_key:
|
91
|
-
specification_version:
|
79
|
+
specification_version: 4
|
92
80
|
summary: ''
|
93
81
|
test_files: []
|