recurrence 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.
- data/Rakefile +9 -9
- data/lib/recurrence.rb +1 -1
- data/recurrence.gemspec +1 -1
- metadata +1 -1
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.
|
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
data/recurrence.gemspec
CHANGED