motion-colorize 1.0
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.
- checksums.yaml +15 -0
- data/LICENSE +19 -0
- data/README.md +48 -0
- data/lib/motion-colorize.rb +22 -0
- metadata +59 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ODZiMWM5YmY5MjFlOTM0ZGFiNzQ5YzM1MGZhMjYzMGYwZjIwYzg2NQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NGI5MDBjMTg3OThhYzk2NDRmMzI5ZGU3ODdiOTJhNmE2ZDIzYmQwMw==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTEwMmVjYzI2OGVhYWVkOTZlYWRkYmE2NGRiYjEwNTQ4NDcwMDU2ZmUyZGNl
|
10
|
+
MWRiYzA5Y2YzNTAyMmNlNjg4YjkwMjQwYTk5MWY3MWM1ZTEzZTAzNmI2OTFm
|
11
|
+
NzVkNzRjZTM5ODAwYTI4NmUxNDEzNmNmYmVjZDFlOTVhYzcxODI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MjkzMjZlMDI4YWVkYjJhMDc0Y2M2NTkxZjU1YWQ1ZGQwZDZkYjZlYTJjMzc5
|
14
|
+
OGY1NjZiMzBjNjdkMjgxYjNjMjMwYjExNDRiNjM3N2RiZGE3OGY2NGUyZWM3
|
15
|
+
MzJjMmQ1Y2VkZTI5NTZiODhkY2Y3YmU2YWVkM2NhNWY1OGQ5Zjc=
|
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2013 Clay Allsopp (http://clayallsopp.com/)
|
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.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# motion-colorize for [RubyMotion](http://rubymotion.com)
|
2
|
+
|
3
|
+
motion-colorize lets you add a little color to your RubyMotion output:
|
4
|
+
|
5
|
+

|
6
|
+
|
7
|
+
Pretty cool, right?
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
- `gem install motion-colorize`
|
12
|
+
- `require 'motion-colorize'`
|
13
|
+
|
14
|
+
or add it to your `Gemfile`:
|
15
|
+
|
16
|
+
- `gem 'motion-colorize'`
|
17
|
+
|
18
|
+
## Usage
|
19
|
+
|
20
|
+
motion-colorize really does nothing except add the [colorize gem](https://github.com/fazibear/colorize) to your project. Yes, really, [that's it](https://github.com/clayallsopp/motion-colorize/blob/master/lib/motion-colorize.rb).
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
class AppDelegate
|
24
|
+
def application(application, didFinishLaunchingWithOptions:launchOptions)
|
25
|
+
puts "This is blue".colorize(:blue)
|
26
|
+
puts "This is light blue".colorize(:light_blue)
|
27
|
+
puts "This is light blue with white background".colorize( :color => :light_blue, :background => :white )
|
28
|
+
puts "This is blue on white and underline".colorize( :blue ).on_white.underline
|
29
|
+
puts "This is black and yellow black and yellow".yellow
|
30
|
+
puts "This is red".red.on_yellow
|
31
|
+
|
32
|
+
true
|
33
|
+
end
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
37
|
+
For a more complete reference, refer to colorize's [documentation](https://github.com/fazibear/colorize/blob/master/README.rdoc).
|
38
|
+
|
39
|
+
## Contact
|
40
|
+
|
41
|
+
Clay Allsopp ([http://clayallsopp.com](http://clayallsopp.com)) (really though, this hardly counts as a/my gem, I'm just happy to be here.)
|
42
|
+
|
43
|
+
- [http://twitter.com/clayallsopp](http://twitter.com/clayallsopp)
|
44
|
+
- [clay@usepropeller.com](clay@usepropeller.com)
|
45
|
+
|
46
|
+
## License
|
47
|
+
|
48
|
+
motion-colorize is available under the MIT license. See the LICENSE file for more info.
|
@@ -0,0 +1,22 @@
|
|
1
|
+
unless defined?(Motion::Project::Config)
|
2
|
+
raise "This file must be required within a RubyMotion project Rakefile."
|
3
|
+
end
|
4
|
+
|
5
|
+
require 'colorize'
|
6
|
+
|
7
|
+
@colorize = nil
|
8
|
+
$LOAD_PATH.each do |file|
|
9
|
+
if file.include? "colorize"
|
10
|
+
@colorize = file
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
if @colorize.nil?
|
15
|
+
raise "You need to install the 'colorize' gem"
|
16
|
+
end
|
17
|
+
|
18
|
+
@colorize = File.join(@colorize, "colorize.rb")
|
19
|
+
|
20
|
+
Motion::Project::App.setup do |app|
|
21
|
+
app.files << @colorize
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: motion-colorize
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Clay Allsopp
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-04-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: colorize
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.5.8
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.5.8
|
27
|
+
description: motion-colorize adds the `colorize` gem to your RubyMotion project
|
28
|
+
email: clay@usepropeller.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- README.md
|
34
|
+
- LICENSE
|
35
|
+
- lib/motion-colorize.rb
|
36
|
+
homepage: https://github.com/clayallsopp/motion-colorize
|
37
|
+
licenses: []
|
38
|
+
metadata: {}
|
39
|
+
post_install_message:
|
40
|
+
rdoc_options: []
|
41
|
+
require_paths:
|
42
|
+
- lib
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
requirements: []
|
54
|
+
rubyforge_project:
|
55
|
+
rubygems_version: 2.0.3
|
56
|
+
signing_key:
|
57
|
+
specification_version: 4
|
58
|
+
summary: Add some color to your RubyMotion output
|
59
|
+
test_files: []
|