ackr 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ff9e8084e704fb5826928ac00105d79fca492ac
4
- data.tar.gz: 1b00f8dd5186a44146f692ef2729bb8d73a6fd58
3
+ metadata.gz: 723d57d979630840c8af692655066146c380df19
4
+ data.tar.gz: 49fd8e8b4fa00741c3a79ed97a915c11944664a5
5
5
  SHA512:
6
- metadata.gz: 5e0b5452c461c22320fdd0b0c71d449d0ace2c6cdd92b73ba384c3082b3d51a2d8396ac6043e6e537cddc488b868d6d2e86b4f8e907db5cc4cc5091abd5c1206
7
- data.tar.gz: 24b7ae6a4c9a2d241601027440b593eef2508c110b1179e6fdeb31a7ea57e1f3eef1232c477293a983968baf8b65631569f5bf1b07715e04e1a645a5f3d49019
6
+ metadata.gz: 1af7234a9a63e68a0c1cb34b5b1dd739cbf5d4fb95c9326fa08878d4af510e8ac961f7a928ba469e0285c9f784d4c646dd87e293d0e530b81ac589a84153b523
7
+ data.tar.gz: ead2bf73a5cdae0edbbf04c3c0750f102febd3ed1d50342009e66878ef96873cbcdc6d84c246b0e551e41c1fd333b1100abe4501a77b8764b36043699dbd5424
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ackr (0.2.1)
5
- rainbow (= 1.1.4)
4
+ ackr (0.2.2)
5
+ rainbow (= 1.99.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  diff-lcs (1.2.5)
11
- rainbow (1.1.4)
11
+ rainbow (1.99.2)
12
12
  rake (10.1.1)
13
13
  rspec (2.14.1)
14
14
  rspec-core (~> 2.14.0)
data/README.markdown CHANGED
@@ -1,7 +1,7 @@
1
- Ackr [![Build Status](https://travis-ci.org/lkdjiin/ackr.png)](https://travis-ci.org/lkdjiin/ackr)
1
+ Ackr [![Build Status](https://travis-ci.org/lkdjiin/ackr.png)](https://travis-ci.org/lkdjiin/ackr) [![Gem Version](https://badge.fury.io/rb/ackr.png)](http://badge.fury.io/rb/ackr)
2
2
  ================
3
3
 
4
- Ackr is a minimalist subset of grep/ack/rak, for **lazy developers**.
4
+ Ackr is the very minimum subset of grep/ack/rak I can think of for **lazy developers**.
5
5
 
6
6
  Description
7
7
  -----------
@@ -24,7 +24,7 @@ Here comes ackr:
24
24
  * Ackr doesn't look into hidden folders/files
25
25
  * Search term is displayed in bold font
26
26
 
27
- It runs on linux. It maybe runs on mac os. I guess it won't run on windows.
27
+ It runs on unixes. I guess it won't run on windows.
28
28
 
29
29
  And one more thing: ackr **is not a replacement to grep/ack**. If you
30
30
  need grep power, just use grep!
@@ -44,12 +44,40 @@ To look for a string (case insensitive):
44
44
  8| # FIXME Separate behaviours: search / print
45
45
 
46
46
  README.markdown
47
- 21| $ackr fixme
47
+ 21| $ ackr fixme
48
48
 
49
49
  Using a regexp (same search as above):
50
50
 
51
51
  $ ackr /fixme/i
52
52
 
53
+ If you want to search only in a specific directory, you can temporarily
54
+ `cd` into it like this:
55
+
56
+ (cd your/path && ackr yoursearch)
57
+
58
+ ### Tips
59
+
60
+ To look for a string containing spaces, quote the string:
61
+
62
+ $ ackr 'string with spaces'
63
+
64
+ To look for a regex containing spaces, quote the regex:
65
+
66
+ $ ackr '/regex with spaces/'
67
+
68
+ or escape the spaces:
69
+
70
+ $ ackr /regex\ with\ spaces/
71
+
72
+ When your search string contains some characters special to Bash you
73
+ will have troubles. For example, instead of:
74
+
75
+ $ ackr &:active
76
+
77
+ you must use:
78
+
79
+ $ ackr '&:active'
80
+
53
81
  ### Ignored files and directories
54
82
 
55
83
  Ackr doesn't look into hidden files or directories. In addition, ackr
@@ -70,26 +98,18 @@ into it and make the search.
70
98
 
71
99
  ### Caveats
72
100
 
73
- Ackr is young. Ackr is slow, very slow...
74
- I will consider performance in a future version.
75
-
76
- More to come
77
- --------------------------
78
-
79
- Next version may include
80
-
81
- * fuzzy search
82
- * configuration
101
+ Ackr is slow, very slow...
102
+ May be I will consider performance in a future version.
83
103
 
84
104
  Dependencies
85
105
  --------------------------
86
106
 
87
- * ruby >= 1.9.2
107
+ * ruby >= 1.9.3
88
108
 
89
109
  ## Contributing
90
110
 
91
111
  1. Fork it
92
- 2. Create your feature branch (`git checkout -b my-new-feature`)
112
+ 2. Create your feature branch (`git checkout -b my-new-feature develop`)
93
113
  3. Commit your changes (`git commit -am 'Add some feature'`)
94
114
  4. Push to the branch (`git push origin my-new-feature`)
95
115
  5. Create new Pull Request
data/TODO CHANGED
@@ -1,20 +1,9 @@
1
- Ruby 2.1.1 sur travis à la place de 2.1.0
1
+ [x] Ruby 2.1 sur travis à la place de 2.1.0
2
+ [x] Remove 1.9.2 on travis
3
+ [x] Fix the rainbow issue (test 1.99.2)
4
+ [ ] Make it pipeable
5
+ [ ] Make it themeable
2
6
 
3
- Bug:
4
- $ ackr /Bad studying method/
5
- Ne trouve rien alors que
6
- $ ackr "Bad studying method"
7
- Trouve bien:
8
- lib/cellula/study.rb
9
- 28| panic "Bad studying method: #{method}" if method != :random
10
-
11
- documenter:
12
-
13
- ackr &:active
14
- # => Impossible / Erreur
15
- À la place il faut écrire:
16
-
17
- ackr '&:active'
18
7
  ---------------------------
19
8
  annonce release sur freecode, mon blog
20
9
  ajouter screenshot sur freecode
@@ -22,9 +11,6 @@ ajouter screenshot sur freecode
22
11
  ---------------------------
23
12
  Site web
24
13
 
25
- ---------------------------
26
- fichier de config
27
-
28
14
  ---------------------------
29
15
  Écrire à rainbow owner pour lui dire que j'utilise son truc
30
16
  dans ce projet.
@@ -32,11 +18,5 @@ dans ce projet.
32
18
  ---------------------------
33
19
  Améliorer les perfs
34
20
 
35
- ---------------------------
36
- fuzzy search:
37
- $ ackf abc
38
- path/to/file
39
- 00001| a123 b 2 568 c
40
-
41
21
  ---------------------------
42
22
  une ligne sur le terminal fait 80 char max
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
- gem 'rainbow', '= 1.1.4'
3
+ gem 'rainbow', '= 1.99.2'
4
4
  require 'rainbow'
5
5
 
6
6
  module Ackr
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ackr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavier Nayrac
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-01 00:00:00.000000000 Z
11
+ date: 2014-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow
@@ -16,22 +16,21 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.4
19
+ version: 1.99.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.1.4
27
- description: Ackr is a very small subset of grep/ack/rak, for lazy developers
26
+ version: 1.99.2
27
+ description: Ackr is the smallest subset of ack/rak/ag I can think of. For lazy developers
28
28
  email: xavier.nayrac@gmail.com
29
29
  executables:
30
30
  - ackr
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - Changelog.md
35
34
  - Gemfile
36
35
  - Gemfile.lock
37
36
  - LICENSE.txt
@@ -58,7 +57,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - ">="
60
59
  - !ruby/object:Gem::Version
61
- version: 1.9.2
60
+ version: 1.9.3
62
61
  required_rubygems_version: !ruby/object:Gem::Requirement
63
62
  requirements:
64
63
  - - ">="
@@ -69,6 +68,6 @@ rubyforge_project:
69
68
  rubygems_version: 2.2.0.rc.1
70
69
  signing_key:
71
70
  specification_version: 4
72
- summary: Ackr is a very small subset of grep/ack/rak, for lazy developers
71
+ summary: The smallest subset of ack/rak/ag. For lazy developers
73
72
  test_files: []
74
73
  has_rdoc:
data/Changelog.md DELETED
@@ -1,11 +0,0 @@
1
- 2014-03-01 version 0.2.2
2
- ========================
3
-
4
- * Fix bundle
5
-
6
-
7
- 2014-03-01 version 0.2.1
8
- ========================
9
-
10
- * Fix rainbow gem version
11
- https://github.com/lkdjiin/ackr/issues/1