motion-solarized 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NzI0MDU2NjAxZmFmYjE0ZDY0ZWE0ZjQ5MWI1YzQ2NWUwZWU5NDg1NQ==
5
+ data.tar.gz: !binary |-
6
+ NTk1NDcyMTc1OWVhOWIyOWE5MDliNDA3OTk4OTA2NGRiMTJkMjU2Mw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ Y2RhYjZlZmQwNTczMjdhZDcxNjU5NjAxOGI1YjA1OTA4MjNjMWUzZTUwOTVh
10
+ M2RmZDA2MTJmZWEwMjNhNjkzMWRkOWU1ZjAyZmI1NzFlMzBlMWM4OWVmMTIz
11
+ ZmRlMzhhN2Q3OTBlMDAzYjQyNmUwOTg5YWI3OTVmMzUwMjZhODg=
12
+ data.tar.gz: !binary |-
13
+ YjZkODk5M2M2M2VlNDhmZTIyZWI2MjgxMjBlNWRmMjJkNTI4MWRiMTI5Yzdm
14
+ ODliOWY4NTI3ZWRjMjVmNTZlNTFiN2U1MDczNGJhM2E3NjYxNDBiNzZlMmEw
15
+ OTM3Y2VhNmQzNzE3MmEzMWM1YWI1ZjIxZWY5MWM4YTBlNmM2MzM=
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Ethan Schoonover
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.
20
+
data/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # motion-solarized
2
+
3
+ The [Solarized colorscheme](http://ethanschoonover.com/solarized) for use in [Rubymotion](http://www.rubymotion.com) projects.
4
+
5
+ Each color in the colorscheme is represented by a class method on the Solarized class. Each method returns a UIColor object.
6
+
7
+ You can see the colors at <http://ethanschoonover.com/solarized>.
8
+
9
+ Examples:
10
+
11
+ Solarized.blue
12
+ Solarized.yellow
13
+ Solarized.green
14
+ Solarized.cyan
15
+ Solarized.magenta
16
+ Solarized.violet
17
+ Solarized.red
18
+ Solarized.orange
19
+ Solarized.base03
20
+ Solarized.base02
21
+ Solarized.base01
22
+ Solarized.base00
23
+ Solarized.base0
24
+ Solarized.base1
25
+ Solarized.base2
26
+ Solarized.base3
27
+
28
+ ## Installation
29
+
30
+ Add this line to your application's Gemfile:
31
+
32
+ gem 'motion-solarized'
33
+
34
+ And then execute:
35
+
36
+ $ bundle
37
+
38
+ Or install it yourself as:
39
+
40
+ $ gem install motion-solarized
41
+
42
+ ## Usage
43
+
44
+ Use any of the class methods anywhere you require an UIColor object.
45
+
46
+ Example:
47
+
48
+ self.view.backgroundColor = Solarized.blue
49
+
50
+ ## Contributing
51
+
52
+ 1. Fork it
53
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
54
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
55
+ 4. Push to the branch (`git push origin my-new-feature`)
56
+ 5. Create new Pull Request
@@ -0,0 +1,8 @@
1
+ unless defined?(Motion::Project::Config)
2
+ raise "motion-solarized must be required within a RubyMotion project Rakefile."
3
+ end
4
+
5
+ lib_dir_path = File.dirname(File.expand_path(__FILE__))
6
+ Motion::Project::App.setup do |app|
7
+ app.files.unshift(Dir.glob(File.join(lib_dir_path, "project/**/*.rb")))
8
+ end
@@ -0,0 +1,27 @@
1
+ class Solarized
2
+
3
+ SOLARIZED_COLORS = {
4
+ base03: {red: 0, green: 43, blue: 54},
5
+ base02: {red: 7, green: 54, blue: 66},
6
+ base01: {red: 88, green:110, blue:117},
7
+ base00: {red:101, green:123, blue:131},
8
+ base0: {red:131, green:148, blue:150},
9
+ base1: {red:147, green:161, blue:161},
10
+ base2: {red:238, green:232, blue:213},
11
+ base3: {red:253, green:246, blue:227},
12
+ yellow: {red:181, green:137, blue: 0},
13
+ orange: {red:203, green: 75, blue: 22},
14
+ red: {red:220, green: 50, blue: 47},
15
+ magenta: {red:211, green: 54, blue:130},
16
+ violet: {red:108, green:113, blue:196},
17
+ blue: {red: 38, green:139, blue:210},
18
+ cyan: {red: 42, green:161, blue:152},
19
+ green: {red:133, green:153, blue: 0}
20
+ }
21
+
22
+ SOLARIZED_COLORS.each do |key, value|
23
+ define_singleton_method "#{key}" do
24
+ UIColor.colorWithRed((value[:red]/255.0), green:(value[:green]/255.0), blue:(value[:blue]/255.0), alpha:1.0)
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,3 @@
1
+ module MotionSolarized
2
+ Version = '0.0.2'
3
+ end
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: motion-solarized
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Kevin McGladdery
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-05-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: ! "# motion-solarized\n\nThe [Solarized colorscheme](http://ethanschoonover.com/solarized)
28
+ for use in [Rubymotion](http://www.rubymotion.com) projects.\n\nEach color in the
29
+ colorscheme is represented by a class method on the Solarized class. Each method
30
+ returns a UIColor object. \n\nYou can see the colors at <http://ethanschoonover.com/solarized>.\n\nExamples:\n\n\tSolarized.blue\n\tSolarized.yellow\n\tSolarized.green\n\tSolarized.cyan\n\tSolarized.magenta\n\tSolarized.violet\n\tSolarized.red\n\tSolarized.orange\n\tSolarized.base03\n\tSolarized.base02\n\tSolarized.base01\n\tSolarized.base00\n\tSolarized.base0\n\tSolarized.base1\n\tSolarized.base2\n\tSolarized.base3\n\n##
31
+ Installation\n\nAdd this line to your application's Gemfile:\n\n gem 'motion-solarized'\n\nAnd
32
+ then execute:\n\n $ bundle\n\nOr install it yourself as:\n\n $ gem install
33
+ motion-solarized\n\n## Usage\n\nUse any of the class methods anywhere you require
34
+ an UIColor object.\n\nExample:\n\n\tself.view.backgroundColor = Solarized.blue\n\n##
35
+ Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3.
36
+ Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch
37
+ (`git push origin my-new-feature`)\n5. Create new Pull Request\n"
38
+ email:
39
+ - kevin.mcgladdery@gmail.com
40
+ executables: []
41
+ extensions: []
42
+ extra_rdoc_files: []
43
+ files:
44
+ - README.md
45
+ - LICENSE
46
+ - lib/motion-solarized.rb
47
+ - lib/project/solarized.rb
48
+ - lib/project/version.rb
49
+ homepage: http://github.com/runkmc/motion-solarized
50
+ licenses: []
51
+ metadata: {}
52
+ post_install_message:
53
+ rdoc_options: []
54
+ require_paths:
55
+ - lib
56
+ required_ruby_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ requirements: []
67
+ rubyforge_project:
68
+ rubygems_version: 2.0.3
69
+ signing_key:
70
+ specification_version: 4
71
+ summary: The Solarized colorscheme for use in Rubymotion projects. Each color in the
72
+ colorscheme is represented by a class method on the Solarized class. Each method
73
+ returns a UIColor object.
74
+ test_files: []