drnic-mechanical_github 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,7 @@
1
1
  History.txt
2
2
  Manifest.txt
3
- PostInstall.txt
4
3
  README.rdoc
5
4
  Rakefile
6
- Rakefile.orig
7
5
  features/development.feature
8
6
  features/steps/common.rb
9
7
  features/steps/env.rb
@@ -11,7 +9,7 @@ lib/mechanical_github.rb
11
9
  lib/mechanical_github/repository.rb
12
10
  lib/mechanical_github/session.rb
13
11
  lib/mechanical_github/wiki.rb
14
- pkg/mechanical_github-0.0.1.gem
12
+ mechanical_github.gemspec
15
13
  script/console
16
14
  script/destroy
17
15
  script/generate
@@ -41,6 +41,7 @@ logged in username
41
41
 
42
42
  (The MIT License)
43
43
 
44
+ Copyright (c) 2008 Lincoln Stoll, lstoll@lstoll.net
44
45
  Copyright (c) 2009 Dr Nic Williams, http://mocra.com + http://drnicwilliams.com
45
46
 
46
47
  Permission is hereby granted, free of charge, to any person obtaining
@@ -4,7 +4,7 @@ require 'rubygems'
4
4
  require 'mechanize'
5
5
 
6
6
  module MechanicalGithub
7
- VERSION="0.2.0"
7
+ VERSION="0.2.1"
8
8
  end
9
9
 
10
10
  # load all files
@@ -27,7 +27,7 @@ module MechanicalGithub
27
27
  return unless @logged_in
28
28
  newpage = @agent.get('http://github.com/repositories/new')
29
29
  # create the repo
30
- newform = newpage.forms[1]
30
+ newform = newpage.forms[2]
31
31
  #p form
32
32
  newform['repository[name]'] = name
33
33
  newform['repository[description]'] = description
@@ -53,7 +53,7 @@ module MechanicalGithub
53
53
  def send_message(to, subject, body)
54
54
  return unless @logged_in
55
55
  newpage = @agent.get('http://github.com/inbox/new')
56
- newform = newpage.forms[1]
56
+ newform = newpage.forms[2]
57
57
  newform['message[to]'] = to
58
58
  newform['message[subject]'] = subject
59
59
  newform['message[body]'] = body
@@ -0,0 +1,40 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{mechanical_github}
5
+ s.version = "0.2.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Dr Nic Williams", "Lincoln Stoll"]
9
+ s.date = %q{2009-01-23}
10
+ s.description = %q{This gem provides a automated API for working with github.}
11
+ s.email = ["drnicwilliams@gmail.com", "lstoll@lstoll.net"]
12
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.rdoc"]
13
+ s.files = ["History.txt", "Manifest.txt", "README.rdoc", "Rakefile", "features/development.feature", "features/steps/common.rb", "features/steps/env.rb", "lib/mechanical_github.rb", "lib/mechanical_github/repository.rb", "lib/mechanical_github/session.rb", "lib/mechanical_github/wiki.rb", "mechanical_github.gemspec", "script/console", "script/destroy", "script/generate", "spec/mechanical_github_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/rspec.rake"]
14
+ s.has_rdoc = true
15
+ s.homepage = %q{http://drnic.github.com/mechanical_github}
16
+ s.rdoc_options = ["--main", "README.rdoc"]
17
+ s.require_paths = ["lib"]
18
+ s.rubyforge_project = %q{mechanical_github}
19
+ s.rubygems_version = %q{1.3.1}
20
+ s.summary = %q{This gem provides a automated API for working with github.}
21
+
22
+ if s.respond_to? :specification_version then
23
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
+ s.specification_version = 2
25
+
26
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
27
+ s.add_runtime_dependency(%q<mechanize>, [">= 0"])
28
+ s.add_development_dependency(%q<newgem>, [">= 1.2.3"])
29
+ s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
30
+ else
31
+ s.add_dependency(%q<mechanize>, [">= 0"])
32
+ s.add_dependency(%q<newgem>, [">= 1.2.3"])
33
+ s.add_dependency(%q<hoe>, [">= 1.8.0"])
34
+ end
35
+ else
36
+ s.add_dependency(%q<mechanize>, [">= 0"])
37
+ s.add_dependency(%q<newgem>, [">= 1.2.3"])
38
+ s.add_dependency(%q<hoe>, [">= 1.8.0"])
39
+ end
40
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drnic-mechanical_github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -51,15 +51,12 @@ extensions: []
51
51
  extra_rdoc_files:
52
52
  - History.txt
53
53
  - Manifest.txt
54
- - PostInstall.txt
55
54
  - README.rdoc
56
55
  files:
57
56
  - History.txt
58
57
  - Manifest.txt
59
- - PostInstall.txt
60
58
  - README.rdoc
61
59
  - Rakefile
62
- - Rakefile.orig
63
60
  - features/development.feature
64
61
  - features/steps/common.rb
65
62
  - features/steps/env.rb
@@ -67,7 +64,7 @@ files:
67
64
  - lib/mechanical_github/repository.rb
68
65
  - lib/mechanical_github/session.rb
69
66
  - lib/mechanical_github/wiki.rb
70
- - pkg/mechanical_github-0.0.1.gem
67
+ - mechanical_github.gemspec
71
68
  - script/console
72
69
  - script/destroy
73
70
  - script/generate