attribute-filters 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/.rspec +1 -0
- data/.yardopts +10 -0
- data/ChangeLog +23 -0
- data/LGPL-LICENSE +169 -0
- data/Manifest.txt +27 -0
- data/README.rdoc +87 -0
- data/Rakefile +90 -0
- data/attribute-filters.gemspec +61 -0
- data/docs/COPYING +57 -0
- data/docs/HISTORY +6 -0
- data/docs/LEGAL +11 -0
- data/docs/LGPL-LICENSE +166 -0
- data/docs/TODO +6 -0
- data/docs/rdoc.css +20 -0
- data/init.rb +1 -0
- data/lib/attribute-filters/attribute_set.rb +18 -0
- data/lib/attribute-filters/attribute_set_query.rb +90 -0
- data/lib/attribute-filters/common_filters.rb +4 -0
- data/lib/attribute-filters/dsl_filters.rb +145 -0
- data/lib/attribute-filters/dsl_sets.rb +104 -0
- data/lib/attribute-filters/railtie.rb +46 -0
- data/lib/attribute-filters/version.rb +24 -0
- data/lib/attribute-filters.rb +11 -0
- data/spec/attribute-filters_spec.rb +5 -0
- data/spec/spec_helper.rb +2 -0
- data.tar.gz.sig +0 -0
- metadata +215 -0
- metadata.gz.sig +0 -0
data/.gemtest
ADDED
File without changes
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--format nested --color
|
data/.yardopts
ADDED
data/ChangeLog
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
commit 4b39fb3796755869d6ea0321b7d9d55d62d91580
|
2
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
3
|
+
Date: Thu Jun 28 02:00:46 2012 +0200
|
4
|
+
|
5
|
+
Documentation updated
|
6
|
+
|
7
|
+
commit 2c82ceb91cab6ba3cc8dc374a1c68387a975d2d2
|
8
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
9
|
+
Date: Thu Jun 28 01:49:51 2012 +0200
|
10
|
+
|
11
|
+
Added Hoe.gemspec plug-in, regenerated gemspec, ChangeLog and Gemfile
|
12
|
+
|
13
|
+
commit 3717755cb114110229278ab6c03f8471a87535cc
|
14
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
15
|
+
Date: Thu Jun 28 01:37:50 2012 +0200
|
16
|
+
|
17
|
+
Updated Manifest.txt
|
18
|
+
|
19
|
+
commit 13fa88c39644ed991a52ebe5cccce8c384cbd152
|
20
|
+
Author: Paweł Wilk <siefca@gnu.org>
|
21
|
+
Date: Thu Jun 28 01:36:21 2012 +0200
|
22
|
+
|
23
|
+
Initial revision
|
data/LGPL-LICENSE
ADDED
@@ -0,0 +1,169 @@
|
|
1
|
+
<tt>
|
2
|
+
|
3
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
4
|
+
Version 3, 29 June 2007
|
5
|
+
|
6
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
7
|
+
Everyone is permitted to copy and distribute verbatim copies
|
8
|
+
of this license document, but changing it is not allowed.
|
9
|
+
|
10
|
+
|
11
|
+
This version of the GNU Lesser General Public License incorporates
|
12
|
+
the terms and conditions of version 3 of the GNU General Public
|
13
|
+
License, supplemented by the additional permissions listed below.
|
14
|
+
|
15
|
+
0. Additional Definitions.
|
16
|
+
|
17
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
18
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
19
|
+
General Public License.
|
20
|
+
|
21
|
+
"The Library" refers to a covered work governed by this License,
|
22
|
+
other than an Application or a Combined Work as defined below.
|
23
|
+
|
24
|
+
An "Application" is any work that makes use of an interface provided
|
25
|
+
by the Library, but which is not otherwise based on the Library.
|
26
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
27
|
+
of using an interface provided by the Library.
|
28
|
+
|
29
|
+
A "Combined Work" is a work produced by combining or linking an
|
30
|
+
Application with the Library. The particular version of the Library
|
31
|
+
with which the Combined Work was made is also called the "Linked
|
32
|
+
Version".
|
33
|
+
|
34
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
35
|
+
Corresponding Source for the Combined Work, excluding any source code
|
36
|
+
for portions of the Combined Work that, considered in isolation, are
|
37
|
+
based on the Application, and not on the Linked Version.
|
38
|
+
|
39
|
+
The "Corresponding Application Code" for a Combined Work means the
|
40
|
+
object code and/or source code for the Application, including any data
|
41
|
+
and utility programs needed for reproducing the Combined Work from the
|
42
|
+
Application, but excluding the System Libraries of the Combined Work.
|
43
|
+
|
44
|
+
1. Exception to Section 3 of the GNU GPL.
|
45
|
+
|
46
|
+
You may convey a covered work under sections 3 and 4 of this License
|
47
|
+
without being bound by section 3 of the GNU GPL.
|
48
|
+
|
49
|
+
2. Conveying Modified Versions.
|
50
|
+
|
51
|
+
If you modify a copy of the Library, and, in your modifications, a
|
52
|
+
facility refers to a function or data to be supplied by an Application
|
53
|
+
that uses the facility (other than as an argument passed when the
|
54
|
+
facility is invoked), then you may convey a copy of the modified
|
55
|
+
version:
|
56
|
+
|
57
|
+
a) under this License, provided that you make a good faith effort to
|
58
|
+
ensure that, in the event an Application does not supply the
|
59
|
+
function or data, the facility still operates, and performs
|
60
|
+
whatever part of its purpose remains meaningful, or
|
61
|
+
|
62
|
+
b) under the GNU GPL, with none of the additional permissions of
|
63
|
+
this License applicable to that copy.
|
64
|
+
|
65
|
+
3. Object Code Incorporating Material from Library Header Files.
|
66
|
+
|
67
|
+
The object code form of an Application may incorporate material from
|
68
|
+
a header file that is part of the Library. You may convey such object
|
69
|
+
code under terms of your choice, provided that, if the incorporated
|
70
|
+
material is not limited to numerical parameters, data structure
|
71
|
+
layouts and accessors, or small macros, inline functions and templates
|
72
|
+
(ten or fewer lines in length), you do both of the following:
|
73
|
+
|
74
|
+
a) Give prominent notice with each copy of the object code that the
|
75
|
+
Library is used in it and that the Library and its use are
|
76
|
+
covered by this License.
|
77
|
+
|
78
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
79
|
+
document.
|
80
|
+
|
81
|
+
4. Combined Works.
|
82
|
+
|
83
|
+
You may convey a Combined Work under terms of your choice that,
|
84
|
+
taken together, effectively do not restrict modification of the
|
85
|
+
portions of the Library contained in the Combined Work and reverse
|
86
|
+
engineering for debugging such modifications, if you also do each of
|
87
|
+
the following:
|
88
|
+
|
89
|
+
a) Give prominent notice with each copy of the Combined Work that
|
90
|
+
the Library is used in it and that the Library and its use are
|
91
|
+
covered by this License.
|
92
|
+
|
93
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
94
|
+
document.
|
95
|
+
|
96
|
+
c) For a Combined Work that displays copyright notices during
|
97
|
+
execution, include the copyright notice for the Library among
|
98
|
+
these notices, as well as a reference directing the user to the
|
99
|
+
copies of the GNU GPL and this license document.
|
100
|
+
|
101
|
+
d) Do one of the following:
|
102
|
+
|
103
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
104
|
+
License, and the Corresponding Application Code in a form
|
105
|
+
suitable for, and under terms that permit, the user to
|
106
|
+
recombine or relink the Application with a modified version of
|
107
|
+
the Linked Version to produce a modified Combined Work, in the
|
108
|
+
manner specified by section 6 of the GNU GPL for conveying
|
109
|
+
Corresponding Source.
|
110
|
+
|
111
|
+
1) Use a suitable shared library mechanism for linking with the
|
112
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
113
|
+
a copy of the Library already present on the user's computer
|
114
|
+
system, and (b) will operate properly with a modified version
|
115
|
+
of the Library that is interface-compatible with the Linked
|
116
|
+
Version.
|
117
|
+
|
118
|
+
e) Provide Installation Information, but only if you would otherwise
|
119
|
+
be required to provide such information under section 6 of the
|
120
|
+
GNU GPL, and only to the extent that such information is
|
121
|
+
necessary to install and execute a modified version of the
|
122
|
+
Combined Work produced by recombining or relinking the
|
123
|
+
Application with a modified version of the Linked Version. (If
|
124
|
+
you use option 4d0, the Installation Information must accompany
|
125
|
+
the Minimal Corresponding Source and Corresponding Application
|
126
|
+
Code. If you use option 4d1, you must provide the Installation
|
127
|
+
Information in the manner specified by section 6 of the GNU GPL
|
128
|
+
for conveying Corresponding Source.)
|
129
|
+
|
130
|
+
5. Combined Libraries.
|
131
|
+
|
132
|
+
You may place library facilities that are a work based on the
|
133
|
+
Library side by side in a single library together with other library
|
134
|
+
facilities that are not Applications and are not covered by this
|
135
|
+
License, and convey such a combined library under terms of your
|
136
|
+
choice, if you do both of the following:
|
137
|
+
|
138
|
+
a) Accompany the combined library with a copy of the same work based
|
139
|
+
on the Library, uncombined with any other library facilities,
|
140
|
+
conveyed under the terms of this License.
|
141
|
+
|
142
|
+
b) Give prominent notice with the combined library that part of it
|
143
|
+
is a work based on the Library, and explaining where to find the
|
144
|
+
accompanying uncombined form of the same work.
|
145
|
+
|
146
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
147
|
+
|
148
|
+
The Free Software Foundation may publish revised and/or new versions
|
149
|
+
of the GNU Lesser General Public License from time to time. Such new
|
150
|
+
versions will be similar in spirit to the present version, but may
|
151
|
+
differ in detail to address new problems or concerns.
|
152
|
+
|
153
|
+
Each version is given a distinguishing version number. If the
|
154
|
+
Library as you received it specifies that a certain numbered version
|
155
|
+
of the GNU Lesser General Public License "or any later version"
|
156
|
+
applies to it, you have the option of following the terms and
|
157
|
+
conditions either of that published version or of any later version
|
158
|
+
published by the Free Software Foundation. If the Library as you
|
159
|
+
received it does not specify a version number of the GNU Lesser
|
160
|
+
General Public License, you may choose any version of the GNU Lesser
|
161
|
+
General Public License ever published by the Free Software Foundation.
|
162
|
+
|
163
|
+
If the Library as you received it specifies that a proxy can decide
|
164
|
+
whether future versions of the GNU Lesser General Public License shall
|
165
|
+
apply, that proxy's public statement of acceptance of any version is
|
166
|
+
permanent authorization for you to choose that version for the
|
167
|
+
Library.
|
168
|
+
|
169
|
+
</tt>
|
data/Manifest.txt
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
.rspec
|
2
|
+
.yardopts
|
3
|
+
ChangeLog
|
4
|
+
Gemfile
|
5
|
+
Gemfile.lock
|
6
|
+
LGPL-LICENSE
|
7
|
+
Manifest.txt
|
8
|
+
README.rdoc
|
9
|
+
Rakefile
|
10
|
+
attribute-filters.gemspec
|
11
|
+
docs/COPYING
|
12
|
+
docs/HISTORY
|
13
|
+
docs/LEGAL
|
14
|
+
docs/LGPL-LICENSE
|
15
|
+
docs/TODO
|
16
|
+
docs/rdoc.css
|
17
|
+
init.rb
|
18
|
+
lib/attribute-filters.rb
|
19
|
+
lib/attribute-filters/attribute_set.rb
|
20
|
+
lib/attribute-filters/attribute_set_query.rb
|
21
|
+
lib/attribute-filters/common_filters.rb
|
22
|
+
lib/attribute-filters/dsl_filters.rb
|
23
|
+
lib/attribute-filters/dsl_sets.rb
|
24
|
+
lib/attribute-filters/railtie.rb
|
25
|
+
lib/attribute-filters/version.rb
|
26
|
+
spec/attribute-filters_spec.rb
|
27
|
+
spec/spec_helper.rb
|
data/README.rdoc
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
= Attribute Filters for Rails
|
2
|
+
|
3
|
+
<b>attribute-filters version <tt>1.0.0</tt></b> (<b><tt>Sugar, ah honey honey</tt></b>)
|
4
|
+
|
5
|
+
<b>THIS IS BETA!</b>
|
6
|
+
|
7
|
+
* https://rubygems.org/gems/attribute-filters
|
8
|
+
* https://github.com/siefca/attribute-filters/tree
|
9
|
+
* mailto:pw@gnu.org
|
10
|
+
|
11
|
+
|
12
|
+
== Summary
|
13
|
+
|
14
|
+
Attribute Filters adds couple of DSL keywords and some syntactic sugar
|
15
|
+
to Rails thereby allowing you to express filtering and groupping
|
16
|
+
model attributes in a concise and clean way.
|
17
|
+
|
18
|
+
== Synopsis
|
19
|
+
|
20
|
+
=== Before
|
21
|
+
|
22
|
+
|
23
|
+
=== After
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
== How?
|
28
|
+
|
29
|
+
* See {USAGE}[http://rubydoc.info/gems/attribute-filters/file/docs/USAGE] for detailed information about the usage.
|
30
|
+
* See {whole documentation}[http://rubydoc.info/gems/attribute-filters/] to browse all documents.
|
31
|
+
|
32
|
+
== Requirements
|
33
|
+
|
34
|
+
* activemodel[https://rubygems.org/gems/activemodel]
|
35
|
+
* rake[https://rubygems.org/gems/rake]
|
36
|
+
* rubygems[http://docs.rubygems.org/]
|
37
|
+
* bundler[http://gembundler.com/]
|
38
|
+
|
39
|
+
== Download
|
40
|
+
|
41
|
+
==== Source code
|
42
|
+
|
43
|
+
* https://github.com/siefca/attribute-filters/tree
|
44
|
+
* <tt>git clone git://github.com/siefca/attribute-filters.git</tt>
|
45
|
+
|
46
|
+
==== Gem
|
47
|
+
|
48
|
+
* https://rubygems.org/gems/attribute-filters
|
49
|
+
|
50
|
+
== Installation
|
51
|
+
|
52
|
+
* <tt>gem install attribute-filters</tt>
|
53
|
+
|
54
|
+
== Specs
|
55
|
+
|
56
|
+
You can run RSpec examples both with
|
57
|
+
|
58
|
+
* <tt>rake spec</tt> or just <tt>rake</tt>
|
59
|
+
* run a test file directly, e.g. <tt>ruby -Ilib -Ispec spec/attribute-filters_spec.rb</tt>
|
60
|
+
|
61
|
+
== Common rake tasks
|
62
|
+
|
63
|
+
* <tt>bundle exec rake bundler:gemfile</tt> – regenerate the +Gemfile+
|
64
|
+
* <tt>bundle exec rake docs</tt> – render the documentation (output in the subdirectory directory +doc+)
|
65
|
+
* <tt>bundle exec rake gem</tt> – builds package (output in the subdirectory +pkg+)
|
66
|
+
* <tt>bundle exec rake test</tt> – performs tests
|
67
|
+
* <tt>bundle exec rake Manifest.txt</tt> – regenerates the +Manifest.txt+ file
|
68
|
+
* <tt>bundle exec rake ChangeLog</tt> – regenerates the +ChangeLog+ file
|
69
|
+
|
70
|
+
== Credits
|
71
|
+
|
72
|
+
{iConsulting}[http://www.iconsulting.pl/] supports Free Software and has
|
73
|
+
contributed to this library by paying for me to eat when I've been coding.
|
74
|
+
|
75
|
+
== License
|
76
|
+
|
77
|
+
Copyright (c) 2012 by Paweł Wilk.
|
78
|
+
|
79
|
+
attribute-filters is copyrighted software owned by Paweł Wilk (pw@gnu.org).
|
80
|
+
You may redistribute and/or modify this software as long as you
|
81
|
+
comply with either the terms of the LGPL (see {file:docs/LGPL}),
|
82
|
+
or Ruby's license (see {file:docs/COPYING}).
|
83
|
+
|
84
|
+
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS
|
85
|
+
OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION,
|
86
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
87
|
+
FOR A PARTICULAR PURPOSE.
|
data/Rakefile
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# -*- ruby -*-
|
3
|
+
|
4
|
+
$:.unshift File.join(File.dirname(__FILE__), "lib")
|
5
|
+
|
6
|
+
require 'rubygems'
|
7
|
+
require 'bundler/setup'
|
8
|
+
|
9
|
+
require "rake"
|
10
|
+
require "rake/clean"
|
11
|
+
|
12
|
+
require "fileutils"
|
13
|
+
require "attribute-filters"
|
14
|
+
|
15
|
+
require 'attribute-filters/version'
|
16
|
+
require 'hoe'
|
17
|
+
|
18
|
+
task :default => [:test]
|
19
|
+
|
20
|
+
desc "install by setup.rb"
|
21
|
+
task :install do
|
22
|
+
sh "sudo ruby setup.rb install"
|
23
|
+
end
|
24
|
+
|
25
|
+
### Gem
|
26
|
+
|
27
|
+
if !defined?(YAML::ENGINE).nil? && YAML::ENGINE.respond_to?(:yamler)
|
28
|
+
YAML::ENGINE.yamler = 'syck'
|
29
|
+
end
|
30
|
+
|
31
|
+
Hoe.plugin :bundler
|
32
|
+
Hoe.plugin :yard
|
33
|
+
Hoe.plugin :gemspec
|
34
|
+
|
35
|
+
Hoe.spec 'attribute-filters' do
|
36
|
+
developer AttributeFilters::DEVELOPER, AttributeFilters::EMAIL
|
37
|
+
|
38
|
+
self.version = AttributeFilters::VERSION
|
39
|
+
self.rubyforge_name = AttributeFilters::NAME
|
40
|
+
self.summary = AttributeFilters::SUMMARY
|
41
|
+
self.description = AttributeFilters::DESCRIPTION
|
42
|
+
self.url = AttributeFilters::URL
|
43
|
+
|
44
|
+
self.remote_rdoc_dir = ''
|
45
|
+
self.rsync_args << '--chmod=a+rX'
|
46
|
+
self.readme_file = 'README.rdoc'
|
47
|
+
self.history_file = 'docs/HISTORY'
|
48
|
+
|
49
|
+
extra_deps << ['railties', '~> 3.0'] <<
|
50
|
+
['activemodel', '~> 3.0']
|
51
|
+
extra_dev_deps << ['rspec', '>= 2.6.0'] <<
|
52
|
+
['yard', '>= 0.7.2'] <<
|
53
|
+
['rdoc', '>= 3.8.0'] <<
|
54
|
+
['bundler', '>= 1.0.10'] <<
|
55
|
+
['hoe-bundler', '>= 1.1.0'] <<
|
56
|
+
['hoe-gemspec', '>= 1.0.0']
|
57
|
+
|
58
|
+
unless extra_dev_deps.flatten.include?('hoe-yard')
|
59
|
+
extra_dev_deps << ['hoe-yard', '>= 0.1.2']
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
task 'Manifest.txt' do
|
64
|
+
puts 'generating Manifest.txt from git'
|
65
|
+
sh %{git ls-files | grep -v gitignore > Manifest.txt}
|
66
|
+
sh %{git add Manifest.txt}
|
67
|
+
end
|
68
|
+
|
69
|
+
task 'ChangeLog' do
|
70
|
+
sh %{git log > ChangeLog}
|
71
|
+
end
|
72
|
+
|
73
|
+
desc "Fix documentation's file permissions"
|
74
|
+
task :docperm do
|
75
|
+
sh %{chmod -R a+rX doc}
|
76
|
+
end
|
77
|
+
|
78
|
+
### Sign & Publish
|
79
|
+
|
80
|
+
desc "Create signed tag in Git"
|
81
|
+
task :tag do
|
82
|
+
sh %{git tag -s v#{AttributeFilters::VERSION} -m 'version #{AttributeFilters::VERSION}'}
|
83
|
+
end
|
84
|
+
|
85
|
+
desc "Create external GnuPG signature for Gem"
|
86
|
+
task :gemsign do
|
87
|
+
sh %{gpg -u #{AttributeFilters::EMAIL} -ab pkg/#{AttributeFilters::NAME}-#{AttributeFilters::VERSION}.gem \
|
88
|
+
-o pkg/#{AttributeFilters::NAME}-#{AttributeFilters::VERSION}.gem.sig}
|
89
|
+
end
|
90
|
+
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = "attribute-filters"
|
5
|
+
s.version = "1.0.0.20120628014704"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Pawe\u{142} Wilk"]
|
9
|
+
s.cert_chain = ["/Users/siefca/.gem/gem-public_cert.pem"]
|
10
|
+
s.date = "2012-06-27"
|
11
|
+
s.description = "Simple extension for Rails that adds some syntactic sugar (filters, attribute sets) to your models."
|
12
|
+
s.email = ["pw@gnu.org"]
|
13
|
+
s.extra_rdoc_files = ["Manifest.txt", "README.rdoc"]
|
14
|
+
s.files = [".rspec", ".yardopts", "ChangeLog", "LGPL-LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "attribute-filters.gemspec", "docs/COPYING", "docs/HISTORY", "docs/LEGAL", "docs/LGPL-LICENSE", "docs/TODO", "docs/rdoc.css", "init.rb", "lib/attribute-filters.rb", "lib/attribute-filters/attribute_set.rb", "lib/attribute-filters/attribute_set_query.rb", "lib/attribute-filters/common_filters.rb", "lib/attribute-filters/dsl_filters.rb", "lib/attribute-filters/dsl_sets.rb", "lib/attribute-filters/railtie.rb", "lib/attribute-filters/version.rb", "spec/attribute-filters_spec.rb", "spec/spec_helper.rb", ".gemtest"]
|
15
|
+
s.homepage = "https://rubygems.org/gems/attribute-filters/"
|
16
|
+
s.rdoc_options = ["--title", "Attribute::Filters Documentation", "--quiet"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubyforge_project = "attribute-filters"
|
19
|
+
s.rubygems_version = "1.8.11"
|
20
|
+
s.signing_key = "/Users/siefca/.gem/gem-private_key.pem"
|
21
|
+
s.summary = "Concise way of filtering model attributes in Rails"
|
22
|
+
|
23
|
+
if s.respond_to? :specification_version then
|
24
|
+
s.specification_version = 3
|
25
|
+
|
26
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
27
|
+
s.add_runtime_dependency(%q<railties>, ["~> 3.0"])
|
28
|
+
s.add_runtime_dependency(%q<activemodel>, ["~> 3.0"])
|
29
|
+
s.add_development_dependency(%q<hoe-yard>, [">= 0.1.2"])
|
30
|
+
s.add_development_dependency(%q<rspec>, [">= 2.6.0"])
|
31
|
+
s.add_development_dependency(%q<yard>, [">= 0.7.2"])
|
32
|
+
s.add_development_dependency(%q<rdoc>, [">= 3.8.0"])
|
33
|
+
s.add_development_dependency(%q<bundler>, [">= 1.0.10"])
|
34
|
+
s.add_development_dependency(%q<hoe-bundler>, [">= 1.1.0"])
|
35
|
+
s.add_development_dependency(%q<hoe-gemspec>, [">= 1.0.0"])
|
36
|
+
s.add_development_dependency(%q<hoe>, ["~> 2.16"])
|
37
|
+
else
|
38
|
+
s.add_dependency(%q<railties>, ["~> 3.0"])
|
39
|
+
s.add_dependency(%q<activemodel>, ["~> 3.0"])
|
40
|
+
s.add_dependency(%q<hoe-yard>, [">= 0.1.2"])
|
41
|
+
s.add_dependency(%q<rspec>, [">= 2.6.0"])
|
42
|
+
s.add_dependency(%q<yard>, [">= 0.7.2"])
|
43
|
+
s.add_dependency(%q<rdoc>, [">= 3.8.0"])
|
44
|
+
s.add_dependency(%q<bundler>, [">= 1.0.10"])
|
45
|
+
s.add_dependency(%q<hoe-bundler>, [">= 1.1.0"])
|
46
|
+
s.add_dependency(%q<hoe-gemspec>, [">= 1.0.0"])
|
47
|
+
s.add_dependency(%q<hoe>, ["~> 2.16"])
|
48
|
+
end
|
49
|
+
else
|
50
|
+
s.add_dependency(%q<railties>, ["~> 3.0"])
|
51
|
+
s.add_dependency(%q<activemodel>, ["~> 3.0"])
|
52
|
+
s.add_dependency(%q<hoe-yard>, [">= 0.1.2"])
|
53
|
+
s.add_dependency(%q<rspec>, [">= 2.6.0"])
|
54
|
+
s.add_dependency(%q<yard>, [">= 0.7.2"])
|
55
|
+
s.add_dependency(%q<rdoc>, [">= 3.8.0"])
|
56
|
+
s.add_dependency(%q<bundler>, [">= 1.0.10"])
|
57
|
+
s.add_dependency(%q<hoe-bundler>, [">= 1.1.0"])
|
58
|
+
s.add_dependency(%q<hoe-gemspec>, [">= 1.0.0"])
|
59
|
+
s.add_dependency(%q<hoe>, ["~> 2.16"])
|
60
|
+
end
|
61
|
+
end
|
data/docs/COPYING
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
attribute-filters is copyrighted free software owned by Paweł Wilk (pw@gnu.org). The Owner of this software permits you to redistribute and/or modify the software under either the terms of the LGPL version 3 (see the file {file:LGPL-LICENSE LGPL-LICENSE}), or the conditions below ("Ruby License").
|
2
|
+
|
3
|
+
== 1.
|
4
|
+
|
5
|
+
You may make and give away verbatim copies of the source form of this software without restriction, provided that you retain ALL of the
|
6
|
+
original copyright notices and associated disclaimers.
|
7
|
+
|
8
|
+
== 2.
|
9
|
+
|
10
|
+
You may modify your copy of the software in any way, provided that you do at least ONE of the following:
|
11
|
+
|
12
|
+
a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said
|
13
|
+
modifications to Usenet or an equivalent medium, or by allowing
|
14
|
+
the author to include your modifications in the software.
|
15
|
+
|
16
|
+
b) use the modified software only within your corporation or
|
17
|
+
organization.
|
18
|
+
|
19
|
+
c) give non-standard binaries non-standard names, with
|
20
|
+
instructions on where to get the original software distribution.
|
21
|
+
|
22
|
+
d) make other distribution arrangements with the Owner.
|
23
|
+
|
24
|
+
== 3.
|
25
|
+
|
26
|
+
You may distribute the software in object code or binary form, provided that you do at least ONE of the following:
|
27
|
+
|
28
|
+
a) distribute the binaries and library files of the software,
|
29
|
+
together with instructions (in a manual page or equivalent)
|
30
|
+
on where to get the original distribution.
|
31
|
+
|
32
|
+
b) accompany the distribution with the machine-readable source of
|
33
|
+
the software.
|
34
|
+
|
35
|
+
c) give non-standard binaries non-standard names, with
|
36
|
+
instructions on where to get the original software distribution.
|
37
|
+
|
38
|
+
d) make other distribution arrangements with the Owner.
|
39
|
+
|
40
|
+
== 4.
|
41
|
+
|
42
|
+
You may modify and include parts of the software into any other software (possibly commercial), provided you comply with the terms in
|
43
|
+
Sections 1, 2, and 3 above. But some files in the distribution are not written by the Owner, so they may be made available to you
|
44
|
+
under different terms.
|
45
|
+
|
46
|
+
For the list of those files and their copying conditions, see the
|
47
|
+
file LEGAL.
|
48
|
+
|
49
|
+
== 5.
|
50
|
+
|
51
|
+
The scripts and library files supplied as input to or produced as output from the software do not automatically fall under the
|
52
|
+
copyright of the software, but belong to whoever generated them, and may be sold commercially, and may be aggregated with this software.
|
53
|
+
|
54
|
+
== 6.
|
55
|
+
|
56
|
+
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
57
|
+
|
data/docs/HISTORY
ADDED
data/docs/LEGAL
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
LEGAL NOTICE INFORMATION
|
2
|
+
------------------------
|
3
|
+
|
4
|
+
attribute-filters is Copyright (C) 2012 by Paweł Wilk.
|
5
|
+
|
6
|
+
attribute-filters is copyrighted software owned by Paweł Wilk
|
7
|
+
(pw@gnu.org). You may redistribute and/or modify this
|
8
|
+
software as long as you comply with either the terms of the LGPL
|
9
|
+
(see the file {file:LGPL-LICENSE}),
|
10
|
+
or Ruby's license (see the file {file:COPYING}).
|
11
|
+
|