recurrence 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,11 +1,11 @@
1
1
  require 'rake'
2
2
 
3
- PKG_FILES = %w(init.rb Rakefile recurrence.gemspec History.txt License.txt README.markdown) +
3
+ PKG_FILES = %w(init.rb Rakefile recurrence.gemspec History.txt License.txt README.markdown) +
4
4
  Dir["lib/**/*"]
5
5
 
6
6
  spec = Gem::Specification.new do |s|
7
7
  s.name = "recurrence"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
  s.summary = "A simple library to handle recurring events"
10
10
  s.authors = ["Nando Vieira"]
11
11
  s.email = ["fnando.vieira@gmail.com"]
@@ -13,7 +13,7 @@ spec = Gem::Specification.new do |s|
13
13
  s.description = ""
14
14
  s.has_rdoc = false
15
15
  s.files = PKG_FILES
16
-
16
+
17
17
  s.add_dependency "activesupport", ">=2.1.1"
18
18
  end
19
19
 
@@ -22,16 +22,16 @@ namespace :gem do
22
22
  desc "Update Github Gemspec"
23
23
  task :update_gemspec do
24
24
  skip_fields = %w(new_platform original_platform specification_version loaded required_ruby_version rubygems_version platform)
25
-
25
+
26
26
  result = "# WARNING : RAKE AUTO-GENERATED FILE. DO NOT MANUALLY EDIT!\n"
27
27
  result << "# RUN : 'rake gem:update_gemspec'\n\n"
28
28
  result << "Gem::Specification.new do |s|\n"
29
-
29
+
30
30
  spec.instance_variables.each do |ivar|
31
31
  value = spec.instance_variable_get(ivar)
32
32
  name = ivar.split("@").last
33
33
  next if name == "date"
34
-
34
+
35
35
  next if skip_fields.include?(name) || value.nil? || value == "" || (value.respond_to?(:empty?) && value.empty?)
36
36
  if name == "dependencies"
37
37
  value.each do |d|
@@ -53,17 +53,17 @@ namespace :gem do
53
53
  result << " s.#{name} = #{value}\n"
54
54
  end
55
55
  end
56
-
56
+
57
57
  result << "end"
58
58
  File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w"){|f| f << result}
59
59
  end
60
-
60
+
61
61
  desc "Build gem"
62
62
  task :build => [:update_gemspec] do
63
63
  system "rm *.gem"
64
64
  system "gem build #{spec.instance_variable_get('@name')}.gemspec"
65
65
  end
66
-
66
+
67
67
  desc "Install gem"
68
68
  task :install => [:update_gemspec, :build] do
69
69
  system "sudo gem install #{spec.instance_variable_get('@name')}"
data/lib/recurrence.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'date'
3
- require 'activesupport'
3
+ require 'active_support'
4
4
 
5
5
  dirname = File.dirname(__FILE__)
6
6
  require dirname + '/recurrence/base'
data/recurrence.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  "lib/recurrence.rb"]
27
27
  s.authors = ["Nando Vieira"]
28
28
  s.required_rubygems_version = ">= 0"
29
- s.version = "0.1.0"
29
+ s.version = "0.1.1"
30
30
  s.has_rdoc = true
31
31
  s.email = ["fnando.vieira@gmail.com"]
32
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurrence
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
  - Nando Vieira