basic_assumption 0.3.4 → 0.3.5
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.
- data/LICENSE +19 -0
- data/README.rdoc +3 -1
- data/lib/basic_assumption/default_assumption.rb +1 -1
- data/lib/basic_assumption/version.rb +1 -1
- metadata +5 -3
data/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2010 Matt Yoho
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|
data/README.rdoc
CHANGED
|
@@ -6,7 +6,7 @@ methods that is useful in Rails applications.
|
|
|
6
6
|
|
|
7
7
|
=== What is DecentExposure?
|
|
8
8
|
|
|
9
|
-
It's a plugin written by {Stephen Cuadill}[http://
|
|
9
|
+
It's a plugin written by {Stephen Cuadill}[http://voxdolo.me/] that provides a way of
|
|
10
10
|
cleaning up Rails controller and view code. Find it at
|
|
11
11
|
{its GitHub repository}[http://github.com/voxdolo/decent_exposure].
|
|
12
12
|
|
|
@@ -198,6 +198,8 @@ manager. For example, if RubyGems:
|
|
|
198
198
|
|
|
199
199
|
export RUBYOPT=rubygems
|
|
200
200
|
|
|
201
|
+
If you're unfamiliar with why this is being done, take a look
|
|
202
|
+
{here for a start}[http://tomayko.com/writings/require-rubygems-antipattern].
|
|
201
203
|
Other than that, please feel free to fork and send back pull requests! Thanks.
|
|
202
204
|
|
|
203
205
|
== But should I use it?
|
|
@@ -16,7 +16,7 @@ module BasicAssumption
|
|
|
16
16
|
#
|
|
17
17
|
# === Providing custom default classes
|
|
18
18
|
#
|
|
19
|
-
# It is possible to pass a symbol
|
|
19
|
+
# It is possible to pass a symbol instead of a block to the
|
|
20
20
|
# +default_assumption+ call. BasicAssumption out of the box will understand
|
|
21
21
|
# the symbol :simple_rails as an option passed to +default_assumption+,
|
|
22
22
|
# and will use the block provided by an instance of
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 3
|
|
8
|
-
-
|
|
9
|
-
version: 0.3.
|
|
8
|
+
- 5
|
|
9
|
+
version: 0.3.5
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Matt Yoho
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-05-
|
|
17
|
+
date: 2010-05-26 00:00:00 -05:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -66,8 +66,10 @@ executables: []
|
|
|
66
66
|
extensions: []
|
|
67
67
|
|
|
68
68
|
extra_rdoc_files:
|
|
69
|
+
- LICENSE
|
|
69
70
|
- README.rdoc
|
|
70
71
|
files:
|
|
72
|
+
- LICENSE
|
|
71
73
|
- README.rdoc
|
|
72
74
|
- lib/basic_assumption.rb
|
|
73
75
|
- lib/basic_assumption/configuration.rb
|