yaggy 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/yaggy/gem.rb +14 -1
- data/lib/yaggy/release.rb +3 -0
- metadata +7 -1
data/lib/yaggy/gem.rb
CHANGED
@@ -8,6 +8,10 @@ module Yaggy
|
|
8
8
|
query_gemspec
|
9
9
|
end
|
10
10
|
|
11
|
+
def push_gem?
|
12
|
+
@options[:push_gem]
|
13
|
+
end
|
14
|
+
|
11
15
|
def use_git?
|
12
16
|
if @options.key?(:git_ops)
|
13
17
|
@options[:git_ops]
|
@@ -20,7 +24,16 @@ module Yaggy
|
|
20
24
|
system("git add #{@gemspec}")
|
21
25
|
system("git commit -m 'version #{version}'")
|
22
26
|
system("git tag v#{version}")
|
23
|
-
|
27
|
+
if !%x{git remote}.chomp.empty?
|
28
|
+
system("git push")
|
29
|
+
system("git push --tags")
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def push!
|
34
|
+
output = `gem build #{@gemspec}`
|
35
|
+
# todo: some minimal error detection
|
36
|
+
system("gem push #{@name}-#{version}.gem")
|
24
37
|
end
|
25
38
|
|
26
39
|
def query_gemspec
|
data/lib/yaggy/release.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaggy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -101,12 +101,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
101
|
- - ! '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
|
+
segments:
|
105
|
+
- 0
|
106
|
+
hash: -3838524753365740255
|
104
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
108
|
none: false
|
106
109
|
requirements:
|
107
110
|
- - ! '>='
|
108
111
|
- !ruby/object:Gem::Version
|
109
112
|
version: '0'
|
113
|
+
segments:
|
114
|
+
- 0
|
115
|
+
hash: -3838524753365740255
|
110
116
|
requirements: []
|
111
117
|
rubyforge_project:
|
112
118
|
rubygems_version: 1.8.21
|