run_simple_render 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73bf814a354e77b3c41f7552dba092bf45002136
4
- data.tar.gz: 1a1d6a16d35a199e172e0ff5c4fa7897c299567a
3
+ metadata.gz: 4116b53090eb9b8372ff8af2d9ed192435fa07bc
4
+ data.tar.gz: d31ca140d111801b605998ef7ac33518a9857b85
5
5
  SHA512:
6
- metadata.gz: 1f2e3645a595dadeddad3a467884423ef482d77b7f5abae9b0600637973c5262a42adf03fc8af8fa7ac47e26eb4e32031773911baef6cd5b136b301399c46e93
7
- data.tar.gz: b277be1330976f4d0190a51697b417e75d3624732f1a8180efaaa91a433859165e7127fcd67b7df9f895873e14be7ba174b8c1e58226a68791d87217c41bfbed
6
+ metadata.gz: afecb8aa8f558856afadcd08648955343b77c986f245c1a446495eeba7f096fbb5772786a49c1d88b764c2f49a626d5f30520af7b0babd889358a724f243766b
7
+ data.tar.gz: 4cd3ada16d4a7eb124ce2ac167b651a7c2cb92b2d2644694a8ae98c51b983a9b7ccffaa6a96d9f79b877c2aaa020dcd10e5bd96278d18f5d08ee2b495da716e7
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
+ /.idea/
3
4
  /Gemfile.lock
4
5
  /_yardoc/
5
6
  /coverage/
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>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
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>
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
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 (April 16 2015)
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
- ## Contributing
102
+ ## GitHub
99
103
 
100
- Coming soon!!
104
+ https://github.com/s1mpl3/run_simple_render
101
105
 
102
106
 
@@ -1,3 +1,3 @@
1
1
  module RunSimpleRender
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -4,10 +4,16 @@ module RunSimpleRender
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- # Runs a subprocess and applies handlers for stdout and stderr
8
- # Params:
9
- # +path+:: Optional. Name of the chosen rendition, defaults to :default
10
- # +args+:: Optional. Arguments passed to the rendition as a hash
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
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-04-17 00:00:00.000000000 Z
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