From f93dbc72aad6b62c94bc76f32d6386f9dfa3a84c Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Tue, 14 Oct 2014 22:09:41 +0200 Subject: gem-ified sublab calendar --- .gitignore | 1 + Gemfile | 8 +------- Gemfile.lock | 39 ++++++++++++++++++++------------------- LICENSE.txt | 22 ++++++++++++++++++++++ Rakefile | 2 ++ lib/sublab_calendar/version.rb | 3 +++ sublab_calendar.gemspec | 30 ++++++++++++++++++++++++++++++ 7 files changed, 79 insertions(+), 26 deletions(-) create mode 100644 LICENSE.txt create mode 100644 Rakefile create mode 100644 lib/sublab_calendar/version.rb create mode 100644 sublab_calendar.gemspec diff --git a/.gitignore b/.gitignore index dace708..d45c92e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /.vagrant +/pkg diff --git a/Gemfile b/Gemfile index f7a808a..b4e2a20 100644 --- a/Gemfile +++ b/Gemfile @@ -1,9 +1,3 @@ source "https://rubygems.org" -gem "activesupport" -gem "icalendar" -gem "tzinfo" -gem "icalendar-recurrence" -gem "pry" -gem "httpi" -gem "httpclient" +gemspec diff --git a/Gemfile.lock b/Gemfile.lock index ec9d808..bfd6d22 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,43 +1,44 @@ +PATH + remote: . + specs: + sublab_calendar (0.0.1) + activesupport + httpclient + httpi + icalendar + icalendar-recurrence + tzinfo + GEM remote: https://rubygems.org/ specs: - activesupport (4.1.2) + activesupport (4.1.6) i18n (~> 0.6, >= 0.6.9) json (~> 1.7, >= 1.7.7) minitest (~> 5.1) thread_safe (~> 0.1) tzinfo (~> 1.1) - coderay (1.1.0) httpclient (2.4.0) httpi (2.2.4) rack - i18n (0.6.9) + i18n (0.6.11) icalendar (2.0.1) icalendar-recurrence (0.0.1) icalendar (~> 2.0.0.beta.1) ice_cube (~> 0.11.1) ice_cube (0.11.3) json (1.8.1) - method_source (0.8.2) - minitest (5.3.5) - pry (0.9.12.6) - coderay (~> 1.0) - method_source (~> 0.8) - slop (~> 3.4) + minitest (5.4.1) rack (1.5.2) - slop (3.5.0) - thread_safe (0.3.3) - tzinfo (1.1.0) + rake (10.3.2) + thread_safe (0.3.4) + tzinfo (1.2.2) thread_safe (~> 0.1) PLATFORMS ruby DEPENDENCIES - activesupport - httpclient - httpi - icalendar - icalendar-recurrence - pry - tzinfo + bundler (~> 1.6) + rake + sublab_calendar! diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..ffefffb --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,22 @@ +Copyright (c) 2014 Lars Henrik Mai + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..809eb56 --- /dev/null +++ b/Rakefile @@ -0,0 +1,2 @@ +require "bundler/gem_tasks" + diff --git a/lib/sublab_calendar/version.rb b/lib/sublab_calendar/version.rb new file mode 100644 index 0000000..c1d9d0c --- /dev/null +++ b/lib/sublab_calendar/version.rb @@ -0,0 +1,3 @@ +module SublabCalendar + VERSION = "0.0.1" +end diff --git a/sublab_calendar.gemspec b/sublab_calendar.gemspec new file mode 100644 index 0000000..bd53a9f --- /dev/null +++ b/sublab_calendar.gemspec @@ -0,0 +1,30 @@ +# coding: utf-8 +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'sublab_calendar/version' + +Gem::Specification.new do |spec| + spec.name = "sublab_calendar" + spec.version = SublabCalendar::VERSION + spec.authors = ["Lars Henrik Mai"] + spec.email = ["lars@pingfm.org"] + spec.summary = %q{Ical parser for the sublab} + spec.description = %q{} + spec.homepage = "http://sublab.org" + spec.license = "MIT" + + spec.files = `git ls-files -z`.split("\x0") + spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } + spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) + spec.require_paths = ["lib"] + + spec.add_development_dependency "bundler", "~> 1.6" + spec.add_development_dependency "rake" + + spec.add_runtime_dependency "activesupport" + spec.add_runtime_dependency "icalendar" + spec.add_runtime_dependency "icalendar-recurrence" + spec.add_runtime_dependency "tzinfo" + spec.add_runtime_dependency "httpi" + spec.add_runtime_dependency "httpclient" +end -- cgit v1.2.1