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 +4 -4
- data/.gitignore +1 -0
- data/README.md +10 -7
- data/lib/cureutils/logic/echo_logic.rb +7 -1
- data/lib/cureutils/version.rb +1 -1
- data/zsh-completion/_cure +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14cf7447d753b81fb29b879d607b9add58d0b7bc
|
4
|
+
data.tar.gz: 5efc504898786d1926416a33dc7ad9d60a6c9b6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2d18ff6e40e0f602ac5ca4970e5742bdb0bf077f327b3d3f0c85ef3e63bc4e9109ef138ce5a04347e18ce07803d39db6b60d4117225655facc7ad0a55d40c70
|
7
|
+
data.tar.gz: 066c75d2870108ccd24afdfdc142b182f2d818cd6a9f8137f17a09c59351b871de8cddbda1d5ebf8892317bc85b42d0d2334070fb631b4c78a6930efb1367f90
|
data/.gitignore
CHANGED
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="
|
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
|
-
|
6
|
-
|
7
|
-
|
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
|
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
|
data/lib/cureutils/version.rb
CHANGED
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
|
-
'
|
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.
|
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-
|
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.
|
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).
|