Sha256: 00109fc7c044905d715acef6a8fff99952c96abda85b4363d56cc6ed2555c3fe

Contents?: true

Size: 813 Bytes

Versions: 126

Compression:

Stored size: 813 Bytes

Contents

class Jeweler
  class Generator
    module GithubMixin
      def self.extended(generator)
        generator.github_username           = generator.options[:github_username]
        generator.github_token              = generator.options[:github_token]
        generator.should_create_remote_repo = generator.options[:create_repo]

        unless generator.github_username
          raise NoGitHubUser
        end
        
        if generator.should_create_remote_repo
          unless generator.github_token
            raise NoGitHubToken
          end
        end
      end

      def git_remote
        @git_remote ||= "git@github.com:#{github_username}/#{project_name}.git"
      end

      def homepage
        @homepage ||= "http://github.com/#{github_username}/#{project_name}"
      end
    end
  end
end

Version data entries

126 entries across 72 versions & 7 rubygems

Version Path
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/github_mixin.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/github_mixin.rb
chida_fib-0.1.0 shoulda/ruby/1.8/gems/jeweler-1.8.3/lib/jeweler/generator/github_mixin.rb
jeweler-1.8.3 lib/jeweler/generator/github_mixin.rb
jeweler-1.8.2 lib/jeweler/generator/github_mixin.rb
jeweler-1.8.1 lib/jeweler/generator/github_mixin.rb
jeweler-1.8.0 lib/jeweler/generator/github_mixin.rb
jeweler-1.7.0 lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.10 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.10 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.10 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.10 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.9 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.9 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.9 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.9 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.8 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.8 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.8 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/github_mixin.rb
dirty_history-0.4.8 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/lib/jeweler/generator/github_mixin.rb