priscilla 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a52af6acd6213eead9ab9d0581b19af86381905
4
- data.tar.gz: 42ea159fc75993795fa444a3c6c3333ce936751b
3
+ metadata.gz: 24977731eec6baacf60afe5f0ab13cc82f93559d
4
+ data.tar.gz: 762a40e5825c227cc46b61dcbfefcb389b3b8ae8
5
5
  SHA512:
6
- metadata.gz: 55fa690da61390f5218daa78dea194489fd47f3e4f0d44e12a88a64765a0e98d95f36e0490b0eafae831bfa57fa96762104a396d8f41727fd5549e6167793684
7
- data.tar.gz: c7daa595dac5813bb9e4f895b29034291c8591ce7eec7f0bea21f2e38947c0ac9c285dfe1120a2fe1493a7934214aeb5818a821c08c367a69f4bf50cef1fa218
6
+ metadata.gz: 44d1fa95825f84ef73f64c6c65235a349b69bc9db527d4c4cd4c73ee1650b765a6bbc36e7c2964ca070378edfee2388263da075a94235e684b5c830dfd6476eb
7
+ data.tar.gz: 7f4e5fec8fff5a2fa2d79c6a747f6a2d28a5113b29cc5fc84ef7f9cc64330116fc9ec1ecc8a31e935816f9a2d205df5cb09077450bfa40aaa5747095dea97590
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .DS_Store
6
7
  Gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.0
4
+ - 2.0.0
5
+ - 1.9.3
6
+ - 1.9.2
7
+ addons:
8
+ code_climate:
9
+ repo_token: 68568c833a84f2715bae85c17bd1cdbcba999e1a0c20205f1f26a47133448bbf
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in priscilla.gemspec
4
4
  gemspec
5
+
6
+ gem "codeclimate-test-reporter", group: :test, require: nil
data/README.md CHANGED
@@ -2,10 +2,15 @@
2
2
 
3
3
  Frock up your console messages. :dancer: :dancer: :dancer:
4
4
 
5
+ [![Build Status](https://travis-ci.org/Arkham/priscilla.png?branch=master)](https://travis-ci.org/Arkham/priscilla)
6
+ [![Code Climate](https://codeclimate.com/github/Arkham/priscilla.png)](https://codeclimate.com/github/Arkham/priscilla)
7
+ [![Coverage](https://codeclimate.com/github/Arkham/priscilla/coverage.png)](https://codeclimate.com/github/Arkham/priscilla)
8
+
5
9
  ## Why Priscilla
6
10
 
7
- Because of Priscilla, Queen of the Desert. Don't let your console messages drown
8
- in a wall of text, make them stand out!
11
+ Because of [Priscilla, Queen of the Desert](http://en.wikipedia.org/wiki/The_Adventures_of_Priscilla,_Queen_of_the_Desert).
12
+
13
+ **Don't let your console messages drown in a wall of text, make them stand out!**
9
14
 
10
15
  ![Tutorial](images/priscilla.gif)
11
16
 
@@ -52,11 +57,11 @@ Priscilla supports a lot of different decorators:
52
57
 
53
58
  **Unicode Emojis**
54
59
 
55
- ![Unicode Emojis](images/unicode_emojis.rb)
60
+ ![Unicode Emojis](images/unicode_emojis.png)
56
61
 
57
62
  **Text Emojis**
58
63
 
59
- ![Text Emojis](images/text_emojis.rb)
64
+ ![Text Emojis](images/text_emojis.png)
60
65
 
61
66
  ## Configure
62
67
 
@@ -69,6 +74,14 @@ Priscilla.configure do |c|
69
74
  end
70
75
  ```
71
76
 
77
+ ## Troubleshoot
78
+
79
+ **I can't see the fancy emojis!!! I'm on Linux!!!**
80
+
81
+ On Ubuntu: `sudo apt-get install ttf-ancient-fonts`
82
+
83
+ On Fedora: `yum install gdouros-symbola-fonts`
84
+
72
85
  ## Contribute
73
86
 
74
87
  1. Fork it ( http://github.com/Arkham/priscilla/fork )
data/Rakefile CHANGED
@@ -1 +1,5 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task :default => :spec
@@ -10,7 +10,7 @@ module Priscilla
10
10
  @config = config.clone
11
11
  end
12
12
 
13
- def decorate(message, **options)
13
+ def decorate(message, options = {})
14
14
  override_config(options)
15
15
  message = message.to_s
16
16
  [decorated_line, decorate_message(message), decorated_line].join("\n")
@@ -1,3 +1,3 @@
1
1
  module Priscilla
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.2'
3
3
  end
data/lib/priscilla.rb CHANGED
@@ -16,7 +16,7 @@ module Priscilla
16
16
  end
17
17
 
18
18
  module Kernel
19
- def pr(message, **options)
19
+ def pr(message, options = {})
20
20
  puts Priscilla::Makeup.new(Priscilla.configuration).decorate(message, options)
21
21
  puts
22
22
  end
data/priscilla.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "http://github.com/Arkham/priscilla"
14
14
  spec.license = "MIT"
15
15
 
16
- spec.files = `git ls-files -z`.split("\x0")
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.start_with? "images" }
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe Priscilla do
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
  require 'ostruct'
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe SimpleEmoji do
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'codeclimate-test-reporter'
2
+ CodeClimate::TestReporter.start
3
+
1
4
  require 'priscilla'
2
5
 
3
6
  module CaptureHelpers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: priscilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ju Liu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-30 00:00:00.000000000 Z
11
+ date: 2014-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -90,6 +90,7 @@ extra_rdoc_files: []
90
90
  files:
91
91
  - ".gitignore"
92
92
  - ".rspec"
93
+ - ".travis.yml"
93
94
  - Gemfile
94
95
  - LICENSE.txt
95
96
  - README.md