[DRE-commits] [ruby-timeline-setter] 01/01: Removing unwanted files

Balasankar C balasankarc-guest at moszumanska.debian.org
Fri Aug 15 20:35:46 UTC 2014


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-timeline-setter.

commit 273f6e16aaacc5dc41de70149d1def8ba6020988
Author: Balasankar C <balasankarc at autistici.org>
Date:   Sat Aug 16 02:05:27 2014 +0530

    Removing unwanted files
---
 debian/files                                       |   1 -
 debian/ruby-timeline-setter.debhelper.log          |  17 ----
 debian/ruby-timeline-setter.substvars              |   2 -
 debian/ruby-timeline-setter/DEBIAN/control         |  17 ----
 debian/ruby-timeline-setter/DEBIAN/md5sums         |   9 --
 .../ruby-timeline-setter/usr/bin/timeline-setter   |   9 --
 .../usr/lib/ruby/vendor_ruby/timeline_setter.rb    |  15 ----
 .../lib/ruby/vendor_ruby/timeline_setter/cli.rb    |  98 ---------------------
 .../lib/ruby/vendor_ruby/timeline_setter/parser.rb |  28 ------
 .../ruby/vendor_ruby/timeline_setter/timeline.rb   |  52 -----------
 .../ruby/vendor_ruby/timeline_setter/version.rb    |   3 -
 .../doc/ruby-timeline-setter/changelog.Debian.gz   | Bin 164 -> 0 bytes
 .../usr/share/doc/ruby-timeline-setter/copyright   |  30 -------
 .../specifications/timeline_setter-0.3.2.gemspec   |  44 ---------
 14 files changed, 325 deletions(-)

