render_variant 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/lib/render_variant/partial_variant_extension.rb +20 -0
  5. data/lib/render_variant/railtie.rb +9 -0
  6. data/lib/render_variant/version.rb +3 -0
  7. data/lib/render_variant.rb +6 -0
  8. data/lib/tasks/render_variant_tasks.rake +4 -0
  9. data/test/dummy/README.rdoc +28 -0
  10. data/test/dummy/Rakefile +6 -0
  11. data/test/dummy/app/assets/javascripts/application.js +13 -0
  12. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  13. data/test/dummy/app/controllers/application_controller.rb +5 -0
  14. data/test/dummy/app/controllers/test_objs_controller.rb +10 -0
  15. data/test/dummy/app/helpers/application_helper.rb +2 -0
  16. data/test/dummy/app/models/test_obj.rb +2 -0
  17. data/test/dummy/app/views/layouts/application.html.erb +11 -0
  18. data/test/dummy/app/views/test_objs/_test_obj.html.erb +1 -0
  19. data/test/dummy/app/views/test_objs/_test_obj_medium.html.erb +1 -0
  20. data/test/dummy/app/views/test_objs/_test_obj_small.html.erb +1 -0
  21. data/test/dummy/app/views/test_objs/index.html.erb +21 -0
  22. data/test/dummy/bin/bundle +3 -0
  23. data/test/dummy/bin/rails +4 -0
  24. data/test/dummy/bin/rake +4 -0
  25. data/test/dummy/config/application.rb +23 -0
  26. data/test/dummy/config/boot.rb +5 -0
  27. data/test/dummy/config/database.yml +25 -0
  28. data/test/dummy/config/environment.rb +5 -0
  29. data/test/dummy/config/environments/development.rb +29 -0
  30. data/test/dummy/config/environments/production.rb +80 -0
  31. data/test/dummy/config/environments/test.rb +36 -0
  32. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  33. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  34. data/test/dummy/config/initializers/inflections.rb +16 -0
  35. data/test/dummy/config/initializers/mime_types.rb +5 -0
  36. data/test/dummy/config/initializers/secret_token.rb +12 -0
  37. data/test/dummy/config/initializers/session_store.rb +3 -0
  38. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  39. data/test/dummy/config/locales/en.yml +23 -0
  40. data/test/dummy/config/routes.rb +58 -0
  41. data/test/dummy/config.ru +4 -0
  42. data/test/dummy/db/development.sqlite3 +0 -0
  43. data/test/dummy/db/migrate/20131206162427_create_test_objs.rb +9 -0
  44. data/test/dummy/db/schema.rb +23 -0
  45. data/test/dummy/db/test.sqlite3 +0 -0
  46. data/test/dummy/log/development.log +15 -0
  47. data/test/dummy/log/test.log +315 -0
  48. data/test/dummy/public/404.html +58 -0
  49. data/test/dummy/public/422.html +58 -0
  50. data/test/dummy/public/500.html +57 -0
  51. data/test/dummy/public/favicon.ico +0 -0
  52. data/test/dummy/test/fixtures/test_objs.yml +14 -0
  53. data/test/integration/test_objs_controller_test.rb +20 -0
  54. data/test/test_helper.rb +26 -0
  55. metadata +171 -0
