xcres 0.4.0 → 0.4.1

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: a076ffc4975feacb4afd297104c8814613c542eb
4
- data.tar.gz: 211c8641f12dd550e4e43d8f39e2b8c24efa938c
3
+ metadata.gz: 80b04c8fed347600827fbc19c5e653a9712f34ab
4
+ data.tar.gz: 60548aca09f900ee073773231edbd6cfce51a846
5
5
  SHA512:
6
- metadata.gz: 3bd3346d7bbcd259fa698bba2dfad0c2081db342ba9d3fc7f85ced88717fa1d0775b3090f9d98800d705294cad8b44b1692cd2d7ffb586382b82a055eff6c52f
7
- data.tar.gz: aa0d427e7b7d5f86174728b84e4f987a8bf635b80be0a5a98a28a114d347e348754312c47eb762d185096ab9fa2a52b3a1e08fd9e06528687edc750c12703865
6
+ metadata.gz: 032d1b4d09124dd1cecf1c587a8579bacc57e43aa051f68ea9a14300abd5426dddab95e075d9f83caa969aabed65969c25bb2057f2f332af5ed407f6aaec4346
7
+ data.tar.gz: d821c4b06474126ec9ca3bf0826b516ccc2143d9b6d42a6ba377229d8656c5218dd9ff553e99bf7ea40cd402e09e2a5e16c3070cf538abb55e9f84c345d10c4a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xcres (0.4.0)
4
+ xcres (0.4.1)
5
5
  activesupport (>= 3.2.15, < 4)
6
6
  clamp (~> 0.6.3)
7
7
  colored (~> 1.2)
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![Twitter: @mrackwitz](https://img.shields.io/badge/contact-@mrackwitz-blue.svg?style=flat)](https://twitter.com/mrackwitz)
4
4
  [![Gem](https://img.shields.io/gem/v/xcres.svg?style=flat)](http://rubygems.org/gems/xcres)
5
5
  [![Build Status](https://img.shields.io/travis/mrackwitz/xcres/master.svg?style=flat)](https://travis-ci.org/mrackwitz/xcres)
6
+ [![Code Climate](https://img.shields.io/codeclimate/github/mrackwitz/xcres.svg?style=flat)](https://codeclimate.com/github/mrackwitz/xcres)
6
7
  [![Inline Docs](http://inch-ci.org/github/mrackwitz/xcres.svg?branch=master&style=flat)](http://inch-ci.org/github/mrackwitz/xcres)
7
8
 
8
9
  `xcres` searches your Xcode project for resources and generates an index
data/lib/xcres/logger.rb CHANGED
@@ -71,7 +71,7 @@ class XCRes::Logger
71
71
  .reject(&:empty?)
72
72
  message = parts.map do |part|
73
73
  if part[0] == '%' && part[1] != '%'
74
- (part % format_args.shift).bold.gsub('%', '%%')
74
+ (part % [format_args.shift]).bold.gsub('%', '%%')
75
75
  else
76
76
  part
77
77
  end
data/lib/xcres/version.rb CHANGED
@@ -4,6 +4,6 @@ module XCRes
4
4
  #
5
5
  # XCRes’s version, following [semver](http://semver.org).
6
6
  #
7
- VERSION = "0.4.0"
7
+ VERSION = "0.4.1"
8
8
 
9
9
  end
@@ -1,3 +1,3 @@
1
1
  xcres version --verbose --no-ansi 2>&1
2
2
  Ⓥ Verbose mode is enabled.
3
- 0.4.0
3
+ 0.4.1
@@ -85,6 +85,11 @@ describe 'XCRes::LoggerSpec' do
85
85
  out.should.be.eql? "\e[31m%\e[0m"
86
86
  end
87
87
 
88
+ it 'works with empty arrays' do
89
+ @logger.inform_colored '%s', :red, []
90
+ out.should.be.eql? "\e[31m\e[1m[]\e[0m\e[0m"
91
+ end
92
+
88
93
  it 'doesn\'t fail because of unescaped percents' do
89
94
  -> {
90
95
  @logger.inform_colored '%s', :red, '%'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marius Rackwitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-02 00:00:00.000000000 Z
11
+ date: 2014-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler