run_simple_render 0.1.4 → 0.1.6
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 +4 -4
- data/.gitignore +1 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/encodings.xml +4 -0
- data/.idea/misc.xml +27 -0
- data/.idea/modules.xml +8 -0
- data/.idea/runConfigurations/Install_Gem.xml +26 -0
- data/.idea/run_simple_render.iml +52 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +6 -0
- data/README.md +7 -3
- data/lib/run_simple_render/version.rb +1 -1
- data/lib/run_simple_render.rb +10 -4
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4116b53090eb9b8372ff8af2d9ed192435fa07bc
|
4
|
+
data.tar.gz: d31ca140d111801b605998ef7ac33518a9857b85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afecb8aa8f558856afadcd08648955343b77c986f245c1a446495eeba7f096fbb5772786a49c1d88b764c2f49a626d5f30520af7b0babd889358a724f243766b
|
7
|
+
data.tar.gz: 4cd3ada16d4a7eb124ce2ac167b651a7c2cb92b2d2644694a8ae98c51b983a9b7ccffaa6a96d9f79b877c2aaa020dcd10e5bd96278d18f5d08ee2b495da716e7
|
data/.gitignore
CHANGED
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
run_simple_render
|
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build run_simple_render-0.1.4.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install run_simple_render-0.1.4.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.1.4 and build and push run_simple_render-0.1.4.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="DaemonCodeAnalyzer">
|
4
|
+
<disable_hints />
|
5
|
+
</component>
|
6
|
+
<component name="DependencyValidationManager">
|
7
|
+
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
8
|
+
</component>
|
9
|
+
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
|
10
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
11
|
+
<OptionsSetting value="true" id="Add" />
|
12
|
+
<OptionsSetting value="true" id="Remove" />
|
13
|
+
<OptionsSetting value="true" id="Checkout" />
|
14
|
+
<OptionsSetting value="true" id="Update" />
|
15
|
+
<OptionsSetting value="true" id="Status" />
|
16
|
+
<OptionsSetting value="true" id="Edit" />
|
17
|
+
<ConfirmationsSetting value="0" id="Add" />
|
18
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
19
|
+
</component>
|
20
|
+
<component name="ProjectModuleManager">
|
21
|
+
<modules />
|
22
|
+
</component>
|
23
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.1.1" project-jdk-type="RUBY_SDK" />
|
24
|
+
<component name="RunManager">
|
25
|
+
<list size="0" />
|
26
|
+
</component>
|
27
|
+
</project>
|
data/.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/run_simple_render.iml" filepath="$PROJECT_DIR$/.idea/run_simple_render.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<component name="ProjectRunConfigurationManager">
|
2
|
+
<configuration default="false" name="Install Gem" type="CommandRunConfigurationType" factoryName="Gem Command">
|
3
|
+
<module name="run_simple_render" />
|
4
|
+
<COMMAND_RUN_CONFIGURATION NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
5
|
+
<COMMAND_RUN_CONFIGURATION NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
6
|
+
<COMMAND_RUN_CONFIGURATION NAME="SHOULD_USE_SDK" VALUE="false" />
|
7
|
+
<COMMAND_RUN_CONFIGURATION NAME="ALTERN_SDK_NAME" VALUE="" />
|
8
|
+
<COMMAND_RUN_CONFIGURATION NAME="myPassParentEnvs" VALUE="true" />
|
9
|
+
<envs />
|
10
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
11
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
12
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
13
|
+
<COVERAGE_PATTERN ENABLED="true">
|
14
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
15
|
+
</COVERAGE_PATTERN>
|
16
|
+
</EXTENSION>
|
17
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
18
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="GEM_NAME" VALUE="bundler" />
|
19
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_NAME" VALUE="gem" />
|
20
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="install ./run_simple_render-0.1.4.gem" />
|
21
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="install ./run_simple_render-0.1.4.gem" />
|
22
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
23
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
24
|
+
<method />
|
25
|
+
</configuration>
|
26
|
+
</component>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="Ruby Gem">
|
5
|
+
<configuration>
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="$MODULE_DIR$/test" />
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="ModuleRunConfigurationManager">
|
13
|
+
<configuration default="false" name="Install Gem" type="CommandRunConfigurationType" factoryName="Gem Command">
|
14
|
+
<module name="run_simple_render" />
|
15
|
+
<COMMAND_RUN_CONFIGURATION NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
16
|
+
<COMMAND_RUN_CONFIGURATION NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
17
|
+
<COMMAND_RUN_CONFIGURATION NAME="SHOULD_USE_SDK" VALUE="false" />
|
18
|
+
<COMMAND_RUN_CONFIGURATION NAME="ALTERN_SDK_NAME" VALUE="" />
|
19
|
+
<COMMAND_RUN_CONFIGURATION NAME="myPassParentEnvs" VALUE="true" />
|
20
|
+
<envs />
|
21
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
22
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
23
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
24
|
+
<COVERAGE_PATTERN ENABLED="true">
|
25
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
26
|
+
</COVERAGE_PATTERN>
|
27
|
+
</EXTENSION>
|
28
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
29
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="GEM_NAME" VALUE="bundler" />
|
30
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_NAME" VALUE="gem" />
|
31
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="install ./run_simple_render-0.1.4.gem" />
|
32
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="install ./run_simple_render-0.1.4.gem" />
|
33
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
34
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
35
|
+
<method />
|
36
|
+
</configuration>
|
37
|
+
</component>
|
38
|
+
<component name="NewModuleRootManager">
|
39
|
+
<content url="file://$MODULE_DIR$">
|
40
|
+
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
41
|
+
</content>
|
42
|
+
<orderEntry type="inheritedJdk" />
|
43
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
44
|
+
<orderEntry type="library" scope="PROVIDED" name="activemodel (v3.2.21, RVM: ruby-2.1.1) [gem]" level="application" />
|
45
|
+
<orderEntry type="library" scope="PROVIDED" name="activesupport (v3.2.21, RVM: ruby-2.1.1) [gem]" level="application" />
|
46
|
+
<orderEntry type="library" scope="PROVIDED" name="builder (v3.0.4, RVM: ruby-2.1.1) [gem]" level="application" />
|
47
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.6.5, RVM: ruby-2.1.1) [gem]" level="application" />
|
48
|
+
<orderEntry type="library" scope="PROVIDED" name="i18n (v0.7.0, RVM: ruby-2.1.1) [gem]" level="application" />
|
49
|
+
<orderEntry type="library" scope="PROVIDED" name="multi_json (v1.11.0, RVM: ruby-2.1.1) [gem]" level="application" />
|
50
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-2.1.1) [gem]" level="application" />
|
51
|
+
</component>
|
52
|
+
</module>
|
data/.idea/vcs.xml
ADDED
data/README.md
CHANGED
@@ -13,7 +13,11 @@ c. bloating the models with presentation methods (bad practice)
|
|
13
13
|
|
14
14
|
d. a learning curve (this is extremely easy to use)
|
15
15
|
|
16
|
-
## Latest Update
|
16
|
+
## Latest Update
|
17
|
+
####May 2 2015)
|
18
|
+
+ Link to GitHub.com
|
19
|
+
####April 17 2015
|
20
|
+
+ Updates to documentation
|
17
21
|
+ Optionally pass arguments to the rendition. This will allow an even better reuse of the renditions
|
18
22
|
|
19
23
|
|
@@ -95,8 +99,8 @@ Or render a collection from the view ex. /app/views/renditions/company/all_user
|
|
95
99
|
</ul>
|
96
100
|
|
97
101
|
|
98
|
-
##
|
102
|
+
## GitHub
|
99
103
|
|
100
|
-
|
104
|
+
https://github.com/s1mpl3/run_simple_render
|
101
105
|
|
102
106
|
|
data/lib/run_simple_render.rb
CHANGED
@@ -4,10 +4,16 @@ module RunSimpleRender
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
6
|
included do
|
7
|
-
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
7
|
+
|
8
|
+
# Call any existing rendition
|
9
|
+
#
|
10
|
+
# @param path [Symbol] Optional. Defaults to :default
|
11
|
+
# @param args [Hash] Optional. Referencen in the rendition as args[:name]
|
12
|
+
# @return [String] Html generated by the rendition
|
13
|
+
#
|
14
|
+
# @example
|
15
|
+
# User.render(:card, args:{background_picture: 'nature.jpg'})
|
16
|
+
# User.render(:detail)
|
11
17
|
def render(path= :default, args: {}, layout: false )
|
12
18
|
unless path.nil?
|
13
19
|
if path.to_s.include?('/')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run_simple_render
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Iriso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -74,6 +74,15 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
+
- ".idea/.name"
|
78
|
+
- ".idea/.rakeTasks"
|
79
|
+
- ".idea/encodings.xml"
|
80
|
+
- ".idea/misc.xml"
|
81
|
+
- ".idea/modules.xml"
|
82
|
+
- ".idea/runConfigurations/Install_Gem.xml"
|
83
|
+
- ".idea/run_simple_render.iml"
|
84
|
+
- ".idea/scopes/scope_settings.xml"
|
85
|
+
- ".idea/vcs.xml"
|
77
86
|
- Gemfile
|
78
87
|
- LICENSE.txt
|
79
88
|
- README.md
|