simple_gem 1.0.0 → 1.1.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
- ---
2
- SHA512:
3
- data.tar.gz: 98e9442a9cff23b2864b764a74d5e8e3b6b4fa65f8c456eea6c41365ee795fd15a454c4b7113691e7cd70f915a4bc035d90f6194359abc077277f8aec23fabce
4
- metadata.gz: 0f2fe9b96f96072a7b57557f823aafe136774a5bd64903a9a35e3df98343696959bf250fd62cb140c611e44f7853c2993a15501758b64efe3ef3a9176ac4ec1f
5
- SHA1:
6
- data.tar.gz: 04811b8e03643421a8dffedcb172f3f8f442e038
7
- metadata.gz: 158d48fbdf020bbcb67079e76c73d37cc48093e5
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 14f4cc50a020e8507a5d78ca340240f2ab632707
4
+ data.tar.gz: 962eba65989aab0f66cf95379a98fd69c336b8b7
5
+ SHA512:
6
+ metadata.gz: 08042467672cfdeb9828c5d79572ef0b78565539a6e68c202246dadc0deccc0d42ac1e050ad2db59c90774c37ab8caf6c473ecab7700f1f33a44f9462b93bff5
7
+ data.tar.gz: 52ef6088dc8dc0d55783d8a0c97c0c9d677cd5c940ff14414fdf3c7fb5b9d30f782eb95f1fe766fd8f730234fe8faa00b87276eef7c1d52268558d2c0afade7c
@@ -1,5 +1,10 @@
1
1
  = Simple Gem
2
2
 
3
+ == Version 1.1.0
4
+ * Updated git status check to prompt whether you want to continue, instead of aborting
5
+ * Tweaked prompts
6
+ * Removed rspec from requirements of gems
7
+
3
8
  == Version 1.0.0
4
9
  * Updating to rubygems 2
5
10
 
@@ -1,4 +1,4 @@
1
1
  module SimpleGem
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
4
4
 
@@ -1,4 +1,3 @@
1
- require 'rspec/core/rake_task'
2
1
  require 'rubygems/package'
3
2
 
4
3
  module SimpleGem
@@ -30,10 +29,10 @@ module SimpleGem
30
29
  end
31
30
 
32
31
  def build_gem(target_dir)
33
- print "Do you want to build version #{current_version} (Y/n): "
32
+ print "Do you want to build version #{current_version} (y/n): "
34
33
  input = STDIN.gets.strip
35
34
 
36
- if input.to_s[0,1] == 'Y'
35
+ if input.downcase.start_with? 'y'
37
36
  safe_create_dir(target_dir)
38
37
  spec = Gem::Specification.load(current_gemspec)
39
38
  spec.version = current_version
@@ -43,13 +42,19 @@ module SimpleGem
43
42
  puts "Successfully built #{gem_file} into #{target_dir}"
44
43
  [ current_version, target_file ]
45
44
  else
46
- raise %q{Aborting... update version file and run "rake build" again.}
45
+ puts %q{Aborting... update version file and run "rake build" again.}
46
+ exit
47
47
  end
48
48
  end
49
49
 
50
50
  def build_production_gem
51
51
  if !`git status -s`.strip.empty?
52
- raise 'There are uncommitted changes in the tree - commit before building'
52
+ print 'There are uncommitted changes in the tree... are you sure you want to continue (y/n): '
53
+ response = STDIN.gets.strip
54
+ if !response.downcase.start_with? 'y'
55
+ puts 'Build aborted'
56
+ exit
57
+ end
53
58
  end
54
59
 
55
60
  build_gem 'gems'
@@ -63,10 +68,6 @@ module SimpleGem
63
68
  end
64
69
  end
65
70
 
66
- task :default => [ :spec ]
67
-
68
- RSpec::Core::RakeTask.new(:spec)
69
-
70
71
  desc 'Builds a gemfile for production (into gems/)'
71
72
  task :build do
72
73
  SimpleGem.build_production_gem
metadata CHANGED
@@ -1,57 +1,53 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: simple_gem
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - David Dawson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2012-01-08 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+ date: 2012-01-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
15
14
  name: activesupport
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: "3.0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
22
20
  type: :runtime
23
- version_requirements: *id001
24
- - !ruby/object:Gem::Dependency
25
- name: rake
26
21
  prerelease: false
27
- requirement: &id002 !ruby/object:Gem::Requirement
28
- requirements:
29
- - - ">="
30
- - !ruby/object:Gem::Version
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
31
33
  version: 0.8.7
32
34
  type: :runtime
33
- version_requirements: *id002
34
- - !ruby/object:Gem::Dependency
35
- name: rspec
36
35
  prerelease: false
37
- requirement: &id003 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ~>
40
- - !ruby/object:Gem::Version
41
- version: "2.8"
42
- type: :runtime
43
- version_requirements: *id003
44
- description: Contains tools that create gem skeletons, rake tasks that support building and deploying gems, and more.
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.8.7
41
+ description: Contains tools that create gem skeletons, rake tasks that support building
42
+ and deploying gems, and more.
45
43
  email: daws23@gmail.com
46
44
  executables: []
47
-
48
45
  extensions: []
49
-
50
- extra_rdoc_files:
46
+ extra_rdoc_files:
51
47
  - README.rdoc
52
48
  - CHANGELOG.rdoc
53
49
  - LICENSE.txt
54
- files:
50
+ files:
55
51
  - lib/rubygems/commands/skeleton_command.rb
56
52
  - lib/rubygems_plugin.rb
57
53
  - lib/simple_gem/version.rb
@@ -72,30 +68,27 @@ files:
72
68
  - LICENSE.txt
73
69
  homepage: https://github.com/daws/simple_gem
74
70
  licenses: []
75
-
76
71
  metadata: {}
77
-
78
72
  post_install_message:
79
- rdoc_options:
73
+ rdoc_options:
80
74
  - --main
81
75
  - README.rdoc
82
- require_paths:
76
+ require_paths:
83
77
  - lib
84
- required_ruby_version: !ruby/object:Gem::Requirement
85
- requirements:
86
- - &id004
87
- - ">="
88
- - !ruby/object:Gem::Version
89
- version: "0"
90
- required_rubygems_version: !ruby/object:Gem::Requirement
91
- requirements:
92
- - *id004
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
93
88
  requirements: []
94
-
95
89
  rubyforge_project:
96
- rubygems_version: 2.1.11
90
+ rubygems_version: 2.0.14
97
91
  signing_key:
98
92
  specification_version: 4
99
93
  summary: Support tools, libraries, and rake tasks for creating gems.
100
94
  test_files: []
101
-