subelsky_power_tools 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/Rakefile +15 -5
- data/lib/subelsky_power_tools/environment.rb +1 -1
- data/lib/subelsky_power_tools/version.rb +1 -1
- metadata +5 -7
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
@@ -1,10 +1,20 @@
|
|
1
1
|
#!/usr/bin/env ruby"
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "rubygems"
|
4
|
+
require "bundler"
|
5
5
|
|
6
|
-
|
6
|
+
desc "release"
|
7
|
+
task :release do
|
8
|
+
require "./lib/subelsky_power_tools/version.rb"
|
7
9
|
|
8
|
-
|
9
|
-
|
10
|
+
puts "Getting ready to tag and release #{SubelskyPowerTools::VERSION} - is this correct?"
|
11
|
+
answer = $stdin.gets.chomp!
|
12
|
+
|
13
|
+
exit if answer =~ /n/i
|
14
|
+
|
15
|
+
`bundle`
|
16
|
+
`git commit -ma "v#{SubelskyPowerTools::VERSION}"`
|
17
|
+
`git tag '#{SubelskyPowerTools::VERSION}'`
|
18
|
+
`gem build subelsky_power_tools.gemspec`
|
19
|
+
`gem push subelsky_power_tools-#{SubelskyPowerTools::VERSION}`
|
10
20
|
end
|
@@ -18,7 +18,7 @@ module SubelskyPowerTools::Environment
|
|
18
18
|
msg = "Must specify #{keys.join(", ")}"
|
19
19
|
|
20
20
|
keys.inject([]) do |total,key|
|
21
|
-
|
21
|
+
raise msg if raise_error_if_blank && ENV[key].to_s.strip.empty?
|
22
22
|
total << ENV[key]
|
23
23
|
end
|
24
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subelsky_power_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08-
|
13
|
-
default_executable:
|
12
|
+
date: 2011-08-22 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rspec
|
17
|
-
requirement: &
|
16
|
+
requirement: &2164644480 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ! '>='
|
@@ -22,7 +21,7 @@ dependencies:
|
|
22
21
|
version: '0'
|
23
22
|
type: :development
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *2164644480
|
26
25
|
description: ! "This is a collection of Ruby extensions and utilities I've been carting
|
27
26
|
around from project to project. \nMany are taken from the Facets project (I just
|
28
27
|
don't want to include that whole gem in my codebases).\n"
|
@@ -54,7 +53,6 @@ files:
|
|
54
53
|
- spec/lib/ext/kernel_spec.rb
|
55
54
|
- spec/spec_helper.rb
|
56
55
|
- subelsky_power_tools.gemspec
|
57
|
-
has_rdoc: true
|
58
56
|
homepage: http://github.com/subelsky/subelsky_power_tools
|
59
57
|
licenses:
|
60
58
|
- MIT
|
@@ -77,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
75
|
version: '0'
|
78
76
|
requirements: []
|
79
77
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.
|
78
|
+
rubygems_version: 1.8.8
|
81
79
|
signing_key:
|
82
80
|
specification_version: 3
|
83
81
|
summary: This is a collection of Ruby extensions and utilities I've been carting around
|