version_info 1.7.5 → 1.7.6
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.
- checksums.yaml +4 -4
- data/.travis.yml +4 -1
- data/Gemfile.lock +15 -13
- data/lib/version_info/version.rb +1 -1
- data/spec/spec_helper.rb +26 -0
- data/spec/version_info/yaml_format_spec.rb +2 -11
- data/version_info.gemspec +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4f6f8ee409be854f1ac7aa7343caecc47cd4afb
|
|
4
|
+
data.tar.gz: 82e95d1d50cdd7b7127efc7444db319274d01276
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 571b0268e58f40889f6188ed9c4181c5d507c04ea54eedc10edbd1b67bf2c605b1d4fd20987208b7eca928895a2bf9ca73b0327b2360145cdbdc076c0adaa7a8
|
|
7
|
+
data.tar.gz: 653b33f2b57782cda270c63a031b7ca6b45db3dd9c569f1243a6f6cedfa788aa9196bc85fd2e2fb909037dcb346bc2e693abef3dcbf0528831f76f7748d43c3d
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
version_info (1.7.
|
|
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
|
|
10
|
-
notifier (0.
|
|
11
|
-
rake (0.
|
|
12
|
-
rspec (2.
|
|
13
|
-
rspec-core (~> 2.
|
|
14
|
-
rspec-expectations (~> 2.
|
|
15
|
-
rspec-mocks (~> 2.
|
|
16
|
-
rspec-core (2.
|
|
17
|
-
rspec-expectations (2.
|
|
18
|
-
diff-lcs (
|
|
19
|
-
rspec-mocks (2.
|
|
20
|
-
|
|
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!
|
data/lib/version_info/version.rb
CHANGED
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
|
-
|
|
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
|
-
|
|
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
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.
|
|
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-
|
|
11
|
+
date: 2013-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|