rubyc 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,5 +1,5 @@
1
1
  *.gem
2
2
  .bundle
3
- Gemfile.lock
4
3
  pkg/*
5
4
  .DS_Store
5
+ *.swp
data/Gemfile.lock ADDED
@@ -0,0 +1,92 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rubyc (0.1.2)
5
+ thor (~> 0.15)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ archive-tar-minitar (0.5.2)
11
+ aruba (0.4.11)
12
+ childprocess (>= 0.2.3)
13
+ cucumber (>= 1.1.1)
14
+ ffi (>= 1.0.11)
15
+ rspec (>= 2.7.0)
16
+ builder (3.1.3)
17
+ childprocess (0.3.5)
18
+ ffi (~> 1.0, >= 1.0.6)
19
+ coderay (1.0.7)
20
+ colorize (0.5.8)
21
+ columnize (0.3.6)
22
+ cucumber (1.2.1)
23
+ builder (>= 2.1.2)
24
+ diff-lcs (>= 1.1.3)
25
+ gherkin (~> 2.11.0)
26
+ json (>= 1.4.6)
27
+ diff-lcs (1.1.3)
28
+ ffi (1.1.5)
29
+ gherkin (2.11.2)
30
+ json (>= 1.4.6)
31
+ guard (1.3.2)
32
+ listen (>= 0.4.2)
33
+ thor (>= 0.14.6)
34
+ guard-minitest (0.5.0)
35
+ guard (>= 0.4)
36
+ json (1.7.5)
37
+ linecache (0.46)
38
+ rbx-require-relative (> 0.0.4)
39
+ linecache19 (0.5.12)
40
+ ruby_core_source (>= 0.1.4)
41
+ listen (0.5.1)
42
+ method_source (0.8)
43
+ minitest (3.4.0)
44
+ pry (0.9.10)
45
+ coderay (~> 1.0.5)
46
+ method_source (~> 0.8)
47
+ slop (~> 3.3.1)
48
+ rake (0.9.2.2)
49
+ rb-fsevent (0.9.1)
50
+ rbx-require-relative (0.0.9)
51
+ rspec (2.11.0)
52
+ rspec-core (~> 2.11.0)
53
+ rspec-expectations (~> 2.11.0)
54
+ rspec-mocks (~> 2.11.0)
55
+ rspec-core (2.11.1)
56
+ rspec-expectations (2.11.3)
57
+ diff-lcs (~> 1.1.3)
58
+ rspec-mocks (2.11.2)
59
+ ruby-debug (0.10.4)
60
+ columnize (>= 0.1)
61
+ ruby-debug-base (~> 0.10.4.0)
62
+ ruby-debug-base (0.10.4)
63
+ linecache (>= 0.3)
64
+ ruby-debug-base19 (0.11.25)
65
+ columnize (>= 0.3.1)
66
+ linecache19 (>= 0.5.11)
67
+ ruby_core_source (>= 0.1.4)
68
+ ruby-debug19 (0.11.6)
69
+ columnize (>= 0.3.1)
70
+ linecache19 (>= 0.5.11)
71
+ ruby-debug-base19 (>= 0.11.19)
72
+ ruby_core_source (0.1.5)
73
+ archive-tar-minitar (>= 0.5.2)
74
+ slop (3.3.3)
75
+ thor (0.16.0)
76
+
77
+ PLATFORMS
78
+ ruby
79
+
80
+ DEPENDENCIES
81
+ aruba
82
+ bundler (~> 1.0)
83
+ colorize
84
+ guard
85
+ guard-minitest
86
+ minitest
87
+ pry
88
+ rake
89
+ rb-fsevent (~> 0.9.1)
90
+ ruby-debug (>= 0.10.3)
91
+ ruby-debug19
92
+ rubyc!
data/README.md CHANGED
@@ -42,11 +42,11 @@ $ ???
42
42
  ```
43
43
  The Ruby interpreter with options way:
44
44
  ``` bash
45
- $ cat file1.csv | ruby -pe 'require "csv";csv = CSV.parse_line($_); $_ = [csv[2], csv[4]].to_s + "\n"'
45
+ $ cat file1.csv | ruby -r csv -pe 'csv = CSV.parse_line($_); $_ = [csv[1], csv[2]].to_s + "\n"'
46
46
  ```
47
47
  The Rubyc way:
48
48
  ``` bash
49
- $ cat file1.csv | rubyc map -r csv 'csv = CSV.parse_line(l); [csv[2], csv[3]]'
49
+ $ cat file1.csv | rubyc map -r csv 'csv = CSV.parse_line(l); [csv[1], csv[2]]'
50
50
  ```
51
51
  NOTE: -r is an alias for the --require= option indicates the gems needed for the exectution of the script. Note that for multiple require, gems must me separated with a :.
52
52
 
@@ -64,7 +64,7 @@ Extract the number of insertions per table in a rails log file.
64
64
 
65
65
  The shell way:
66
66
  ``` bash
67
- $ ???
67
+ $ cat development.log | grep "INSERT INTO" | sed 's/\(.*\)INSERT INTO..\([a-z]*\).*/ \2 /' | sort | uniq -c
68
68
  ```
69
69
  The Rubyc way:
70
70
  ``` bash
