wc 0.95.1 → 0.96.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Rakefile +1 -3
  2. data/VERSION +1 -1
  3. data/bin/wc +8 -6
  4. data/lib/wc.rb +7 -7
  5. data/wc.gemspec +2 -5
  6. metadata +5 -21
data/Rakefile CHANGED
@@ -15,9 +15,7 @@ begin
15
15
  gem.add_development_dependency "builder", ">=2.1.2"
16
16
  gem.add_development_dependency "json_pure", ">=1.4.3"
17
17
 
18
- # gem.add_dependency "getoptlong", ">=0"
19
- #gem.add_dependency "builder", ">=2.1.2"
20
- gem.add_dependency "json_pure", ">=1.4.3"
18
+ # gem.add_dependency "json_pure", ">=1.4.3"
21
19
 
22
20
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
23
21
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.95.1
1
+ 0.96.0
data/bin/wc CHANGED
@@ -8,7 +8,7 @@ opts = GetoptLong.new(
8
8
  [ '--help', '-h', GetoptLong::NO_ARGUMENT ],
9
9
  [ '--words', '-w', GetoptLong::REQUIRED_ARGUMENT],
10
10
  [ '--version', '-v', GetoptLong::NO_ARGUMENT ],
11
- [ '--json', '-j', GetoptLong::NO_ARGUMENT ],
11
+ # [ '--json', '-j', GetoptLong::NO_ARGUMENT ],
12
12
  [ '--xml', '-x', GetoptLong::NO_ARGUMENT ],
13
13
  [ '--cloud', '-c', GetoptLong::NO_ARGUMENT],
14
14
  [ '--hide-commons', '-H', GetoptLong::NO_ARGUMENT]
@@ -28,8 +28,8 @@ opts.each do |opt, arg|
28
28
  @version = File.exist?('VERSION') ? File.read('VERSION') : ""
29
29
  puts @version
30
30
  exit 0
31
- when '--json'
32
- output = 'json'
31
+ # when '--json'
32
+ # output = 'json'
33
33
  when '--words'
34
34
  words = arg.to_i
35
35
  when '--cloud'
@@ -63,9 +63,11 @@ w = Wc.new(ARGV[0], options )
63
63
  if output == 'text'
64
64
  w.to_text
65
65
  end
66
- if output == 'json'
67
- p w.to_json
68
- end
66
+
67
+ # if output == 'json'
68
+ # p w.to_json
69
+ #end
70
+
69
71
  if output == 'xml'
70
72
  puts 'xml support is coming soon...'
71
73
  end
data/lib/wc.rb CHANGED
@@ -45,13 +45,13 @@ class Wc
45
45
  end
46
46
  end
47
47
 
48
- def to_json
49
- if @words == -1
50
- return @sorted.to_json
51
- else
52
- return @sorted[0..@words-1].to_json
53
- end
54
- end
48
+ # def to_json
49
+ # if @words == -1
50
+ # return @sorted.to_json
51
+ # else
52
+ # return @sorted[0..@words-1].to_json
53
+ # end
54
+ # end
55
55
 
56
56
  def to_cloud
57
57
  if @words == -1
data/wc.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wc}
8
- s.version = "0.95.1"
8
+ s.version = "0.96.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paolo Perego"]
12
- s.date = %q{2010-07-14}
12
+ s.date = %q{2010-07-15}
13
13
  s.default_executable = %q{wc}
14
14
  s.description = %q{your ruby word counter experience}
15
15
  s.email = %q{thesp0nge@gmail.com}
@@ -49,18 +49,15 @@ Gem::Specification.new do |s|
49
49
  s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
50
50
  s.add_development_dependency(%q<builder>, [">= 2.1.2"])
51
51
  s.add_development_dependency(%q<json_pure>, [">= 1.4.3"])
52
- s.add_runtime_dependency(%q<json_pure>, [">= 1.4.3"])
53
52
  else
54
53
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
55
54
  s.add_dependency(%q<builder>, [">= 2.1.2"])
56
55
  s.add_dependency(%q<json_pure>, [">= 1.4.3"])
57
- s.add_dependency(%q<json_pure>, [">= 1.4.3"])
58
56
  end
59
57
  else
60
58
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
61
59
  s.add_dependency(%q<builder>, [">= 2.1.2"])
62
60
  s.add_dependency(%q<json_pure>, [">= 1.4.3"])
63
- s.add_dependency(%q<json_pure>, [">= 1.4.3"])
64
61
  end
65
62
  end
66
63
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 353
4
+ hash: 415
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 95
9
- - 1
10
- version: 0.95.1
8
+ - 96
9
+ - 0
10
+ version: 0.96.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paolo Perego
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-14 00:00:00 +02:00
18
+ date: 2010-07-15 00:00:00 +02:00
19
19
  default_executable: wc
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -64,22 +64,6 @@ dependencies:
64
64
  version: 1.4.3
65
65
  type: :development
66
66
  version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- name: json_pure
69
- prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 1
76
- segments:
77
- - 1
78
- - 4
79
- - 3
80
- version: 1.4.3
81
- type: :runtime
82
- version_requirements: *id004
83
67
  description: your ruby word counter experience
84
68
  email: thesp0nge@gmail.com
85
69
  executables: