feature_pack 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -0
  3. data/lib/feature_pack.rb +9 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b2b181d20483601489269c26d34f83436468036d398eb0edba87c63e63967f2
4
- data.tar.gz: 9d92cea751de537e7728c7883980d41bbe3e555cf19cdfb6184f47b36ee31f6b
3
+ metadata.gz: a23dab74045521da6f6195a32de0488b7b06c486e6c8761cae51e3b9c99fa19c
4
+ data.tar.gz: 3e4f1e817575fadbf590fb1ab06882d297f6bacac5deb2a3386a4a338881b5d8
5
5
  SHA512:
6
- metadata.gz: 98547406e8fe2b601e209a930807f725d745b9cf5bb725f79171f1bc96082d6cdbb510db9fd38e248f0807f18fc5b0c710d84a6b4458b207e5c8514b9e86f548
7
- data.tar.gz: 121aecadd6a795ffe615b1209bd14d295ccf9bb89b466f84fc6018ac1e2ae2174aa7d56675c7b2c37619cef1742652aae548a2d543f7f992a431b01c3b232f23
6
+ metadata.gz: 848a1bb410d23e07a400821552e2ac6f0c48325c522dfce9120f6011ed54501c6976525191619b49ed512f076dbb61b0f6537d932f4bce54df3127bccb501d68
7
+ data.tar.gz: 2776ee2dd7ebf44304cdd3420d6068dee0ef0422c44b02f3dfc5734b117fd27c2733c0a973fb3cfcfcde3674d1ef1ced76630840965d2373fc655e96fb1ae723
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Feature Pack
2
2
  Organizes and sets up the architecture of micro-applications within a Rails application, enabling the segregation of code, management, and isolation of functionalities, which can be developed, tested, and maintained independently of each other.
3
3
 
4
+
5
+ ## Javascript
6
+ `Javascript` must be on the FeaturePack root dir, not inside views dir.
7
+
4
8
  ## Installation
5
9
  Meanwhile installer isn't done, follow the steps below to install FeaturePack GEM:
6
10
 
data/lib/feature_pack.rb CHANGED
@@ -65,6 +65,15 @@ module FeaturePack
65
65
  def group.feature(feature_name) = features.find { |p| p.name.eql?(feature_name) }
66
66
  def group.views_path = "#{base_dir}/#{GROUP_METADATA_DIRECTORY}/views"
67
67
  def group.view(view_name) = "#{base_dir}/#{GROUP_METADATA_DIRECTORY}/views/#{view_name}"
68
+ def group.javascript(javascript_file_name) = "#{base_dir}/#{GROUP_METADATA_DIRECTORY}/javascript/#{javascript_file_name}"
69
+
70
+ # FIX-ME (decouple Params class)
71
+ # def group.params_class = "#{name.name.camelize}::Params".constantize
72
+ # def group.manifest_class = "#{name.name.camelize}::Manifest".constantize
73
+
74
+ # FIX-ME (decouple Params class)
75
+ # def group.params = params_class.new(group.manifest)
76
+ # def group.manifest = manifest
68
77
 
69
78
  group
70
79
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feature_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gedean Dias