extract_files 0.0.2 → 0.0.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.
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
- # extract_files
1
+ # Extract Files [![Build Status](https://secure.travis-ci.org/guillermo/extract_files.png)](http://travis-ci.org/guillermo/extract_files)
2
2
 
3
3
  Extract files from files or stdin for a given extension.
4
+ [![endorse](http://api.coderwall.com/guillermo/endorsecount.png)](http://coderwall.com/guillermo)
4
5
 
5
6
  ## Yes, but i can do that with sed.
6
7
 
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ task :test do
6
6
  sh "ruby -I lib -rubygems test/extract_files_test.rb"
7
7
  end
8
8
 
9
- file 'bin/extract_files' => ['lib/extract_files.rb', 'lib/extract_files/optparse.rb'] do
9
+ file 'bin/extract_files' => ['lib/extract_files.rb', 'lib/extract_files/cli.rb'] do
10
10
  sh "echo '#!/usr/bin/env ruby' > bin/extract_files"
11
11
  sh "cat lib/extract_files.rb >> bin/extract_files"
12
12
  sh "cat lib/extract_files/cli.rb >> bin/extract_files"
@@ -99,7 +99,7 @@ OptionParser.new do |opts|
99
99
 
100
100
  end.parse!
101
101
 
102
- if ARGV.empty? || !$stdin.tty?
102
+ if ARGV.empty? && !$stdin.tty?
103
103
  ExtractFiles.extract!($stdin, options)
104
104
  exit 0
105
105
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  module ExtractFiles
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
 
5
5
  extend self
6
6
 
@@ -39,7 +39,7 @@ OptionParser.new do |opts|
39
39
 
40
40
  end.parse!
41
41
 
42
- if ARGV.empty? || !$stdin.tty?
42
+ if ARGV.empty? && !$stdin.tty?
43
43
  ExtractFiles.extract!($stdin, options)
44
44
  exit 0
45
45
  end
metadata CHANGED
@@ -1,48 +1,38 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: extract_files
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 2
10
- version: 0.0.2
11
6
  platform: ruby
12
- authors:
13
- - "Guillermo A\xCC\x81lvarez"
7
+ authors:
8
+ - Guillermo Álvarez
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-02-11 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-14 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: minitest
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70220539492880 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :development
33
- version_requirements: *id001
34
- description: |-
35
- Tired of generating big builds for the cdn? Just want to know wich files your designers in their css are really using? The images of all the static fiels? extract_files look inside json, html, css, and look for files based on a given extension or extensions.
36
- run extract_files -h to have more help.
37
- email:
23
+ prerelease: false
24
+ version_requirements: *70220539492880
25
+ description: ! "Tired of generating big builds for the cdn? Just want to know wich
26
+ files your designers in their css are really using? The images of all the static
27
+ fiels? extract_files look inside json, html, css, and look for files based on a
28
+ given extension or extensions.\n\t\trun extract_files -h to have more help."
29
+ email:
38
30
  - guillermo@cientifico.net
39
- executables:
31
+ executables:
40
32
  - extract_files
41
33
  extensions: []
42
-
43
34
  extra_rdoc_files: []
44
-
45
- files:
35
+ files:
46
36
  - .gitignore
47
37
  - .travis.yml
48
38
  - Gemfile
@@ -52,45 +42,35 @@ files:
52
42
  - extract_files.gemspec
53
43
  - lib/extract_files.rb
54
44
  - lib/extract_files/cli.rb
55
- - lib/extract_files/optparse.rb
56
45
  - test/extract_files_test.rb
57
46
  - test/fixtures/files.json
58
47
  - test/fixtures/index.html
59
48
  - test/fixtures/style.css
60
49
  homepage: https://github.com/guillermo/extract_files
61
50
  licenses: []
62
-
63
51
  post_install_message:
64
52
  rdoc_options: []
65
-
66
- require_paths:
53
+ require_paths:
67
54
  - lib
68
- required_ruby_version: !ruby/object:Gem::Requirement
55
+ required_ruby_version: !ruby/object:Gem::Requirement
69
56
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
77
- required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
62
  none: false
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- hash: 3
83
- segments:
84
- - 0
85
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
86
67
  requirements: []
87
-
88
68
  rubyforge_project: extract_files
89
- rubygems_version: 1.8.15
69
+ rubygems_version: 1.8.16
90
70
  signing_key:
91
71
  specification_version: 3
92
72
  summary: Extract files from stdin or files given an extension/extensions
93
- test_files:
73
+ test_files:
94
74
  - test/extract_files_test.rb
95
75
  - test/fixtures/files.json
96
76
  - test/fixtures/index.html