gem_hadar 1.3.1 → 1.4.0

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: 46a05a3d00ed17399c548f3977694de619cd1ac6
4
- data.tar.gz: 84d644e66156843098b1f983215e95d404280871
3
+ metadata.gz: 3a29906f61af5a65300acb16f2c2834f70b4dd3e
4
+ data.tar.gz: 1a6d22b7e017822519c1595325f05b2658018d54
5
5
  SHA512:
6
- metadata.gz: 6319d4eefe09ec3f6dfd93be06c6e98f9e092b603531883becba2fc0f593bdffd5600bf3068c53814db97c91437e28c121f9a3e15c0611fa9df2592860d4821c
7
- data.tar.gz: 420e664f1c44a359ad455b8c8a80838029aae4f30f3c6204a3ed8a9f2a8d08e780456f9a417378920ab3fd6899d5844793150f576c9d5d2105bbacb9d60c823a
6
+ metadata.gz: ee56544272347d79464cc565306732bd3151cf84a8c8b4991c1748b803f1eb87e0058ddc5641f5b224ba85b55561017bdf7bcb8fe1ff726ac587c48e18da34d6
7
+ data.tar.gz: d7914706aef1fab37683de82a05cd5a03d1918a15a0bb20a9acea98776be3bdd4e76780a02062a5a2e4b2a5ae43f7b8d1b5e82395918bccc7974f15d8ed1e004
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.4.0
@@ -1,39 +1,39 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: gem_hadar 1.3.1 ruby lib
2
+ # stub: gem_hadar 1.4.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "gem_hadar"
6
- s.version = "1.3.1"
6
+ s.version = "1.4.0"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
10
10
  s.authors = ["Florian Frank"]
11
- s.date = "2015-06-23"
11
+ s.date = "2016-03-16"
12
12
  s.description = "This library contains some useful functionality to support the development of Ruby Gems"
13
13
  s.email = "flori@ping.de"
14
14
  s.extra_rdoc_files = ["README.md", "lib/gem_hadar.rb", "lib/gem_hadar/version.rb"]
15
15
  s.files = [".gitignore", "Gemfile", "LICENSE", "README.md", "Rakefile", "VERSION", "gem_hadar.gemspec", "lib/gem_hadar.rb", "lib/gem_hadar/version.rb"]
16
16
  s.homepage = "http://github.com/flori/gem_hadar"
17
17
  s.rdoc_options = ["--title", "GemHadar - Library for the development of Ruby Gems", "--main", "README.md"]
18
- s.rubygems_version = "2.4.6"
18
+ s.rubygems_version = "2.5.1"
19
19
  s.summary = "Library for the development of Ruby Gems"
20
20
 
21
21
  if s.respond_to? :specification_version then
22
22
  s.specification_version = 4
23
23
 
24
24
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
25
- s.add_development_dependency(%q<gem_hadar>, ["~> 1.3.1"])
25
+ s.add_development_dependency(%q<gem_hadar>, ["~> 1.4.0"])
26
26
  s.add_runtime_dependency(%q<tins>, ["~> 1.0"])
27
27
  s.add_runtime_dependency(%q<sdoc>, ["~> 0.3"])
28
28
  s.add_runtime_dependency(%q<rake>, ["~> 10.0"])
29
29
  else
30
- s.add_dependency(%q<gem_hadar>, ["~> 1.3.1"])
30
+ s.add_dependency(%q<gem_hadar>, ["~> 1.4.0"])
31
31
  s.add_dependency(%q<tins>, ["~> 1.0"])
32
32
  s.add_dependency(%q<sdoc>, ["~> 0.3"])
33
33
  s.add_dependency(%q<rake>, ["~> 10.0"])
34
34
  end
35
35
  else
36
- s.add_dependency(%q<gem_hadar>, ["~> 1.3.1"])
36
+ s.add_dependency(%q<gem_hadar>, ["~> 1.4.0"])
37
37
  s.add_dependency(%q<tins>, ["~> 1.0"])
38
38
  s.add_dependency(%q<sdoc>, ["~> 0.3"])
39
39
  s.add_dependency(%q<rake>, ["~> 10.0"])
@@ -256,7 +256,11 @@ class GemHadar
256
256
  s.add_development_dependency(*d)
257
257
  end
258
258
  for d in @dependencies
259
- s.add_dependency(*d)
259
+ if s.respond_to?(:add_runtime_dependency)
260
+ s.add_runtime_dependency(*d)
261
+ else
262
+ s.add_dependency(*d)
263
+ end
260
264
  end
261
265
 
262
266
  require_paths.full? { |r| s.require_paths = Array(r) }
@@ -447,11 +451,17 @@ EOT
447
451
  namespace :version do
448
452
  desc "Tag this commit as version #{version}"
449
453
  task :tag do
454
+ force = ENV['FORCE'].to_i == 1
450
455
  begin
451
- sh "git tag -a -m 'Version #{version}' #{'-f' if ENV['FORCE']} v#{version}"
456
+ sh "git tag -a -m 'Version #{version}' #{'-f' if force} v#{version}"
452
457
  rescue RuntimeError
453
- warn "Call rake with FORCE=1 to overwrite version tag #{version}"
454
- exit 1
458
+ if ask?("Version tag #{version} already exists. Overwrite with "\
459
+ "force? (yes/NO) ", /\Ayes\z/i)
460
+ force = true
461
+ retry
462
+ else
463
+ exit 1
464
+ end
455
465
  end
456
466
  end
457
467
  end
@@ -479,6 +489,12 @@ EOT
479
489
  end
480
490
  end
481
491
 
492
+ def push_task
493
+ version_push_task
494
+ master_push_task
495
+ task :push => %i[ master:push version:push ]
496
+ end
497
+
482
498
  def gem_push_task
483
499
  namespace :gem do
484
500
  path = "pkg/#{name_version}.gem"
@@ -555,8 +571,7 @@ EOT
555
571
  install_library_task
556
572
  version_bump_task
557
573
  version_tag_task
558
- version_push_task
559
- master_push_task
574
+ push_task
560
575
  write_ignore_file
561
576
  write_gemfile
562
577
  gem_push_task
@@ -1,6 +1,6 @@
1
1
  class GemHadar
2
2
  # GemHadar version
3
- VERSION = '1.3.1'
3
+ VERSION = '1.4.0'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_hadar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-23 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.1
19
+ version: 1.4.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.3.1
26
+ version: 1.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tins
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.4.6
111
+ rubygems_version: 2.5.1
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Library for the development of Ruby Gems