version_info 1.7.5 → 1.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c50148d26c1d9cf20391b428792016d4135b6994
4
- data.tar.gz: 92ec858d0f11b4dc0cae2d77d433c07cfec85942
3
+ metadata.gz: c4f6f8ee409be854f1ac7aa7343caecc47cd4afb
4
+ data.tar.gz: 82e95d1d50cdd7b7127efc7444db319274d01276
5
5
  SHA512:
6
- metadata.gz: 93fa94284766f3cbfcf04cd6ab9c6852cd3fc5741e169ef5e2b21100ab82f1389c9a0f63976c6989aa9ec40522f04f86cbc83d55f75b04d57e67ea4c47fa408f
7
- data.tar.gz: 0763701f7deaa063d996cf141e564d42bdef93b0a85be4af840425275db0740e4c762d640de9502ea5bdebba48966bb212b37c9d9b48651d47a1306244f4422a
6
+ metadata.gz: 571b0268e58f40889f6188ed9c4181c5d507c04ea54eedc10edbd1b67bf2c605b1d4fd20987208b7eca928895a2bf9ca73b0327b2360145cdbdc076c0adaa7a8
7
+ data.tar.gz: 653b33f2b57782cda270c63a031b7ca6b45db3dd9c569f1243a6f6cedfa788aa9196bc85fd2e2fb909037dcb346bc2e693abef3dcbf0528831f76f7748d43c3d
data/.travis.yml CHANGED
@@ -1 +1,4 @@
1
- rvm: 1.9.2
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
data/Gemfile.lock CHANGED
@@ -1,23 +1,24 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- version_info (1.7.4)
4
+ version_info (1.7.6)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- diff-lcs (1.1.3)
10
- notifier (0.2.1)
11
- rake (0.9.2.2)
12
- rspec (2.10.0)
13
- rspec-core (~> 2.10.0)
14
- rspec-expectations (~> 2.10.0)
15
- rspec-mocks (~> 2.10.0)
16
- rspec-core (2.10.0)
17
- rspec-expectations (2.10.0)
18
- diff-lcs (~> 1.1.3)
19
- rspec-mocks (2.10.1)
20
- test_notifier (1.0.0)
9
+ diff-lcs (1.2.1)
10
+ notifier (0.4.1)
11
+ rake (10.0.3)
12
+ rspec (2.13.0)
13
+ rspec-core (~> 2.13.0)
14
+ rspec-expectations (~> 2.13.0)
15
+ rspec-mocks (~> 2.13.0)
16
+ rspec-core (2.13.1)
17
+ rspec-expectations (2.13.0)
18
+ diff-lcs (>= 1.1.3, < 2.0)
19
+ rspec-mocks (2.13.0)
20
+ ruby-snarl (0.0.8)
21
+ test_notifier (1.0.1)
21
22
  notifier
22
23
 
23
24
  PLATFORMS
@@ -29,5 +30,6 @@ DEPENDENCIES
29
30
  notifier
30
31
  rake
31
32
  rspec
33
+ ruby-snarl
32
34
  test_notifier
33
35
  version_info!
@@ -1,6 +1,6 @@
1
1
 
2
2
  module VersionInfo
3
- VERSION = "1.7.5"
3
+ VERSION = "1.7.6"
4
4
  versionable(self)
5
5
  VERSION.file_name = __FILE__
6
6
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,29 @@
1
+
1
2
  require 'test_notifier/runner/rspec'
2
3
  require 'version_info'
3
4
 
5
+ if Notifier.os?(/mingw32/)
6
+ module Notifier
7
+ module Growl
8
+ def supported?
9
+ return true
10
+ end
11
+ def notify(options)
12
+ command = [
13
+ "growlnotify",
14
+ "/a:test_notifier",
15
+ "/i:" + options.fetch(:image, ''),
16
+ "/p:2",
17
+ "/silent:true",
18
+ "/r:" + '"General Notification"',
19
+ "/t:" + options[:title],
20
+ options[:message]
21
+ ]
22
+ system(*command)
23
+ end
24
+
25
+ def self.register
26
+ end
27
+ end
28
+ end
29
+ end
@@ -22,12 +22,7 @@ describe "Yaml file format" do
22
22
  @test_module::VERSION.bump(:minor)
23
23
  @test_module::VERSION.save
24
24
  # Seems like YAML has removed one space in ruby 1.9.2p290
25
- # TODO: check for ruby 1.9.2
26
- if RUBY_VERSION == "1.9.2" && RUBY_PATCHLEVEL < 290
27
- io.string.should == "--- \nmajor: 0\nminor: 1\npatch: 0\n"
28
- else
29
- io.string.should == "---\nmajor: 0\nminor: 1\npatch: 0\n"
30
- end
25
+ io.string.should == "---\nmajor: 0\nminor: 1\npatch: 0\n"
31
26
  end
32
27
 
33
28
  it "can save custom data " do
@@ -36,11 +31,7 @@ describe "Yaml file format" do
36
31
  @test_module::VERSION.bump(:minor)
37
32
  @test_module::VERSION.author = 'jcangas'
38
33
  @test_module::VERSION.save
39
- if RUBY_VERSION == "1.9.2" && RUBY_PATCHLEVEL < 290
40
- io.string.should == "--- \nmajor: 0\nminor: 1\npatch: 0\nauthor: jcangas\n"
41
- else
42
- io.string.should == "---\nmajor: 0\nminor: 1\npatch: 0\nauthor: jcangas\n"
43
- end
34
+ io.string.should == "---\nmajor: 0\nminor: 1\npatch: 0\nauthor: jcangas\n"
44
35
  end
45
36
 
46
37
  it "can load " do
data/version_info.gemspec CHANGED
@@ -25,4 +25,5 @@ Gem::Specification.new do |s|
25
25
  s.add_development_dependency "rspec"
26
26
  s.add_development_dependency "test_notifier"
27
27
  s.add_development_dependency "notifier"
28
+ # s.add_development_dependency "ruby-snarl"
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: version_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.5
4
+ version: 1.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge L. Cangas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-20 00:00:00.000000000 Z
11
+ date: 2013-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler