moticons 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +11 -6
- data/Rakefile +10 -7
- data/lib/moticons.rb +1 -1
- data/lib/moticons/icon.rb +5 -3
- data/moticons.gemspec +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6acb9c02b0e35c72a3200bb3e088860dfe72700b39eeef27eb27b717ab0b5338
|
4
|
+
data.tar.gz: 4bb98b84a801c3db6ee5566c4e0a50d6c2b00349093dc2f43f8366af79efeda9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7bb7cd2e7fc9d363bff6ea986a0dde1c1e26376d930aecc94d12f3e11a7b1e203176d02a1569237f1ea167a0b8b4752d92e2892dc9286b47668d6e92f24e3f6
|
7
|
+
data.tar.gz: 2b53c95e6a9922ee38b4a06ce37b6dcfcfb6ab8d18af88e3f4937d2b321dbdb464ed1d7b0e6e1135cd48f8f6e5151d80d50b71580abdea8533527ae07c5636d3
|
data/README.md
CHANGED
@@ -4,12 +4,15 @@ Moticons is the easiest way to add icons to your RubyMotion project. It provides
|
|
4
4
|
|
5
5
|
Moticons is a wrapper around the [FontAwesomeKit CocoaPod](https://github.com/PrideChung/FontAwesomeKit).
|
6
6
|
|
7
|
-
|
7
|
+
Currently Moticons supports **6** different icon fonts.
|
8
|
+
|
9
|
+
- [FontAwesome 4.7](http://fontawesome.io) Our old friend, contains **675** icons
|
10
|
+
- [Foundation icons](http://zurb.com/playground/foundation-icon-fonts-3) Contains **283** icons.
|
11
|
+
- [Zocial](http://zocial.smcllns.com/) Contains **99** social icons.
|
12
|
+
- [ionicons 2.0.0](http://ionicons.com/) Contains **733** icons, lots of iOS 7 style outlined icons.
|
13
|
+
- [Octicons 2.4.1](https://octicons.github.com/) Contains **206** icons, built with love by Github.
|
14
|
+
- [Material 2.0.0](https://google.github.io/material-design-icons/) Contains **743** icons, built by Google for Material design.
|
8
15
|
|
9
|
-
* [Font Awesome](http://fortawesome.github.io/Font-Awesome/)
|
10
|
-
* [Foundation](http://zurb.com/playground/foundation-icon-fonts-3)
|
11
|
-
* [Zocial](http://zocial.smcllns.com)
|
12
|
-
* [Ionicons](http://ionicons.com)
|
13
16
|
|
14
17
|
## Installation
|
15
18
|
|
@@ -21,7 +24,7 @@ gem 'moticons'
|
|
21
24
|
|
22
25
|
And then execute:
|
23
26
|
|
24
|
-
$ bundle
|
27
|
+
$ bundle && rake pod:install
|
25
28
|
|
26
29
|
## Usage
|
27
30
|
|
@@ -35,6 +38,8 @@ The collection names are:
|
|
35
38
|
* Foundation - `:foundation`
|
36
39
|
* Zocial - `:zocial`
|
37
40
|
* Ionicons - `:ion`
|
41
|
+
* Octicons - `:octicon`
|
42
|
+
* Material - `:material`
|
38
43
|
|
39
44
|
The icon names are the typical, Ruby snake-cased version of the original name. For example, you would refer to the Font Awesome `cart-arrow-down` icon as `cart_arrow_down`.
|
40
45
|
|
data/Rakefile
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
$:.unshift("/Library/RubyMotion/lib")
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
when '
|
6
|
-
|
7
|
-
|
2
|
+
$:.unshift("~/.rubymotion/rubymotion-templates")
|
3
|
+
|
4
|
+
# case ENV.fetch('platform', 'ios') # allow setting from the command line, default to iOS
|
5
|
+
# when 'ios' then require 'motion/project/template/ios'
|
6
|
+
# when 'osx' then require 'motion/project/template/osx'
|
7
|
+
# when 'android' then require 'motion/project/template/android'
|
8
|
+
# else raise "Unsupported platform #{ENV['platform']}"
|
9
|
+
# end
|
8
10
|
|
11
|
+
require 'motion/project/template/ios'
|
12
|
+
require 'motion/project/template/gem/gem_tasks'
|
9
13
|
require 'bundler'
|
10
14
|
Bundler.require
|
11
|
-
require "bundler/gem_tasks"
|
12
15
|
|
13
16
|
Motion::Project::App.setup do |app|
|
14
17
|
app.name = 'moticons'
|
data/lib/moticons.rb
CHANGED
data/lib/moticons/icon.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
module Moticons
|
2
2
|
class Icon
|
3
3
|
COLLECTION_CLASSES = {
|
4
|
-
awesome:
|
4
|
+
awesome: :FAKFontAwesome,
|
5
5
|
foundation: :FAKFoundationIcons,
|
6
|
-
ion:
|
7
|
-
zocial:
|
6
|
+
ion: :FAKIonIcons,
|
7
|
+
zocial: :FAKZocial,
|
8
|
+
octicon: :FAKOcticons,
|
9
|
+
material: :FAKMaterialIcons
|
8
10
|
}
|
9
11
|
|
10
12
|
attr_reader :collection, :name, :size, :color
|
data/moticons.gemspec
CHANGED
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "moticons"
|
7
|
-
spec.version = "1.
|
7
|
+
spec.version = "1.1.0"
|
8
8
|
spec.authors = ["Andrew Havens"]
|
9
9
|
spec.email = ["email@andrewhavens.com"]
|
10
10
|
|
11
|
-
spec.summary = %q{
|
12
|
-
spec.description = %q{
|
11
|
+
spec.summary = %q{The easiest way to add icons to your RubyMotion app.}
|
12
|
+
spec.description = %q{The easiest way to add icons to your RubyMotion app.}
|
13
13
|
spec.homepage = "https://github.com/andrewhavens/moticons"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moticons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Havens
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: motion-cocoapods
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description:
|
69
|
+
description: The easiest way to add icons to your RubyMotion app.
|
70
70
|
email:
|
71
71
|
- email@andrewhavens.com
|
72
72
|
executables: []
|
@@ -104,8 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.7.6
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
|
-
summary:
|
110
|
+
summary: The easiest way to add icons to your RubyMotion app.
|
111
111
|
test_files: []
|