material 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/material/USAGE +11 -0
- data/lib/generators/material/list/USAGE +9 -0
- data/lib/generators/material/list/list_generator.rb +15 -0
- data/lib/generators/material/list/templates/list.rb.erb +4 -0
- data/lib/generators/material/material_generator.rb +18 -0
- data/lib/generators/material/templates/material.rb.erb +4 -0
- data/lib/generators/rspec/list/USAGE +8 -0
- data/lib/generators/rspec/list/list_generator.rb +13 -0
- data/lib/generators/rspec/list/templates/list_spec.rb.erb +9 -0
- data/lib/generators/rspec/material/USAGE +8 -0
- data/lib/generators/rspec/material/material_generator.rb +13 -0
- data/lib/generators/rspec/material/templates/material_spec.rb.erb +9 -0
- data/lib/material/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 829e842bd296febb415517624619080df2a8a9cd838e5efc3ba4357966dd2185
|
4
|
+
data.tar.gz: 06a84a9858a6788ef633ca6e6d13e4019a3f03651dbcb09ffc58cfce68d2aa6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7e1936b45f4019b3098b0445a9915f28f02a79942b7056b334d6f520298487af31d5143892a2d847abb4f1089eea25e013ba74aadc2a6e8cba7c660ed2047d7
|
7
|
+
data.tar.gz: 49a6ad076b235f9f3669a11b54a421371b47a9a89f4a59e337e948c2a5b7b43df7e152e187194eab23af6833d919aa1539b4a9d63b6ff30c2523f8686067c363
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Material
|
4
|
+
module Generators
|
5
|
+
class ListGenerator < Rails::Generators::NamedBase
|
6
|
+
source_root File.expand_path("templates", __dir__)
|
7
|
+
|
8
|
+
hook_for :test_framework
|
9
|
+
|
10
|
+
def create_application_state
|
11
|
+
template "list.rb.erb", File.join("app/lists/", class_path, "#{file_name}_list.rb")
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Material
|
4
|
+
module Generators
|
5
|
+
class MaterialGenerator < Rails::Generators::NamedBase
|
6
|
+
class_option :list, type: :boolean, default: true
|
7
|
+
|
8
|
+
source_root File.expand_path("templates", __dir__)
|
9
|
+
|
10
|
+
hook_for :list, as: "material:list"
|
11
|
+
hook_for :test_framework
|
12
|
+
|
13
|
+
def create_material
|
14
|
+
template "material.rb.erb", File.join("app/materials/", class_path, "#{file_name}_material.rb")
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Rspec
|
4
|
+
module Generators
|
5
|
+
class ListGenerator < Rails::Generators::NamedBase
|
6
|
+
source_root File.expand_path("templates", __dir__)
|
7
|
+
|
8
|
+
def create_spec_file
|
9
|
+
template "list_spec.rb.erb", File.join("spec/lists/", class_path, "#{file_name}_list_spec.rb")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Rspec
|
4
|
+
module Generators
|
5
|
+
class MaterialGenerator < Rails::Generators::NamedBase
|
6
|
+
source_root File.expand_path("templates", __dir__)
|
7
|
+
|
8
|
+
def create_spec_file
|
9
|
+
template "material_spec.rb.erb", File.join("spec/materials/", class_path, "#{file_name}_material_spec.rb")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/material/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: material
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Garside
|
8
|
+
- Brandon Trumpold
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2020-
|
12
|
+
date: 2020-04-10 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: activesupport
|
@@ -172,12 +173,25 @@ description: An extensible and lightweight object which defines how your objects
|
|
172
173
|
viewed.
|
173
174
|
email:
|
174
175
|
- garside@gmail.com
|
176
|
+
- brandon.trumpold@gmail.com
|
175
177
|
executables: []
|
176
178
|
extensions: []
|
177
179
|
extra_rdoc_files: []
|
178
180
|
files:
|
179
181
|
- LICENSE.txt
|
180
182
|
- README.md
|
183
|
+
- lib/generators/material/USAGE
|
184
|
+
- lib/generators/material/list/USAGE
|
185
|
+
- lib/generators/material/list/list_generator.rb
|
186
|
+
- lib/generators/material/list/templates/list.rb.erb
|
187
|
+
- lib/generators/material/material_generator.rb
|
188
|
+
- lib/generators/material/templates/material.rb.erb
|
189
|
+
- lib/generators/rspec/list/USAGE
|
190
|
+
- lib/generators/rspec/list/list_generator.rb
|
191
|
+
- lib/generators/rspec/list/templates/list_spec.rb.erb
|
192
|
+
- lib/generators/rspec/material/USAGE
|
193
|
+
- lib/generators/rspec/material/material_generator.rb
|
194
|
+
- lib/generators/rspec/material/templates/material_spec.rb.erb
|
181
195
|
- lib/material.rb
|
182
196
|
- lib/material/base.rb
|
183
197
|
- lib/material/concerns/attributes.rb
|
@@ -214,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
228
|
- !ruby/object:Gem::Version
|
215
229
|
version: '0'
|
216
230
|
requirements: []
|
217
|
-
rubygems_version: 3.
|
231
|
+
rubygems_version: 3.1.2
|
218
232
|
signing_key:
|
219
233
|
specification_version: 4
|
220
234
|
summary: Wrap your records with a presentation layer without cannibalizing view responsibility.
|