Skip to content

Commit

Permalink
Update dependencies, set up Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alsemyonov committed Jan 10, 2016
1 parent c68c754 commit 2999686
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ pkg

## PROJECT::SPECIFIC
Gemfile.lock
.ruby-version
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sudo: false
language: ruby
cache: bundler
rvm:
- 1.9.3
- 2.3.0
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source "http://rubygems.org"
source 'https://rubygems.org'

gemspec
6 changes: 2 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,17 @@ begin
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
abort 'RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov'
end
end

task :test => :check_dependencies

task :default => :test

begin
require 'yard'
YARD::Rake::YardocTask.new(:doc)
rescue LoadError
task :doc do
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
abort 'YARD is not available. In order to run yardoc, you must: sudo gem install yard'
end
end
2 changes: 2 additions & 0 deletions lib/ymaps.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'active_support/core_ext/module/attribute_accessors'

module YMaps
mattr_accessor :key
self.key = 'REPLACE_WITH_YOUR_YANDEX_KEY'
Expand Down
3 changes: 0 additions & 3 deletions test/test_ymaps.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
require 'helper'

class TestYmaps < Test::Unit::TestCase
should "probably rename this file and start testing for real" do
flunk "hey buddy, you should probably rename this file and start testing for real"
end
end
28 changes: 15 additions & 13 deletions ymaps.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,26 @@ $:.push File.expand_path('../lib', __FILE__)
require 'ymaps/version'

Gem::Specification.new do |s|
s.name = 'ymaps'
s.version = YMaps::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Alexander Semyonov']
s.email = ['[email protected]']
s.homepage = 'http://github.com/rotuka/ymaps'
s.summary = %q{Helpers for using YMaps}
s.name = 'ymaps'
s.version = YMaps::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Alexander Semyonov']
s.email = ['[email protected]']
s.homepage = 'http://github.com/rotuka/ymaps'
s.summary = %q{Helpers for using YMaps}
s.description = %q{Different helpers for generating YMapsML, using YMaps widgets and geocoding via Yandex.Maps}

s.rubyforge_project = 'ymaps'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
s.require_paths = ['lib']

s.add_dependency('geokit', '~> 1.5')
s.add_dependency('geokit', '~> 1.5')

s.add_development_dependency('shoulda', '>= 0')
s.add_development_dependency('yard', '>= 0')
s.add_development_dependency('yard', '>= 0')
s.add_development_dependency('rake', '>= 0')
s.add_development_dependency('test-unit', '>= 0')
end

0 comments on commit 2999686

Please sign in to comment.