lighthouse-ical 0.0.1 → 0.0.2
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/CHANGELOG.rdoc +5 -0
- data/README.rdoc +6 -1
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/lighthouse-ical.rb +6 -0
- data/lighthouse-ical.gemspec +2 -1
- metadata +4 -3
data/CHANGELOG.rdoc
ADDED
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= lighthouse-ical
|
2
2
|
|
3
|
-
|
3
|
+
Lighthouse scheduled milestones output as an iCal feed. Unscheduled milestones will not be in the feed.
|
4
4
|
|
5
5
|
== Configuration
|
6
6
|
The first thing you need to set is the account name. This is the same
|
@@ -19,6 +19,11 @@ find more info on tokens at Lighthouse[http://lighthouseapp.com/help/using-beaco
|
|
19
19
|
|
20
20
|
If no token or authentication info is given, you'll only be granted public access.
|
21
21
|
|
22
|
+
== Usage
|
23
|
+
LighthouseIcal.create_calendar_for_project_id(project_id) #Pass the projectID of the Lighthouse Project to generate iCal string for
|
24
|
+
|
25
|
+
LighthouseIcal.create_ics_file_for_project_id(filepath,project_id) #Generates an ics file at the specified filepath for the Lighthouse project with project_id
|
26
|
+
|
22
27
|
== Note on Patches/Pull Requests
|
23
28
|
|
24
29
|
* Fork the project.
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/lighthouse-ical.rb
CHANGED
@@ -23,6 +23,12 @@ class LighthouseIcal
|
|
23
23
|
return calendar.to_ical
|
24
24
|
end
|
25
25
|
|
26
|
+
def self.create_ics_file_for_project_id(filepath,project_id)
|
27
|
+
file = File.new(filepath,"w+")
|
28
|
+
file.write(self.create_calendar_for_project_id(project_id))
|
29
|
+
file.close
|
30
|
+
end
|
31
|
+
|
26
32
|
private
|
27
33
|
|
28
34
|
|
data/lighthouse-ical.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{lighthouse-ical}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Niels Meersschaert"]
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".gitignore",
|
22
|
+
"CHANGELOG.rdoc",
|
22
23
|
"LICENSE",
|
23
24
|
"README.rdoc",
|
24
25
|
"Rakefile",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lighthouse-ical
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Niels Meersschaert
|
@@ -78,6 +78,7 @@ extra_rdoc_files:
|
|
78
78
|
files:
|
79
79
|
- .document
|
80
80
|
- .gitignore
|
81
|
+
- CHANGELOG.rdoc
|
81
82
|
- LICENSE
|
82
83
|
- README.rdoc
|
83
84
|
- Rakefile
|