technicalpickles-jeweler 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.markdown +4 -0
- data/TODO +7 -1
- data/VERSION.yml +1 -1
- data/lib/jeweler/generator.rb +13 -0
- metadata +3 -2
data/ChangeLog.markdown
ADDED
data/TODO
CHANGED
@@ -1,10 +1,16 @@
|
|
1
|
-
*
|
1
|
+
* use some sort of logger instead of stdout and stderr
|
2
|
+
* jeweler --delete-repo
|
3
|
+
* enable rdoc in gemspec by defaul
|
4
|
+
* output gemspec as yaml
|
5
|
+
* move interactions with github into separate class
|
6
|
+
* use Net::HTTP.post_form instead of `` for enabling gem creation
|
2
7
|
* Auto-enable rubygem generation
|
3
8
|
* Generators
|
4
9
|
* Rails generator for making a plugin that's Jeweler enabled
|
5
10
|
* Support rspec?
|
6
11
|
* Support test/unit
|
7
12
|
* Change generated test filename (test_foo not foo_test)
|
13
|
+
* better error handling during generation
|
8
14
|
* Releasing
|
9
15
|
* Create tag based on version
|
10
16
|
* Open hasmygembuiltyet.org
|
data/VERSION.yml
CHANGED
data/lib/jeweler/generator.rb
CHANGED
@@ -52,6 +52,8 @@ class Jeweler
|
|
52
52
|
if should_create_repo
|
53
53
|
create_and_push_repo
|
54
54
|
puts "Jeweler has pushed your repo to #{github_url}"
|
55
|
+
enable_gem_for_repo
|
56
|
+
puts "Jeweler has enabled gem building for your repo"
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
@@ -164,6 +166,17 @@ class Jeweler
|
|
164
166
|
@repo.push('origin')
|
165
167
|
end
|
166
168
|
|
169
|
+
def enable_gem_for_repo
|
170
|
+
url = "https://github.com/#{github_username}/#{github_repo_name}/update"
|
171
|
+
`curl -F 'login=#{github_username}' -F 'token=#{github_token}' -F 'field=repository_rubygem' -F 'value=1' #{url} 2>/dev/null`
|
172
|
+
# FIXME use NET::HTTP instead of curl
|
173
|
+
#Net::HTTP.post_form URI.parse(url),
|
174
|
+
#'login' => github_username,
|
175
|
+
#'token' => github_token,
|
176
|
+
#'field' => 'repository_rubygem',
|
177
|
+
#'value' => '1'
|
178
|
+
end
|
179
|
+
|
167
180
|
def read_git_config
|
168
181
|
# we could just use Git::Base's .config, but that relies on a repo being around already
|
169
182
|
# ... which we don't have yet, since this is part of a sanity check
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: technicalpickles-jeweler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Nichols
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-01-
|
12
|
+
date: 2009-01-14 00:00:00 -08:00
|
13
13
|
default_executable: jeweler
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -30,6 +30,7 @@ extensions: []
|
|
30
30
|
extra_rdoc_files: []
|
31
31
|
|
32
32
|
files:
|
33
|
+
- ChangeLog.markdown
|
33
34
|
- Rakefile
|
34
35
|
- README.markdown
|
35
36
|
- TODO
|