gem_hadar 1.4.0 → 1.4.1

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: 3a29906f61af5a65300acb16f2c2834f70b4dd3e
4
- data.tar.gz: 1a6d22b7e017822519c1595325f05b2658018d54
3
+ metadata.gz: 95ab98e5928dadd6a1cb74a4f73d50cf331064ae
4
+ data.tar.gz: 41b8d4ba4c6c0ca3d7540bce3a9f8bec2502cb44
5
5
  SHA512:
6
- metadata.gz: ee56544272347d79464cc565306732bd3151cf84a8c8b4991c1748b803f1eb87e0058ddc5641f5b224ba85b55561017bdf7bcb8fe1ff726ac587c48e18da34d6
7
- data.tar.gz: d7914706aef1fab37683de82a05cd5a03d1918a15a0bb20a9acea98776be3bdd4e76780a02062a5a2e4b2a5ae43f7b8d1b5e82395918bccc7974f15d8ed1e004
6
+ metadata.gz: 615ee3be6b468a201b85a76e414b87dab47348d307253d7476572ad7e6d1a20758c2ba0fbb85b6ada1bc1eda663725b8211aa8e99390152afbde1518a08b09bb
7
+ data.tar.gz: 1cb718a753f6f864dd38f205936001b1b94b141ddb536883b4752e31d997453ef87c86504841b9bc0979264cade865bf831072b942562e8319bf13f4f96121d9
data/Rakefile CHANGED
@@ -17,6 +17,8 @@ GemHadar do
17
17
  dependency 'sdoc', '~>0.3'
18
18
  dependency 'rake', '~>10.0'
19
19
 
20
+ licenses << 'MIT'
21
+
20
22
  install_library do
21
23
  libdir = CONFIG["sitelibdir"]
22
24
  install("lib/#{name}.rb", libdir, :mode => 0644)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.1
data/gem_hadar.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: gem_hadar 1.4.0 ruby lib
2
+ # stub: gem_hadar 1.4.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "gem_hadar"
6
- s.version = "1.4.0"
6
+ s.version = "1.4.1"
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"]
@@ -14,6 +14,7 @@ Gem::Specification.new do |s|
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
+ s.licenses = ["MIT"]
17
18
  s.rdoc_options = ["--title", "GemHadar - Library for the development of Ruby Gems", "--main", "README.md"]
18
19
  s.rubygems_version = "2.5.1"
19
20
  s.summary = "Library for the development of Ruby Gems"
@@ -22,18 +23,18 @@ Gem::Specification.new do |s|
22
23
  s.specification_version = 4
23
24
 
24
25
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
25
- s.add_development_dependency(%q<gem_hadar>, ["~> 1.4.0"])
26
+ s.add_development_dependency(%q<gem_hadar>, ["~> 1.4.1"])
26
27
  s.add_runtime_dependency(%q<tins>, ["~> 1.0"])
27
28
  s.add_runtime_dependency(%q<sdoc>, ["~> 0.3"])
28
29
  s.add_runtime_dependency(%q<rake>, ["~> 10.0"])
29
30
  else
30
- s.add_dependency(%q<gem_hadar>, ["~> 1.4.0"])
31
+ s.add_dependency(%q<gem_hadar>, ["~> 1.4.1"])
31
32
  s.add_dependency(%q<tins>, ["~> 1.0"])
32
33
  s.add_dependency(%q<sdoc>, ["~> 0.3"])
33
34
  s.add_dependency(%q<rake>, ["~> 10.0"])
34
35
  end
35
36
  else
36
- s.add_dependency(%q<gem_hadar>, ["~> 1.4.0"])
37
+ s.add_dependency(%q<gem_hadar>, ["~> 1.4.1"])
37
38
  s.add_dependency(%q<tins>, ["~> 1.0"])
38
39
  s.add_dependency(%q<sdoc>, ["~> 0.3"])
39
40
  s.add_dependency(%q<rake>, ["~> 10.0"])
@@ -1,6 +1,6 @@
1
1
  class GemHadar
2
2
  # GemHadar version
3
- VERSION = '1.4.0'
3
+ VERSION = '1.4.1'
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:
data/lib/gem_hadar.rb CHANGED
@@ -482,24 +482,18 @@ EOT
482
482
 
483
483
  def master_push_task
484
484
  namespace :master do
485
- desc "Push master to git remote"
485
+ desc "Push master to GIT_REMOTE=#{git_remote}"
486
486
  task :push do
487
487
  sh "git push #{git_remote} master"
488
488
  end
489
489
  end
490
490
  end
491
491
 
492
- def push_task
493
- version_push_task
494
- master_push_task
495
- task :push => %i[ master:push version:push ]
496
- end
497
-
498
492
  def gem_push_task
499
493
  namespace :gem do
500
494
  path = "pkg/#{name_version}.gem"
501
495
  desc "Push gem file #{File.basename(path)} to rubygems"
502
- task :push do
496
+ task :push => :build do
503
497
  if File.exist?(path)
504
498
  if ask?("Do you really want to push #{path.inspect} to rubygems? "\
505
499
  "(yes/NO) ", /\Ayes\z/i)
@@ -516,6 +510,20 @@ EOT
516
510
  end
517
511
  end
518
512
 
513
+ def push_task
514
+ version_push_task
515
+ master_push_task
516
+ gem_push_task
517
+ task :modified do
518
+ unless (files = `git status --porcelain`.gsub(/^\s*\S\s+/, '').lines).empty?
519
+ warn "There are still modified files:\n#{files * ''}"
520
+ exit 1
521
+ end
522
+ end
523
+ desc "Push master and version #{version} to GIT_REMOTE=#{git_remote}"
524
+ task :push => %i[ modified master:push version:push gem:push ]
525
+ end
526
+
519
527
  def compile_task
520
528
  for file in extensions
521
529
  dir = File.dirname(file)
@@ -574,7 +582,6 @@ EOT
574
582
  push_task
575
583
  write_ignore_file
576
584
  write_gemfile
577
- gem_push_task
578
585
  if extensions.full?
579
586
  compile_task
580
587
  task :prepare_install => :compile
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_hadar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.0
19
+ version: 1.4.1
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.4.0
26
+ version: 1.4.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tins
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,7 +86,8 @@ files:
86
86
  - lib/gem_hadar.rb
87
87
  - lib/gem_hadar/version.rb
88
88
  homepage: http://github.com/flori/gem_hadar
89
- licenses: []
89
+ licenses:
90
+ - MIT
90
91
  metadata: {}
91
92
  post_install_message:
92
93
  rdoc_options: