Skip to content
Browse files

Using bundler for development.

  • Loading branch information...
1 parent ff60a9b commit 10a577e8814dcfd5317ae8285de2dc47efb63c9e @ebeigarts committed
Showing with 82 additions and 129 deletions.
  1. +4 −1 .gitignore
  2. +2 −0 Gemfile
  3. +38 −0 Gemfile.lock
  4. +8 −26 Rakefile
  5. +0 −1 VERSION
  6. +26 −101 exchanger.gemspec
  7. +1 −0 lib/exchanger.rb
  8. +3 −0 lib/exchanger/version.rb
View
5 .gitignore
@@ -1,3 +1,6 @@
coverage
spec/config.yml
-pkg
+pkg
+.yardoc
+doc
+*.gem
View
2 Gemfile
@@ -0,0 +1,2 @@
+source :rubygems
+gemspec
View
38 Gemfile.lock
@@ -0,0 +1,38 @@
+PATH
+ remote: .
+ specs:
+ exchanger (0.1.0)
+ activesupport (>= 2.2.2)
+ httpclient (>= 2.1.5.2)
+ nokogiri (>= 1.3.0)
+ rubyntlm (>= 0.1.1)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ BlueCloth (1.0.1)
+ activesupport (3.0.3)
+ httpclient (2.1.6)
+ i18n (0.5.0)
+ nokogiri (1.4.4)
+ rake (0.8.7)
+ rcov (0.9.9)
+ rspec (1.3.1)
+ rubyntlm (0.1.1)
+ yard (0.6.4)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ BlueCloth
+ activesupport (>= 2.2.2)
+ exchanger!
+ httpclient (>= 2.1.5.2)
+ i18n
+ nokogiri (>= 1.3.0)
+ rake
+ rcov
+ rspec (~> 1.3.1)
+ rubyntlm (>= 0.1.1)
+ yard
View
34 Rakefile
@@ -1,5 +1,9 @@
require "rubygems"
+require "bundler"
+Bundler.setup
+
require "spec/rake/spectask"
+require "yard"
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_files = Dir.glob("spec/**/*_spec.rb")
@@ -8,30 +12,8 @@ Spec::Rake::SpecTask.new(:spec) do |t|
t.rcov_opts << "--exclude osx\/objc,gems\/,spec\/,features\/,\/Library\/"
end
-begin
- require "jeweler"
- Jeweler::Tasks.new do |gem|
- gem.name = "exchanger"
- gem.summary = "Ruby library for accessing Microsoft Exchange using Exchange Web Services"
- gem.description = gem.summary
- gem.email = "1@wb4.lv"
- gem.homepage = "http://github.com/ebeigarts/exchanger"
- gem.authors = ["Edgars Beigarts"]
-
- gem.add_dependency "activesupport", ">= 2.2.2"
- gem.add_dependency "nokogiri", ">= 1.3.0"
- gem.add_dependency "httpclient", ">= 2.1.5.2"
- gem.add_dependency "rubyntlm", ">= 0.1.1"
-
- gem.add_development_dependency "rspec", "~> 1.3.0"
-
- gem.files = FileList[
- 'lib/**/*.rb',
- 'LICENSE',
- 'README.md'
- ]
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
+YARD::Rake::YardocTask.new do |t|
+ t.files = ['lib/**/*.rb', 'README.md']
end
+
+task :default => :spec
View
1 VERSION
@@ -1 +0,0 @@
-0.1.0
View
127 exchanger.gemspec
@@ -1,108 +1,33 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
-Gem::Specification.new do |s|
- s.name = %q{exchanger}
- s.version = "0.1.0"
+require "exchanger/version"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Edgars Beigarts"]
- s.date = %q{2010-10-07}
+Gem::Specification.new do |s|
+ s.name = "exchanger"
+ s.version = Exchanger::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Edgars Beigarts"]
+ s.email = "1@wb4.lv"
+ s.homepage = "http://github.com/ebeigarts/exchanger"
s.description = %q{Ruby library for accessing Microsoft Exchange using Exchange Web Services}
- s.email = %q{1@wb4.lv}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.md"
- ]
- s.files = [
- "LICENSE",
- "README.md",
- "lib/exchanger.rb",
- "lib/exchanger/attributes.rb",
- "lib/exchanger/boolean.rb",
- "lib/exchanger/client.rb",
- "lib/exchanger/config.rb",
- "lib/exchanger/dirty.rb",
- "lib/exchanger/element.rb",
- "lib/exchanger/elements/attendee.rb",
- "lib/exchanger/elements/base_folder.rb",
- "lib/exchanger/elements/calendar_folder.rb",
- "lib/exchanger/elements/calendar_item.rb",
- "lib/exchanger/elements/complete_name.rb",
- "lib/exchanger/elements/contact.rb",
- "lib/exchanger/elements/contacts_folder.rb",
- "lib/exchanger/elements/distribution_list.rb",
- "lib/exchanger/elements/email_address.rb",
- "lib/exchanger/elements/entry.rb",
- "lib/exchanger/elements/folder.rb",
- "lib/exchanger/elements/identifier.rb",
- "lib/exchanger/elements/im_address.rb",
- "lib/exchanger/elements/item.rb",
- "lib/exchanger/elements/mailbox.rb",
- "lib/exchanger/elements/meeting_cancellation.rb",
- "lib/exchanger/elements/meeting_message.rb",
- "lib/exchanger/elements/meeting_request.rb",
- "lib/exchanger/elements/meeting_response.rb",
- "lib/exchanger/elements/message.rb",
- "lib/exchanger/elements/phone_number.rb",
- "lib/exchanger/elements/physical_address.rb",
- "lib/exchanger/elements/search_folder.rb",
- "lib/exchanger/elements/single_recipient.rb",
- "lib/exchanger/elements/task.rb",
- "lib/exchanger/elements/tasks_folder.rb",
- "lib/exchanger/field.rb",
- "lib/exchanger/operation.rb",
- "lib/exchanger/operations/create_item.rb",
- "lib/exchanger/operations/expand_dl.rb",
- "lib/exchanger/operations/find_folder.rb",
- "lib/exchanger/operations/find_item.rb",
- "lib/exchanger/operations/get_folder.rb",
- "lib/exchanger/operations/get_item.rb",
- "lib/exchanger/operations/resolve_names.rb",
- "lib/exchanger/operations/update_item.rb",
- "lib/exchanger/persistence.rb"
- ]
- s.homepage = %q{http://github.com/ebeigarts/exchanger}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Ruby library for accessing Microsoft Exchange using Exchange Web Services}
- s.test_files = [
- "spec/calendar_item_spec.rb",
- "spec/client_spec.rb",
- "spec/contact_spec.rb",
- "spec/element_spec.rb",
- "spec/field_spec.rb",
- "spec/folder_spec.rb",
- "spec/mailbox_spec.rb",
- "spec/spec_helper.rb"
- ]
+ s.summary = s.description
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.rubygems_version = "1.3.6"
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<activesupport>, [">= 2.2.2"])
- s.add_runtime_dependency(%q<nokogiri>, [">= 1.3.0"])
- s.add_runtime_dependency(%q<httpclient>, [">= 2.1.5.2"])
- s.add_runtime_dependency(%q<rubyntlm>, [">= 0.1.1"])
- s.add_development_dependency(%q<rspec>, ["~> 1.3.0"])
- else
- s.add_dependency(%q<activesupport>, [">= 2.2.2"])
- s.add_dependency(%q<nokogiri>, [">= 1.3.0"])
- s.add_dependency(%q<httpclient>, [">= 2.1.5.2"])
- s.add_dependency(%q<rubyntlm>, [">= 0.1.1"])
- s.add_dependency(%q<rspec>, ["~> 1.3.0"])
- end
- else
- s.add_dependency(%q<activesupport>, [">= 2.2.2"])
- s.add_dependency(%q<nokogiri>, [">= 1.3.0"])
- s.add_dependency(%q<httpclient>, [">= 2.1.5.2"])
- s.add_dependency(%q<rubyntlm>, [">= 0.1.1"])
- s.add_dependency(%q<rspec>, ["~> 1.3.0"])
- end
-end
+ s.add_runtime_dependency "activesupport", [">= 2.2.2"]
+ s.add_runtime_dependency "nokogiri", [">= 1.3.0"]
+ s.add_runtime_dependency "httpclient", [">= 2.1.5.2"]
+ s.add_runtime_dependency "rubyntlm", [">= 0.1.1"]
+ s.add_development_dependency "rake"
+ s.add_development_dependency "i18n" # required by activesupport
+ s.add_development_dependency "rspec", ["~> 1.3.1"]
+ s.add_development_dependency "rcov"
+ s.add_development_dependency "yard"
+ s.add_development_dependency "BlueCloth" # required by yard
+
+ s.files = Dir.glob("{lib,spec}/**/*") + %w(README.md LICENSE)
+ s.require_paths = ["lib"]
+end
View
1 lib/exchanger.rb
@@ -7,6 +7,7 @@
require "httpclient"
require "net/ntlm"
+require "exchanger/version"
require "exchanger/config"
require "exchanger/client"
require "exchanger/boolean"
View
3 lib/exchanger/version.rb
@@ -0,0 +1,3 @@
+module Exchanger
+ VERSION = "0.1.0"
+end

0 comments on commit 10a577e

Please sign in to comment.
Something went wrong with that request. Please try again.