lighthouse-ical 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,5 @@
1
+ =0.0.2
2
+ Can now export ics file
3
+
4
+ =0.0.1
5
+ Initial release
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = lighthouse-ical
2
2
 
3
- No iCal feeds for milestones from Lighthouse are available. What if you could roll your own?
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
@@ -43,5 +43,6 @@ Rake::RDocTask.new do |rdoc|
43
43
  rdoc.rdoc_dir = 'rdoc'
44
44
  rdoc.title = "lighthouse-ical #{version}"
45
45
  rdoc.rdoc_files.include('README*')
46
+ rdoc.rdoc_files.include('CHANGELOG*')
46
47
  rdoc.rdoc_files.include('lib/**/*.rb')
47
48
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -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
 
@@ -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.1"
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
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