cureutils 1.0.0 → 1.0.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: c34da5a7a9fce98a5f8314e7d61cad556629c6f0
4
- data.tar.gz: ed11bee62896aa13fac07861429e124a59c97f9d
3
+ metadata.gz: 14cf7447d753b81fb29b879d607b9add58d0b7bc
4
+ data.tar.gz: 5efc504898786d1926416a33dc7ad9d60a6c9b6c
5
5
  SHA512:
6
- metadata.gz: 943b29cfd42f50375593689d021eb89778d627bc27292128e8a5098b2982d12e274adfd1fbd955b9f1540655cf023915dfbbcfe3bb090b07c4ed989f0f0028e4
7
- data.tar.gz: 880578332edaf71257b36eb70ef5f1812ff4af600791188a307f928361bce2f2a1dd800c13f37b097f09d2f2a1875e5858f6a4246d41fa8d3885138525991737
6
+ metadata.gz: d2d18ff6e40e0f602ac5ca4970e5742bdb0bf077f327b3d3f0c85ef3e63bc4e9109ef138ce5a04347e18ce07803d39db6b60d4117225655facc7ad0a55d40c70
7
+ data.tar.gz: 066c75d2870108ccd24afdfdc142b182f2d818cd6a9f8137f17a09c59351b871de8cddbda1d5ebf8892317bc85b42d0d2334070fb631b4c78a6930efb1367f90
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /tags
11
+ /.byebug_history
data/README.md CHANGED
@@ -1,14 +1,17 @@
1
+ <h1 align="center">
2
+ <img src="https://raw.githubusercontent.com/wiki/greymd/cureutils/logo/cureutils_logo.png" />
3
+ <h4 align="center">Useful command line tool for Japanese battle heroine Pretty Cure (Precure).</h2>
4
+ </h1>
5
+
1
6
  <p align="center">
2
- <img src="./img/cureutils_logo.png" />
7
+ <a href=https://badge.fury.io/rb/cureutils><img src="https://badge.fury.io/rb/cureutils.svg" alt="Gem Version" /></a>
8
+ <a href=https://travis-ci.org/greymd/cureutils><img src="https://travis-ci.org/greymd/cureutils.svg?branch=master" alt="Build Status" /></a>
3
9
  </p>
4
10
 
5
- # Cureutils
6
- [![Gem Version](https://badge.fury.io/rb/cureutils.svg)](https://badge.fury.io/rb/cureutils)
7
- [![Build Status](https://travis-ci.org/greymd/cureutils.svg?branch=master)](https://travis-ci.org/greymd/cureutils)
8
-
9
- Useful command line tool for Japanese battle heroine Pretty Cure (Precure).
11
+ <p align="center">
12
+  <img src="https://raw.githubusercontent.com/wiki/greymd/cureutils/animation/cure_echo_demo.gif" alt="Introduction Git Animation" />
13
+ </p>
10
14
 
11
- ![completion_image](./img/cure_echo_demo.gif)
12
15
 
13
16
  ## Requirements
14
17
 
@@ -52,7 +52,7 @@ class EchoLogic < BaseLogic
52
52
  private
53
53
 
54
54
  def original_transform(precure)
55
- return precure.transform! unless precure.respond_to?(:transform_styles)
55
+ return precure.transform! unless transformable?(precure)
56
56
  chosen_style = @style_priority.find do |s|
57
57
  precure.transform_styles.include?(s)
58
58
  end
@@ -64,6 +64,12 @@ class EchoLogic < BaseLogic
64
64
  end
65
65
  end
66
66
 
67
+ def transformable?(precure)
68
+ return false if precure.transform_calls.nil?
69
+ return true if precure.respond_to?(:transform_styles)
70
+ false
71
+ end
72
+
67
73
  def existing_precure?
68
74
  found_precure = Rubicure::Girl.config.find do |k, _v|
69
75
  k == @cure_name.to_sym
@@ -3,7 +3,7 @@ module Cureutils
3
3
  class Version
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- PATCH = 0
6
+ PATCH = 1
7
7
  PRE = nil
8
8
 
9
9
  class << self
data/zsh-completion/_cure CHANGED
@@ -42,7 +42,7 @@ precure_girl_names=(
42
42
  'cure_honey'
43
43
  'cure_lemonade'
44
44
  'cure_lovely'
45
- 'cure_macaroon'
45
+ 'cure_macaron'
46
46
  'cure_magical'
47
47
  'cure_march'
48
48
  'cure_marine'
@@ -121,6 +121,7 @@ function _cure-date () {
121
121
  local -a args
122
122
  args=(
123
123
  '-d: cure date -d STRING: Display time described by STRING.'
124
+ '-f: cure date -f DATEFILE: cure date -f DATEFILE: Load each line of DATEFILE as STRING of -d option.'
124
125
  '+%Y/%m/%d_%H\:%M\:%S_@P: Example date string 1.'
125
126
  '+%Y/%m/%d_@P: Example date string 2.'
126
127
  )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cureutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yamada, Yasuhiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-26 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project:
169
- rubygems_version: 2.5.1
169
+ rubygems_version: 2.6.12
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: Useful commands for battle heroine Pretty Cure (Precure).