simple_gem 1.0.0 → 1.1.0
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 +7 -7
- data/CHANGELOG.rdoc +5 -0
- data/lib/simple_gem/version.rb +1 -1
- data/lib/tasks/simple_gem.rb +10 -9
- metadata +45 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 14f4cc50a020e8507a5d78ca340240f2ab632707
|
4
|
+
data.tar.gz: 962eba65989aab0f66cf95379a98fd69c336b8b7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 08042467672cfdeb9828c5d79572ef0b78565539a6e68c202246dadc0deccc0d42ac1e050ad2db59c90774c37ab8caf6c473ecab7700f1f33a44f9462b93bff5
|
7
|
+
data.tar.gz: 52ef6088dc8dc0d55783d8a0c97c0c9d677cd5c940ff14414fdf3c7fb5b9d30f782eb95f1fe766fd8f730234fe8faa00b87276eef7c1d52268558d2c0afade7c
|
data/CHANGELOG.rdoc
CHANGED
data/lib/simple_gem/version.rb
CHANGED
data/lib/tasks/simple_gem.rb
CHANGED
@@ -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} (
|
32
|
+
print "Do you want to build version #{current_version} (y/n): "
|
34
33
|
input = STDIN.gets.strip
|
35
34
|
|
36
|
-
if input.
|
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
|
-
|
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
|
-
|
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.
|
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
|
-
|
13
|
-
|
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
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
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
|
-
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version:
|
42
|
-
|
43
|
-
|
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
|
-
-
|
87
|
-
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
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.
|
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
|
-
|