ohac-rical 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/bin/rical +3 -0
  2. data/lib/rical.rb +3 -3
  3. metadata +4 -3
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'rical'
@@ -1,4 +1,3 @@
1
- #!/usr/bin/ruby1.9
2
1
  require 'rubygems'
3
2
  require 'icalendar'
4
3
  require 'fileutils'
@@ -14,8 +13,8 @@ today = Date.today
14
13
  date_end = today + 365 * 3
15
14
 
16
15
  HOME = ENV['HOME']
17
- SETTING = "#{HOME}/.icalrc"
18
- CACHEDIR = "#{HOME}/.ical.d/cache"
16
+ SETTING = "#{HOME}/.ricalrc"
17
+ CACHEDIR = "#{HOME}/.rical.d/cache"
19
18
  unless File.exists?(SETTING)
20
19
  puts "no #{SETTING}"
21
20
  exit 1
@@ -23,6 +22,7 @@ end
23
22
  icss = File.open(SETTING) { |f| f.readlines.map(&:chop) }
24
23
  icss = icss.map { |fn|
25
24
  case fn
25
+ when /\A\z/
26
26
  when /^#/
27
27
  nil
28
28
  when /^\//
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohac-rical
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OHASHI Hideya
@@ -24,8 +24,8 @@ dependencies:
24
24
  version:
25
25
  description: iCalendar viewer for Ruby.
26
26
  email: ohachige@gmail.com
27
- executables: []
28
-
27
+ executables:
28
+ - rical
29
29
  extensions: []
30
30
 
31
31
  extra_rdoc_files: []
@@ -33,6 +33,7 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - README
35
35
  - lib/rical.rb
36
+ - bin/rical
36
37
  has_rdoc: true
37
38
  homepage: http://github.com/ohac/rical
38
39
  post_install_message: