gemcutter 0.6.0 → 0.6.1

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.
Files changed (3) hide show
  1. data/Rakefile +2 -2
  2. data/test/helper.rb +42 -0
  3. metadata +4 -3
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ begin
13
13
  require 'jeweler'
14
14
  Jeweler::Tasks.new do |gem|
15
15
  gem.name = "gemcutter"
16
- gem.version = "0.6.0"
16
+ gem.version = "0.6.1"
17
17
  gem.summary = "Commands to interact with RubyGems.org"
18
18
  gem.description = "Adds several commands to RubyGems for managing gems and more on RubyGems.org."
19
19
  gem.email = "nick@quaran.to"
@@ -21,7 +21,7 @@ begin
21
21
  gem.authors = ["Nick Quaranto"]
22
22
  gem.files = FileList["lib/rubygems_plugin.rb",
23
23
  "lib/rubygems/commands/*",
24
- "test/*_helper.rb",
24
+ "test/helper.rb",
25
25
  "test/*_test.rb",
26
26
  "MIT-LICENSE",
27
27
  "Rakefile"]
@@ -0,0 +1,42 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+
4
+ require 'shoulda'
5
+ require 'active_support'
6
+ require 'active_support/test_case'
7
+ require 'webmock'
8
+ require 'rr'
9
+
10
+ begin
11
+ require 'redgreen'
12
+ rescue LoadError
13
+ end
14
+
15
+ WebMock.disable_net_connect!
16
+
17
+ class CommandTest < ActiveSupport::TestCase
18
+ include RR::Adapters::TestUnit unless include?(RR::Adapters::TestUnit)
19
+ include WebMock
20
+
21
+ def teardown
22
+ reset_webmock
23
+ end
24
+ end
25
+
26
+ def stub_api_key(api_key)
27
+ file = Gem::ConfigFile.new({})
28
+ stub(file).rubygems_api_key { api_key }
29
+ stub(Gem).configuration { file }
30
+ end
31
+
32
+ def assert_said(command, what)
33
+ assert_received(command) do |command|
34
+ command.say(what)
35
+ end
36
+ end
37
+
38
+ def assert_never_said(command, what)
39
+ assert_received(command) do |command|
40
+ command.say(what).never
41
+ end
42
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemcutter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nick Quaranto
@@ -104,6 +104,7 @@ files:
104
104
  - lib/rubygems/commands/webhook_command.rb
105
105
  - lib/rubygems/commands/yank_command.rb
106
106
  - lib/rubygems_plugin.rb
107
+ - test/helper.rb
107
108
  - test/webhook_command_test.rb
108
109
  - test/yank_command_test.rb
109
110
  has_rdoc: true