sinew 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/sinew +10 -1
  2. data/lib/sinew/version.rb +1 -1
  3. metadata +4 -4
data/bin/sinew CHANGED
@@ -3,7 +3,16 @@
3
3
  require "sinew"
4
4
  require "trollop"
5
5
 
6
- raise "Sinew requires Ruby 1.9 or higher" if RUBY_VERSION < "1.9"
6
+ # check requirements
7
+ if RUBY_VERSION < "1.9"
8
+ Sinew::Util.fatal "Sorry, Sinew requires Ruby 1.9 or higher. Please install it."
9
+ end
10
+ %w(curl tidy).each do |i|
11
+ system("which #{i} > /dev/null")
12
+ if $? != 0
13
+ Sinew::Util.fatal "Sorry, Sinew requires #{i}. Please install it."
14
+ end
15
+ end
7
16
 
8
17
  # ARGV
9
18
  options = Trollop.options do
@@ -1,4 +1,4 @@
1
1
  module Sinew
2
2
  # Gem version
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinew
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-08 00:00:00.000000000 Z
12
+ date: 2012-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -166,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  segments:
168
168
  - 0
169
- hash: 3826085578057738592
169
+ hash: -1578176275991755695
170
170
  required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  segments:
177
177
  - 0
178
- hash: 3826085578057738592
178
+ hash: -1578176275991755695
179
179
  requirements: []
180
180
  rubyforge_project: sinew
181
181
  rubygems_version: 1.8.21