diff --git a/debian/files b/debian/files
deleted file mode 100644
index 1efb3ba..0000000
--- a/debian/files
+++ /dev/null
@@ -1 +0,0 @@
-ruby-timeline-setter_0.3.2-1_all.deb ruby optional
diff --git a/debian/ruby-timeline-setter.debhelper.log b/debian/ruby-timeline-setter.debhelper.log
deleted file mode 100644
index 82c4ea0..0000000
--- a/debian/ruby-timeline-setter.debhelper.log
+++ /dev/null
@@ -1,17 +0,0 @@
-dh_auto_configure
-dh_auto_build
-dh_auto_test
-dh_prep
-dh_auto_install
-dh_installdocs
-dh_installchangelogs
-dh_pysupport
-dh_perl
-dh_link
-dh_compress
-dh_fixperms
-dh_installdeb
-dh_gencontrol
-dh_md5sums
-dh_builddeb
-dh_builddeb
diff --git a/debian/ruby-timeline-setter.substvars b/debian/ruby-timeline-setter.substvars
deleted file mode 100644
index 5256325..0000000
--- a/debian/ruby-timeline-setter.substvars
+++ /dev/null
@@ -1,2 +0,0 @@
-ruby:Versions=all
-misc:Depends=
diff --git a/debian/ruby-timeline-setter/DEBIAN/control b/debian/ruby-timeline-setter/DEBIAN/control
deleted file mode 100644
index c952200..0000000
--- a/debian/ruby-timeline-setter/DEBIAN/control
+++ /dev/null
@@ -1,17 +0,0 @@
-Package: ruby-timeline-setter
-Version: 0.3.2-1
-Architecture: all
-Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
-Installed-Size: 67
-Depends: ruby | ruby-interpreter
-Section: ruby
-Priority: optional
-Homepage: http://github.com/propublica/timeline-setter
-Description: TimelineSetter is a tool to create HTML timelines from spreadsheets of events
- It is a command-line utility that takes a specially-structured CSV file as
- input and outputs standards-compliant HTML/CSS/JavaScript. It supports any
- span of time from minutes to years, and supports multiple parallel event series
-  in a single timeline. It can handle custom descriptions and even arbitrary
-  HTML in each event “card.” It creates fluid embeds that will look great
-  at any width.
-Ruby-Versions: all
diff --git a/debian/ruby-timeline-setter/DEBIAN/md5sums b/debian/ruby-timeline-setter/DEBIAN/md5sums
deleted file mode 100644
index 1f197e1..0000000
--- a/debian/ruby-timeline-setter/DEBIAN/md5sums
+++ /dev/null
@@ -1,9 +0,0 @@
-4002eb856080c265c0b012a0e36590db  usr/bin/timeline-setter
-f3b84f13e4a6dcfdf6717e4d1a69dad9  usr/lib/ruby/vendor_ruby/timeline_setter.rb
-bf71d4ccaa19a31411e6a0ecaa1998eb  usr/lib/ruby/vendor_ruby/timeline_setter/cli.rb
-c95db48e67fa9fea502d3d38db1c3530  usr/lib/ruby/vendor_ruby/timeline_setter/parser.rb
-f68901bb18f6efee9ac31fc7d9dc9dc7  usr/lib/ruby/vendor_ruby/timeline_setter/timeline.rb
-848a7f6d722248620a3065d7246ce7fe  usr/lib/ruby/vendor_ruby/timeline_setter/version.rb
-4d5a6d8f3f15ae7f009c3400ae2eff18  usr/share/doc/ruby-timeline-setter/changelog.Debian.gz
-f0dfe6e0926c21ce8a4dd4b73dcda7b3  usr/share/doc/ruby-timeline-setter/copyright
-24a8c77d02a4ced617f85e273fc5699c  usr/share/rubygems-integration/all/specifications/timeline_setter-0.3.2.gemspec
diff --git a/debian/ruby-timeline-setter/usr/bin/timeline-setter b/debian/ruby-timeline-setter/usr/bin/timeline-setter
deleted file mode 100755
index 49aacb8..0000000
--- a/debian/ruby-timeline-setter/usr/bin/timeline-setter
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/ruby
-
-# $ ./bin/timeline-setter -c ./test.csv -o ./public/ -O
-
-require 'rubygems'
-require File.expand_path("../../lib/timeline_setter.rb", __FILE__)
-require File.expand_path("../../lib/timeline_setter/cli.rb", __FILE__)
-
-TimelineSetter::CLI.new
\ No newline at end of file
diff --git a/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter.rb b/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter.rb
deleted file mode 100644
index fcce55a..0000000
--- a/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-
-module TimelineSetter
-  ROOT = File.expand_path "#{File.dirname __FILE__}/.."
-end
-
-require 'date'
-require 'time'
-require 'erb'
-require 'table_fu'
-require 'json'
-require 'kompress'
-
-require "#{TimelineSetter::ROOT}/lib/timeline_setter/version"
-require "#{TimelineSetter::ROOT}/lib/timeline_setter/parser"
-require "#{TimelineSetter::ROOT}/lib/timeline_setter/timeline"
diff --git a/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/cli.rb b/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/cli.rb
deleted file mode 100644
index d5ac9a0..0000000
--- a/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/cli.rb
+++ /dev/null
@@ -1,98 +0,0 @@
-require 'optparse'
-require 'fileutils'
-
-module TimelineSetter
-  class CLI
-    def initialize
-      parse_options!
-    end
-
-    def parse_options!
-      @options = {}
-      option_parser = OptionParser.new do |opts|
-        opts.banner = <<-BANNER
-          TimelineSetter: A tool to generate HTML timelines from CSVs.
-
-          Usage:
-        BANNER
-
-        opts.on('-c', '--csv CSV', 'CSV input file') do |c|
-          @options[:csv] = c
-        end
-        opts.on('-o', '--output OUTPUT', 'Output directory to install timeline into.') do |o|
-          @options[:output] = o
-        end
-        opts.on('-a', '--without-assets', 'Output timeline without supporting assets') do |a|
-          @options[:no_assets] = a
-        end
-        opts.on('-O', '--open', 'Open generated timeline in a browser') do |o|
-          @options[:open] = o
-        end
-        opts.on('-m', '--min', 'Create a minified one-page version of the timeline') do |m|
-          @options[:min] = m
-        end
-        opts.on('-i', '--interval INTERVAL', 'Override automatic interval notches with a custom interval.') do |i|
-          @options[:interval] = i
-        end
-
-
-        opts.on_tail("-h", "--help", "Show this message") do
-          puts opts
-          exit
-        end
-      end
-      option_parser.parse!
-
-      if @options.empty?
-        puts option_parser.on_tail
-        exit
-      else
-        compile!
-      end
-    end
-
-    def sheet
-      File.open(@options[:csv]).read
-    end
-
-    def events
-      TimelineSetter::Parser.new sheet
-    end
-
-    def html
-      TimelineSetter::Timeline.new({
-        :events => events.events,
-        :interval => @options[:interval] || ''
-      }).send(@options[:min] ? :timeline_min : :timeline)
-    end
-
-    def outdir
-      @options[:output] ? @options[:output] : "#{`pwd`.strip}/"
-    end
-
-    def timeline_page_path
-      File.join(outdir, 'timeline.html')
-    end
-
-    def compile!
-      FileUtils.mkdir_p outdir unless File.exists? outdir
-      if !@options[:no_assets] || !@options[:min]
-        FileUtils.cp_r(Dir.glob("#{TimelineSetter::ROOT}/public/*"), outdir)
-        # Concatenate JSTs to timeline-setter.js and remove templates.js
-        `cat #{outdir}/javascripts/templates.js >> #{outdir}/javascripts/timeline-setter.js && rm -rf #{outdir}/javascripts/templates*`
-      end
-
-      File.open(timeline_page_path, 'w+') do |doc|
-        doc.write html
-      end
-
-      puts "== Files copied to #{outdir}"
-
-      if @options[:open]
-        puts "== Opening ..."
-        %x[ open #{timeline_page_path} ]
-      end
-    end
-
-  end
-end
diff --git a/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/parser.rb b/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/parser.rb
deleted file mode 100644
index b7dcc72..0000000
--- a/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/parser.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-module TimelineSetter
-  class Parser
-    attr_reader :events
-
-    # Initialize a new timeline from a CSV file via TableFu,
-    # add a hash for each row (event) in the sheet to an events array.
-    # Sheet should contain columns for
-    #  * date
-    #  * display_date
-    #  * description
-    #  * link
-    #  * thumbnail
-    #  * series
-    #  * html
-    #
-    def initialize(sheet)
-      @events = []
-      spreadsheet = TableFu.new(sheet) do |s|
-        s.columns = %w[date display_date description link series html]
-      end
-
-      spreadsheet.rows.each do |row|
-        hash = spreadsheet.columns.inject({}) {|memo, column| memo[column.to_sym] = row[column].to_s ; memo}
-        @events << hash
-      end
-    end
-  end
-end
diff --git a/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/timeline.rb b/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/timeline.rb
deleted file mode 100644
index 749d03e..0000000
--- a/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/timeline.rb
+++ /dev/null
@@ -1,52 +0,0 @@
-module TimelineSetter
-  class Timeline
-    attr_reader :timeline
-    # Instantiate a new timeline from an events
-    # array created in Parser#initialize
-    def initialize(opts = {})
-      @events   = opts[:events]
-      @interval = opts[:interval] || ''
-    end
-
-    # Convert human dates to timestamps, sort the hash by timestamp, and
-    # convert the events hash to JSON to stick into our HTML.
-    def to_json
-      @events.each {|r| r[:timestamp] = Time.parse(r[:date]).to_i * 1000 }
-      @events.to_json
-    end
-    
-    def config_json
-      {
-        "interval"  => "#{@interval}",
-        "container" => "#timeline"
-      }.to_json
-    end
-
-    def timeline_markup
-      tmpl("timeline-markup.erb")
-    end
-
-    # Create timeline HTML by interpolating events hash into an ERB template.
-    # Re-template timeline by editing ../templates/timeline.erb
-    # This version preserves external links to CSS and JS.
-    def timeline
-      @timeline = tmpl("timeline.erb")
-    end
-
-    # Create a minified one-page version of a timeline by minifying CSS and JS and embedding all assets
-    # into our ERB template.
-    def timeline_min
-      @js = ""
-      @css = Kompress::CSS.new(File.open("#{TimelineSetter::ROOT}/public/stylesheets/timeline-setter.css").read).css
-      libs = Dir.glob("#{TimelineSetter::ROOT}/public/javascripts/vendor/**").select {|q| q =~ /min/ }
-      libs.each { |lib| @js << File.open(lib,'r').read }
-      @min_html = Kompress::HTML.new(timeline_markup).html
-      @js << File.open("#{TimelineSetter::ROOT}/public/javascripts/timeline-setter.min.js", 'r').read
-      @timeline = tmpl("timeline-min.erb")
-    end
-    
-    def tmpl(tmpl_file)
-      ERB.new(File.open("#{TimelineSetter::ROOT}/templates/#{tmpl_file}").read).result(binding)
-    end
-  end
-end
diff --git a/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/version.rb b/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/version.rb
deleted file mode 100644
index d8fb033..0000000
--- a/debian/ruby-timeline-setter/usr/lib/ruby/vendor_ruby/timeline_setter/version.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-module TimelineSetter
-  VERSION = "0.3.2"
-end
diff --git a/debian/ruby-timeline-setter/usr/share/doc/ruby-timeline-setter/changelog.Debian.gz b/debian/ruby-timeline-setter/usr/share/doc/ruby-timeline-setter/changelog.Debian.gz
deleted file mode 100644
index 2775f47..0000000
Binary files a/debian/ruby-timeline-setter/usr/share/doc/ruby-timeline-setter/changelog.Debian.gz and /dev/null differ
diff --git a/debian/ruby-timeline-setter/usr/share/doc/ruby-timeline-setter/copyright b/debian/ruby-timeline-setter/usr/share/doc/ruby-timeline-setter/copyright
deleted file mode 100644
index 6b297bd..0000000
--- a/debian/ruby-timeline-setter/usr/share/doc/ruby-timeline-setter/copyright
+++ /dev/null
@@ -1,30 +0,0 @@
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: timeline_setter
-Source: https://github.com/propublica/timeline-setter
-
-Files: *
-Copyright: 2011 ProPublica< info at propublica.org>
-License: MIT
-
-Files: debian/*
-Copyright: 2014 Balasankar C <balasankarc at autistici.org>
-License: MIT
-Comment: the Debian packaging is licensed under the same terms as the original package.
-
-License: MIT
- 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/debian/ruby-timeline-setter/usr/share/rubygems-integration/all/specifications/timeline_setter-0.3.2.gemspec b/debian/ruby-timeline-setter/usr/share/rubygems-integration/all/specifications/timeline_setter-0.3.2.gemspec
deleted file mode 100644
index 2025cc0..0000000
--- a/debian/ruby-timeline-setter/usr/share/rubygems-integration/all/specifications/timeline_setter-0.3.2.gemspec
+++ /dev/null
@@ -1,44 +0,0 @@
-# -*- encoding: utf-8 -*-
-# stub: timeline_setter 0.3.2 ruby lib
-
-Gem::Specification.new do |s|
-  s.name = "timeline_setter"
-  s.version = "0.3.2"
-
-  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
-  s.require_paths = ["lib"]
-  s.authors = ["Al Shaw", "Jeff Larson"]
-  s.date = "2013-02-21"
-  s.description = "TimelineSetter is a tool to create HTML timelines from spreadsheets of events."
-  s.email = "almshaw at gmail.com"
-  s.executables = ["timeline-setter"]
-  s.extra_rdoc_files = ["LICENSE.txt", "README"]
-  s.files = [".document", "LICENSE.txt", "README", "Rakefile", "bin/timeline-setter", "config/assets.yml", "doc/doc.markdown", "doc/doc_wrapper.erb", "doc/docco.css", "doc/static-demo.html", "doc/templates.html", "doc/timeline-setter.html", "doc/timeline-setter.min.html", "doc/todo.markdown", "doc/twitter-demo.html", "documentation/TimelineSetter.html", "documentation/TimelineSetter/CLI.html", "documentation/TimelineSetter/Parser.html", "documentation/TimelineSetter/Timeline.html", "docu [...]
-  s.homepage = "http://github.com/propublica/timeline-setter"
-  s.rubygems_version = "2.2.2"
-  s.summary = "TimelineSetter is a tool to create HTML timelines from spreadsheets of events."
-
-  if s.respond_to? :specification_version then
-    s.specification_version = 3
-
-    if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
-      s.add_runtime_dependency(%q<json>, [">= 0"])
-      s.add_runtime_dependency(%q<table_fu>, [">= 0"])
-      s.add_runtime_dependency(%q<kompress>, [">= 0.0.2"])
-      s.add_runtime_dependency(%q<jammit>, [">= 0"])
-      s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
-    else
-      s.add_dependency(%q<json>, [">= 0"])
-      s.add_dependency(%q<table_fu>, [">= 0"])
-      s.add_dependency(%q<kompress>, [">= 0.0.2"])
-      s.add_dependency(%q<jammit>, [">= 0"])
-      s.add_dependency(%q<rspec>, [">= 2.0.0"])
-    end
-  else
-    s.add_dependency(%q<json>, [">= 0"])
-    s.add_dependency(%q<table_fu>, [">= 0"])
-    s.add_dependency(%q<kompress>, [">= 0.0.2"])
-    s.add_dependency(%q<jammit>, [">= 0"])
-    s.add_dependency(%q<rspec>, [">= 2.0.0"])
-  end
-end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-timeline-setter.git



More information about the Pkg-ruby-extras-commits mailing list