awesome_flags 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +24 -0
- data/VERSION +1 -1
- data/awesome_flags.gemspec +3 -4
- metadata +5 -6
- data/README.rdoc +0 -33
- data/awesome_flags-0.1.0.gem +0 -0
data/README.markdown
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
= awesome_flags
|
2
|
+
|
3
|
+
$gem 'awesome_flags'
|
4
|
+
|
5
|
+
AwesomeFlags returns the keys used in a FlagShihTzu column as symbols.
|
6
|
+
|
7
|
+
Just require AwesomeFlags in your model. Don't forget to install the FlagShihTzu plugin and add that as well.
|
8
|
+
|
9
|
+
To call all flags for a model use the method
|
10
|
+
$my_flags
|
11
|
+
|
12
|
+
To call just the flags from a specific column use:
|
13
|
+
$my_flags("column_name")
|
14
|
+
|
15
|
+
Using the all_flags method will return all flags (filtered by column or not as above).
|
16
|
+
These will test true/false for that object so can be used to generate checkboxes in a form.
|
17
|
+
|
18
|
+
You can also send either method to a block to output formatted flags.
|
19
|
+
|
20
|
+
== Copyright
|
21
|
+
|
22
|
+
Copyright (c) 2011 Gabe Kessler. See LICENSE.txt for
|
23
|
+
further details.
|
24
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
data/awesome_flags.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "awesome_flags"
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Gabe Kessler"]
|
@@ -14,17 +14,16 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.email = "gabe@gabesstudio.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
|
-
"README.
|
17
|
+
"README.markdown"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
"Gemfile",
|
22
22
|
"Gemfile.lock",
|
23
23
|
"LICENSE.txt",
|
24
|
-
"README.
|
24
|
+
"README.markdown",
|
25
25
|
"Rakefile",
|
26
26
|
"VERSION",
|
27
|
-
"awesome_flags-0.1.0.gem",
|
28
27
|
"awesome_flags.gemspec",
|
29
28
|
"lib/awesome_flags.rb",
|
30
29
|
"test/helper.rb",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_flags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 2
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gabe Kessler
|
@@ -85,16 +85,15 @@ extensions: []
|
|
85
85
|
|
86
86
|
extra_rdoc_files:
|
87
87
|
- LICENSE.txt
|
88
|
-
- README.
|
88
|
+
- README.markdown
|
89
89
|
files:
|
90
90
|
- .document
|
91
91
|
- Gemfile
|
92
92
|
- Gemfile.lock
|
93
93
|
- LICENSE.txt
|
94
|
-
- README.
|
94
|
+
- README.markdown
|
95
95
|
- Rakefile
|
96
96
|
- VERSION
|
97
|
-
- awesome_flags-0.1.0.gem
|
98
97
|
- awesome_flags.gemspec
|
99
98
|
- lib/awesome_flags.rb
|
100
99
|
- test/helper.rb
|
data/README.rdoc
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
= awesome_flags
|
2
|
-
gem 'awesome_flags'
|
3
|
-
|
4
|
-
AwesomeFlags returns the keys used in a FlagShihTzu column as symbols.
|
5
|
-
|
6
|
-
Just require AwesomeFlags in your model. Don't forget to install the FlagShihTzu plugin and add that as well.
|
7
|
-
|
8
|
-
To call all flags for a model use the method
|
9
|
-
my_flags
|
10
|
-
|
11
|
-
To call just the flags from a specific column use:
|
12
|
-
my_flags("column_name")
|
13
|
-
|
14
|
-
Using the all_flags method will return all flags (filtered by column or not as above).
|
15
|
-
These will test true/false for that object so can be used to generate checkboxes in a form.
|
16
|
-
|
17
|
-
You can also send either method to a block to output formatted flags.
|
18
|
-
|
19
|
-
== Contributing to awesome_flags
|
20
|
-
|
21
|
-
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
22
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
23
|
-
* Fork the project
|
24
|
-
* Start a feature/bugfix branch
|
25
|
-
* Commit and push until you are happy with your contribution
|
26
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
27
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
28
|
-
|
29
|
-
== Copyright
|
30
|
-
|
31
|
-
Copyright (c) 2011 Gabe Kessler. See LICENSE.txt for
|
32
|
-
further details.
|
33
|
-
|
data/awesome_flags-0.1.0.gem
DELETED
Binary file
|