metadata ADDED
@@ -0,0 +1,171 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: render_variant
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - alex
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Addition of a :variant argument to ActionView's render function, allowing
42
+ the presentation of an object in multiple variants.
43
+ email:
44
+ - alex@avvo.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - lib/render_variant/partial_variant_extension.rb
50
+ - lib/render_variant/railtie.rb
51
+ - lib/render_variant/version.rb
52
+ - lib/render_variant.rb
53
+ - lib/tasks/render_variant_tasks.rake
54
+ - MIT-LICENSE
55
+ - Rakefile
56
+ - test/dummy/app/assets/javascripts/application.js
57
+ - test/dummy/app/assets/stylesheets/application.css
58
+ - test/dummy/app/controllers/application_controller.rb
59
+ - test/dummy/app/controllers/test_objs_controller.rb
60
+ - test/dummy/app/helpers/application_helper.rb
61
+ - test/dummy/app/models/test_obj.rb
62
+ - test/dummy/app/views/layouts/application.html.erb
63
+ - test/dummy/app/views/test_objs/_test_obj.html.erb
64
+ - test/dummy/app/views/test_objs/_test_obj_medium.html.erb
65
+ - test/dummy/app/views/test_objs/_test_obj_small.html.erb
66
+ - test/dummy/app/views/test_objs/index.html.erb
67
+ - test/dummy/bin/bundle
68
+ - test/dummy/bin/rails
69
+ - test/dummy/bin/rake
70
+ - test/dummy/config/application.rb
71
+ - test/dummy/config/boot.rb
72
+ - test/dummy/config/database.yml
73
+ - test/dummy/config/environment.rb
74
+ - test/dummy/config/environments/development.rb
75
+ - test/dummy/config/environments/production.rb
76
+ - test/dummy/config/environments/test.rb
77
+ - test/dummy/config/initializers/backtrace_silencers.rb
78
+ - test/dummy/config/initializers/filter_parameter_logging.rb
79
+ - test/dummy/config/initializers/inflections.rb
80
+ - test/dummy/config/initializers/mime_types.rb
81
+ - test/dummy/config/initializers/secret_token.rb
82
+ - test/dummy/config/initializers/session_store.rb
83
+ - test/dummy/config/initializers/wrap_parameters.rb
84
+ - test/dummy/config/locales/en.yml
85
+ - test/dummy/config/routes.rb
86
+ - test/dummy/config.ru
87
+ - test/dummy/db/development.sqlite3
88
+ - test/dummy/db/migrate/20131206162427_create_test_objs.rb
89
+ - test/dummy/db/schema.rb
90
+ - test/dummy/db/test.sqlite3
91
+ - test/dummy/log/development.log
92
+ - test/dummy/log/test.log
93
+ - test/dummy/public/404.html
94
+ - test/dummy/public/422.html
95
+ - test/dummy/public/500.html
96
+ - test/dummy/public/favicon.ico
97
+ - test/dummy/Rakefile
98
+ - test/dummy/README.rdoc
99
+ - test/dummy/test/fixtures/test_objs.yml
100
+ - test/integration/test_objs_controller_test.rb
101
+ - test/test_helper.rb
102
+ homepage: http://www.avvo.com
103
+ licenses: []
104
+ metadata: {}
105
+ post_install_message:
106
+ rdoc_options: []
107
+ require_paths:
108
+ - lib
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ requirements: []
120
+ rubyforge_project:
121
+ rubygems_version: 2.1.10
122
+ signing_key:
123
+ specification_version: 4
124
+ summary: Additional ActionView render functionality
125
+ test_files:
126
+ - test/dummy/app/assets/javascripts/application.js
127
+ - test/dummy/app/assets/stylesheets/application.css
128
+ - test/dummy/app/controllers/application_controller.rb
129
+ - test/dummy/app/controllers/test_objs_controller.rb
130
+ - test/dummy/app/helpers/application_helper.rb
131
+ - test/dummy/app/models/test_obj.rb
132
+ - test/dummy/app/views/layouts/application.html.erb
133
+ - test/dummy/app/views/test_objs/_test_obj.html.erb
134
+ - test/dummy/app/views/test_objs/_test_obj_medium.html.erb
135
+ - test/dummy/app/views/test_objs/_test_obj_small.html.erb
136
+ - test/dummy/app/views/test_objs/index.html.erb
137
+ - test/dummy/bin/bundle
138
+ - test/dummy/bin/rails
139
+ - test/dummy/bin/rake
140
+ - test/dummy/config/application.rb
141
+ - test/dummy/config/boot.rb
142
+ - test/dummy/config/database.yml
143
+ - test/dummy/config/environment.rb
144
+ - test/dummy/config/environments/development.rb
145
+ - test/dummy/config/environments/production.rb
146
+ - test/dummy/config/environments/test.rb
147
+ - test/dummy/config/initializers/backtrace_silencers.rb
148
+ - test/dummy/config/initializers/filter_parameter_logging.rb
149
+ - test/dummy/config/initializers/inflections.rb
150
+ - test/dummy/config/initializers/mime_types.rb
151
+ - test/dummy/config/initializers/secret_token.rb
152
+ - test/dummy/config/initializers/session_store.rb
153
+ - test/dummy/config/initializers/wrap_parameters.rb
154
+ - test/dummy/config/locales/en.yml
155
+ - test/dummy/config/routes.rb
156
+ - test/dummy/config.ru
157
+ - test/dummy/db/development.sqlite3
158
+ - test/dummy/db/migrate/20131206162427_create_test_objs.rb
159
+ - test/dummy/db/schema.rb
160
+ - test/dummy/db/test.sqlite3
161
+ - test/dummy/log/development.log
162
+ - test/dummy/log/test.log
163
+ - test/dummy/public/404.html
164
+ - test/dummy/public/422.html
165
+ - test/dummy/public/500.html
166
+ - test/dummy/public/favicon.ico
167
+ - test/dummy/Rakefile
168
+ - test/dummy/README.rdoc
169
+ - test/dummy/test/fixtures/test_objs.yml
170
+ - test/integration/test_objs_controller_test.rb
171
+ - test/test_helper.rb