@@ -0,0 +1,2 @@
1
+ Column 1 Line 1,"Column 2, Line 1",Column 3 Line 1
2
+ Column 1 Line 2,Column 2 Line 2,Column 3 Line 2
data/lib/rubyc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rubyc
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/rubyc.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.description = %q{Adds Ruby's powers to the command line}
14
14
  s.rubyforge_project = "rubyc"
15
15
 
16
- s.add_dependency "thor"
16
+ s.add_dependency "thor", "~> 0.15"
17
17
  s.add_development_dependency 'rake'
18
18
  s.add_development_dependency "bundler", "~> 1.0"
19
19
  s.add_development_dependency 'minitest'
metadata CHANGED
@@ -1,119 +1,93 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rubyc
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Martin Chabot
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-09-19 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- prerelease: false
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- hash: 3
28
- segments:
29
- - 0
30
- version: "0"
31
- requirement: *id001
12
+ date: 2012-09-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
32
15
  name: thor
16
+ requirement: &70094492014140 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '0.15'
33
22
  type: :runtime
34
- - !ruby/object:Gem::Dependency
35
23
  prerelease: false
36
- version_requirements: &id002 !ruby/object:Gem::Requirement
37
- none: false
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- hash: 3
42
- segments:
43
- - 0
44
- version: "0"
45
- requirement: *id002
24
+ version_requirements: *70094492014140
25
+ - !ruby/object:Gem::Dependency
46
26
  name: rake
27
+ requirement: &70094492031300 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
47
33
  type: :development
48
- - !ruby/object:Gem::Dependency
49
34
  prerelease: false
50
- version_requirements: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70094492031300
36
+ - !ruby/object:Gem::Dependency
37
+ name: bundler
38
+ requirement: &70094492026780 !ruby/object:Gem::Requirement
51
39
  none: false
52
- requirements:
40
+ requirements:
53
41
  - - ~>
54
- - !ruby/object:Gem::Version
55
- hash: 15
56
- segments:
57
- - 1
58
- - 0
59
- version: "1.0"
60
- requirement: *id003
61
- name: bundler
42
+ - !ruby/object:Gem::Version
43
+ version: '1.0'
62
44
  type: :development
63
- - !ruby/object:Gem::Dependency
64
45
  prerelease: false
65
- version_requirements: &id004 !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
- version: "0"
74
- requirement: *id004
46
+ version_requirements: *70094492026780
47
+ - !ruby/object:Gem::Dependency
75
48
  name: minitest
49
+ requirement: &70094492040240 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
76
55
  type: :development
77
- - !ruby/object:Gem::Dependency
78
56
  prerelease: false
79
- version_requirements: &id005 !ruby/object:Gem::Requirement
80
- none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
- version: "0"
88
- requirement: *id005
57
+ version_requirements: *70094492040240
58
+ - !ruby/object:Gem::Dependency
89
59
  name: aruba
60
+ requirement: &70094492048360 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
90
66
  type: :development
91
- - !ruby/object:Gem::Dependency
92
67
  prerelease: false
93
- version_requirements: &id006 !ruby/object:Gem::Requirement
94
- none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- hash: 3
99
- segments:
100
- - 0
101
- version: "0"
102
- requirement: *id006
68
+ version_requirements: *70094492048360
69
+ - !ruby/object:Gem::Dependency
103
70
  name: colorize
71
+ requirement: &70094492044480 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
104
77
  type: :development
78
+ prerelease: false
79
+ version_requirements: *70094492044480
105
80
  description: Adds Ruby's powers to the command line
106
- email:
81
+ email:
107
82
  - chabotm@gmail.com
108
- executables:
83
+ executables:
109
84
  - rubyc
110
85
  extensions: []
111
-
112
86
  extra_rdoc_files: []
113
-
114
- files:
87
+ files:
115
88
  - .gitignore
116
89
  - Gemfile
90
+ - Gemfile.lock
117
91
  - Guardfile
118
92
  - LICENSE.txt
119
93
  - README.md
@@ -121,9 +95,9 @@ files:
121
95
  - bin/rubyc
122
96
  - features/fixtures/file1.csv
123
97
  - features/fixtures/file1.txt
98
+ - features/fixtures/file2.csv
124
99
  - features/fixtures/file2.txt
125
100
  - features/rubyc.feature
126
- - features/step_definitions/.rubyc_steps.rb.swp
127
101
  - features/step_definitions/rubyc_steps.rb
128
102
  - features/support/env.rb
129
103
  - lib/rubyc.rb
@@ -137,43 +111,40 @@ files:
137
111
  - spec/spec_helper.rb
138
112
  homepage: https://github.com/martinos/rubyc
139
113
  licenses: []
140
-
141
114
  post_install_message:
142
115
  rdoc_options: []
143
-
144
- require_paths:
116
+ require_paths:
145
117
  - lib
146
- required_ruby_version: !ruby/object:Gem::Requirement
118
+ required_ruby_version: !ruby/object:Gem::Requirement
147
119
  none: false
148
- requirements:
149
- - - ">="
150
- - !ruby/object:Gem::Version
151
- hash: 3
152
- segments:
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ segments:
153
125
  - 0
154
- version: "0"
155
- required_rubygems_version: !ruby/object:Gem::Requirement
126
+ hash: -157925569780101153
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
128
  none: false
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- hash: 3
161
- segments:
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ segments:
162
134
  - 0
163
- version: "0"
135
+ hash: -157925569780101153
164
136
  requirements: []
165
-
166
137
  rubyforge_project: rubyc
167
- rubygems_version: 1.8.11
138
+ rubygems_version: 1.8.10
168
139
  signing_key:
169
140
  specification_version: 3
170
141
  summary: Adds Ruby's powers to the command line
171
- test_files:
142
+ test_files:
172
143
  - features/fixtures/file1.csv
173
144
  - features/fixtures/file1.txt
145
+ - features/fixtures/file2.csv
174
146
  - features/fixtures/file2.txt
175
147
  - features/rubyc.feature
176
- - features/step_definitions/.rubyc_steps.rb.swp
177
148
  - features/step_definitions/rubyc_steps.rb
178
149
  - features/support/env.rb
179
150
  - spec/cli_spec.rb